gotime-cassandra_object 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
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.4"
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-04}
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",
@@ -5,7 +5,6 @@ require 'active_model'
5
5
 
6
6
 
7
7
  module CassandraObject
8
- VERSION = "0.7.4"
9
8
  extend ActiveSupport::Autoload
10
9
 
11
10
  autoload :Base
@@ -48,6 +48,7 @@ module CassandraObject
48
48
  extend Naming
49
49
 
50
50
  extend ActiveModel::Naming
51
+ extend ActiveSupport::DescendantsTracker
51
52
 
52
53
  include Callbacks
53
54
  include Identity
@@ -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
@@ -0,0 +1,9 @@
1
+ module CassandraObject
2
+ module Version
3
+ MAJOR = 0
4
+ MINOR = 7
5
+ PATCH = 5
6
+
7
+ STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
+ end
9
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 4
9
- version: 0.7.4
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-04 00:00:00 -08:00
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: -2156348232490732598
216
+ hash: -2945328319051890382
217
217
  segments:
218
218
  - 0
219
219
  version: "0"
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.7.4