recurring_select 2.0.0 → 2.1.0

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84784bc9af2cf66a090ed2e53cc2765d86464f1d
4
- data.tar.gz: 1b17b0e4791b8191e7e317a6e5db1b3df2125ca8
3
+ metadata.gz: 4cabe7a01dcefc8682a70850814515545fdbc4ef
4
+ data.tar.gz: 191681842a5ef0c281e045f6854bad2145620327
5
5
  SHA512:
6
- metadata.gz: 3a94d46fd1dbe66c5bed8bfdd00f95e32fae19315900af068459ff64eeae7559416dd287541e0d365cd85dc837cae2eace2755dae2abc429e1b3c23460cf574d
7
- data.tar.gz: 49591456cfa0166f70edd93901a755ca546be8a00c3c92be23db230670f16f19e104794ba52ad2b5f29fc5754229f2af5fd5426b9be77297eb733871fb95b025
6
+ metadata.gz: d1a272091bdb190e6824469338e4635c5904ad8def50196484eb421269be435ddc2b53fdf1a0dc5f3eacaa081f092943983632f35cc36955ff5f45ae0ff8d0a5
7
+ data.tar.gz: ddb128c7a89adbbd6974e7e3d52282de0fb49dea9e5e5b1117333f071b512b2ac089a773632f6760ff750144a78eabb6bb5238e0f731b3860abbd0cb52cc1b37
@@ -2,7 +2,7 @@ require "ice_cube"
2
2
 
3
3
  module RecurringSelectHelper
4
4
  module FormHelper
5
- if Rails::VERSION::MAJOR == 4
5
+ if Rails::VERSION::MAJOR >= 4
6
6
  def select_recurring(object, method, default_schedules = nil, options = {}, html_options = {})
7
7
  RecurringSelectTag.new(object, method, self, default_schedules, options, html_options).render
8
8
  end
@@ -114,7 +114,11 @@ module RecurringSelectHelper
114
114
  end
115
115
 
116
116
  def render
117
- option_tags = add_options(recurring_options_for_select(value(object), @default_schedules, @options), @options, value(object))
117
+ if Rails::VERSION::STRING >= '5.2'
118
+ option_tags = add_options(recurring_options_for_select(value, @default_schedules, @options), @options, value)
119
+ else
120
+ option_tags = add_options(recurring_options_for_select(value(object), @default_schedules, @options), @options, value(object))
121
+ end
118
122
  select_content_tag(option_tags, @options, @html_options)
119
123
  end
120
124
  end
@@ -1,3 +1,3 @@
1
1
  module RecurringSelect
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurring_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jobber
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-09-25 00:00:00.000000000 Z
13
+ date: 2018-07-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  requirements: []
189
189
  rubyforge_project:
190
- rubygems_version: 2.2.2
190
+ rubygems_version: 2.5.2.3
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: A select helper which gives you magical powers to generate ice_cube rules.