arproxy 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aff4b1e2e9d04fb1cd291d380c0f0e05b078478e
4
- data.tar.gz: 3ded9580916768e26579b8603fbbc4a229a80bb6
3
+ metadata.gz: 5e3acb78f4d8addde48779c3e54050d877ebfa5b
4
+ data.tar.gz: 6a40e472537c70d7fe6afff1b621edfe64966ed9
5
5
  SHA512:
6
- metadata.gz: e0e68d2d7ded1a965e908ba10b5b8dca9d55c1a7fe033363a26b942e44da76b05d5d48e437eaab400ef458be8ff2f47ab29cbb28b4d2b1b0a68ceb097ee25ddd
7
- data.tar.gz: cd75029e902d7a3b86d11915587004f3c30f746b52b38298eff9bfbd4ea638870bd5121ee4522911ecb1f996300416744fedf8d33b4f4cef4131eaa318735782
6
+ metadata.gz: 2f391580b3d1f7f45e3837b34f5f6b9a9b55b5dd8e08c10a4e6c4c90a0da48aeaddc475484c0ea846fe3ede2204a3c0f8c05d2334fa60f1c0bb3d284113003c0
7
+ data.tar.gz: 286f3c89478e6d72cd7ef9c7dc4b5491c1d69d503c84493dadce7fa80441344975da6678349b4495d6929d846459c45d6213616d1653940e43b4868bfbd57cdd
@@ -3,7 +3,6 @@ module Arproxy
3
3
 
4
4
  class ProxyChain
5
5
  attr_reader :head, :tail
6
- attr_accessor :connection
7
6
 
8
7
  def initialize(config)
9
8
  @config = config
@@ -46,5 +45,14 @@ module Arproxy
46
45
  ::Arproxy.logger.debug("Arproxy: Disabled")
47
46
  end
48
47
  end
48
+
49
+ def connection
50
+ Thread.current[:arproxy_connection]
51
+ end
52
+
53
+ def connection=(val)
54
+ Thread.current[:arproxy_connection] = val
55
+ end
56
+
49
57
  end
50
58
  end
@@ -1,3 +1,3 @@
1
1
  module Arproxy
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arproxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Issei Naruta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-11 00:00:00.000000000 Z
11
+ date: 2016-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,14 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.0
19
+ version: 3.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.0
26
+ version: 3.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.11'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.11'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: appraisal
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.1'
27
83
  description: Arproxy is a proxy between ActiveRecord and database adapter
28
84
  email: naruta@cookpad.com
29
85
  executables: []
@@ -39,7 +95,8 @@ files:
39
95
  - lib/arproxy/proxy_chain.rb
40
96
  - lib/arproxy/version.rb
41
97
  homepage: https://github.com/cookpad/arproxy
42
- licenses: []
98
+ licenses:
99
+ - MIT
43
100
  metadata: {}
44
101
  post_install_message:
45
102
  rdoc_options: []
@@ -57,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
114
  version: '0'
58
115
  requirements: []
59
116
  rubyforge_project:
60
- rubygems_version: 2.4.5
117
+ rubygems_version: 2.5.1
61
118
  signing_key:
62
119
  specification_version: 4
63
120
  summary: Proxy between ActiveRecord and DB adapter