formbuilder-rb 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/app/controllers/formbuilder/concerns/forms_controller.rb +6 -4
- data/app/models/formbuilder/response_field_price.rb +12 -1
- data/app/uploaders/formbuilder/entry_attachment_uploader.rb +1 -11
- data/formbuilder-rb.gemspec +18 -18
- data/lib/formbuilder/version.rb +1 -1
- data/spec/lib/formbuilder/entry_validator_spec.rb +3 -1
- data/spec/models/formbuilder/response_field_price_spec.rb +30 -0
- data/spec/spec_helper.rb +15 -0
- metadata +150 -41
- data/Gemfile.lock +0 -219
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c0e7332e5192486eba8a19a38daf9b0e07208c1
|
4
|
+
data.tar.gz: 2879864254ebc572bc853dbe30a512e94a816f7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 841ffe680ffa1447a9a2d0d787966ed2d40f953816c14cd8f1d5f28fc81b9326ae46733b89818985f5c1b5d0fc510225774f18b4f0f3350eb113c8c4eeea136b
|
7
|
+
data.tar.gz: ef0b44e0f232d585520fcd867c6788d0f5581d7162d9ea48abbe6d74deaa3f3bb921b6af775a587b2d7858d98835d6a8655cfefec56b6cb36d93c3a199515a39
|
data/.gitignore
CHANGED
@@ -14,10 +14,7 @@ module Formbuilder
|
|
14
14
|
cids = {}
|
15
15
|
|
16
16
|
(params[:fields] || []).each_with_index do |field_params, i|
|
17
|
-
response_field = field_params[:id]
|
18
|
-
@form.response_fields.find { |rf| rf.id == field_params[:id].to_i } :
|
19
|
-
@form.response_fields.build
|
20
|
-
|
17
|
+
response_field = get_or_build_field(field_params[:id])
|
21
18
|
response_field.update_attributes(transformed_field_params(field_params, i))
|
22
19
|
cids[response_field.id] = field_params[:cid]
|
23
20
|
existing_response_field_ids.push response_field.id
|
@@ -42,6 +39,11 @@ module Formbuilder
|
|
42
39
|
@form = Formbuilder::Form.find(params[:id])
|
43
40
|
end
|
44
41
|
|
42
|
+
def get_or_build_field(id_param)
|
43
|
+
(id_param.present? && @form.response_fields.find { |rf| rf.id == id_param.to_i }) ||
|
44
|
+
@form.response_fields.build
|
45
|
+
end
|
46
|
+
|
45
47
|
def transformed_field_params(field_params, i)
|
46
48
|
filtered_params = field_params.select { |k, _|
|
47
49
|
k.to_sym.in?(Formbuilder::ResponseField::ALLOWED_PARAMS)
|
@@ -9,7 +9,9 @@ module Formbuilder
|
|
9
9
|
}
|
10
10
|
|
11
11
|
def render_input(value, opts = {})
|
12
|
-
|
12
|
+
value ||= {}
|
13
|
+
|
14
|
+
str = """
|
13
15
|
<div class='input-line'>
|
14
16
|
<span class='above-line'>$</span>
|
15
17
|
|
@@ -17,15 +19,24 @@ module Formbuilder
|
|
17
19
|
<input type='text' name='response_fields[#{self[:id]}][dollars]' id='response_fields_#{self[:id]}' value='#{value['dollars']}' />
|
18
20
|
<label>Dollars</label>
|
19
21
|
</span>
|
22
|
+
"""
|
20
23
|
|
24
|
+
unless self.field_options['disable_cents']
|
25
|
+
str += """
|
21
26
|
<span class='above-line'>.</span>
|
22
27
|
|
23
28
|
<span class='cents'>
|
24
29
|
<input type='text' name='response_fields[#{self[:id]}][cents]' value='#{value['cents']}' maxlength='2' />
|
25
30
|
<label>Cents</label>
|
26
31
|
</span>
|
32
|
+
"""
|
33
|
+
end
|
34
|
+
|
35
|
+
str += """
|
27
36
|
</div>
|
28
37
|
"""
|
38
|
+
|
39
|
+
str
|
29
40
|
end
|
30
41
|
|
31
42
|
def render_entry(value, opts = {})
|
@@ -1,12 +1,10 @@
|
|
1
1
|
require 'carrierwave/processing/mime_types'
|
2
2
|
|
3
3
|
module Formbuilder
|
4
|
-
class EntryAttachmentUploader <
|
4
|
+
class EntryAttachmentUploader < ::BaseUploader
|
5
5
|
include CarrierWave::MimeTypes
|
6
6
|
include CarrierWave::RMagick
|
7
7
|
|
8
|
-
@fog_public = false
|
9
|
-
|
10
8
|
process :set_content_type
|
11
9
|
process :save_content_type_and_size_in_model
|
12
10
|
|
@@ -14,14 +12,6 @@ module Formbuilder
|
|
14
12
|
process resize_to_limit: [250, 250]
|
15
13
|
end
|
16
14
|
|
17
|
-
def store_dir
|
18
|
-
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
19
|
-
end
|
20
|
-
|
21
|
-
def raw_filename
|
22
|
-
@model.read_attribute(:upload)
|
23
|
-
end
|
24
|
-
|
25
15
|
protected
|
26
16
|
def image?(file)
|
27
17
|
content_type = file.try(:content_type) || model.try(:content_type)
|
data/formbuilder-rb.gemspec
CHANGED
@@ -17,25 +17,25 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.files = `git ls-files`.split("\n")
|
18
18
|
s.test_files = `git ls-files -- {features,spec}/*`.split("\n")
|
19
19
|
|
20
|
-
s.add_dependency "rails",
|
20
|
+
s.add_dependency "rails", '~> 4.0', '>= 4.0.0'
|
21
21
|
|
22
|
-
s.add_dependency 'carrierwave'
|
23
|
-
s.add_dependency 'erector-rails4'
|
24
|
-
s.add_dependency 'geocoder'
|
25
|
-
s.add_dependency 'pg'
|
26
|
-
s.add_dependency 'rinku'
|
27
|
-
s.add_dependency 'rmagick'
|
22
|
+
s.add_dependency 'carrierwave', '~> 0.10', '>= 0.10.0'
|
23
|
+
s.add_dependency 'erector-rails4', '~> 0.1', '>= 0.1.0'
|
24
|
+
s.add_dependency 'geocoder', '~> 1.1', '>= 1.1.9'
|
25
|
+
s.add_dependency 'pg', '~> 0.17', '>= 0.17.1'
|
26
|
+
s.add_dependency 'rinku', '~> 1.7', '>= 1.7.3'
|
27
|
+
s.add_dependency 'rmagick', '~> 2.13', '>= 2.13.2'
|
28
28
|
|
29
|
-
s.add_development_dependency 'capybara'
|
30
|
-
s.add_development_dependency 'database_cleaner'
|
31
|
-
s.add_development_dependency 'factory_girl_rails'
|
32
|
-
s.add_development_dependency 'guard-rspec'
|
33
|
-
s.add_development_dependency 'launchy'
|
34
|
-
s.add_development_dependency 'rspec-rails'
|
35
|
-
s.add_development_dependency 'spring'
|
36
|
-
s.add_development_dependency 'spring-commands-rspec'
|
37
|
-
s.add_development_dependency 'terminal-notifier-guard'
|
38
|
-
s.add_development_dependency 'thin'
|
39
|
-
s.add_development_dependency 'coveralls'
|
29
|
+
s.add_development_dependency 'capybara', '~> 2.2', '>= 2.2.1'
|
30
|
+
s.add_development_dependency 'database_cleaner', '~> 1.2', '>= 1.2.0'
|
31
|
+
s.add_development_dependency 'factory_girl_rails', '~> 4.4', '>= 4.4.1'
|
32
|
+
s.add_development_dependency 'guard-rspec', '~> 4.2', '>= 4.2.8'
|
33
|
+
s.add_development_dependency 'launchy', '~> 2.4', '>= 2.4.2'
|
34
|
+
s.add_development_dependency 'rspec-rails', '~> 2.14', '>= 2.14.1'
|
35
|
+
s.add_development_dependency 'spring', '~> 1.1', '>= 1.1.2'
|
36
|
+
s.add_development_dependency 'spring-commands-rspec', '~> 1.0', '>= 1.0.1'
|
37
|
+
s.add_development_dependency 'terminal-notifier-guard', '~> 1.5', '>= 1.5.3'
|
38
|
+
s.add_development_dependency 'thin', '~> 1.6', '>= 1.6.2'
|
39
|
+
s.add_development_dependency 'coveralls', '~> 0.7', '>= 0.7.0'
|
40
40
|
|
41
41
|
end
|
data/lib/formbuilder/version.rb
CHANGED
@@ -180,7 +180,9 @@ describe Formbuilder::EntryValidator do
|
|
180
180
|
entry.should be_valid
|
181
181
|
entry.save_response({ 'cents' => '1a' }, field)
|
182
182
|
entry.should_not be_valid
|
183
|
-
entry.save_response({ 'cents' => '1' }, field)
|
183
|
+
entry.save_response({ 'cents' => '1', 'dollars' => '' }, field)
|
184
|
+
entry.should be_valid
|
185
|
+
entry.save_response({ 'dollars' => '1', 'cents' => '' }, field)
|
184
186
|
entry.should be_valid
|
185
187
|
entry.save_response({ 'dollars' => '3a', 'cents' => '1' }, field)
|
186
188
|
entry.should_not be_valid
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Formbuilder::ResponseFieldPrice do
|
4
|
+
|
5
|
+
let!(:form) { Formbuilder::Form.create }
|
6
|
+
let!(:response_field) { Formbuilder::ResponseFieldPrice.create(form: form) }
|
7
|
+
let!(:entry) { Entry.create(form: form) }
|
8
|
+
|
9
|
+
subject { response_field }
|
10
|
+
subject(:rf) { response_field }
|
11
|
+
|
12
|
+
describe '#render_input' do
|
13
|
+
it 'renders properly' do
|
14
|
+
rendered_html = rf.render_input(nil)
|
15
|
+
expect(rendered_html).to match 'Dollars'
|
16
|
+
expect(rendered_html).to match 'Cents'
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'with cents field disabled' do
|
20
|
+
before { rf.update_attributes(field_options: { 'disable_cents' => true } )}
|
21
|
+
|
22
|
+
it 'does not render the cents field' do
|
23
|
+
rendered_html = rf.render_input(nil)
|
24
|
+
expect(rendered_html).to match 'Dollars'
|
25
|
+
expect(rendered_html).to_not match 'Cents'
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -23,3 +23,18 @@ Dir[Rails.root.join("../../spec/support/**/*.rb")].each {|f| require f}
|
|
23
23
|
RSpec.configure do |config|
|
24
24
|
config.order = "random"
|
25
25
|
end
|
26
|
+
|
27
|
+
class BaseUploader < CarrierWave::Uploader::Base
|
28
|
+
|
29
|
+
@fog_public = false
|
30
|
+
|
31
|
+
def store_dir
|
32
|
+
digest = Digest::SHA2.hexdigest("#{model.class.to_s.underscore}-#{mounted_as}-#{model.id.to_s}").first(32)
|
33
|
+
"uploads/#{digest}"
|
34
|
+
end
|
35
|
+
|
36
|
+
def raw_filename
|
37
|
+
@model.read_attribute(:upload)
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
metadata
CHANGED
@@ -1,267 +1,375 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formbuilder-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Becker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.
|
19
|
+
version: '4.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 4.0.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.
|
29
|
+
version: '4.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 4.0.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: carrierwave
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0.10'
|
31
40
|
- - ">="
|
32
41
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
42
|
+
version: 0.10.0
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.10'
|
38
50
|
- - ">="
|
39
51
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
52
|
+
version: 0.10.0
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: erector-rails4
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0.1'
|
45
60
|
- - ">="
|
46
61
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
62
|
+
version: 0.1.0
|
48
63
|
type: :runtime
|
49
64
|
prerelease: false
|
50
65
|
version_requirements: !ruby/object:Gem::Requirement
|
51
66
|
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.1'
|
52
70
|
- - ">="
|
53
71
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
72
|
+
version: 0.1.0
|
55
73
|
- !ruby/object:Gem::Dependency
|
56
74
|
name: geocoder
|
57
75
|
requirement: !ruby/object:Gem::Requirement
|
58
76
|
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '1.1'
|
59
80
|
- - ">="
|
60
81
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
82
|
+
version: 1.1.9
|
62
83
|
type: :runtime
|
63
84
|
prerelease: false
|
64
85
|
version_requirements: !ruby/object:Gem::Requirement
|
65
86
|
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.1'
|
66
90
|
- - ">="
|
67
91
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
92
|
+
version: 1.1.9
|
69
93
|
- !ruby/object:Gem::Dependency
|
70
94
|
name: pg
|
71
95
|
requirement: !ruby/object:Gem::Requirement
|
72
96
|
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0.17'
|
73
100
|
- - ">="
|
74
101
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
102
|
+
version: 0.17.1
|
76
103
|
type: :runtime
|
77
104
|
prerelease: false
|
78
105
|
version_requirements: !ruby/object:Gem::Requirement
|
79
106
|
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0.17'
|
80
110
|
- - ">="
|
81
111
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
112
|
+
version: 0.17.1
|
83
113
|
- !ruby/object:Gem::Dependency
|
84
114
|
name: rinku
|
85
115
|
requirement: !ruby/object:Gem::Requirement
|
86
116
|
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '1.7'
|
87
120
|
- - ">="
|
88
121
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
122
|
+
version: 1.7.3
|
90
123
|
type: :runtime
|
91
124
|
prerelease: false
|
92
125
|
version_requirements: !ruby/object:Gem::Requirement
|
93
126
|
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '1.7'
|
94
130
|
- - ">="
|
95
131
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
132
|
+
version: 1.7.3
|
97
133
|
- !ruby/object:Gem::Dependency
|
98
134
|
name: rmagick
|
99
135
|
requirement: !ruby/object:Gem::Requirement
|
100
136
|
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '2.13'
|
101
140
|
- - ">="
|
102
141
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
142
|
+
version: 2.13.2
|
104
143
|
type: :runtime
|
105
144
|
prerelease: false
|
106
145
|
version_requirements: !ruby/object:Gem::Requirement
|
107
146
|
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '2.13'
|
108
150
|
- - ">="
|
109
151
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
152
|
+
version: 2.13.2
|
111
153
|
- !ruby/object:Gem::Dependency
|
112
154
|
name: capybara
|
113
155
|
requirement: !ruby/object:Gem::Requirement
|
114
156
|
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '2.2'
|
115
160
|
- - ">="
|
116
161
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
162
|
+
version: 2.2.1
|
118
163
|
type: :development
|
119
164
|
prerelease: false
|
120
165
|
version_requirements: !ruby/object:Gem::Requirement
|
121
166
|
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '2.2'
|
122
170
|
- - ">="
|
123
171
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
172
|
+
version: 2.2.1
|
125
173
|
- !ruby/object:Gem::Dependency
|
126
174
|
name: database_cleaner
|
127
175
|
requirement: !ruby/object:Gem::Requirement
|
128
176
|
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '1.2'
|
129
180
|
- - ">="
|
130
181
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
182
|
+
version: 1.2.0
|
132
183
|
type: :development
|
133
184
|
prerelease: false
|
134
185
|
version_requirements: !ruby/object:Gem::Requirement
|
135
186
|
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '1.2'
|
136
190
|
- - ">="
|
137
191
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
192
|
+
version: 1.2.0
|
139
193
|
- !ruby/object:Gem::Dependency
|
140
194
|
name: factory_girl_rails
|
141
195
|
requirement: !ruby/object:Gem::Requirement
|
142
196
|
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '4.4'
|
143
200
|
- - ">="
|
144
201
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
202
|
+
version: 4.4.1
|
146
203
|
type: :development
|
147
204
|
prerelease: false
|
148
205
|
version_requirements: !ruby/object:Gem::Requirement
|
149
206
|
requirements:
|
207
|
+
- - "~>"
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '4.4'
|
150
210
|
- - ">="
|
151
211
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
212
|
+
version: 4.4.1
|
153
213
|
- !ruby/object:Gem::Dependency
|
154
214
|
name: guard-rspec
|
155
215
|
requirement: !ruby/object:Gem::Requirement
|
156
216
|
requirements:
|
217
|
+
- - "~>"
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: '4.2'
|
157
220
|
- - ">="
|
158
221
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
222
|
+
version: 4.2.8
|
160
223
|
type: :development
|
161
224
|
prerelease: false
|
162
225
|
version_requirements: !ruby/object:Gem::Requirement
|
163
226
|
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '4.2'
|
164
230
|
- - ">="
|
165
231
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
232
|
+
version: 4.2.8
|
167
233
|
- !ruby/object:Gem::Dependency
|
168
234
|
name: launchy
|
169
235
|
requirement: !ruby/object:Gem::Requirement
|
170
236
|
requirements:
|
237
|
+
- - "~>"
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: '2.4'
|
171
240
|
- - ">="
|
172
241
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
242
|
+
version: 2.4.2
|
174
243
|
type: :development
|
175
244
|
prerelease: false
|
176
245
|
version_requirements: !ruby/object:Gem::Requirement
|
177
246
|
requirements:
|
247
|
+
- - "~>"
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '2.4'
|
178
250
|
- - ">="
|
179
251
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
252
|
+
version: 2.4.2
|
181
253
|
- !ruby/object:Gem::Dependency
|
182
254
|
name: rspec-rails
|
183
255
|
requirement: !ruby/object:Gem::Requirement
|
184
256
|
requirements:
|
257
|
+
- - "~>"
|
258
|
+
- !ruby/object:Gem::Version
|
259
|
+
version: '2.14'
|
185
260
|
- - ">="
|
186
261
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
262
|
+
version: 2.14.1
|
188
263
|
type: :development
|
189
264
|
prerelease: false
|
190
265
|
version_requirements: !ruby/object:Gem::Requirement
|
191
266
|
requirements:
|
267
|
+
- - "~>"
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '2.14'
|
192
270
|
- - ">="
|
193
271
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
272
|
+
version: 2.14.1
|
195
273
|
- !ruby/object:Gem::Dependency
|
196
274
|
name: spring
|
197
275
|
requirement: !ruby/object:Gem::Requirement
|
198
276
|
requirements:
|
277
|
+
- - "~>"
|
278
|
+
- !ruby/object:Gem::Version
|
279
|
+
version: '1.1'
|
199
280
|
- - ">="
|
200
281
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
282
|
+
version: 1.1.2
|
202
283
|
type: :development
|
203
284
|
prerelease: false
|
204
285
|
version_requirements: !ruby/object:Gem::Requirement
|
205
286
|
requirements:
|
287
|
+
- - "~>"
|
288
|
+
- !ruby/object:Gem::Version
|
289
|
+
version: '1.1'
|
206
290
|
- - ">="
|
207
291
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
292
|
+
version: 1.1.2
|
209
293
|
- !ruby/object:Gem::Dependency
|
210
294
|
name: spring-commands-rspec
|
211
295
|
requirement: !ruby/object:Gem::Requirement
|
212
296
|
requirements:
|
297
|
+
- - "~>"
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '1.0'
|
213
300
|
- - ">="
|
214
301
|
- !ruby/object:Gem::Version
|
215
|
-
version:
|
302
|
+
version: 1.0.1
|
216
303
|
type: :development
|
217
304
|
prerelease: false
|
218
305
|
version_requirements: !ruby/object:Gem::Requirement
|
219
306
|
requirements:
|
307
|
+
- - "~>"
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
version: '1.0'
|
220
310
|
- - ">="
|
221
311
|
- !ruby/object:Gem::Version
|
222
|
-
version:
|
312
|
+
version: 1.0.1
|
223
313
|
- !ruby/object:Gem::Dependency
|
224
314
|
name: terminal-notifier-guard
|
225
315
|
requirement: !ruby/object:Gem::Requirement
|
226
316
|
requirements:
|
317
|
+
- - "~>"
|
318
|
+
- !ruby/object:Gem::Version
|
319
|
+
version: '1.5'
|
227
320
|
- - ">="
|
228
321
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
322
|
+
version: 1.5.3
|
230
323
|
type: :development
|
231
324
|
prerelease: false
|
232
325
|
version_requirements: !ruby/object:Gem::Requirement
|
233
326
|
requirements:
|
327
|
+
- - "~>"
|
328
|
+
- !ruby/object:Gem::Version
|
329
|
+
version: '1.5'
|
234
330
|
- - ">="
|
235
331
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
332
|
+
version: 1.5.3
|
237
333
|
- !ruby/object:Gem::Dependency
|
238
334
|
name: thin
|
239
335
|
requirement: !ruby/object:Gem::Requirement
|
240
336
|
requirements:
|
337
|
+
- - "~>"
|
338
|
+
- !ruby/object:Gem::Version
|
339
|
+
version: '1.6'
|
241
340
|
- - ">="
|
242
341
|
- !ruby/object:Gem::Version
|
243
|
-
version:
|
342
|
+
version: 1.6.2
|
244
343
|
type: :development
|
245
344
|
prerelease: false
|
246
345
|
version_requirements: !ruby/object:Gem::Requirement
|
247
346
|
requirements:
|
347
|
+
- - "~>"
|
348
|
+
- !ruby/object:Gem::Version
|
349
|
+
version: '1.6'
|
248
350
|
- - ">="
|
249
351
|
- !ruby/object:Gem::Version
|
250
|
-
version:
|
352
|
+
version: 1.6.2
|
251
353
|
- !ruby/object:Gem::Dependency
|
252
354
|
name: coveralls
|
253
355
|
requirement: !ruby/object:Gem::Requirement
|
254
356
|
requirements:
|
357
|
+
- - "~>"
|
358
|
+
- !ruby/object:Gem::Version
|
359
|
+
version: '0.7'
|
255
360
|
- - ">="
|
256
361
|
- !ruby/object:Gem::Version
|
257
|
-
version:
|
362
|
+
version: 0.7.0
|
258
363
|
type: :development
|
259
364
|
prerelease: false
|
260
365
|
version_requirements: !ruby/object:Gem::Requirement
|
261
366
|
requirements:
|
367
|
+
- - "~>"
|
368
|
+
- !ruby/object:Gem::Version
|
369
|
+
version: '0.7'
|
262
370
|
- - ">="
|
263
371
|
- !ruby/object:Gem::Version
|
264
|
-
version:
|
372
|
+
version: 0.7.0
|
265
373
|
description: This is a Rails Engine for https://github.com/dobtco/formbuilder.
|
266
374
|
email:
|
267
375
|
- adam@dobt.co
|
@@ -274,7 +382,6 @@ files:
|
|
274
382
|
- ".ruby-gemset"
|
275
383
|
- ".ruby-version"
|
276
384
|
- Gemfile
|
277
|
-
- Gemfile.lock
|
278
385
|
- Guardfile
|
279
386
|
- LICENSE.md
|
280
387
|
- README.md
|
@@ -389,6 +496,7 @@ files:
|
|
389
496
|
- spec/models/formbuilder/response_field_checkboxes_spec.rb
|
390
497
|
- spec/models/formbuilder/response_field_file_spec.rb
|
391
498
|
- spec/models/formbuilder/response_field_paragraph_spec.rb
|
499
|
+
- spec/models/formbuilder/response_field_price_spec.rb
|
392
500
|
- spec/models/formbuilder/response_field_radio_spec.rb
|
393
501
|
- spec/models/formbuilder/response_field_spec.rb
|
394
502
|
- spec/models/formbuilder/response_field_table_spec.rb
|
@@ -492,6 +600,7 @@ test_files:
|
|
492
600
|
- spec/models/formbuilder/response_field_checkboxes_spec.rb
|
493
601
|
- spec/models/formbuilder/response_field_file_spec.rb
|
494
602
|
- spec/models/formbuilder/response_field_paragraph_spec.rb
|
603
|
+
- spec/models/formbuilder/response_field_price_spec.rb
|
495
604
|
- spec/models/formbuilder/response_field_radio_spec.rb
|
496
605
|
- spec/models/formbuilder/response_field_spec.rb
|
497
606
|
- spec/models/formbuilder/response_field_table_spec.rb
|
data/Gemfile.lock
DELETED
@@ -1,219 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
formbuilder-rb (0.2.1)
|
5
|
-
carrierwave
|
6
|
-
erector-rails4
|
7
|
-
geocoder
|
8
|
-
pg
|
9
|
-
rails (= 4.1.0.rc1)
|
10
|
-
rinku
|
11
|
-
rmagick
|
12
|
-
|
13
|
-
GEM
|
14
|
-
remote: https://rubygems.org/
|
15
|
-
specs:
|
16
|
-
actionmailer (4.1.0.rc1)
|
17
|
-
actionpack (= 4.1.0.rc1)
|
18
|
-
actionview (= 4.1.0.rc1)
|
19
|
-
mail (~> 2.5.4)
|
20
|
-
actionpack (4.1.0.rc1)
|
21
|
-
actionview (= 4.1.0.rc1)
|
22
|
-
activesupport (= 4.1.0.rc1)
|
23
|
-
rack (~> 1.5.2)
|
24
|
-
rack-test (~> 0.6.2)
|
25
|
-
actionview (4.1.0.rc1)
|
26
|
-
activesupport (= 4.1.0.rc1)
|
27
|
-
builder (~> 3.1)
|
28
|
-
erubis (~> 2.7.0)
|
29
|
-
activemodel (4.1.0.rc1)
|
30
|
-
activesupport (= 4.1.0.rc1)
|
31
|
-
builder (~> 3.1)
|
32
|
-
activerecord (4.1.0.rc1)
|
33
|
-
activemodel (= 4.1.0.rc1)
|
34
|
-
activesupport (= 4.1.0.rc1)
|
35
|
-
arel (~> 5.0.0)
|
36
|
-
activesupport (4.1.0.rc1)
|
37
|
-
i18n (~> 0.6, >= 0.6.9)
|
38
|
-
json (~> 1.7, >= 1.7.7)
|
39
|
-
minitest (~> 5.1)
|
40
|
-
thread_safe (~> 0.1)
|
41
|
-
tzinfo (~> 1.1)
|
42
|
-
addressable (2.3.5)
|
43
|
-
arel (5.0.0)
|
44
|
-
atomic (1.1.15)
|
45
|
-
builder (3.2.2)
|
46
|
-
capybara (2.2.1)
|
47
|
-
mime-types (>= 1.16)
|
48
|
-
nokogiri (>= 1.3.3)
|
49
|
-
rack (>= 1.0.0)
|
50
|
-
rack-test (>= 0.5.4)
|
51
|
-
xpath (~> 2.0)
|
52
|
-
carrierwave (0.10.0)
|
53
|
-
activemodel (>= 3.2.0)
|
54
|
-
activesupport (>= 3.2.0)
|
55
|
-
json (>= 1.7)
|
56
|
-
mime-types (>= 1.16)
|
57
|
-
celluloid (0.15.2)
|
58
|
-
timers (~> 1.1.0)
|
59
|
-
celluloid-io (0.15.0)
|
60
|
-
celluloid (>= 0.15.0)
|
61
|
-
nio4r (>= 0.5.0)
|
62
|
-
coderay (1.1.0)
|
63
|
-
coveralls (0.7.0)
|
64
|
-
multi_json (~> 1.3)
|
65
|
-
rest-client
|
66
|
-
simplecov (>= 0.7)
|
67
|
-
term-ansicolor
|
68
|
-
thor
|
69
|
-
daemons (1.1.9)
|
70
|
-
database_cleaner (1.2.0)
|
71
|
-
diff-lcs (1.2.5)
|
72
|
-
docile (1.1.3)
|
73
|
-
erector-rails4 (0.1.0)
|
74
|
-
rails (= 4.1.0.rc1)
|
75
|
-
treetop (>= 1.2.3)
|
76
|
-
erubis (2.7.0)
|
77
|
-
eventmachine (1.0.3)
|
78
|
-
factory_girl (4.4.0)
|
79
|
-
activesupport (>= 3.0.0)
|
80
|
-
factory_girl_rails (4.4.1)
|
81
|
-
factory_girl (~> 4.4.0)
|
82
|
-
railties (>= 3.0.0)
|
83
|
-
ffi (1.9.3)
|
84
|
-
formatador (0.2.4)
|
85
|
-
geocoder (1.1.9)
|
86
|
-
guard (2.5.1)
|
87
|
-
formatador (>= 0.2.4)
|
88
|
-
listen (~> 2.6)
|
89
|
-
lumberjack (~> 1.0)
|
90
|
-
pry (>= 0.9.12)
|
91
|
-
thor (>= 0.18.1)
|
92
|
-
guard-rspec (4.2.8)
|
93
|
-
guard (~> 2.1)
|
94
|
-
rspec (>= 2.14, < 4.0)
|
95
|
-
hike (1.2.3)
|
96
|
-
i18n (0.6.9)
|
97
|
-
json (1.8.1)
|
98
|
-
launchy (2.4.2)
|
99
|
-
addressable (~> 2.3)
|
100
|
-
listen (2.7.0)
|
101
|
-
celluloid (>= 0.15.2)
|
102
|
-
celluloid-io (>= 0.15.0)
|
103
|
-
rb-fsevent (>= 0.9.3)
|
104
|
-
rb-inotify (>= 0.9)
|
105
|
-
lumberjack (1.0.4)
|
106
|
-
mail (2.5.4)
|
107
|
-
mime-types (~> 1.16)
|
108
|
-
treetop (~> 1.4.8)
|
109
|
-
method_source (0.8.2)
|
110
|
-
mime-types (1.25.1)
|
111
|
-
mini_portile (0.5.2)
|
112
|
-
minitest (5.3.0)
|
113
|
-
multi_json (1.9.0)
|
114
|
-
nio4r (1.0.0)
|
115
|
-
nokogiri (1.6.1)
|
116
|
-
mini_portile (~> 0.5.0)
|
117
|
-
pg (0.17.1)
|
118
|
-
polyglot (0.3.4)
|
119
|
-
pry (0.9.12.6)
|
120
|
-
coderay (~> 1.0)
|
121
|
-
method_source (~> 0.8)
|
122
|
-
slop (~> 3.4)
|
123
|
-
rack (1.5.2)
|
124
|
-
rack-test (0.6.2)
|
125
|
-
rack (>= 1.0)
|
126
|
-
rails (4.1.0.rc1)
|
127
|
-
actionmailer (= 4.1.0.rc1)
|
128
|
-
actionpack (= 4.1.0.rc1)
|
129
|
-
actionview (= 4.1.0.rc1)
|
130
|
-
activemodel (= 4.1.0.rc1)
|
131
|
-
activerecord (= 4.1.0.rc1)
|
132
|
-
activesupport (= 4.1.0.rc1)
|
133
|
-
bundler (>= 1.3.0, < 2.0)
|
134
|
-
railties (= 4.1.0.rc1)
|
135
|
-
sprockets-rails (~> 2.0.0)
|
136
|
-
railties (4.1.0.rc1)
|
137
|
-
actionpack (= 4.1.0.rc1)
|
138
|
-
activesupport (= 4.1.0.rc1)
|
139
|
-
rake (>= 0.8.7)
|
140
|
-
thor (>= 0.18.1, < 2.0)
|
141
|
-
rake (10.1.1)
|
142
|
-
rb-fsevent (0.9.4)
|
143
|
-
rb-inotify (0.9.3)
|
144
|
-
ffi (>= 0.5.0)
|
145
|
-
rest-client (1.6.7)
|
146
|
-
mime-types (>= 1.16)
|
147
|
-
rinku (1.7.3)
|
148
|
-
rmagick (2.13.2)
|
149
|
-
rspec (2.14.1)
|
150
|
-
rspec-core (~> 2.14.0)
|
151
|
-
rspec-expectations (~> 2.14.0)
|
152
|
-
rspec-mocks (~> 2.14.0)
|
153
|
-
rspec-core (2.14.8)
|
154
|
-
rspec-expectations (2.14.5)
|
155
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
156
|
-
rspec-mocks (2.14.6)
|
157
|
-
rspec-rails (2.14.1)
|
158
|
-
actionpack (>= 3.0)
|
159
|
-
activemodel (>= 3.0)
|
160
|
-
activesupport (>= 3.0)
|
161
|
-
railties (>= 3.0)
|
162
|
-
rspec-core (~> 2.14.0)
|
163
|
-
rspec-expectations (~> 2.14.0)
|
164
|
-
rspec-mocks (~> 2.14.0)
|
165
|
-
simplecov (0.8.2)
|
166
|
-
docile (~> 1.1.0)
|
167
|
-
multi_json
|
168
|
-
simplecov-html (~> 0.8.0)
|
169
|
-
simplecov-html (0.8.0)
|
170
|
-
slop (3.4.7)
|
171
|
-
spring (1.1.2)
|
172
|
-
spring-commands-rspec (1.0.1)
|
173
|
-
spring (>= 0.9.1)
|
174
|
-
sprockets (2.11.0)
|
175
|
-
hike (~> 1.2)
|
176
|
-
multi_json (~> 1.0)
|
177
|
-
rack (~> 1.0)
|
178
|
-
tilt (~> 1.1, != 1.3.0)
|
179
|
-
sprockets-rails (2.0.1)
|
180
|
-
actionpack (>= 3.0)
|
181
|
-
activesupport (>= 3.0)
|
182
|
-
sprockets (~> 2.8)
|
183
|
-
term-ansicolor (1.3.0)
|
184
|
-
tins (~> 1.0)
|
185
|
-
terminal-notifier-guard (1.5.3)
|
186
|
-
thin (1.6.2)
|
187
|
-
daemons (>= 1.0.9)
|
188
|
-
eventmachine (>= 1.0.0)
|
189
|
-
rack (>= 1.0.0)
|
190
|
-
thor (0.18.1)
|
191
|
-
thread_safe (0.2.0)
|
192
|
-
atomic (>= 1.1.7, < 2)
|
193
|
-
tilt (1.4.1)
|
194
|
-
timers (1.1.0)
|
195
|
-
tins (1.0.0)
|
196
|
-
treetop (1.4.15)
|
197
|
-
polyglot
|
198
|
-
polyglot (>= 0.3.1)
|
199
|
-
tzinfo (1.1.0)
|
200
|
-
thread_safe (~> 0.1)
|
201
|
-
xpath (2.0.0)
|
202
|
-
nokogiri (~> 1.3)
|
203
|
-
|
204
|
-
PLATFORMS
|
205
|
-
ruby
|
206
|
-
|
207
|
-
DEPENDENCIES
|
208
|
-
capybara
|
209
|
-
coveralls
|
210
|
-
database_cleaner
|
211
|
-
factory_girl_rails
|
212
|
-
formbuilder-rb!
|
213
|
-
guard-rspec
|
214
|
-
launchy
|
215
|
-
rspec-rails
|
216
|
-
spring
|
217
|
-
spring-commands-rspec
|
218
|
-
terminal-notifier-guard
|
219
|
-
thin
|