recurring_select 1.0.0 → 1.0.1
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.
- data/README.md +2 -0
- data/app/helpers/recurring_select_helper.rb +1 -1
- data/lib/recurring_select/version.rb +1 -1
- data/lib/recurring_select.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
RecurringSelect
|
2
2
|
=============
|
3
3
|
|
4
|
+
[](https://travis-ci.org/GetJobber/recurring_select)
|
5
|
+
|
4
6
|
This is a gem to add a number of selectors and helpers for working with recurring schedules in a rails app.
|
5
7
|
It uses the [IceCube](https://github.com/seejohnrun/ice_cube) recurring scheduling gem.
|
6
8
|
|
@@ -51,7 +51,7 @@ module RecurringSelectHelper
|
|
51
51
|
def ice_cube_rule_to_option(supplied_rule, custom = false)
|
52
52
|
return supplied_rule unless RecurringSelect.is_valid_rule?(supplied_rule)
|
53
53
|
|
54
|
-
rule =
|
54
|
+
rule = RecurringSelect.dirty_hash_to_rule(supplied_rule)
|
55
55
|
ar = [rule.to_s, rule.to_hash.to_json]
|
56
56
|
|
57
57
|
if custom
|
data/lib/recurring_select.rb
CHANGED
@@ -51,6 +51,7 @@ module RecurringSelect
|
|
51
51
|
params.reject!{|key, value| value.blank? || value=="null" }
|
52
52
|
|
53
53
|
params[:interval] = params[:interval].to_i if params[:interval]
|
54
|
+
params[:week_start] = params[:week_start].to_i if params[:week_start]
|
54
55
|
|
55
56
|
params[:validations] ||= {}
|
56
57
|
params[:validations].symbolize_keys!
|
@@ -86,5 +87,4 @@ module RecurringSelect
|
|
86
87
|
|
87
88
|
params
|
88
89
|
end
|
89
|
-
|
90
90
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-04-
|
14
|
+
date: 2013-04-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 1.8.
|
158
|
+
rubygems_version: 1.8.25
|
159
159
|
signing_key:
|
160
160
|
specification_version: 3
|
161
161
|
summary: A select helper which gives you magical powers to generate ice_cube rules.
|