ayl-rails 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 05c1382dd70e1fa80b6700819d43bfa523e49610
4
+ data.tar.gz: 1b3b83d5ea57d6dda181ecfaed505c9190827eaf
5
+ SHA512:
6
+ metadata.gz: 6f44c988fa1826b7437da310838c9bc7898965be466d60e61f7603a627c431a864ac6d51c0179929be0938e87116ad2612aeb226ae1c7b91d71962649cee5209
7
+ data.tar.gz: 68fbbcb6e7210ef16a38e62bef7b3dab018a94d1d745927654d412fd6b759968f251221c2ea7cc7c8a807441f8e83e538ad345d51f777d4c28a14447d545bdd2
data/Gemfile CHANGED
@@ -2,15 +2,14 @@ source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
- gem 'ayl', ">= 0.1.0"
6
- gem 'rails', ">= 3.0.0"
5
+ gem 'ayl', "~> 0.4"
6
+ gem 'rails', "~> 4.1"
7
7
 
8
8
  # Add dependencies to develop your gem here.
9
9
  # Include everything needed to run rake, tests, features, etc.
10
10
  group :development do
11
- gem "rspec", ">= 2.3.0"
12
- gem "bundler", ">= 1.0.0"
13
- gem "jeweler", ">= 1.6.4"
14
- gem "rcov", ">= 0"
15
- gem "sqlite3" # This is used for the spec tests (setting up activerecord models)
11
+ gem "rspec", "~> 2.14"
12
+ gem "bundler", "~> 1.10"
13
+ gem "jeweler", "~> 2.0"
14
+ gem "sqlite3", "~> 1.3" # This is used for the spec tests (setting up activerecord models)
16
15
  end
@@ -1,110 +1,153 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionmailer (3.1.2)
5
- actionpack (= 3.1.2)
6
- mail (~> 2.3.0)
7
- actionpack (3.1.2)
8
- activemodel (= 3.1.2)
9
- activesupport (= 3.1.2)
10
- builder (~> 3.0.0)
4
+ actionmailer (4.2.1)
5
+ actionpack (= 4.2.1)
6
+ actionview (= 4.2.1)
7
+ activejob (= 4.2.1)
8
+ mail (~> 2.5, >= 2.5.4)
9
+ rails-dom-testing (~> 1.0, >= 1.0.5)
10
+ actionpack (4.2.1)
11
+ actionview (= 4.2.1)
12
+ activesupport (= 4.2.1)
13
+ rack (~> 1.6)
14
+ rack-test (~> 0.6.2)
15
+ rails-dom-testing (~> 1.0, >= 1.0.5)
16
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
17
+ actionview (4.2.1)
18
+ activesupport (= 4.2.1)
19
+ builder (~> 3.1)
11
20
  erubis (~> 2.7.0)
12
- i18n (~> 0.6)
13
- rack (~> 1.3.5)
14
- rack-cache (~> 1.1)
15
- rack-mount (~> 0.8.2)
16
- rack-test (~> 0.6.1)
17
- sprockets (~> 2.1.0)
18
- activemodel (3.1.2)
19
- activesupport (= 3.1.2)
20
- builder (~> 3.0.0)
21
- i18n (~> 0.6)
22
- activerecord (3.1.2)
23
- activemodel (= 3.1.2)
24
- activesupport (= 3.1.2)
25
- arel (~> 2.2.1)
26
- tzinfo (~> 0.3.29)
27
- activeresource (3.1.2)
28
- activemodel (= 3.1.2)
29
- activesupport (= 3.1.2)
30
- activesupport (3.1.2)
31
- multi_json (~> 1.0)
32
- arel (2.2.1)
33
- ayl (0.3.0)
34
- builder (3.0.0)
35
- diff-lcs (1.1.3)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
23
+ activejob (4.2.1)
24
+ activesupport (= 4.2.1)
25
+ globalid (>= 0.3.0)
26
+ activemodel (4.2.1)
27
+ activesupport (= 4.2.1)
28
+ builder (~> 3.1)
29
+ activerecord (4.2.1)
30
+ activemodel (= 4.2.1)
31
+ activesupport (= 4.2.1)
32
+ arel (~> 6.0)
33
+ activesupport (4.2.1)
34
+ i18n (~> 0.7)
35
+ json (~> 1.7, >= 1.7.7)
36
+ minitest (~> 5.1)
37
+ thread_safe (~> 0.3, >= 0.3.4)
38
+ tzinfo (~> 1.1)
39
+ addressable (2.3.8)
40
+ arel (6.0.0)
41
+ ayl (0.4.0)
42
+ builder (3.2.2)
43
+ descendants_tracker (0.0.4)
44
+ thread_safe (~> 0.3, >= 0.3.1)
45
+ diff-lcs (1.2.5)
36
46
  erubis (2.7.0)
