Skip to content

Commit

Permalink
Merge pull request #16 from OneSignal/api
Browse files Browse the repository at this point in the history
Dependency Update
  • Loading branch information
jmadler authored Jun 9, 2022
2 parents ae50c0f + 6554506 commit a9ddcda
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ OneSignal is a simple ruby wrapper for the [OneSignal API][osa].
Add this line to your application's Gemfile:

```ruby
gem 'onesignal', '~> 1.0.0'
gem 'onesignal', '~> 1.0.1'
```

And then execute:
Expand All @@ -42,7 +42,8 @@ Or install it yourself as:
$ gem install onesignal

Or install from Github:
$ gem "onesignal", '~> 1.0.0', git: 'git://github.com/OneSignal/onesignal-ruby-api.git'

$ gem "onesignal", '~> 1.0.1', git: 'git://github.com/OneSignal/onesignal-ruby-api.git'

## Getting Started

Expand Down
4 changes: 3 additions & 1 deletion RELEASE_INSTRUCTIONS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Release Instructions
1. Generate new client version using OpenApi Generator
2. Make sure `ruby.yml` has the correct gem version
2. Create a new PR and merge
* Carefully review the PR to ensure nothing is overwritten and you are including all desired changes
* Ensure the correct version number is being sent in the header params `OS-Usage-Data` (`api_client.rb`)
3. Publish to RubyGems
3. Generate the gem: `gem build onesignal`
4. Publish to RubyGems
* To publish version 0.1.0 of a new gem called 'squid-utils', run: `gem push squid-utils-0.1.0.gem`
* To publish a beta version, simply add `.beta1`, `.beta2` etc... after the semantic version (e.g: `1.0.0.beta1`)

2 changes: 1 addition & 1 deletion lib/onesignal/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def build_request(http_method, path, opts = {})
url = build_request_url(path, opts)
http_method = http_method.to_sym.downcase

opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, name=onesignal-ruby, version=1.0.1'
opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=1.0.1'
header_params = @default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {}
form_params = opts[:form_params] || {}
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module OneSignal
VERSION = '1.0.0'
VERSION = '1.0.1'
end

0 comments on commit a9ddcda

Please sign in to comment.