nested_form_fields 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 57abcdb8b4408d843c9810db5dce0fd461b50b4b
4
- data.tar.gz: cad05e545399591ff6a2b01c84d17052d53f2c94
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NmMzMDYxNTUwODRjNjVjOTBkNmU0MmU4MDAyZTk5NDcyMmJhNjk2NQ==
5
+ data.tar.gz: !binary |-
6
+ Nzg2NGY1MDAzOTYxNmQxODlkNzIyODBmMjQ5MjAyZmU5M2MwMzdkNA==
5
7
  SHA512:
6
- metadata.gz: 4380ef9610420e557957ba9653f147a4150469a49a924273efcb0e09af0b9fc1c915d2122bcebdd45ad4707c8703db1a791c99c22f109df0bc0e9214d41bd662
7
- data.tar.gz: a2108745080ff7979a40fe5a12b8f6bf369a0b92176d92a2f165b8a8fe004faffc28188607ed476b0d9eecdcc17182d8042a0f7f93d00ab2ff22f9758409b922
8
+ metadata.gz: !binary |-
9
+ OTM2OTU3ODRhMTk1NjY1NjM4Zjc0MzZmOGViYmViNjEzMTQ0MGZiZjBmZjhj
10
+ ZjJkMmUyOWNlYzAzYmE1Mzk0NTU5NzcyNjhkMjMxNTEyMjBmZTk4OGYwNmIx
11
+ YjhmZjUwNzc2OGU0NjIzM2VhZjhjZmYzMGIyYTRjMDFlZGM4ODg=
12
+ data.tar.gz: !binary |-
13
+ Mzg4YTA5YWRmNjMxNThmNDIxY2FhMmRiNDhlM2UyMjZmNzcyODljNmJiMWM4
14
+ MzJhMmY4NmMxYTBkZDE3MjU1ZjE4YzA3MzIxZDhmYjI0MDdjNzUyNWY2MWQ0
15
+ MzMzYjVmZWI4NTQyZDc5NGNiYmFlNjRmMzU4MTU2YmZkYTJjMDA=
@@ -1,3 +1,3 @@
1
1
  module NestedFormFields
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -26,6 +26,7 @@ Gem::Specification.new do |gem|
26
26
  gem.add_development_dependency 'selenium-webdriver', '>= 2.32.1'
27
27
  gem.add_development_dependency 'sqlite3'
28
28
  gem.add_development_dependency 'haml', '>= 3.1.5'
29
+ gem.add_development_dependency 'haml-rails'
29
30
  gem.add_development_dependency 'sass-rails', '~> 3.2.3'
30
31
  gem.add_development_dependency 'coffee-rails', '~> 3.2.1'
31
32
  end
@@ -9,6 +9,8 @@ require "sprockets/railtie"
9
9
  # require "rails/test_unit/railtie"
10
10
 
11
11
  require 'jquery-rails'
12
+ require 'haml'
13
+ require "haml-rails"
12
14
 
13
15
  Bundler.require
14
16
  require "nested_form_fields"
Binary file
@@ -35,6 +35,7 @@ nested_form_fields.bind_nested_forms_links = () ->
35
35
  $nested_fields_container = $link.parents(".nested_fields").first()
36
36
  $nested_fields_container.before "<input type='hidden' name='#{delete_association_field_name}' value='1' />"
37
37
  $nested_fields_container.hide()
38
+ $nested_fields_container.find('input[required]:hidden').removeAttr('required')
38
39
  $.event.trigger("fields_removed.nested_form_fields",{object_class: object_class});
39
40
  false
40
41
 
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nested_form_fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Ritsche
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-28 00:00:00.000000000 Z
11
+ date: 2014-07-23 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
19
  version: 3.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jquery-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
@@ -56,72 +56,86 @@ dependencies:
56
56
  name: assert_difference
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: capybara
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: selenium-webdriver
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: 2.32.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: 2.32.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sqlite3
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: haml
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: 3.1.5
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ! '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: 3.1.5
125
+ - !ruby/object:Gem::Dependency
126
+ name: haml-rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: sass-rails
127
141
  requirement: !ruby/object:Gem::Requirement
@@ -150,9 +164,9 @@ dependencies:
150
164
  - - ~>
151
165
  - !ruby/object:Gem::Version
152
166
  version: 3.2.1
153
- description: |-
154
- Rails gem for dynamically adding and removing nested has_many association fields in a form.
155
- Uses jQuery and supports multiple nesting levels. Requires Ruby 1.9 and the asset pipeline.
167
+ description: ! "Rails gem for dynamically adding and removing nested has_many association
168
+ fields in a form.\n Uses jQuery and supports multiple nesting
169
+ levels. Requires Ruby 1.9 and the asset pipeline."
156
170
  email:
157
171
  - ncrdevmail@gmail.com
158
172
  executables: []
@@ -228,17 +242,17 @@ require_paths:
228
242
  - lib
229
243
  required_ruby_version: !ruby/object:Gem::Requirement
230
244
  requirements:
231
- - - '>='
245
+ - - ! '>='
232
246
  - !ruby/object:Gem::Version
233
247
  version: '0'
234
248
  required_rubygems_version: !ruby/object:Gem::Requirement
235
249
  requirements:
236
- - - '>='
250
+ - - ! '>='
237
251
  - !ruby/object:Gem::Version
238
252
  version: '0'
239
253
  requirements: []
240
254
  rubyforge_project:
241
- rubygems_version: 2.1.10
255
+ rubygems_version: 2.1.11
242
256
  signing_key:
243
257
  specification_version: 4
244
258
  summary: Rails gem for dynamically adding and removing nested has_many association
@@ -292,4 +306,3 @@ test_files:
292
306
  - spec/dummy/script/rails
293
307
  - spec/integration/nested_form_fields_spec.rb
294
308
  - spec/spec_helper.rb
295
- has_rdoc: