ruby-push-notifications 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 738a575f80f0cd2e1a1944232642c792f13e0bea
4
- data.tar.gz: 8486e81fc3ab988335c233845ebee636b5d9ef89
3
+ metadata.gz: 6a56beebcc92083bc2f71294a56bc9ee3bc76eaa
4
+ data.tar.gz: 0d26991e228d5e85b6e326aeeaab62b3f718b32d
5
5
  SHA512:
6
- metadata.gz: 43fbc9c2a9544ebd9f5cc7a8b8a6ccd9955177fafb6604ac08076830fb87c7bc98238601ea1579d10d438c77854f7f872903da8518276886b44634adc6a4f5a7
7
- data.tar.gz: 24846b4b7d52519915de9bd02cd2d5bda4bf732fd109dc9a44b6cc32eb09dce256a548c3bee721eb4cedb115326c0080c16b0b42608664dbfd61e9b0c07f1761
6
+ metadata.gz: 97d469ba85e823407ee4d196b480ebb1a33437fdeaca7bac666d8006555e93c4440f493312bc6f0fbcf3133fcdc0f39e8b64ea94d8f7b4a5a2bf0a4f5b3ea592
7
+ data.tar.gz: 071ee1997208978781c887538c5699cce6546d59acb52bdd8981ecfc33aa09c456ac595512cfa554d59abdce3619396a03472923d851503b5e2a5fc4ecc69e96
data/.gitignore CHANGED
@@ -26,7 +26,7 @@ build/
26
26
 
27
27
  # for a library or gem, you might want to ignore these files since the code is
28
28
  # intended to run in multiple environments; otherwise, check them in:
29
- # Gemfile.lock
29
+ Gemfile.lock
30
30
  # .ruby-version
31
31
  # .ruby-gemset
32
32
 
data/.travis.yml CHANGED
@@ -1,8 +1,14 @@
1
1
  language: ruby
2
2
  rvm:
3
- - "2.2.0"
4
- - "2.1.5"
5
- - "2.0.0"
3
+ - 2.4.0
4
+ - 2.3.3
5
+ - 2.2.6
6
+ matrix:
7
+ include:
8
+ - rvm: "2.1.10"
9
+ gemfile: gemfiles/Gemfile-legacy
10
+ - rvm: "2.0.0"
11
+ gemfile: gemfiles/Gemfile-legacy
6
12
  env: CODECLIMATE_REPO_TOKEN=efdb12c380287a25b2b26362aa710a9b59020122cbe4edecf0d353bf50e0046a
7
13
  notifications:
8
14
  webhooks:
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
5
  ## [unrealeased] - [unrealease date]
6
6
 
7
+ ## 1.0.1 - 2017-01-12
8
+ - **Fixed**: Loading issue when `'forwardable'` wasn't previously required.
9
+ - **Removed**: Version file
10
+
7
11
  ## 1.0.0 - 2016-12-01
8
12
  - **Added**: Configurable timeouts for connecting external services.
9
13
  - **Removed**: Ruby 1.9.3 support.
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "activesupport", "~> 4.2", group: :test
4
+
5
+ # Specify your gem's dependencies in ruby-push-notifications.gemspec
6
+ gemspec path: ".."
7
+
8
+ gem "codeclimate-test-reporter", group: :test, require: nil
@@ -1,4 +1,4 @@
1
- require 'ruby-push-notifications/version'
1
+ require 'forwardable'
2
2
  require 'ruby-push-notifications/notification_results_manager'
3
3
  require 'ruby-push-notifications/apns'
4
4
  require 'ruby-push-notifications/gcm'
@@ -42,4 +42,3 @@ require 'ruby-push-notifications/apns/apns_connection'
42
42
  require 'ruby-push-notifications/apns/apns_notification'
43
43
  require 'ruby-push-notifications/apns/apns_pusher'
44
44
  require 'ruby-push-notifications/apns/apns_results'
45
-
@@ -1,7 +1,5 @@
1
-
2
1
  require 'socket'
3
2
  require 'openssl'
4
- require 'forwardable'
5
3
 
6
4
  module RubyPushNotifications
7
5
  module APNS
@@ -1,4 +1,3 @@
1
-
2
1
  require 'json'
3
2
 
4
3
  module RubyPushNotifications
@@ -4,4 +4,3 @@ require 'ruby-push-notifications/gcm/gcm_pusher'
4
4
  require 'ruby-push-notifications/gcm/gcm_response'
5
5
  require 'ruby-push-notifications/gcm/gcm_error'
6
6
  require 'ruby-push-notifications/gcm/gcm_result'
7
-
@@ -1,11 +1,7 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'ruby-push-notifications/version'
5
-
6
2
  Gem::Specification.new do |spec|
7
3
  spec.name = "ruby-push-notifications"
8
- spec.version = RubyPushNotifications::VERSION
4
+ spec.version = "1.0.1"
9
5
  spec.authors = ['Carlos Alonso']
10
6
  spec.email = ['info@mrcalonso.com']
11
7
  spec.summary = %q{iOS, Android and Windows Phone Push Notifications made easy!}
data/spec/spec_helper.rb CHANGED
@@ -1,109 +1,17 @@
1
1
 
2
- require 'codeclimate-test-reporter'
3
- CodeClimate::TestReporter.start
2
+ require 'simplecov'
3
+ SimpleCov.start
4
4
 
5
+ require 'rubygems'
6
+ require 'bundler'
5
7
  Bundler.setup
6
8
  Bundler.require :defaults, :development
7
9
  require 'webmock/rspec'
8
10
 
9
11
  require 'ruby-push-notifications'
10
- # This file was generated by the `rspec --init` command. Conventionally, all
11
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
12
- # The generated `.rspec` file contains `--require spec_helper` which will cause
13
- # this file to always be loaded, without a need to explicitly require it in any
14
- # files.
15
- #
16
- # Given that it is always loaded, you are encouraged to keep this file as
17
- # light-weight as possible. Requiring heavyweight dependencies from this file
18
- # will add to the boot time of your test suite on EVERY test run, even for an
19
- # individual file that may not need all of that loaded. Instead, consider making
20
- # a separate helper file that requires the additional dependencies and performs
21
- # the additional setup, and require it from the spec files that actually need
22
- # it.
23
- #
24
- # The `.rspec` file also contains a few flags that are not defaults but that
25
- # users commonly want.
26
- #
27
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
28
- RSpec.configure do |config|
29
- # rspec-expectations config goes here. You can use an alternate
30
- # assertion/expectation library such as wrong or the stdlib/minitest
31
- # assertions if you prefer.
32
- config.expect_with :rspec do |expectations|
33
- # This option will default to `true` in RSpec 4. It makes the `description`
34
- # and `failure_message` of custom matchers include text for helper methods
35
- # defined using `chain`, e.g.:
36
- # be_bigger_than(2).and_smaller_than(4).description
37
- # # => "be bigger than 2 and smaller than 4"
38
- # ...rather than:
39
- # # => "be bigger than 2"
40
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
41
- end
42
-
43
- # rspec-mocks config goes here. You can use an alternate test double
44
- # library (such as bogus or mocha) by changing the `mock_with` option here.
45
- config.mock_with :rspec do |mocks|
46
- # Prevents you from mocking or stubbing a method that does not exist on
47
- # a real object. This is generally recommended, and will default to
48
- # `true` in RSpec 4.
49
- mocks.verify_partial_doubles = true
50
- mocks.verify_doubled_constant_names = true
51
- end
52
-
53
- # The settings below are suggested to provide a good initial experience
54
- # with RSpec, but feel free to customize to your heart's content.
55
- =begin
56
- # These two settings work together to allow you to limit a spec run
57
- # to individual examples or groups you care about by tagging them with
58
- # `:focus` metadata. When nothing is tagged with `:focus`, all examples
59
- # get run.
60
- config.filter_run :focus
61
- config.run_all_when_everything_filtered = true
62
-
63
- # Limits the available syntax to the non-monkey patched syntax that is
64
- # recommended. For more details, see:
65
- # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
66
- # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
67
- # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
68
- config.disable_monkey_patching!
69
-
70
- # This setting enables warnings. It's recommended, but in some cases may
71
- # be too noisy due to issues in dependencies.
72
- config.warnings = true
73
-
74
- # Many RSpec users commonly either run the entire suite or an individual
75
- # file, and it's useful to allow more verbose output when running an
76
- # individual spec file.
77
- if config.files_to_run.one?
78
- # Use the documentation formatter for detailed output,
79
- # unless a formatter has already been configured
80
- # (e.g. via a command-line flag).
81
- config.default_formatter = 'doc'
82
- end
83
-
84
- # Print the 10 slowest examples and example groups at the
85
- # end of the spec run, to help surface which specs are running
86
- # particularly slow.
87
- config.profile_examples = 10
88
-
89
- # Run specs in random order to surface order dependencies. If you find an
90
- # order dependency and want to debug it, you can fix the order by providing
91
- # the seed, which is printed after each run.
92
- # --seed 1234
93
- config.order = :random
94
-
95
- # Seed global randomization in this process using the `--seed` CLI option.
96
- # Setting this allows you to use `--seed` to deterministically reproduce
97
- # test failures related to randomization by passing the same `--seed` value
98
- # as the one that triggered the failure.
99
- Kernel.srand config.seed
100
- =end
101
- end
102
12
 
