switchman 1.2.16 → 1.2.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/switchman/shackles.rb +1 -0
- data/lib/switchman/version.rb +1 -1
- data/spec/dummy/config/database.yml +26 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +64 -0
- data/spec/dummy/db/shard_22.sqlite3 +0 -0
- data/spec/dummy/db/shard_42.sqlite3 +0 -0
- data/spec/dummy/db/shard_61.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +1 -0
- data/spec/dummy/log/test.log +15890 -0
- data/spec/dummy/tmp/cache/313/970/shard%2F30 +1 -0
- data/spec/dummy/tmp/cache/318/9A0/shard%2F17 +1 -0
- data/spec/dummy/tmp/cache/318/9B0/shard%2F26 +0 -0
- data/spec/dummy/tmp/cache/31D/A40/shard%2F67 +1 -0
- data/spec/dummy/tmp/cache/3A5/EA0/shard%2F10004 +1 -0
- data/spec/dummy/tmp/cache/3A6/F00/shard%2F10050 +1 -0
- data/spec/dummy/tmp/cache/3AA/F10/shard%2F10027 +1 -0
- data/spec/lib/shackles_spec.rb +7 -0
- metadata +32 -2
@@ -0,0 +1 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1409849159.8382668:@value":nil
|
@@ -0,0 +1 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1409849014.64968:@value":nil
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1409849193.179435:@value":nil
|
@@ -0,0 +1 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1409849014.799493:@value":nil
|
@@ -0,0 +1 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1409849193.198858:@value":nil
|
@@ -0,0 +1 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1409849160.0252779:@value":nil
|
data/spec/lib/shackles_spec.rb
CHANGED
@@ -97,6 +97,13 @@ module Switchman
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
100
|
+
it "should track all activated environments" do
|
101
|
+
::Shackles.activate(:slave) {}
|
102
|
+
::Shackles.activate(:custom) {}
|
103
|
+
expected = Set.new([:master, :slave, :custom])
|
104
|
+
(::Shackles.activated_environments & expected).should == expected
|
105
|
+
end
|
106
|
+
|
100
107
|
context "non-transactional" do
|
101
108
|
self.use_transactional_fixtures = false
|
102
109
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switchman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-09-
|
13
|
+
date: 2014-09-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -172,6 +172,7 @@ files:
|
|
172
172
|
- spec/dummy/config.ru
|
173
173
|
- spec/dummy/config/application.rb
|
174
174
|
- spec/dummy/config/boot.rb
|
175
|
+
- spec/dummy/config/database.yml
|
175
176
|
- spec/dummy/config/database.yml.example
|
176
177
|
- spec/dummy/config/environment.rb
|
177
178
|
- spec/dummy/config/environments/development.rb
|
@@ -182,6 +183,7 @@ files:
|
|
182
183
|
- spec/dummy/config/initializers/session_store.rb
|
183
184
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
184
185
|
- spec/dummy/config/routes.rb
|
186
|
+
- spec/dummy/db/development.sqlite3
|
185
187
|
- spec/dummy/db/migrate/20130403132607_create_users.rb
|
186
188
|
- spec/dummy/db/migrate/20130411202442_create_appendages.rb
|
187
189
|
- spec/dummy/db/migrate/20130411202551_create_mirror_users.rb
|
@@ -189,8 +191,21 @@ files:
|
|
189
191
|
- spec/dummy/db/migrate/20131206172923_create_features.rb
|
190
192
|
- spec/dummy/db/migrate/20140123154135_add_parent_id_to_users.rb
|
191
193
|
- spec/dummy/db/migrate/20140219183820_create_roots.rb
|
194
|
+
- spec/dummy/db/schema.rb
|
195
|
+
- spec/dummy/db/shard_22.sqlite3
|
196
|
+
- spec/dummy/db/shard_42.sqlite3
|
197
|
+
- spec/dummy/db/shard_61.sqlite3
|
198
|
+
- spec/dummy/db/test.sqlite3
|
199
|
+
- spec/dummy/log/development.log
|
192
200
|
- spec/dummy/log/test.log
|
193
201
|
- spec/dummy/script/rails
|
202
|
+
- spec/dummy/tmp/cache/313/970/shard%2F30
|
203
|
+
- spec/dummy/tmp/cache/318/9A0/shard%2F17
|
204
|
+
- spec/dummy/tmp/cache/318/9B0/shard%2F26
|
205
|
+
- spec/dummy/tmp/cache/31D/A40/shard%2F67
|
206
|
+
- spec/dummy/tmp/cache/3A5/EA0/shard%2F10004
|
207
|
+
- spec/dummy/tmp/cache/3A6/F00/shard%2F10050
|
208
|
+
- spec/dummy/tmp/cache/3AA/F10/shard%2F10027
|
194
209
|
- spec/lib/action_controller/caching_spec.rb
|
195
210
|
- spec/lib/active_record/abstract_adapter_spec.rb
|
196
211
|
- spec/lib/active_record/association_spec.rb
|
@@ -247,6 +262,7 @@ test_files:
|
|
247
262
|
- spec/dummy/app/models/user.rb
|
248
263
|
- spec/dummy/config/application.rb
|
249
264
|
- spec/dummy/config/boot.rb
|
265
|
+
- spec/dummy/config/database.yml
|
250
266
|
- spec/dummy/config/database.yml.example
|
251
267
|
- spec/dummy/config/environment.rb
|
252
268
|
- spec/dummy/config/environments/development.rb
|
@@ -258,6 +274,7 @@ test_files:
|
|
258
274
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
259
275
|
- spec/dummy/config/routes.rb
|
260
276
|
- spec/dummy/config.ru
|
277
|
+
- spec/dummy/db/development.sqlite3
|
261
278
|
- spec/dummy/db/migrate/20130403132607_create_users.rb
|
262
279
|
- spec/dummy/db/migrate/20130411202442_create_appendages.rb
|
263
280
|
- spec/dummy/db/migrate/20130411202551_create_mirror_users.rb
|
@@ -265,9 +282,22 @@ test_files:
|
|
265
282
|
- spec/dummy/db/migrate/20131206172923_create_features.rb
|
266
283
|
- spec/dummy/db/migrate/20140123154135_add_parent_id_to_users.rb
|
267
284
|
- spec/dummy/db/migrate/20140219183820_create_roots.rb
|
285
|
+
- spec/dummy/db/schema.rb
|
286
|
+
- spec/dummy/db/shard_22.sqlite3
|
287
|
+
- spec/dummy/db/shard_42.sqlite3
|
288
|
+
- spec/dummy/db/shard_61.sqlite3
|
289
|
+
- spec/dummy/db/test.sqlite3
|
290
|
+
- spec/dummy/log/development.log
|
268
291
|
- spec/dummy/log/test.log
|
269
292
|
- spec/dummy/Rakefile
|
270
293
|
- spec/dummy/script/rails
|
294
|
+
- spec/dummy/tmp/cache/313/970/shard%2F30
|
295
|
+
- spec/dummy/tmp/cache/318/9A0/shard%2F17
|
296
|
+
- spec/dummy/tmp/cache/318/9B0/shard%2F26
|
297
|
+
- spec/dummy/tmp/cache/31D/A40/shard%2F67
|
298
|
+
- spec/dummy/tmp/cache/3A5/EA0/shard%2F10004
|
299
|
+
- spec/dummy/tmp/cache/3A6/F00/shard%2F10050
|
300
|
+
- spec/dummy/tmp/cache/3AA/F10/shard%2F10027
|
271
301
|
- spec/lib/action_controller/caching_spec.rb
|
272
302
|
- spec/lib/active_record/abstract_adapter_spec.rb
|
273
303
|
- spec/lib/active_record/association_spec.rb
|