merch_calendar 0.0.5.rc1 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85573fff400cbd649739fb93ac2a8c2508b5bf79
4
- data.tar.gz: fd9217298584820c4fb53bf18747eac9686eb3c5
3
+ metadata.gz: f96df8a358dab3d900fcdcd63295f26b87b76781
4
+ data.tar.gz: eac675dcee19465f4f52b1a6917547aa915121fd
5
5
  SHA512:
6
- metadata.gz: 6821779fb805f04db16ab44b8dfc52358075c2bf53b6dec1a7af5405a10ab9a467a94be679a170c2bd8478261a6a7a1e30ea2f5d48297893ba1d7f83bfe1c130
7
- data.tar.gz: 7c7a670ff7a74df32f987dc24b86c522c8847bd38d3ba15ae9d23f685e800b249de273d7973b43fb6813c85d766620e5b35e98afb72a9b1dc38e32a1ea0bed2f
6
+ metadata.gz: 14925ac6a035b7122c552f13aa7c795222ecc4e63866f4a4381f16e3bd7fca1b80c5450465a07553cff7d4be9af2c8e628a5393379a556935bfa271d16462e5f
7
+ data.tar.gz: 41fe2d24d57d8c1ab1640b386bfb89a08bf9ba28bc0960aed1108256e0aa421d7ff7dbed0dffc33036acefc81aaed6da2828a234197fb7d93f2e68dbe894bd16
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- merch_calendar (0.0.5.rc1)
4
+ merch_calendar (0.0.5)
5
5
 
6
6
  GEM
7
7
  remote: https://www.rubygems.org/
@@ -51,15 +51,16 @@ module MerchCalendar
51
51
  end
52
52
  end
53
53
 
54
+ # Returns the date that corresponds to the first day in the merch week
54
55
  def start_of_week(year, month, merch_week)
55
- weeks = MerchCalendar.weeks_for_month(year, month)
56
-
57
- week = weeks.find { |week| week.week == merch_week }
56
+ week = MerchCalendar::MerchWeek.find(year, month, merch_week)
58
57
  week.start_of_week
59
58
  end
60
59
 
60
+ # Returns the date that corresponds to the last day in the merch week
61
61
  def end_of_week(year, month, merch_week)
62
- start_of_week(year, month, merch_week) + 6
62
+ week = MerchCalendar::MerchWeek.find(year, month, merch_week)
63
+ week.end_of_week
63
64
  end
64
65
 
65
66
  # Return the starting date for a particular quarter
@@ -1,3 +1,3 @@
1
1
  module MerchCalendar
2
- VERSION = '0.0.5.rc1'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merch_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.rc1
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitch Dempsey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-31 00:00:00.000000000 Z
11
+ date: 2017-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -130,9 +130,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
- - - ">"
133
+ - - ">="
134
134
  - !ruby/object:Gem::Version
135
- version: 1.3.1
135
+ version: '0'
136
136
  requirements: []
137
137
  rubyforge_project:
138
138
  rubygems_version: 2.6.12