simple_calendar 2.2.1 → 2.2.2

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: 0cb97fa05082bdaa301e5d13bb75b0bc888531ad
4
- data.tar.gz: c0e8070b8ce3705e582fdc9bd24e430a4b22822f
3
+ metadata.gz: ba1a15f828524d2360d840b81cf5d33026f5119f
4
+ data.tar.gz: 54d047f4bc6e09add1e78dbf441c825281391a87
5
5
  SHA512:
6
- metadata.gz: 878dd38f42449b3c813c0036c3e32638cbfd550e27790a76cc110aca05299a7057eef33fe4c1e2ae4937d04d4013f5c729398f331cb44ab2513debe662d735d7
7
- data.tar.gz: 4ce2c239c63d8803aa078e5d1a88546099a9111ebdfa884726ef80d29a0aa221a509bf3dc27f3d800833a0436e0ab8c5d3c68edf86933bb5f82c58b90481306e
6
+ metadata.gz: 8c5a5c027e124ab619e887eab798b09c01ef011ea6b14bdae6ac81f9adfeb5eaf7b3aa8bc2256151b927de6b05b27dd28c8425857d21e43b35acd4d421fe1679
7
+ data.tar.gz: 8b9626f1f46a5353d5d99131fb4c9cc00e84f32dda7422f520e7d28270fc6e4952d922f382be564599f40391bbe6a95e10a20d79d03e7a530c5f655ff955959a
@@ -1,3 +1,3 @@
1
1
  module SimpleCalendar
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
@@ -2,7 +2,7 @@ module SimpleCalendar
2
2
  class WeekCalendar < SimpleCalendar::Calendar
3
3
  def week_number
4
4
  format = (Date.beginning_of_week == :sunday) ? "%U" : "%W"
5
- start_date.strftime(format).to_i
5
+ start_date.beginning_of_week.strftime(format).to_i
6
6
  end
7
7
 
8
8
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-21 00:00:00.000000000 Z
11
+ date: 2016-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails