funtimes 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "funtimes"
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Len Smith"]
12
- s.date = "2011-10-03"
12
+ s.date = "2011-10-05"
13
13
  s.description = "Manage date ranges, months and quarters"
14
14
  s.email = "ignu.smith@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -2,6 +2,7 @@ require 'date'
2
2
  require 'funtimes/date_range'
3
3
 
4
4
  class Week
5
+ attr_accessor :start_date, :end_date
5
6
  START_DAY = 0
6
7
 
7
8
  include DateRange
@@ -7,6 +7,14 @@ describe Week do
7
7
  first_week.days.to_a.length.should == 7
8
8
  end
9
9
 
10
+ it "sets start_date" do
11
+ first_week.start_date.should == Date.new(2011, 10, 2)
12
+ end
13
+
14
+ it "sets end_date" do
15
+ first_week.end_date.should == Date.new(2011, 10, 8)
16
+ end
17
+
10
18
  it "starts the week on a sunday" do
11
19
  first_week.days.first.should == Date.new(2011, 10, 2)
12
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funtimes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-03 00:00:00.000000000Z
12
+ date: 2011-10-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70267984884580 !ruby/object:Gem::Requirement
16
+ requirement: &70093346613780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 2.5.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70267984884580
24
+ version_requirements: *70093346613780
25
25
  description: Manage date ranges, months and quarters
26
26
  email: ignu.smith@gmail.com
27
27
  executables: []