sessionm-cassandra_object 2.2.32 → 2.2.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,9 +6,11 @@ module CassandraObject
6
6
  # TODO: is this the convention?
7
7
  include ActiveRecord::Reflection
8
8
  include ActiveRecord::Associations
9
+ include ActiveRecord::AutosaveAssociation
9
10
 
10
11
  autoload :OneToMany
11
12
  autoload :OneToOne
13
+ autoload :AutosaveAssociation
12
14
 
13
15
  included do
14
16
  class_inheritable_hash :associations
@@ -95,5 +95,8 @@ module CassandraObject
95
95
  def []=(attr_name, value)
96
96
  write_attribute(attr_name, value)
97
97
  end
98
+
99
+ class_attribute :pluralize_table_names, :instance_writer => false
100
+ self.pluralize_table_names = true
98
101
  end
99
102
  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.2.32'
5
+ s.version = '2.2.33'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
 
@@ -18,8 +18,8 @@ Gem::Specification.new do |s|
18
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
19
  s.require_paths = ['lib']
20
20
 
21
- s.add_runtime_dependency('rails', "~> 3.0")
22
- s.add_runtime_dependency('cassandra', ">= 0.11.3")
21
+ s.add_runtime_dependency('rails', ">= 3.1")
22
+ s.add_runtime_dependency('cassandra', ">= 0.12.1")
23
23
 
24
24
  s.add_development_dependency('bundler', "~> 1.0.0")
25
25
  end
metadata CHANGED
@@ -1,74 +1,58 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sessionm-cassandra_object
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 2
7
- - 2
8
- - 32
9
- version: 2.2.32
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.2.33
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Michael Koziarski
13
9
  - gotime
14
10
  - sessionm
15
11
  autorequire:
16
12
  bindir: bin
17
13
  cert_chain: []
18
-
19
- date: 2011-11-22 00:00:00 -05:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
14
+ date: 2011-11-29 00:00:00.000000000Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
23
17
  name: rails
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- segments:
30
- - 3
31
- - 0
32
- version: "3.0"
18
+ requirement: &70326239920700 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '3.1'
33
24
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: cassandra
37
25
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- segments:
43
- - 0
44
- - 11
45
- - 3
46
- version: 0.11.3
26
+ version_requirements: *70326239920700
27
+ - !ruby/object:Gem::Dependency
28
+ name: cassandra
29
+ requirement: &70326239920240 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: 0.12.1
47
35
  type: :runtime
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: bundler
51
36
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- requirements:
37
+ version_requirements: *70326239920240
38
+ - !ruby/object:Gem::Dependency
39
+ name: bundler
40
+ requirement: &70326239919780 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
54
43
  - - ~>
55
- - !ruby/object:Gem::Version
56
- segments:
57
- - 1
58
- - 0
59
- - 0
44
+ - !ruby/object:Gem::Version
60
45
  version: 1.0.0
61
46
  type: :development
62
- version_requirements: *id003
47
+ prerelease: false
48
+ version_requirements: *70326239919780
63
49
  description: Cassandra ActiveModel
64
50
  email: klange@sessionm.com
65
51
  executables: []
66
-
67
52
  extensions: []
68
-
69
- extra_rdoc_files:
53
+ extra_rdoc_files:
70
54
  - README.markdown
71
- files:
55
+ files:
72
56
  - .gitignore
73
57
  - CHANGELOG
74
58
  - Gemfile
@@ -154,41 +138,31 @@ files:
154
138
  - test/types/time_type_test.rb
155
139
  - test/types/utf8_string_type_test.rb
156
140
  - test/validations_test.rb
157
- has_rdoc: true
158
141
  homepage: http://github.com/sessionm/cassandra_object
159
142
  licenses: []
160
-
161
143
  post_install_message:
162
144
  rdoc_options: []
163
-
164
- require_paths:
145
+ require_paths:
165
146
  - lib
166
- required_ruby_version: !ruby/object:Gem::Requirement
167
- requirements:
168
- - - ">="
169
- - !ruby/object:Gem::Version
170
- segments:
171
- - 1
172
- - 9
173
- - 2
147
+ required_ruby_version: !ruby/object:Gem::Requirement
148
+ none: false
149
+ requirements:
150
+ - - ! '>='
151
+ - !ruby/object:Gem::Version
174
152
  version: 1.9.2
175
- required_rubygems_version: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - ">="
178
- - !ruby/object:Gem::Version
179
- segments:
180
- - 1
181
- - 3
182
- - 5
153
+ required_rubygems_version: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ! '>='
157
+ - !ruby/object:Gem::Version
183
158
  version: 1.3.5
184
159
  requirements: []
185
-
186
160
  rubyforge_project:
187
- rubygems_version: 1.3.6
161
+ rubygems_version: 1.8.6
188
162
  signing_key:
189
163
  specification_version: 3
190
164
  summary: Cassandra ActiveModel
191
- test_files:
165
+ test_files:
192
166
  - test/active_model_test.rb
193
167
  - test/base_test.rb
194
168
  - test/batches_test.rb