sequel-cacheable 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ bundler_args: --without development
2
+ script: bundle exec rake spec
3
+ language: ruby
4
+ rvm:
5
+ - 1.8.7
6
+ - 1.9.3
data/Gemfile CHANGED
@@ -6,11 +6,11 @@ source "http://rubygems.org"
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
 
9
- gem 'sequel', '~> 3.32.0'
9
+ gem 'sequel', '~> 3.33.0'
10
10
  gem 'msgpack', '~> 0.4.6'
11
11
  gem 'hashr', '~> 0.0.19'
12
12
 
13
- group :development do
13
+ group :development, :test do
14
14
  gem "bundler", ">= 1.0.0"
15
15
 
16
16
  gem "rspec", "~> 2.8.0"
data/Gemfile.lock CHANGED
@@ -35,7 +35,7 @@ GEM
35
35
  rspec-expectations (2.8.0)
36
36
  diff-lcs (~> 1.1.2)
37
37
  rspec-mocks (2.8.0)
38
- sequel (3.32.0)
38
+ sequel (3.33.0)
39
39
  simplecov (0.6.1)
40
40
  multi_json (~> 1.0)
41
41
  simplecov-html (~> 0.5.3)
@@ -60,7 +60,7 @@ DEPENDENCIES
60
60
  rdoc (~> 3.12)
61
61
  redis
62
62
  rspec (~> 2.8.0)
63
- sequel (~> 3.32.0)
63
+ sequel (~> 3.33.0)
64
64
  simplecov (~> 0.6.1)
65
65
  sqlite3
66
66
  yard (~> 0.7)
data/README.rdoc CHANGED
@@ -1,4 +1,4 @@
1
- = sequel-cacheable
1
+ = sequel-cacheable http://travis-ci.org/rosylilly/sequel-cacheable.png
2
2
 
3
3
  This plug-in caching mechanism to implement the Model of the Sequel
4
4
 
data/Rakefile CHANGED
@@ -31,12 +31,6 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
31
31
  spec.pattern = FileList['spec/**/*_spec.rb']
32
32
  end
33
33
 
34
- RSpec::Core::RakeTask.new(:rcov) do |spec|
35
- require 'simplecov'
36
- SimpleCov.start
37
- spec.pattern = 'spec/**/*_spec.rb'
38
- end
39
-
40
34
  task :default => :spec
41
35
 
42
36
  require 'yard'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -115,6 +115,10 @@ module Sequel::Plugins
115
115
  value = Sequel::SQLTime.at(value[0], value[1])
116
116
  when :datetime
117
117
  value = Time.at(value[0], value[1])
118
+ when :decimal
119
+ value = BigDecimal.new(value)
120
+ when :integer
121
+ value = value.to_i
118
122
  end
119
123
  object[key] = value
120
124
  end
@@ -144,6 +148,8 @@ module Sequel::Plugins
144
148
  value = [value.year, value.mon, value.mday, value.start]
145
149
  when Sequel::SQLTime, Time
146
150
  value = [value.to_i, value.usec]
151
+ when BigDecimal, Bignum
152
+ value = value.to_s
147
153
  end
148
154
  hash[key] = value
149
155
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "sequel-cacheable"
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sho Kusano <rosylilly>"]
12
- s.date = "2012-02-27"
12
+ s.date = "2012-03-01"
13
13
  s.description = "This plug-in caching mechanism to implement the Model of the Sequel"
14
14
  s.email = "rosylilly@aduca.org"
15
15
  s.extra_rdoc_files = [
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.files = [
20
20
  ".document",
21
21
  ".rspec",
22
+ ".travis.yml",
22
23
  "Gemfile",
23
24
  "Gemfile.lock",
24
25
  "Guardfile",
@@ -41,7 +42,7 @@ Gem::Specification.new do |s|
41
42
  s.specification_version = 3
42
43
 
43
44
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
- s.add_runtime_dependency(%q<sequel>, ["~> 3.32.0"])
45
+ s.add_runtime_dependency(%q<sequel>, ["~> 3.33.0"])
45
46
  s.add_runtime_dependency(%q<msgpack>, ["~> 0.4.6"])
46
47
  s.add_runtime_dependency(%q<hashr>, ["~> 0.0.19"])
47
48
  s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
@@ -58,7 +59,7 @@ Gem::Specification.new do |s|
58
59
  s.add_development_dependency(%q<redis>, [">= 0"])
59
60
  s.add_development_dependency(%q<queencheck>, [">= 0"])
60
61
  else
61
- s.add_dependency(%q<sequel>, ["~> 3.32.0"])
62
+ s.add_dependency(%q<sequel>, ["~> 3.33.0"])
62
63
  s.add_dependency(%q<msgpack>, ["~> 0.4.6"])
63
64
  s.add_dependency(%q<hashr>, ["~> 0.0.19"])
64
65
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
@@ -76,7 +77,7 @@ Gem::Specification.new do |s|
76
77
  s.add_dependency(%q<queencheck>, [">= 0"])
77
78
  end
78
79
  else
79
- s.add_dependency(%q<sequel>, ["~> 3.32.0"])
80
+ s.add_dependency(%q<sequel>, ["~> 3.33.0"])
80
81
  s.add_dependency(%q<msgpack>, ["~> 0.4.6"])
81
82
  s.add_dependency(%q<hashr>, ["~> 0.0.19"])
82
83
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-cacheable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-27 00:00:00.000000000 Z
12
+ date: 2012-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel
16
- requirement: &70348750365220 !ruby/object:Gem::Requirement
16
+ requirement: &70132676533000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.32.0
21
+ version: 3.33.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70348750365220
24
+ version_requirements: *70132676533000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: msgpack
27
- requirement: &70348750364640 !ruby/object:Gem::Requirement
27
+ requirement: &70132676532100 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.4.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70348750364640
35
+ version_requirements: *70132676532100
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: hashr
38
- requirement: &70348750363580 !ruby/object:Gem::Requirement
38
+ requirement: &70132676530060 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.0.19
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70348750363580
46
+ version_requirements: *70132676530060
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &70348750384240 !ruby/object:Gem::Requirement
49
+ requirement: &70132676528300 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70348750384240
57
+ version_requirements: *70132676528300
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &70348750382020 !ruby/object:Gem::Requirement
60
+ requirement: &70132676527040 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 2.8.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70348750382020
68
+ version_requirements: *70132676527040
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: yard
71
- requirement: &70348750380580 !ruby/object:Gem::Requirement
71
+ requirement: &70132676525900 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0.7'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70348750380580
79
+ version_requirements: *70132676525900
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rdoc
82
- requirement: &70348750378700 !ruby/object:Gem::Requirement
82
+ requirement: &70132676543460 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '3.12'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70348750378700
90
+ version_requirements: *70132676543460
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: jeweler
93
- requirement: &70348750377860 !ruby/object:Gem::Requirement
93
+ requirement: &70132676541760 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.8.3
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70348750377860
101
+ version_requirements: *70132676541760
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: simplecov
104
- requirement: &70348750396600 !ruby/object:Gem::Requirement
104
+ requirement: &70132676540840 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 0.6.1
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70348750396600
112
+ version_requirements: *70132676540840
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: guard
115
- requirement: &70348750395860 !ruby/object:Gem::Requirement
115
+ requirement: &70132676540260 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 1.0.0
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70348750395860
123
+ version_requirements: *70132676540260
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: guard-rspec
126
- requirement: &70348750395300 !ruby/object:Gem::Requirement
126
+ requirement: &70132676539660 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 0.6.0
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70348750395300
134
+ version_requirements: *70132676539660
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: growl
137
- requirement: &70348750394600 !ruby/object:Gem::Requirement
137
+ requirement: &70132676538840 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70348750394600
145
+ version_requirements: *70132676538840
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: sqlite3
148
- requirement: &70348750393200 !ruby/object:Gem::Requirement
148
+ requirement: &70132676552820 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *70348750393200
156
+ version_requirements: *70132676552820
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: memcache
159
- requirement: &70348750391860 !ruby/object:Gem::Requirement
159
+ requirement: &70132676550940 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *70348750391860
167
+ version_requirements: *70132676550940
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: redis
170
- requirement: &70348750390100 !ruby/object:Gem::Requirement
170
+ requirement: &70132676547860 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,10 +175,10 @@ dependencies:
175
175
  version: '0'
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *70348750390100
178
+ version_requirements: *70132676547860
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: queencheck
181
- requirement: &70348750409840 !ruby/object:Gem::Requirement
181
+ requirement: &70132676572580 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ! '>='
@@ -186,7 +186,7 @@ dependencies:
186
186
  version: '0'
187
187
  type: :development
188
188
  prerelease: false
189
- version_requirements: *70348750409840
189
+ version_requirements: *70132676572580
190
190
  description: This plug-in caching mechanism to implement the Model of the Sequel
191
191
  email: rosylilly@aduca.org
192
192
  executables: []
@@ -197,6 +197,7 @@ extra_rdoc_files:
197
197
  files:
198
198
  - .document
199
199
  - .rspec
200
+ - .travis.yml
200
201
  - Gemfile
201
202
  - Gemfile.lock
202
203
  - Guardfile
@@ -223,7 +224,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
223
224
  version: '0'
224
225
  segments:
225
226
  - 0
226
- hash: -2376073747883598143
227
+ hash: 3129836166094338034
227
228
  required_rubygems_version: !ruby/object:Gem::Requirement
228
229
  none: false
229
230
  requirements: