datewari 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/datewari/helper.rb +2 -4
- data/lib/datewari/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dec8cf1e6c45aa68ce501284959ed48299aa7774
|
4
|
+
data.tar.gz: c11f2163c2f62424d6afdec9ae53f8f48ea4d274
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 399e2bd2386561a99ff1e4321709be91af4c8d70f3d386cea2bbd0718b94f1affefd67e57e267362994990f2151a0facf635499f20453c3cff08463b62a5808d
|
7
|
+
data.tar.gz: 0020c883a0598a8c6096d32a1e68a8bd04305ba6a8a7ca6930ca84546f12b62fd5585e1c30b3a9bffdb1da415927927f26f1db4ca449fca9108359b5f810307e
|
data/lib/datewari/helper.rb
CHANGED
@@ -3,12 +3,10 @@ require_relative 'helper/parts_builder'
|
|
3
3
|
|
4
4
|
module Datewari
|
5
5
|
module Helper
|
6
|
-
I18N_KEY = 'date_paginate'
|
7
|
-
|
8
6
|
def date_paginate(rel, config = {})
|
9
7
|
[:previous_label, :next_label, :page_gap, :link_separator,
|
10
8
|
:yearly_format, :monthly_format, :weekly_format, :daily_format].each do |key|
|
11
|
-
config[key] ||= I18n.t("
|
9
|
+
config[key] ||= I18n.t("date_paginate.#{key}").html_safe
|
12
10
|
end
|
13
11
|
|
14
12
|
config[:page_links] = true unless config.key?(:page_links)
|
@@ -23,7 +21,7 @@ module Datewari
|
|
23
21
|
|
24
22
|
def date_page_entries_info(rel)
|
25
23
|
paginator = rel.paginator
|
26
|
-
i18n_key = "
|
24
|
+
i18n_key = "date_paginate.page_entries_info"
|
27
25
|
|
28
26
|
content_tag :div, class: 'pageEntryInfo' do
|
29
27
|
case paginator.pages.size
|
data/lib/datewari/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datewari
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|