diff --git a/.travis.yml b/.travis.yml index 793dfe7..17eee1d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,5 @@ rvm: - 2.4.0 - 2.4.5 - 2.5.3 - - 2.6.1 \ No newline at end of file + - 2.6.1 + - 2.7.0 diff --git a/README.md b/README.md index 162160d..25fc3a9 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/fcm.gemspec b/fcm.gemspec index 9b3f90a..f7e7f1d 100644 --- a/fcm.gemspec +++ b/fcm.gemspec @@ -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