sessionm-cassandra_object 2.4.2 → 2.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,7 @@ module CassandraObject
7
7
 
8
8
  class_eval do
9
9
  @@fiber_connections = {}
10
+ @@schema = nil
10
11
  def self.connection()
11
12
  @@fiber_connections[Fiber.current.object_id] ||=
12
13
  begin
@@ -20,6 +21,11 @@ module CassandraObject
20
21
 
21
22
  Cassandra.new(spec[:keyspace], spec[:servers], spec[:thrift]).tap do |conn|
22
23
  conn.disable_node_auto_discovery! if spec[:disable_node_auto_discovery]
24
+ if @@schema
25
+ conn.instance_variable_set '@schema', @@schema
26
+ else
27
+ @@schema = conn.schema
28
+ end
23
29
  end
24
30
  end
25
31
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sessionm-cassandra_object'
5
- s.version = '2.4.2'
5
+ s.version = '2.4.3'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
 
metadata CHANGED
@@ -1,73 +1,75 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sessionm-cassandra_object
3
- version: !ruby/object:Gem::Version
4
- version: 2.4.2
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 4
8
+ - 3
9
+ version: 2.4.3
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Michael Koziarski
9
13
  - gotime
10
14
  - sessionm
11
15
  autorequire:
12
16
  bindir: bin
13
17
  cert_chain: []
14
- date: 2013-05-20 00:00:00.000000000 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
18
+
19
+ date: 2013-05-20 00:00:00 -04:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
17
23
  name: rails
18
- requirement: !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ~>
22
- - !ruby/object:Gem::Version
23
- version: 3.0.9
24
- type: :runtime
25
24
  prerelease: false
26
- version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
- requirements:
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ requirements:
29
27
  - - ~>
30
- - !ruby/object:Gem::Version
28
+ - !ruby/object:Gem::Version
29
+ segments:
30
+ - 3
31
+ - 0
32
+ - 9
31
33
  version: 3.0.9
32
- - !ruby/object:Gem::Dependency
33
- name: sessionm-cassandra
34
- requirement: !ruby/object:Gem::Requirement
35
- none: false
36
- requirements:
37
- - - ! '>='
38
- - !ruby/object:Gem::Version
39
- version: 1.0.0
40
34
  type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: sessionm-cassandra
41
38
  prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
- requirements:
45
- - - ! '>='
46
- - !ruby/object:Gem::Version
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ segments:
44
+ - 1
45
+ - 0
46
+ - 0
47
47
  version: 1.0.0
48
- - !ruby/object:Gem::Dependency
48
+ type: :runtime
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
49
51
  name: bundler
50
- requirement: !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ! '>='
54
- - !ruby/object:Gem::Version
55
- version: 1.0.0
56
- type: :development
57
52
  prerelease: false
58
- version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
- requirements:
61
- - - ! '>='
62
- - !ruby/object:Gem::Version
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ segments:
58
+ - 1
59
+ - 0
60
+ - 0
63
61
  version: 1.0.0
62
+ type: :development
63
+ version_requirements: *id003
64
64
  description: Cassandra ActiveModel
65
65
  email: klange@sessionm.com
66
66
  executables: []
67
+
67
68
  extensions: []
68
- extra_rdoc_files:
69
+
70
+ extra_rdoc_files:
69
71
  - README.markdown
70
- files:
72
+ files:
71
73
  - .gitignore
72
74
  - CHANGELOG
73
75
  - Gemfile
@@ -159,31 +161,41 @@ files:
159
161
  - test/types/time_type_test.rb
160
162
  - test/types/utf8_string_type_test.rb
161
163
  - test/validations_test.rb
164
+ has_rdoc: true
162
165
  homepage: http://github.com/sessionm/cassandra_object
163
166
  licenses: []
167
+
164
168
  post_install_message:
165
169
  rdoc_options: []
166
- require_paths:
170
+
171
+ require_paths:
167
172
  - lib
168
- required_ruby_version: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - ! '>='
172
- - !ruby/object:Gem::Version
173
+ required_ruby_version: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ segments:
178
+ - 1
179
+ - 9
180
+ - 2
173
181
  version: 1.9.2
174
- required_rubygems_version: !ruby/object:Gem::Requirement
175
- none: false
176
- requirements:
177
- - - ! '>='
178
- - !ruby/object:Gem::Version
182
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ segments:
187
+ - 1
188
+ - 3
189
+ - 5
179
190
  version: 1.3.5
180
191
  requirements: []
192
+
181
193
  rubyforge_project:
182
- rubygems_version: 1.8.23
194
+ rubygems_version: 1.3.6
183
195
  signing_key:
184
196
  specification_version: 3
185
197
  summary: Cassandra ActiveModel
186
- test_files:
198
+ test_files:
187
199
  - test/README
188
200
  - test/active_model_test.rb
189
201
  - test/attributes_test.rb