Skip to content

Commit

Permalink
Merge pull request #68 from bidluo/update-faraday
Browse files Browse the repository at this point in the history
Updated Faraday to 1.0.0
  • Loading branch information
sabman authored Apr 17, 2020
2 parents 8386c84 + 0599dd6 commit b64f836
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ rvm:
- 2.4.0
- 2.4.5
- 2.5.3
- 2.6.1
- 2.6.1
- 2.7.0
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ gem 'fcm'

For Android you will need a device running 2.3 (or newer) that also have the Google Play Store app installed, or an emulator running Android 2.3 with Google APIs. iOS devices are also supported.


A version of supported Ruby, currently:
`ruby >= 2.4`


## Usage

For your server to send a message to one or more devices, you must first initialise a new `FCM` class with your Firebase Cloud Messaging server key, and then call the `send` method on this and give it 1 or more (up to 1000) registration tokens as an array of strings. You can also optionally send further [HTTP message parameters](https://firebase.google.com/docs/cloud-messaging/http-server-ref) like `data` or `time_to_live` etc. as a hash via the second optional argument to `send`.
Expand Down
2 changes: 1 addition & 1 deletion fcm.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]

s.add_runtime_dependency('faraday','0.15.4')
s.add_runtime_dependency('faraday','1.0.0')
end

0 comments on commit b64f836

Please sign in to comment.