recurring_select 1.2.1.rc1 → 1.2.1.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cb330f53dbb9e927ef6e926b82ed842e6f5fa405
4
+ data.tar.gz: 110685ad736abe16f880e317dcb80fa92eaa1385
5
+ SHA512:
6
+ metadata.gz: 33c79b15c93c3dfe966f8c5fc01eeeb715fbb1529460ac5935aa69f72d8d7b8f4207464580de1450bf7b9f07076c654a7ff0d1fc5f746e3678aa49a1e49708d0
7
+ data.tar.gz: 9aec0d6cb1a1fc90755b11cf9df882a7e1c30ce9f8c30437b64678f030168798afacf1a103efd24c3ba3b0a3b273cecc6479f93285696d4f65396a5e10148dc6
data/README.md CHANGED
@@ -138,3 +138,4 @@ Feel free to open issues or send pull requests.
138
138
  Licensing
139
139
  ---------
140
140
  This project rocks and uses MIT-LICENSE.
141
+
@@ -4,12 +4,12 @@ require_relative "utilities/tag_ext"
4
4
 
5
5
  module RecurringSelectHelper
6
6
  module FormHelper
7
- def select_recurring(object, method, default_schedules = nil, options = {}, html_options = {})
8
- if Rails::VERSION::STRING.to_f >= 4.0
9
- # === Rails 4
7
+ if Rails::VERSION::MAJOR == 4
8
+ def select_recurring(object, method, default_schedules = nil, options = {}, html_options = {})
10
9
  RecurringSelectTag.new(object, method, self, default_schedules, options, html_options).render
11
- else
12
- # === Rails 3
10
+ end
11
+ elsif Rails::VERSION::MAJOR == 3
12
+ def select_recurring(object, method, default_schedules = nil, options = {}, html_options = {})
13
13
  InstanceTag.new(object, method, self, options.delete(:object)).to_recurring_select_tag(default_schedules, options, html_options)
14
14
  end
15
15
  end
@@ -8,7 +8,7 @@ module RecurringSelectHelper
8
8
  separator = [I18n.t("recurring_select.or"), {:disabled => true}]
9
9
 
10
10
  if default_schedules.blank?
11
- if currently_selected_rule
11
+ if not currently_selected_rule.blank?
12
12
  options_array << blank_option if options[:allow_blank]
13
13
  options_array << ice_cube_rule_to_option(currently_selected_rule)
14
14
  options_array << separator
@@ -24,7 +24,7 @@ module RecurringSelectHelper
24
24
  ice_cube_rule_to_option(dc)
25
25
  }
26
26
 
27
- if currently_selected_rule and not current_rule_in_defaults?(currently_selected_rule, default_schedules)
27
+ if not currently_selected_rule.blank? and not current_rule_in_defaults?(currently_selected_rule, default_schedules)
28
28
  options_array << ice_cube_rule_to_option(currently_selected_rule, true)
29
29
  custom_label = [I18n.t("recurring_select.new_custom_schedule"), "custom"]
30
30
  else
@@ -11,7 +11,7 @@ module RecurringSelect
11
11
  params = JSON.parse(params)
12
12
  end
13
13
 
14
- params.symbolize_keys!
14
+ params = params.symbolize_keys
15
15
  rules_hash = filter_params(params)
16
16
 
17
17
  IceCube::Rule.from_hash(rules_hash)
@@ -1,3 +1,3 @@
1
1
  module RecurringSelect
2
- VERSION = "1.2.1.rc1"
2
+ VERSION = "1.2.1.rc2"
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurring_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1.rc1
5
- prerelease: 6
4
+ version: 1.2.1.rc2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jobber
@@ -11,166 +10,146 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-08-07 00:00:00.000000000 Z
13
+ date: 2013-10-30 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rails
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ! '>='
19
+ - - '>='
22
20
  - !ruby/object:Gem::Version
23
21
  version: '3.2'
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ! '>='
26
+ - - '>='
30
27
  - !ruby/object:Gem::Version
31
28
  version: '3.2'
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: jquery-rails
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
- - - ! '>='
33
+ - - '>='
38
34
  - !ruby/object:Gem::Version
39
35
  version: '3.0'
40
36
  type: :runtime
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
- - - ! '>='
40
+ - - '>='
46
41
  - !ruby/object:Gem::Version
47
42
  version: '3.0'
48
43
  - !ruby/object:Gem::Dependency
49
44
  name: ice_cube
50
45
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
46
  requirements:
53
- - - ! '>='
47
+ - - '>='
54
48
  - !ruby/object:Gem::Version
55
49
  version: '0.11'
56
50
  type: :runtime
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
53
  requirements:
61
- - - ! '>='
54
+ - - '>='
62
55
  - !ruby/object:Gem::Version
63
56
  version: '0.11'
64
57
  - !ruby/object:Gem::Dependency
65
58
  name: sass-rails
66
59
  requirement: !ruby/object:Gem::Requirement
67
- none: false
68
60
  requirements:
69
- - - ! '>='
61
+ - - '>='
70
62
  - !ruby/object:Gem::Version
71
63
  version: '3.1'
72
64
  type: :runtime
73
65
  prerelease: false
74
66
  version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