37
- git (1.2.5)
38
- hike (1.2.1)
39
- i18n (0.6.0)
40
- jeweler (1.6.4)
41
- bundler (~> 1.0)
47
+ faraday (0.9.1)
48
+ multipart-post (>= 1.2, < 3)
49
+ git (1.2.9.1)
50
+ github_api (0.12.3)
51
+ addressable (~> 2.3)
52
+ descendants_tracker (~> 0.0.4)
53
+ faraday (~> 0.8, < 0.10)
54
+ hashie (>= 3.3)
55
+ multi_json (>= 1.7.5, < 2.0)
56
+ nokogiri (~> 1.6.3)
57
+ oauth2
58
+ globalid (0.3.5)
59
+ activesupport (>= 4.1.0)
60
+ hashie (3.4.2)
61
+ highline (1.7.2)
62
+ i18n (0.7.0)
63
+ jeweler (2.0.1)
64
+ builder
65
+ bundler (>= 1.0)
42
66
  git (>= 1.2.5)
67
+ github_api
68
+ highline (>= 1.6.15)
69
+ nokogiri (>= 1.5.10)
43
70
  rake
44
- json (1.6.1)
45
- mail (2.3.0)
46
- i18n (>= 0.4.0)
47
- mime-types (~> 1.16)
48
- treetop (~> 1.4.8)
49
- mime-types (1.17.2)
50
- multi_json (1.0.3)
51
- polyglot (0.3.3)
52
- rack (1.3.5)
53
- rack-cache (1.1)
54
- rack (>= 0.4)
55
- rack-mount (0.8.3)
56
- rack (>= 1.0.0)
57
- rack-ssl (1.3.2)
58
- rack
59
- rack-test (0.6.1)
71
+ rdoc
72
+ json (1.8.3)
73
+ jwt (1.5.0)
74
+ loofah (2.0.2)
75
+ nokogiri (>= 1.5.9)
76
+ mail (2.6.3)
77
+ mime-types (>= 1.16, < 3)
78
+ mime-types (2.6.1)
79
+ mini_portile (0.6.2)
80
+ minitest (5.7.0)
81
+ multi_json (1.11.0)
82
+ multi_xml (0.5.5)
83
+ multipart-post (2.0.0)
84
+ nokogiri (1.6.6.2)
85
+ mini_portile (~> 0.6.0)
86
+ oauth2 (1.0.0)
87
+ faraday (>= 0.8, < 0.10)
88
+ jwt (~> 1.0)
89
+ multi_json (~> 1.3)
90
+ multi_xml (~> 0.5)
91
+ rack (~> 1.2)
92
+ rack (1.6.1)
93
+ rack-test (0.6.3)
60
94
  rack (>= 1.0)
61
- rails (3.1.2)
62
- actionmailer (= 3.1.2)
63
- actionpack (= 3.1.2)
64
- activerecord (= 3.1.2)
65
- activeresource (= 3.1.2)
66
- activesupport (= 3.1.2)
67
- bundler (~> 1.0)
68
- railties (= 3.1.2)
69
- railties (3.1.2)
70
- actionpack (= 3.1.2)
71
- activesupport (= 3.1.2)
72
- rack-ssl (~> 1.3.2)
95
+ rails (4.2.1)
96
+ actionmailer (= 4.2.1)
97
+ actionpack (= 4.2.1)
98
+ actionview (= 4.2.1)
99
+ activejob (= 4.2.1)
100
+ activemodel (= 4.2.1)
101
+ activerecord (= 4.2.1)
102
+ activesupport (= 4.2.1)
103
+ bundler (>= 1.3.0, < 2.0)
104
+ railties (= 4.2.1)
105
+ sprockets-rails
106
+ rails-deprecated_sanitizer (1.0.3)
107
+ activesupport (>= 4.2.0.alpha)
108
+ rails-dom-testing (1.0.6)
109
+ activesupport (>= 4.2.0.beta, < 5.0)
110
+ nokogiri (~> 1.6.0)
111
+ rails-deprecated_sanitizer (>= 1.0.1)
112
+ rails-html-sanitizer (1.0.2)
113
+ loofah (~> 2.0)
114
+ railties (4.2.1)
115
+ actionpack (= 4.2.1)
116
+ activesupport (= 4.2.1)
73
117
  rake (>= 0.8.7)
74
- rdoc (~> 3.4)
75
- thor (~> 0.14.6)
76
- rake (0.9.2.2)
77
- rcov (0.9.11)
78
- rdoc (3.11)
79
- json (~> 1.4)
80
- rspec (2.7.0)
81
- rspec-core (~> 2.7.0)
82
- rspec-expectations (~> 2.7.0)
83
- rspec-mocks (~> 2.7.0)
84
- rspec-core (2.7.1)
85
- rspec-expectations (2.7.0)
86
- diff-lcs (~> 1.1.2)
87
- rspec-mocks (2.7.0)
88
- sprockets (2.1.1)
89
- hike (~> 1.2)
118
+ thor (>= 0.18.1, < 2.0)
119
+ rake (10.4.2)
120
+ rdoc (4.2.0)
121
+ rspec (2.99.0)
122
+ rspec-core (~> 2.99.0)
123
+ rspec-expectations (~> 2.99.0)
124
+ rspec-mocks (~> 2.99.0)
125
+ rspec-core (2.99.2)
126
+ rspec-expectations (2.99.2)
127
+ diff-lcs (>= 1.1.3, < 2.0)
128
+ rspec-mocks (2.99.3)
129
+ sprockets (3.2.0)
90
130
  rack (~> 1.0)
91
- tilt (~> 1.1, != 1.3.0)
92
- sqlite3 (1.3.7)
93
- thor (0.14.6)
94
- tilt (1.3.3)
95
- treetop (1.4.10)
96
- polyglot
97
- polyglot (>= 0.3.1)
98
- tzinfo (0.3.31)
131
+ sprockets-rails (2.3.1)
132
+ actionpack (>= 3.0)
133
+ activesupport (>= 3.0)
134
+ sprockets (>= 2.8, < 4.0)
135
+ sqlite3 (1.3.10)
136
+ thor (0.19.1)
137
+ thread_safe (0.3.5)
138
+ tzinfo (1.2.2)
139
+ thread_safe (~> 0.1)
99
140
 
100
141
  PLATFORMS
101
142
  ruby
102
143
 
103
144
  DEPENDENCIES
104
- ayl (>= 0.1.0)
105
- bundler (>= 1.0.0)
106
- jeweler (>= 1.6.4)
107
- rails (>= 3.0.0)
108
- rcov
109
- rspec (>= 2.3.0)
110
- sqlite3
145
+ ayl (~> 0.4)
146
+ bundler (~> 1.10)
147
+ jeweler (~> 2.0)
148
+ rails (~> 4.1)
149
+ rspec (~> 2.14)
150
+ sqlite3 (~> 1.3)
151
+
152
+ BUNDLED WITH
153
+ 1.10.3
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 j0hnds@gmail.com
1
+ Copyright (c) 2011-2015 j0hnds@gmail.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -55,6 +55,6 @@ Naturally, the two types of parameters can be combined for a callback:
55
55
 
