date_ranger 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module DateRanger::Bootstrapper
2
2
 
3
3
  def has_date_range(options={})
4
- cattr_accessor :date_ranger_options
4
+ class_attribute :date_ranger_options
5
5
  self.date_ranger_options = options
6
6
  self.date_ranger_options[:timestep] ||= :daily
7
7
  if self.date_ranger_options[:class]
@@ -1,3 +1,3 @@
1
1
  module DateRanger
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -2,10 +2,14 @@ require 'spec_helper'
2
2
 
3
3
  describe DateRanger do
4
4
 
5
- class Something
5
+ class Foo
6
+ has_date_range
6
7
  end
7
8
 
8
- class Another
9
+ class Something < Foo
10
+ end
11
+
12
+ class Another < Foo
9
13
  end
10
14
 
11
15
  describe '.has_date_range' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_ranger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -90,18 +90,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  - - ! '>='
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
- segments:
94
- - 0
95
- hash: -793220054918885389
96
93
  required_rubygems_version: !ruby/object:Gem::Requirement
97
94
  none: false
98
95
  requirements:
99
96
  - - ! '>='
100
97
  - !ruby/object:Gem::Version
101
98
  version: '0'
102
- segments:
103
- - 0
104
- hash: -793220054918885389
105
99
  requirements: []
106
100
  rubyforge_project:
107
101
  rubygems_version: 1.8.24
@@ -111,3 +105,4 @@ summary: Provides date range methods
111
105
  test_files:
112
106
  - spec/date_ranger_spec.rb
113
107
  - spec/spec_helper.rb
108
+ has_rdoc: