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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/merch_calendar/date_calculator.rb +5 -4
- data/lib/merch_calendar/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f96df8a358dab3d900fcdcd63295f26b87b76781
|
4
|
+
data.tar.gz: eac675dcee19465f4f52b1a6917547aa915121fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14925ac6a035b7122c552f13aa7c795222ecc4e63866f4a4381f16e3bd7fca1b80c5450465a07553cff7d4be9af2c8e628a5393379a556935bfa271d16462e5f
|
7
|
+
data.tar.gz: 41fe2d24d57d8c1ab1640b386bfb89a08bf9ba28bc0960aed1108256e0aa421d7ff7dbed0dffc33036acefc81aaed6da2828a234197fb7d93f2e68dbe894bd16
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
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
|
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
|
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:
|
135
|
+
version: '0'
|
136
136
|
requirements: []
|
137
137
|
rubyforge_project:
|
138
138
|
rubygems_version: 2.6.12
|