push-gcm 1.0.3 → 1.0.4

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.
@@ -1,3 +1,3 @@
1
1
  module PushGcm
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  module Push
2
2
  class ConfigurationGcm < Push::Configuration
3
3
  store :properties, accessors: [:key]
4
- attr_accessible :app, :enabled, :connections, :key
4
+ attr_accessible :app, :enabled, :connections, :key if defined?(ActiveModel::MassAssignmentSecurity)
5
5
  validates :key, :presence => true
6
6
 
7
7
  def name
@@ -1,7 +1,7 @@
1
1
  module Push
2
2
  class FeedbackGcm < Push::Feedback
3
3
  store :properties, accessors: [:update_to]
4
- attr_accessible :app, :device, :follow_up, :failed_at, :update_to
4
+ attr_accessible :app, :device, :follow_up, :failed_at, :update_to if defined?(ActiveModel::MassAssignmentSecurity)
5
5
 
6
6
  validates :follow_up, :inclusion => { :in => %w(delete update), :message => "%{value} is not a valid follow-up" }
7
7
  end
@@ -5,7 +5,7 @@ module Push
5
5
  # Note that this includes both the size of the keys as well as the values.
6
6
 
7
7
  store :properties, accessors: [:collapse_key, :delay_when_idle, :time_to_live, :payload]
8
- attr_accessible :app, :device, :collapse_key, :delay_when_idle, :time_to_live, :payload
8
+ attr_accessible :app, :device, :collapse_key, :delay_when_idle, :time_to_live, :payload if defined?(ActiveModel::MassAssignmentSecurity)
9
9
 
10
10
  def to_message
11
11
  hsh = Hash.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: push-gcm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-05 00:00:00.000000000 Z
12
+ date: 2013-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: multi_json
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 1.3.2
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: 1.3.2
30
14
  - !ruby/object:Gem::Dependency
31
15
  name: push-core
32
16
  requirement: !ruby/object:Gem::Requirement