Skip to content

Commit a9ddcda

Browse files
authored
Merge pull request #16 from OneSignal/api
Dependency Update
2 parents ae50c0f + 6554506 commit a9ddcda

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ OneSignal is a simple ruby wrapper for the [OneSignal API][osa].
3030
Add this line to your application's Gemfile:
3131

3232
```ruby
33-
gem 'onesignal', '~> 1.0.0'
33+
gem 'onesignal', '~> 1.0.1'
3434
```
3535

3636
And then execute:
@@ -42,7 +42,8 @@ Or install it yourself as:
4242
$ gem install onesignal
4343

4444
Or install from Github:
45-
$ gem "onesignal", '~> 1.0.0', git: 'git://github.com/OneSignal/onesignal-ruby-api.git'
45+
46+
$ gem "onesignal", '~> 1.0.1', git: 'git://github.com/OneSignal/onesignal-ruby-api.git'
4647

4748
## Getting Started
4849

RELEASE_INSTRUCTIONS.md

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

lib/onesignal/api_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def build_request(http_method, path, opts = {})
9090
url = build_request_url(path, opts)
9191
http_method = http_method.to_sym.downcase
9292

93-
opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, name=onesignal-ruby, version=1.0.1'
93+
opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=1.0.1'
9494
header_params = @default_headers.merge(opts[:header_params] || {})
9595
query_params = opts[:query_params] || {}
9696
form_params = opts[:form_params] || {}

lib/onesignal/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module OneSignal
14-
VERSION = '1.0.0'
14+
VERSION = '1.0.1'
1515
end

0 commit comments

Comments
 (0)