56
56
  == Copyright
57
57
 
58
- Copyright (c) 2011 j0hnds@gmail.com. See LICENSE.txt for
58
+ Copyright (c) 2011-2015 j0hnds@gmail.com. See LICENSE.txt for
59
59
  further details.
60
60
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
@@ -2,14 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: ayl-rails 0.3.0 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "ayl-rails"
8
- s.version = "0.2.0"
9
+ s.version = "0.3.0"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["j0hnds@gmail.com"]
12
- s.date = "2013-08-07"
14
+ s.date = "2015-06-15"
13
15
  s.description = "Partner to ayl to allow ActiveRecord after_* hooks to be made asynchronous."
14
16
  s.email = "j0hnds@gmail.com"
15
17
  s.extra_rdoc_files = [
@@ -35,38 +37,34 @@ Gem::Specification.new do |s|
35
37
  ]
36
38
  s.homepage = "http://github.com/j0hnds/ayl-rails"
37
39
  s.licenses = ["MIT"]
38
- s.require_paths = ["lib"]
39
- s.rubygems_version = "1.8.23"
40
+ s.rubygems_version = "2.4.6"
40
41
  s.summary = "Ayl Extension for Rails ActiveRecord support."
41
42
 
42
43
  if s.respond_to? :specification_version then
43
- s.specification_version = 3
44
+ s.specification_version = 4
44
45
 
45
46
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
- s.add_runtime_dependency(%q<ayl>, [">= 0.1.0"])
47
- s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
48
- s.add_development_dependency(%q<rspec>, [">= 2.3.0"])
49
- s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
50
- s.add_development_dependency(%q<jeweler>, [">= 1.6.4"])
51
- s.add_development_dependency(%q<rcov>, [">= 0"])
52
- s.add_development_dependency(%q<sqlite3>, [">= 0"])
47
+ s.add_runtime_dependency(%q<ayl>, ["~> 0.4"])
48
+ s.add_runtime_dependency(%q<rails>, ["~> 4.1"])
49
+ s.add_development_dependency(%q<rspec>, ["~> 2.14"])
50
+ s.add_development_dependency(%q<bundler>, ["~> 1.10"])
51
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
52
+ s.add_development_dependency(%q<sqlite3>, ["~> 1.3"])
53
53
  else
54
- s.add_dependency(%q<ayl>, [">= 0.1.0"])
55
- s.add_dependency(%q<rails>, [">= 3.0.0"])
56
- s.add_dependency(%q<rspec>, [">= 2.3.0"])
57
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
58
- s.add_dependency(%q<jeweler>, [">= 1.6.4"])
59
- s.add_dependency(%q<rcov>, [">= 0"])
60
- s.add_dependency(%q<sqlite3>, [">= 0"])
54
+ s.add_dependency(%q<ayl>, ["~> 0.4"])
55
+ s.add_dependency(%q<rails>, ["~> 4.1"])
56
+ s.add_dependency(%q<rspec>, ["~> 2.14"])
57
+ s.add_dependency(%q<bundler>, ["~> 1.10"])
58
+ s.add_dependency(%q<jeweler>, ["~> 2.0"])
59
+ s.add_dependency(%q<sqlite3>, ["~> 1.3"])
61
60
  end
62
61
  else
63
- s.add_dependency(%q<ayl>, [">= 0.1.0"])
64
- s.add_dependency(%q<rails>, [">= 3.0.0"])
65
- s.add_dependency(%q<rspec>, [">= 2.3.0"])
66
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
67
- s.add_dependency(%q<jeweler>, [">= 1.6.4"])
68
- s.add_dependency(%q<rcov>, [">= 0"])
69
- s.add_dependency(%q<sqlite3>, [">= 0"])
62
+ s.add_dependency(%q<ayl>, ["~> 0.4"])
63
+ s.add_dependency(%q<rails>, ["~> 4.1"])
64
+ s.add_dependency(%q<rspec>, ["~> 2.14"])
65
+ s.add_dependency(%q<bundler>, ["~> 1.10"])
66
+ s.add_dependency(%q<jeweler>, ["~> 2.0"])
67
+ s.add_dependency(%q<sqlite3>, ["~> 1.3"])
70
68
  end