67
  requirements:
77
- - - ! '>='
68
+ - - '>='
78
69
  - !ruby/object:Gem::Version
79
70
  version: '3.1'
80
71
  - !ruby/object:Gem::Dependency
81
72
  name: coffee-rails
82
73
  requirement: !ruby/object:Gem::Requirement
83
- none: false
84
74
  requirements:
85
- - - ! '>='
75
+ - - '>='
86
76
  - !ruby/object:Gem::Version
87
77
  version: '3.1'
88
78
  type: :runtime
89
79
  prerelease: false
90
80
  version_requirements: !ruby/object:Gem::Requirement
91
- none: false
92
81
  requirements:
93
- - - ! '>='
82
+ - - '>='
94
83
  - !ruby/object:Gem::Version
95
84
  version: '3.1'
96
85
  - !ruby/object:Gem::Dependency
97
86
  name: appraisal
98
87
  requirement: !ruby/object:Gem::Requirement
99
- none: false
100
88
  requirements:
101
- - - ! '>='
89
+ - - '>='
102
90
  - !ruby/object:Gem::Version
103
91
  version: 0.5.2
104
92
  type: :development
105
93
  prerelease: false
106
94
  version_requirements: !ruby/object:Gem::Requirement
107
- none: false
108
95
  requirements:
109
- - - ! '>='
96
+ - - '>='
110
97
  - !ruby/object:Gem::Version
111
98
  version: 0.5.2
112
99
  - !ruby/object:Gem::Dependency
113
100
  name: bundler
114
101
  requirement: !ruby/object:Gem::Requirement
115
- none: false
116
102
  requirements:
117
- - - ! '>='
103
+ - - '>='
118
104
  - !ruby/object:Gem::Version
119
105
  version: 1.3.5
120
106
  type: :development
121
107
  prerelease: false
122
108
  version_requirements: !ruby/object:Gem::Requirement
123
- none: false
124
109
  requirements:
125
- - - ! '>='
110
+ - - '>='
126
111
  - !ruby/object:Gem::Version
127
112
  version: 1.3.5
128
113
  - !ruby/object:Gem::Dependency
129
114
  name: rspec-rails
130
115
  requirement: !ruby/object:Gem::Requirement
131
- none: false
132
116
  requirements:
133
- - - ! '>='
117
+ - - '>='
134
118
  - !ruby/object:Gem::Version
135
119
  version: '2.14'
136
120
  type: :development
137
121
  prerelease: false
138
122
  version_requirements: !ruby/object:Gem::Requirement
139
- none: false
140
123
  requirements:
141
- - - ! '>='
124
+ - - '>='
142
125
  - !ruby/object:Gem::Version
143
126
  version: '2.14'
144
127
  - !ruby/object:Gem::Dependency
145
128
  name: rspec
146
129
  requirement: !ruby/object:Gem::Requirement
147
- none: false
148
130
  requirements:
149
- - - ! '>='
131
+ - - '>='
150
132
  - !ruby/object:Gem::Version
151
133
  version: '2.14'
152
134
  type: :development
153
135
  prerelease: false
154
136
  version_requirements: !ruby/object:Gem::Requirement
155
- none: false
156
137
  requirements:
157
- - - ! '>='
138
+ - - '>='
158
139
  - !ruby/object:Gem::Version
159
140
  version: '2.14'
160
141
  - !ruby/object:Gem::Dependency
161
142
  name: rake
162
143
  requirement: !ruby/object:Gem::Requirement
163
- none: false
164
144
  requirements:
165
- - - ! '>='
145
+ - - '>='
166
146
  - !ruby/object:Gem::Version
167
147
  version: 0.9.6
168
148
  type: :development
169
149
  prerelease: false
170
150
  version_requirements: !ruby/object:Gem::Requirement
171
- none: false
172
151
  requirements:
173
- - - ! '>='
152
+ - - '>='
174
153
  - !ruby/object:Gem::Version
175
154
  version: 0.9.6
176
155
  description: This gem provides a useful interface for creating recurring rules for
@@ -205,27 +184,26 @@ files:
205
184
  - README.md
206
185
  homepage: http://github.com/getjobber/recurring_select
207
186
  licenses: []
187
+ metadata: {}
208
188
  post_install_message:
209
189
  rdoc_options: []
210
190
  require_paths:
211
191
  - lib
212
192
  required_ruby_version: !ruby/object:Gem::Requirement
213
- none: false
214
193
  requirements:
215
- - - ! '>='
194
+ - - '>='
216
195
  - !ruby/object:Gem::Version
217
196
  version: '0'
218
197
  required_rubygems_version: !ruby/object:Gem::Requirement
219
- none: false
220
198
  requirements:
221
- - - ! '>'
199
+ - - '>'
222
200
  - !ruby/object:Gem::Version
223
201
  version: 1.3.1
224
202
  requirements: []
225
203
  rubyforge_project:
226
- rubygems_version: 1.8.25
204
+ rubygems_version: 2.0.3
227
205
  signing_key:
228
- specification_version: 3
206
+ specification_version: 4
229
207
  summary: A select helper which gives you magical powers to generate ice_cube rules.
230
208
  test_files: []
231
209
  has_rdoc: