timeframe 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/timeframe.rb +1 -1
- data/spec/timeframe_spec.rb +5 -0
- data/timeframe.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/timeframe.rb
CHANGED
data/spec/timeframe_spec.rb
CHANGED
@@ -254,6 +254,11 @@ describe Timeframe do
|
|
254
254
|
it 'should generate JSON' do
|
255
255
|
Timeframe.new(:year => 2009).to_json.should == "{\"from\":\"2009-01-01\",\"to\":\"2010-01-01\"}"
|
256
256
|
end
|
257
|
+
it 'should ignore any arguments you give it' do
|
258
|
+
example = Timeframe.new(:year => 2009).to_json
|
259
|
+
Timeframe.new(:year => 2009).to_json('hi').should == example
|
260
|
+
Timeframe.new(:year => 2009).to_json('hi', 'there').should == example
|
261
|
+
end
|
257
262
|
end
|
258
263
|
|
259
264
|
describe '#to_param' do
|
data/timeframe.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{timeframe}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andy Rossmeissl", "Seamus Abshere", "Derek Kastner"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timeframe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andy Rossmeissl
|