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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf4bf4a79564aa3543d05ee1aa60a4f615726538
4
- data.tar.gz: 89a58b9db6d661931f619365e3911c98b7b8b89d
3
+ metadata.gz: dec8cf1e6c45aa68ce501284959ed48299aa7774
4
+ data.tar.gz: c11f2163c2f62424d6afdec9ae53f8f48ea4d274
5
5
  SHA512:
6
- metadata.gz: f4d2f499c621733fc876670d13116dea294f0c041e67267c93ac55744c7b904b10c63aa906719c7737b543dc7deb675c07c154bbb2428fb5c65b2bb0937efbb4
7
- data.tar.gz: 90c4156ec06c15657e2099e4f835e68045e0ec162ffeb6168624a45504c97a081c2cdbc35a8a5b17788f7bdc5f592461bee932a400883b617d76ed8517a916aa
6
+ metadata.gz: 399e2bd2386561a99ff1e4321709be91af4c8d70f3d386cea2bbd0718b94f1affefd67e57e267362994990f2151a0facf635499f20453c3cff08463b62a5808d
7
+ data.tar.gz: 0020c883a0598a8c6096d32a1e68a8bd04305ba6a8a7ca6930ca84546f12b62fd5585e1c30b3a9bffdb1da415927927f26f1db4ca449fca9108359b5f810307e
@@ -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("#{I18N_KEY}.#{key}").html_safe
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 = "#{I18N_KEY}.page_entries_info"
24
+ i18n_key = "date_paginate.page_entries_info"
27
25
 
28
26
  content_tag :div, class: 'pageEntryInfo' do
29
27
  case paginator.pages.size
@@ -1,3 +1,3 @@
1
1
  module Datewari
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
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.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-12 00:00:00.000000000 Z
11
+ date: 2018-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord