simple_calendar 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/simple_calendar/calendar.rb +2 -2
- data/lib/simple_calendar/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60dcc26bdf5d0e6bc7eed23fe0bf3d5c35977b8a189b9a045897410abc4ce36e
|
4
|
+
data.tar.gz: cc92323a3b5766f2f428ff1e3adfa40641843ddd5fce25068aeb7eee224ca710
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7ad3f165f583b789c6b8f8300c8377eac55cac5cb138429435185a6f50ee4b4b276b4d56e75e396ff1bce3f612b9029f1aa69023e6464346de3118d1aa3d580
|
7
|
+
data.tar.gz: 994a400d806c3a3c06939828d64254efad0dd04c34c00dab5a21a842e7ff7460d4e9bb2cb988cedeec0686360e91f53ebe99697979aaf5d23ab342136c771137
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### 2.4.1
|
2
|
+
|
3
|
+
* [FIX] Use iso8601 format for start_date links in the header. Fixes any
|
4
|
+
customization to the Rails default date format that might cause the
|
5
|
+
parser to fail parsing that with `to_date`
|
6
|
+
|
1
7
|
### 2.4.0
|
2
8
|
|
3
9
|
* [BREAKING] Fixes Rails 4.2 by changing `block` to `passed_block`. A
|
@@ -58,11 +58,11 @@ module SimpleCalendar
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def url_for_next_view
|
61
|
-
view_context.url_for(@params.merge(start_date_param => date_range.last + 1.day))
|
61
|
+
view_context.url_for(@params.merge(start_date_param => (date_range.last + 1.day).iso8601))
|
62
62
|
end
|
63
63
|
|
64
64
|
def url_for_previous_view
|
65
|
-
view_context.url_for(@params.merge(start_date_param => date_range.first - 1.day))
|
65
|
+
view_context.url_for(@params.merge(start_date_param => (date_range.first - 1.day).iso8601))
|
66
66
|
end
|
67
67
|
|
68
68
|
def date_range
|
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.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Oliver
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -80,7 +80,7 @@ homepage: https://github.com/excid3/simple_calendar
|
|
80
80
|
licenses:
|
81
81
|
- MIT
|
82
82
|
metadata: {}
|
83
|
-
post_install_message:
|
83
|
+
post_install_message:
|
84
84
|
rdoc_options: []
|
85
85
|
require_paths:
|
86
86
|
- lib
|
@@ -95,8 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
|
-
rubygems_version: 3.1.
|
99
|
-
signing_key:
|
98
|
+
rubygems_version: 3.1.4
|
99
|
+
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: A simple Rails calendar
|
102
102
|
test_files:
|