timeframe 0.0.2 → 0.0.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/lib/timeframe.rb CHANGED
@@ -247,7 +247,7 @@ class Timeframe
247
247
  self.class.new((from - 1.year), (to - 1.year))
248
248
  end
249
249
 
250
- def to_json # :nodoc:
250
+ def to_json(*) # :nodoc:
251
251
  { :from => from, :to => to }.to_json
252
252
  end
253
253
 
@@ -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.2"
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andy Rossmeissl