combo_box 0.0.11 → 0.0.12
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/VERSION +1 -1
- data/lib/combo_box/generator.rb +2 -2
- metadata +7 -18
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.12
|
data/lib/combo_box/generator.rb
CHANGED
|
@@ -116,8 +116,8 @@ module ComboBox
|
|
|
116
116
|
initial_conditions = query.join(' AND ').inspect+parameters
|
|
117
117
|
elsif @options[:conditions].is_a? String
|
|
118
118
|
initial_conditions = "("+@options[:conditions].gsub(/\s*\n\s*/, ';')+")"
|
|
119
|
-
|
|
120
|
-
raise ArgumentError.new("Option :conditions can be a Hash, an Array or String")
|
|
119
|
+
elsif !@options[:conditions].blank?
|
|
120
|
+
raise ArgumentError.new("Option :conditions can be a Hash, an Array or String (not #{@options[:conditions].class}:#{@options[:conditions].inspect})")
|
|
121
121
|
end
|
|
122
122
|
|
|
123
123
|
code = ""
|
metadata
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: combo_box
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
5
|
-
MC4wLjEx
|
|
4
|
+
version: 0.0.12
|
|
6
5
|
prerelease:
|
|
7
6
|
platform: ruby
|
|
8
7
|
authors:
|
|
@@ -10,11 +9,11 @@ authors:
|
|
|
10
9
|
autorequire:
|
|
11
10
|
bindir: bin
|
|
12
11
|
cert_chain: []
|
|
13
|
-
date: 2012-
|
|
12
|
+
date: 2012-09-25 00:00:00.000000000Z
|
|
14
13
|
dependencies:
|
|
15
14
|
- !ruby/object:Gem::Dependency
|
|
16
15
|
name: rails
|
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirement: &17093800 !ruby/object:Gem::Requirement
|
|
18
17
|
none: false
|
|
19
18
|
requirements:
|
|
20
19
|
- - ! '>='
|
|
@@ -22,15 +21,10 @@ dependencies:
|
|
|
22
21
|
version: '3.1'
|
|
23
22
|
type: :runtime
|
|
24
23
|
prerelease: false
|
|
25
|
-
version_requirements:
|
|
26
|
-
none: false
|
|
27
|
-
requirements:
|
|
28
|
-
- - ! '>='
|
|
29
|
-
- !ruby/object:Gem::Version
|
|
30
|
-
version: '3.1'
|
|
24
|
+
version_requirements: *17093800
|
|
31
25
|
- !ruby/object:Gem::Dependency
|
|
32
26
|
name: jquery-rails
|
|
33
|
-
requirement: !ruby/object:Gem::Requirement
|
|
27
|
+
requirement: &17093320 !ruby/object:Gem::Requirement
|
|
34
28
|
none: false
|
|
35
29
|
requirements:
|
|
36
30
|
- - ! '>='
|
|
@@ -38,12 +32,7 @@ dependencies:
|
|
|
38
32
|
version: '0'
|
|
39
33
|
type: :runtime
|
|
40
34
|
prerelease: false
|
|
41
|
-
version_requirements:
|
|
42
|
-
none: false
|
|
43
|
-
requirements:
|
|
44
|
-
- - ! '>='
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: '0'
|
|
35
|
+
version_requirements: *17093320
|
|
47
36
|
description: Adds helpers for Rails views and controller in order to manage 'dynamic
|
|
48
37
|
select'. It uses jQuery UI as support for inobtrusive use in forms. It's not the
|
|
49
38
|
classic Autocompleter, its use is limited to belongs_to reflections.
|
|
@@ -89,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
89
78
|
version: '0'
|
|
90
79
|
requirements: []
|
|
91
80
|
rubyforge_project:
|
|
92
|
-
rubygems_version: 1.8.
|
|
81
|
+
rubygems_version: 1.8.10
|
|
93
82
|
signing_key:
|
|
94
83
|
specification_version: 3
|
|
95
84
|
summary: Adds the combo_box control in Rails 3 based on jQuery UI
|