gotime-cassandra_object 0.7.4 → 0.7.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.
- data/Rakefile +2 -0
- data/gotime-cassandra_object.gemspec +3 -3
- data/lib/cassandra_object.rb +0 -1
- data/lib/cassandra_object/base.rb +1 -0
- data/lib/cassandra_object/types.rb +2 -0
- data/lib/cassandra_object/version.rb +9 -0
- metadata +5 -5
- data/VERSION +0 -1
data/Rakefile
CHANGED
|
@@ -10,9 +10,11 @@ end
|
|
|
10
10
|
require 'rake'
|
|
11
11
|
|
|
12
12
|
require 'jeweler'
|
|
13
|
+
require './lib/cassandra_object/version'
|
|
13
14
|
Jeweler::Tasks.new do |gem|
|
|
14
15
|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
|
15
16
|
gem.name = "gotime-cassandra_object"
|
|
17
|
+
gem.version = CassandraObject::Version::STRING
|
|
16
18
|
gem.homepage = "http://github.com/gotime/cassandra_object"
|
|
17
19
|
gem.license = "MIT"
|
|
18
20
|
gem.summary = %Q{Cassandra ActiveModel}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{gotime-cassandra_object}
|
|
8
|
-
s.version = "0.7.
|
|
8
|
+
s.version = "0.7.5"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Michael Koziarski", "grantr"]
|
|
12
|
-
s.date = %q{2011-02-
|
|
12
|
+
s.date = %q{2011-02-09}
|
|
13
13
|
s.description = %q{Cassandra ActiveModel}
|
|
14
14
|
s.email = %q{grantr@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -25,7 +25,6 @@ Gem::Specification.new do |s|
|
|
|
25
25
|
"README.markdown",
|
|
26
26
|
"Rakefile",
|
|
27
27
|
"TODO",
|
|
28
|
-
"VERSION",
|
|
29
28
|
"gotime-cassandra_object.gemspec",
|
|
30
29
|
"lib/cassandra_object.rb",
|
|
31
30
|
"lib/cassandra_object/associations.rb",
|
|
@@ -59,6 +58,7 @@ Gem::Specification.new do |s|
|
|
|
59
58
|
"lib/cassandra_object/type_registration.rb",
|
|
60
59
|
"lib/cassandra_object/types.rb",
|
|
61
60
|
"lib/cassandra_object/validation.rb",
|
|
61
|
+
"lib/cassandra_object/version.rb",
|
|
62
62
|
"test/active_model_test.rb",
|
|
63
63
|
"test/basic_scenarios_test.rb",
|
|
64
64
|
"test/callbacks_test.rb",
|
data/lib/cassandra_object.rb
CHANGED
|
@@ -78,11 +78,13 @@ module CassandraObject
|
|
|
78
78
|
|
|
79
79
|
module TimeWithZoneType
|
|
80
80
|
def encode(time)
|
|
81
|
+
return '' if time.nil?
|
|
81
82
|
TimeType.encode(time.utc)
|
|
82
83
|
end
|
|
83
84
|
module_function :encode
|
|
84
85
|
|
|
85
86
|
def decode(str)
|
|
87
|
+
return nil if str.empty?
|
|
86
88
|
TimeType.decode(str).in_time_zone
|
|
87
89
|
end
|
|
88
90
|
module_function :decode
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 7
|
|
8
|
-
-
|
|
9
|
-
version: 0.7.
|
|
8
|
+
- 5
|
|
9
|
+
version: 0.7.5
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Michael Koziarski
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-02-
|
|
18
|
+
date: 2011-02-09 00:00:00 -08:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -144,7 +144,6 @@ files:
|
|
|
144
144
|
- README.markdown
|
|
145
145
|
- Rakefile
|
|
146
146
|
- TODO
|
|
147
|
-
- VERSION
|
|
148
147
|
- gotime-cassandra_object.gemspec
|
|
149
148
|
- lib/cassandra_object.rb
|
|
150
149
|
- lib/cassandra_object/associations.rb
|
|
@@ -178,6 +177,7 @@ files:
|
|
|
178
177
|
- lib/cassandra_object/type_registration.rb
|
|
179
178
|
- lib/cassandra_object/types.rb
|
|
180
179
|
- lib/cassandra_object/validation.rb
|
|
180
|
+
- lib/cassandra_object/version.rb
|
|
181
181
|
- test/active_model_test.rb
|
|
182
182
|
- test/basic_scenarios_test.rb
|
|
183
183
|
- test/callbacks_test.rb
|
|
@@ -213,7 +213,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
213
213
|
requirements:
|
|
214
214
|
- - ">="
|
|
215
215
|
- !ruby/object:Gem::Version
|
|
216
|
-
hash: -
|
|
216
|
+
hash: -2945328319051890382
|
|
217
217
|
segments:
|
|
218
218
|
- 0
|
|
219
219
|
version: "0"
|
data/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.7.4
|