cony 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  pkg
2
+ /.bundle
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 1.9.3-p484
1
+ 1.9.3-p547
data/.travis.yml CHANGED
@@ -8,3 +8,4 @@ gemfile:
8
8
  - gemfiles/activesupport-3.2.gemfile
9
9
  - gemfiles/activesupport-4.0.gemfile
10
10
  - gemfiles/activesupport-4.1.gemfile
11
+ - gemfiles/activesupport-4.2.gemfile
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (4.1.0)
11
+ activesupport (4.1.6)
12
12
  i18n (~> 0.6, >= 0.6.9)
13
13
  json (~> 1.7, >= 1.7.7)
14
14
  minitest (~> 5.1)
@@ -18,9 +18,9 @@ GEM
18
18
  bunny (1.1.9)
19
19
  amq-protocol (>= 1.9.2)
20
20
  diff-lcs (1.2.5)
21
- i18n (0.6.9)
21
+ i18n (0.6.11)
22
22
  json (1.8.1)
23
- minitest (5.3.3)
23
+ minitest (5.4.2)
24
24
  rake (10.3.0)
25
25
  rspec (2.14.1)
26
26
  rspec-core (~> 2.14.0)
@@ -30,8 +30,8 @@ GEM
30
30
  rspec-expectations (2.14.5)
31
31
  diff-lcs (>= 1.1.3, < 2.0)
32
32
  rspec-mocks (2.14.6)
33
- thread_safe (0.3.3)
34
- tzinfo (1.1.0)
33
+ thread_safe (0.3.4)
34
+ tzinfo (1.2.2)
35
35
  thread_safe (~> 0.1)
36
36
 
37
37
  PLATFORMS
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.4.1
data/cony.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.homepage = 'http://github.com/ninech/'
11
11
  s.license = 'MIT'
12
12
  s.summary = 'Automatically sends notifications via AMQP when a model has been changed.'
13
- s.description = 'Automatically sends notifications via AMQP when a model has been changed.'
13
+ s.description = 'Automatically sends notifications via AMQP when a model has been changed.'
14
14
 
15
15
  s.files = `git ls-files`.split("\n")
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'activesupport', '~> 4.0.0'
3
+ gem 'activesupport', '~> 4.1.0'
4
4
 
5
5
  gemspec path: '../'
6
6
 
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'activesupport', '~> 4.2.0'
4
+
5
+ gemspec path: '../'
@@ -11,6 +11,7 @@ module Cony
11
11
  included do
12
12
  after_create :cony_save_create_notify_data
13
13
  after_update :cony_save_update_notify_data
14
+ after_touch :cony_save_update_notify_data if respond_to?(:after_touch)
14
15
  after_destroy :cony_save_destroy_notify_data
15
16
  after_commit :cony_publish
16
17
  end
@@ -56,15 +57,15 @@ module Cony
56
57
  {name => {old: value, new: nil}}
57
58
  end
58
59
  end
59
-
60
+
60
61
  def cony_notify_hash
61
62
  {id: self.id, changes: @cony_notify[:changes], model: self.class.name, event: @cony_notify[:event]}
62
63
  end
63
-
64
+
64
65
  def cony_notify_routing_key
65
66
  "#{self.class.name.underscore}.mutation.#{@cony_notify[:event]}"
66
67
  end
67
-
68
+
68
69
  def cony_prepare_notify(event, changes)
69
70
  @cony_notify = { event: event, changes: changes }
70
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cony
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-23 00:00:00.000000000 Z
12
+ date: 2015-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -99,6 +99,7 @@ files:
99
99
  - gemfiles/activesupport-3.2.gemfile
100
100
  - gemfiles/activesupport-4.0.gemfile
101
101
  - gemfiles/activesupport-4.1.gemfile
102
+ - gemfiles/activesupport-4.2.gemfile
102
103
  - lib/cony.rb
103
104
  - lib/cony/active_record.rb
104
105
  - lib/cony/amqp_connection_handler.rb
@@ -118,21 +119,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
119
  - - ! '>='
119
120
  - !ruby/object:Gem::Version
120
121
  version: '0'
121
- segments:
122
- - 0
123
- hash: 1642476899976507358
124
122
  required_rubygems_version: !ruby/object:Gem::Requirement
125
123
  none: false
126
124
  requirements:
127
125
  - - ! '>='
128
126
  - !ruby/object:Gem::Version
129
127
  version: '0'
130
- segments:
131
- - 0
132
- hash: 1642476899976507358
133
128
  requirements: []
134
129
  rubyforge_project:
135
- rubygems_version: 1.8.23
130
+ rubygems_version: 1.8.23.2
136
131
  signing_key:
137
132
  specification_version: 3
138
133
  summary: Automatically sends notifications via AMQP when a model has been changed.