cal_months_rails3 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZmU4MjQ3OTA1MTcwZDYzNDMzZjk3MGQ4MWNjOTZmZGY5OTdkMDRiOQ==
5
- data.tar.gz: !binary |-
6
- NDZlZDZiNzA1NzFiZmFhNjJjODFjYWNlZDVhMGM5ZGYyMzZiM2M4Zg==
2
+ SHA1:
3
+ metadata.gz: f956b180d842efad520481fb3d82d7f4810d4bb0
4
+ data.tar.gz: 16dbbe06e20d8bdafdde5608348b550400323469
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MDczN2Y5MjExMDg3MGI5MDRkMTc0YTYxMmU1YTBkYTIyNmFhYTRjM2ZiODY3
10
- MDVjYThhOThlYjAyNmY0MzZkNmJkZDNmNTA2MmU4OTM4MDBhZTY1NzcwZGFm
11
- MjJkNDM2ZGVhY2EzYjk3ZGNlOThjOTA1YzY4MzNiOWY1NWEwM2M=
12
- data.tar.gz: !binary |-
13
- MjE2YjMwNWYxYjA3NjNmNTM4YmY3NmZiZmI4NzQxZDMzZGU0MDgyNmQ5MWRl
14
- NDg4NzcyZWI5ZWMxOGEzYmYyZDkzYzc1MTFiYzY0MjhjMGJjMTNjZTZmYjE3
15
- N2NkNjRhZDNiOWM2YTZhMjI0OWQ1NWIyZWIwOGIwYWQ2NWYzMmQ=
6
+ metadata.gz: be6e59177a4f809d8fd212f4b857a087f782a4129606363c4ff401306c172e3b40204fbe8e5b84464030283c26085df49c88907ba5a9f210a76bed2de18cceb8
7
+ data.tar.gz: 92898a97ec3336825abc9abadb5fe459d8ddbb34343acbea9b8fa2b590e67a1803ae74f67238992746b83d800940b1a792982cc8eed9e49dd81b80c00e2a7703
@@ -134,7 +134,7 @@ class CalMonth < ActiveRecord::Base
134
134
  def each_week
135
135
  date = to_date
136
136
  data = date_events
137
- day_of_week_offset = date.wday - 1
137
+ day_of_week_offset = (date.wday + 6) % 7
138
138
  day_of_week_offset.times { data.unshift([nil, []]) }
139
139
 
140
140
  if block_given?
@@ -7,7 +7,7 @@ files.push('LICENSE')
7
7
 
8
8
  Gem::Specification.new do |s|
9
9
  s.name = 'cal_months_rails3'
10
- s.version = '1.2.1'
10
+ s.version = '1.2.2'
11
11
  s.date = "#{Time.now.strftime("%Y-%m-%d")}"
12
12
  s.homepage = 'https://github.com/jphager2/cal_months'
13
13
  s.summary = 'icalendar integration'
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cal_months_rails3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - jphager2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-26 00:00:00.000000000 Z
11
+ date: 2016-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: icalendar
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.2'
27
27
  description: A nice extension for quickly incorporating icalendar imports with default
@@ -44,12 +44,7 @@ files:
44
44
  - app/views/cal_months/_upcoming_events.html.erb
45
45
  - app/views/cal_months/show.js.erb
46
46
  - app/views/cal_months/show_current_event.js.erb
47
- - cal_months-1.0.0.gem
48
47
  - cal_months.gemspec
49
- - cal_months_rails3-1.0.1.gem
50
- - cal_months_rails3-1.1.0.gem
51
- - cal_months_rails3-1.1.1.gem
52
- - cal_months_rails3-1.2.0.gem
53
48
  - config/locales/cal_months_cs.yml
54
49
  - config/locales/cal_months_en.yml
55
50
  - db/migrate/create_cal_events.rb
@@ -66,17 +61,17 @@ require_paths:
66
61
  - lib
67
62
  required_ruby_version: !ruby/object:Gem::Requirement
68
63
  requirements:
69
- - - ! '>='
64
+ - - ">="
70
65
  - !ruby/object:Gem::Version
71
66
  version: '0'
72
67
  required_rubygems_version: !ruby/object:Gem::Requirement
73
68
  requirements:
74
- - - ! '>='
69
+ - - ">="
75
70
  - !ruby/object:Gem::Version
76
71
  version: '0'
77
72
  requirements: []
78
73
  rubyforge_project:
79
- rubygems_version: 2.4.3
74
+ rubygems_version: 2.4.6
80
75
  signing_key:
81
76
  specification_version: 4
82
77
  summary: icalendar integration
Binary file
Binary file
Binary file
Binary file
Binary file