shackles 1.0.4 → 1.0.5

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,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a45a30d2424d4f6ca4649f5b8550c2ce0dad49ce
4
- data.tar.gz: e418e3e06a20492f747daf230658abe9268b0449
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Y2NhN2Y5OTQ2OTQwNWZjY2EzMWZmMjkwYTY2YzdiYjU5MTk4NmU3YQ==
5
+ data.tar.gz: !binary |-
6
+ YWE3ZDY1NGM0MDA2ZjhjZGUxMzc5NDE4ODk1N2ZmMDE4MDgyOWM5Nw==
5
7
  SHA512:
6
- metadata.gz: 4f2938c73893179ff77868a82595f36ca93d15d9b9a90a2272601a0943cf1d616ae935ddb660123c34c11e60593026045fa4290cc77817510c6920d62fa09a1a
7
- data.tar.gz: 2e9656b6c933e1efef156c439459f63340a3691591981360f727f669fe1e6094916ec2382b3ba855d792380e00d62c3beefce1a8317bb72780e8de870516bf2d
8
+ metadata.gz: !binary |-
9
+ YWYxYzhjZTI2NDQzYjMwNjIxMzExNjZjZGUzODdmZTBjZDdmYjJlOTE5MTQ5
10
+ ODY0NzFmMGRlZjY1ZTc0MjM0YTc0ZjYwNzdhY2VkN2FiZWU5ZGIwZDU1MmZm
11
+ YTk5NmJjNWMzOTJiNDg3NzMzMWQwYmZlMGQxYjFiOGFjYWYxNzY=
12
+ data.tar.gz: !binary |-
13
+ MzdhZjY4MGVlYWRiZDNjZmJjYzVlMWI0M2VmN2Q5OThhOGUwNTlhNmZhMDdm
14
+ MTc4ODRlOTVmNDI3YWM1NWE2ODVlM2IwMzEzMjU3YzAzOTQwMmQyMWU0ZmVm
15
+ MzQ4MTdlMmM3MWYwYWJiNTkwMWNjNDA0YzcwNGVhYjAzMWNmNmU=
@@ -4,7 +4,7 @@ module Shackles
4
4
  %w{clear_active_connections clear_reloadable_connections
5
5
  clear_all_connections verify_active_connections }.each do |method|
6
6
  next unless klass.instance_methods.include?("#{method}!".to_sym)
7
- klass.class_eval(<<EOS)
7
+ klass.class_eval(<<EOS, __FILE__, __LINE__ + 1)
8
8
  def #{method}_with_multiple_environments!
9
9
  ::Shackles.connection_handlers.values.each(&:#{method}_without_multiple_environments!)
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module Shackles
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shackles
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -14,62 +14,62 @@ dependencies:
14
14
  name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.3'
20
- - - "<"
20
+ - - <
21
21
  - !ruby/object:Gem::Version
22
- version: '4.1'
22
+ version: '4.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '2.3'
30
- - - "<"
30
+ - - <
31
31
  - !ruby/object:Gem::Version
32
- version: '4.1'
32
+ version: '4.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: debugger
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
37
+ - - ! '>='
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ">="
44
+ - - ! '>='
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: mocha
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
51
+ - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ">="
58
+ - - ! '>='
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: sqlite3
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ">="
65
+ - - ! '>='
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">="
72
+ - - ! '>='
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  description: Allows multiple environments in database.yml, and dynamically switching
@@ -97,17 +97,17 @@ require_paths:
97
97
  - lib
98
98
  required_ruby_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ">="
100
+ - - ! '>='
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - ">="
105
+ - - ! '>='
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.2.2
110
+ rubygems_version: 2.2.0
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: ActiveRecord database environment switching for slaves and least-privilege