Skip to content

Dependency Update #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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