71
69
  end
72
70
 
@@ -165,71 +165,71 @@ describe "Rails Extensions" do
165
165
  it "the ayl_after_save handler should fire when the model is saved" do
166
166
 
167
167
  model = AfterSave::MyModel.new(:name => 'spud')
168
- model.save.should be_true
168
+ expect(model.save).to be true
169
169
 
170
- WhatHappened.instance.what_ran.should == [ 'handle after save' ]
170
+ expect(WhatHappened.instance.what_ran).to eq([ 'handle after save' ])
171
171
  WhatHappened.instance.clear
172
172
 
173
173
  model.update_attribute(:name, 'joan')
174
174
 
175
- WhatHappened.instance.what_ran.should == [ 'handle after save' ]
175
+ expect(WhatHappened.instance.what_ran).to eq([ 'handle after save' ])
176
176
  end
177
177
 
178
178
  it "the ayl_after_update handler should fire when the model is updated" do
179
179
 
180
180
  model = AfterUpdate::MyModel.new(:name => 'spud')
181
- model.save.should be_true
181
+ expect(model.save).to be true
182
182
 
183
- WhatHappened.instance.what_ran.should be_nil
183
+ expect(WhatHappened.instance.what_ran).to be_nil
184
184
 
185
185
  model.update_attribute(:name, 'joan')
186
186
 
187
- WhatHappened.instance.what_ran.should == [ 'handle after update' ]
187
+ expect(WhatHappened.instance.what_ran).to eq([ 'handle after update' ])
188
188
  end
189
189
 
190
190
  it "the ayl_after_create handler should fire when the model is created" do
191
191
 
192
192
  model = AfterCreate::MyModel.new(:name => 'spud')
193
- model.save.should be_true
193
+ expect(model.save).to be true
194
194
 
195
- WhatHappened.instance.what_ran.should == [ 'handle after create' ]
195
+ expect(WhatHappened.instance.what_ran).to eq([ 'handle after create' ])
196
196
  WhatHappened.instance.clear
197
197
 
198
198
  model.update_attribute(:name, 'joan')
199
199
 
200
- WhatHappened.instance.what_ran.should be_nil
200
+ expect(WhatHappened.instance.what_ran).to be_nil
201
201
  end
202
202
 
203
203
  it "the ayl_after_commit handler should fire when the model is committed" do
204
204
 
205
205
  model = AfterCommit::MyModel.new(:name => 'spud')
206
- model.save.should be_true
206
+ expect(model.save).to be true
207
207
 
208
- WhatHappened.instance.what_ran.should == [ 'handle after commit' ]
208
+ expect(WhatHappened.instance.what_ran).to eq([ 'handle after commit' ])
209
209
  WhatHappened.instance.clear
210
210
 
211
211
  model.update_attribute(:name, 'joan')
212
212
 
213
- WhatHappened.instance.what_ran.should == [ 'handle after commit' ]
213
+ expect(WhatHappened.instance.what_ran).to eq([ 'handle after commit' ])
214
214
  end
215
215
 
216
216
  it "should not allow the callbacks to be run when the skip_ayl_callback is specified" do
217
217
  AfterCreate::MyModel.skip_ayl_callback(:after_create)
218
218
 
219
219
  model = AfterCreate::MyModel.new(:name => 'spud')
220
- model.save.should be_true
220
+ expect(model.save).to be true
221
221
 
222
- WhatHappened.instance.what_ran.should_not be_present
222
+ expect(WhatHappened.instance.what_ran).not_to be_present
223
223
  end
224
224
 
225
225
  it "should not allow any callbacks to be run when the skip_ayl_callbacks is specified" do
226
226
  AllCallbacks::MyModel.skip_ayl_callbacks
227
227
 
228
228
  model = AllCallbacks::MyModel.new(:name => 'spud')
229
- model.save.should be_true
229
+ expect(model.save).to be true
230
230
  model.update_attribute(:name, 'joan')
231
231
 
232
- WhatHappened.instance.what_ran.should_not be_present
232
+ expect(WhatHappened.instance.what_ran).not_to be_present
233
233
  end
234
234
 
235
235
  end
@@ -239,7 +239,7 @@ describe "Rails Extensions" do
239
239
  it "should represent the instance of a particular model using a 'find'" do
240
240
  model = InstanceMethod::MyModel.create(:name => 'loud')
241
241
 
242
- model.to_rrepr.should == "InstanceMethod::MyModel.unscoped.find(#{model.id})"
242
+ expect(model.to_rrepr).to eq("InstanceMethod::MyModel.unscoped.find(#{model.id})")
243
243
  end
244
244
 
245
245
  it "should invoke the instance method asynchronously with no options" do
@@ -247,7 +247,7 @@ describe "Rails Extensions" do
247
247
 
248
248
  model.ayl_send(:the_async_method, "first", "second")
249
249
 
250
- WhatHappened.instance.what_ran.should == [ "the instance async method(first, second)" ]
250
+ expect(WhatHappened.instance.what_ran).to eq([ "the instance async method(first, second)" ])
251
251
  end
252
252
 
253
253
  it "should invoke the instance method asynchronously with options" do
@@ -255,7 +255,7 @@ describe "Rails Extensions" do
255
255
 
256
256
  model.ayl_send_opts(:the_async_method, {}, "first", "second")
257
257
 
258
- WhatHappened.instance.what_ran.should == [ "the instance async method(first, second)" ]
258
+ expect(WhatHappened.instance.what_ran).to eq([ "the instance async method(first, second)" ])
259
259
  end
260
260
 
261
261
  end
@@ -265,13 +265,13 @@ describe "Rails Extensions" do
265
265
  it "should invoke the static method asynchronously with no options" do
266
266
  ClassMethod::MyModel.ayl_send(:the_async_method, "first", "second")
267
267
 
268
- WhatHappened.instance.what_ran.should == [ "the static async method(first, second)" ]
268
+ expect(WhatHappened.instance.what_ran).to eq([ "the static async method(first, second)" ])
269
269
  end
270
270
 
271
271
  it "should invoke the instance method asynchronously with options" do
272
272
  ClassMethod::MyModel.ayl_send_opts(:the_async_method, {}, "first", "second")
273
273
 
274
- WhatHappened.instance.what_ran.should == [ "the static async method(first, second)" ]
274
+ expect(WhatHappened.instance.what_ran).to eq([ "the static async method(first, second)" ])
275
275
  end
276
276
 
277
277
  end
@@ -283,7 +283,7 @@ describe "Rails Extensions" do
283
283
  model.do_callback = true # Should allow after_create to be called, but not after_update
284
284
  model.save
285
285
  model.update_attribute(:name, "dog")
286
- WhatHappened.instance.what_ran.should == [ "handle after create" ]
286
+ expect(WhatHappened.instance.what_ran).to eq([ "handle after create" ])
287
287
  end
288
288
 
289
289
  it "should invoke the after_update but not the after_create callbacks when the flag is false" do
@@ -291,7 +291,7 @@ describe "Rails Extensions" do
291
291
  model.do_callback = false # Should allow after_update to be called, but not after_create
292
292
  model.save
293
293
  model.update_attribute(:name, "dog")
294
- WhatHappened.instance.what_ran.should == [ "handle after update" ]
294
+ expect(WhatHappened.instance.what_ran).to eq([ "handle after update" ])
295
295
  end
296
296
  end
297
297
 
@@ -299,8 +299,8 @@ describe "Rails Extensions" do
299
299
 
300
300
  it "should pass the message options to the ayl_after_create, but not to the ayl_after_update" do
301
301
  model = MessageOptions::MyModel.new(:name => "spud")
302
- MessageOptions::MyModel.should_receive(:ayl_send_opts).with(:_ayl_after_create, { :delay => 20 }, model)
303
- MessageOptions::MyModel.should_receive(:ayl_send_opts).with(:_ayl_after_update, { }, model)
302
+ expect(MessageOptions::MyModel).to receive(:ayl_send_opts).with(:_ayl_after_create, { :delay => 20 }, model)
303
+ expect(MessageOptions::MyModel).to receive(:ayl_send_opts).with(:_ayl_after_update, { }, model)
304
304
 
305
305
  model.save
306
306
  model.update_attribute(:name, "dog")
metadata CHANGED
@@ -1,128 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ayl-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - j0hnds@gmail.com
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-07 00:00:00.000000000 Z
11
+ date: 2015-06-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ayl
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 0.1.0
19
+ version: '0.4'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 0.1.0
26
+ version: '0.4'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rails
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: 3.0.0
33
+ version: '4.1'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
- version: 3.0.0
40
+ version: '4.1'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: 2.3.0
47
+ version: '2.14'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: 2.3.0
54
+ version: '2.14'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: bundler
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
- version: 1.0.0
61
+ version: '1.10'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
- version: 1.0.0
68
+ version: '1.10'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: jeweler
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
- version: 1.6.4
75
+ version: '2.0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
- version: 1.6.4
94
- - !ruby/object:Gem::Dependency
95
- name: rcov
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
82
+ version: '2.0'
110
83
  - !ruby/object:Gem::Dependency
111
84
  name: sqlite3
112
85
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
86
  requirements:
115
- - - ! '>='
87
+ - - "~>"
116
88
  - !ruby/object:Gem::Version
117
- version: '0'
89
+ version: '1.3'
118
90
  type: :development
119
91
  prerelease: false
120
92
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
93
  requirements:
123
- - - ! '>='
94
+ - - "~>"
124
95
  - !ruby/object:Gem::Version
125
- version: '0'
96
+ version: '1.3'
126
97
  description: Partner to ayl to allow ActiveRecord after_* hooks to be made asynchronous.
127
98
  email: j0hnds@gmail.com
128
99
  executables: []
@@ -131,8 +102,8 @@ extra_rdoc_files:
131
102
  - LICENSE.txt
132
103
  - README.rdoc
133
104
  files:
134
- - .document
135
- - .rspec
105
+ - ".document"
106
+ - ".rspec"
136
107
  - Gemfile
137
108
  - Gemfile.lock
138
109
  - LICENSE.txt
@@ -149,29 +120,25 @@ files:
149
120
  homepage: http://github.com/j0hnds/ayl-rails
150
121
  licenses:
151
122
  - MIT
123
+ metadata: {}
152
124
  post_install_message:
153
125
  rdoc_options: []
154
126
  require_paths:
155
127
  - lib
156
128
  required_ruby_version: !ruby/object:Gem::Requirement
157
- none: false
158
129
  requirements:
159
- - - ! '>='
130
+ - - ">="
160
131
  - !ruby/object:Gem::Version
161
132
  version: '0'
162
- segments:
163
- - 0
164
- hash: 945901130624305921
165
133
  required_rubygems_version: !ruby/object:Gem::Requirement
166
- none: false
167
134
  requirements:
168
- - - ! '>='
135
+ - - ">="
169
136
  - !ruby/object:Gem::Version
170
137
  version: '0'
171
138
  requirements: []
172
139
  rubyforge_project:
173
- rubygems_version: 1.8.23
140
+ rubygems_version: 2.4.6
174
141
  signing_key:
175
- specification_version: 3
142
+ specification_version: 4
176
143
  summary: Ayl Extension for Rails ActiveRecord support.
177
144
  test_files: []