recurring_select 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  RecurringSelect
2
2
  =============
3
3
 
4
+ [![Build Status](https://travis-ci.org/GetJobber/recurring_select.png)](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 = supplied_rule.is_a?(Hash) ? IceCube::Rule.from_hash(supplied_rule) : supplied_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
@@ -1,3 +1,3 @@
1
1
  module RecurringSelect
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -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.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-16 00:00:00.000000000 Z
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.24
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.