103
13
  Dir["./spec/support/**/*.rb"].sort.each { |f| require f }
104
14
 
105
- require 'ruby-push-notifications/apns/apns_notification'
106
-
107
15
  def apns_binary(json, token, id)
108
16
  json = JSON.dump(json) if json.is_a?(Hash)
109
17
  [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-push-notifications
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Alonso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-01 00:00:00.000000000 Z
11
+ date: 2017-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -108,13 +108,13 @@ files:
108
108
  - ".travis.yml"
109
109
  - CHANGELOG.md
110
110
  - Gemfile
111
- - Gemfile.lock
112
111
  - LICENSE
113
112
  - README.md
114
113
  - Rakefile
115
114
  - examples/apns.rb
116
115
  - examples/gcm.rb
117
116
  - examples/mpns.rb
117
+ - gemfiles/Gemfile-legacy
118
118
  - lib/ruby-push-notifications.rb
119
119
  - lib/ruby-push-notifications/apns.rb
120
120
  - lib/ruby-push-notifications/apns/apns_connection.rb
@@ -135,7 +135,6 @@ files:
135
135
  - lib/ruby-push-notifications/mpns/mpns_response.rb
136
136
  - lib/ruby-push-notifications/mpns/mpns_result.rb
137
137
  - lib/ruby-push-notifications/notification_results_manager.rb
138
- - lib/ruby-push-notifications/version.rb
139
138
  - ruby-push-notifications.gemspec
140
139
  - spec/factories.rb
141
140
  - spec/factories/notifications.rb
@@ -174,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
173
  version: '0'
175
174
  requirements: []
176
175
  rubyforge_project:
177
- rubygems_version: 2.2.2
176
+ rubygems_version: 2.6.8
178
177
  signing_key:
179
178
  specification_version: 4
180
179
  summary: iOS, Android and Windows Phone Push Notifications made easy!
data/Gemfile.lock DELETED
@@ -1,69 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- ruby-push-notifications (1.0.0)
5
- builder (~> 3.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activesupport (4.2.1)
11
- i18n (~> 0.7)
12
- json (~> 1.7, >= 1.7.7)
13
- minitest (~> 5.1)
14
- thread_safe (~> 0.3, >= 0.3.4)
15
- tzinfo (~> 1.1)
16
- addressable (2.3.8)
17
- builder (3.2.2)
18
- codeclimate-test-reporter (0.4.7)
19
- simplecov (>= 0.7.1, < 1.0.0)
20
- crack (0.4.2)
21
- safe_yaml (~> 1.0.0)
22
- diff-lcs (1.2.5)
23
- docile (1.1.5)
24
- factory_girl (4.5.0)
25
- activesupport (>= 3.0.0)
26
- i18n (0.7.0)
27
- json (1.8.2)
28
- minitest (5.6.1)
29
- rake (10.4.2)
30
- rspec (3.2.0)
31
- rspec-core (~> 3.2.0)
32
- rspec-expectations (~> 3.2.0)
33
- rspec-mocks (~> 3.2.0)
34
- rspec-core (3.2.3)
35
- rspec-support (~> 3.2.0)
36
- rspec-expectations (3.2.1)
37
- diff-lcs (>= 1.2.0, < 2.0)
38
- rspec-support (~> 3.2.0)
39
- rspec-mocks (3.2.1)
40
- diff-lcs (>= 1.2.0, < 2.0)
41
- rspec-support (~> 3.2.0)
42
- rspec-support (3.2.2)
43
- safe_yaml (1.0.4)
44
- simplecov (0.10.0)
45
- docile (~> 1.1.0)
46
- json (~> 1.8)
47
- simplecov-html (~> 0.10.0)
48
- simplecov-html (0.10.0)
49
- thread_safe (0.3.5)
50
- tzinfo (1.2.2)
51
- thread_safe (~> 0.1)
52
- webmock (1.21.0)
53
- addressable (>= 2.3.6)
54
- crack (>= 0.3.2)
55
-
56
- PLATFORMS
57
- ruby
58
-
59
- DEPENDENCIES
60
- bundler (~> 1.6)
61
- codeclimate-test-reporter
62
- factory_girl (~> 4.0)
63
- rake (~> 10.4)
64
- rspec (~> 3.2)
65
- ruby-push-notifications!
66
- webmock (~> 1.20)
67
-
68
- BUNDLED WITH
69
- 1.12.5
@@ -1,3 +0,0 @@
1
- module RubyPushNotifications
2
- VERSION = '1.0.0'
3
- end