cocoon 1.2.14 → 1.2.15

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0b9ec469019818f643c8e77d1df9a52835be41a6
4
- data.tar.gz: 9161b77e3cbb74476f9a96311f3998f0a51ab71f
2
+ SHA256:
3
+ metadata.gz: 5ece48b77f3c2ade4038d9a745ecda7d23ec24d2e1b391a7900c1b040e9800a0
4
+ data.tar.gz: dfd2781be46692cc32726a785d379503c1f1aadd37a015f3d18e1955f2bc893b
5
5
  SHA512:
6
- metadata.gz: 7df4a1e2dd0be9e9ef4ec2dc8d1abcbb10d6f34d0f13f964f1465bd6644400656bb6fb95d585a8bd2989a1d03d67e452fff2a26f9030cc9cf4c1b7686de252e3
7
- data.tar.gz: 310faa12c4d2e4990d5bf2a1c5527e9dd67d6bd0a8f8e9603c5d707bf75c395e7093c3fe18afe8c878f044ffba32ab0b4b76d9485eba08d4c052d5cc9b9dd20d
6
+ metadata.gz: 278cc47c1d3cf4bc126f8609cbb4efa945fb59b864f495097e3a1f0d536b6353cc43da3d4e49d2cddbb65c660adfc057a50d3b8639d7acb5bcf1eed761937fd8
7
+ data.tar.gz: 8c9b316114c977cdf62aac3c172cb50bb74444714099751bd4915d8b970a105d6cca61ffe7c41f8369d7bdf2cb6f935ce92b852dba58b1c7e234f32d06daa9fe
@@ -4,7 +4,17 @@ rvm:
4
4
  - 2.2.6
5
5
  - 2.3.2
6
6
  - 2.4.1
7
+ - 2.4.5
8
+ - 2.4.6
9
+ - 2.5.4
10
+ - 2.5.5
11
+ - 2.6.3
7
12
  - rbx-2
13
+
14
+ before_install:
15
+ - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
16
+ - gem install bundler -v '< 2'
17
+
8
18
  gemfile:
9
19
  - gemfiles/Gemfile.rails-3.2.13
10
20
  - gemfiles/Gemfile.rails-4-r2
@@ -29,5 +39,25 @@ matrix:
29
39
  gemfile: gemfiles/Gemfile.rails-3.2.13
30
40
  - rvm: 2.4.1
31
41
  gemfile: gemfiles/Gemfile.rails-4-r2
42
+ - rvm: 2.4.6
43
+ gemfile: gemfiles/Gemfile.rails-3.2.13
44
+ - rvm: 2.4.6
45
+ gemfile: gemfiles/Gemfile.rails-4-r2
46
+ - rvm: 2.4.5
47
+ gemfile: gemfiles/Gemfile.rails-3.2.13
48
+ - rvm: 2.4.5
49
+ gemfile: gemfiles/Gemfile.rails-4-r2
50
+ - rvm: 2.5.4
51
+ gemfile: gemfiles/Gemfile.rails-3.2.13
52
+ - rvm: 2.5.4
53
+ gemfile: gemfiles/Gemfile.rails-4-r2
54
+ - rvm: 2.5.5
55
+ gemfile: gemfiles/Gemfile.rails-3.2.13
56
+ - rvm: 2.5.5
57
+ gemfile: gemfiles/Gemfile.rails-4-r2
58
+ - rvm: 2.6.3
59
+ gemfile: gemfiles/Gemfile.rails-3.2.13
60
+ - rvm: 2.6.3
61
+ gemfile: gemfiles/Gemfile.rails-4-r2
32
62
  allow_failures:
33
63
  - rvm: rbx-2
data/Gemfile CHANGED
@@ -5,7 +5,8 @@ group :development, :test do
5
5
  gem "rails", "~> 4.2"
6
6
  gem "sqlite3", '1.3.13'
7
7
  gem "json_pure"
8
- gem "jeweler", "~> 2.3"
8
+ gem "jeweler", git: 'git@github.com:technicalpickles/jeweler'
9
+ # gem "jeweler", "~> 2.3"
9
10
  gem "rspec-rails", "~> 3.0.0"
10
11
  gem "rspec", "~> 3.0.0"
11
12
  gem "actionpack", ">=4.0.0"
File without changes
@@ -27,6 +27,23 @@ gem "cocoon"
27
27
 
28
28
  > Please note that for rails 4 you will need at least v1.2.0 or later.
29
29
 
30
+ ### Rails 6/Webpacker
31
+
32
+ Add the componanion package
33
+
34
+ yarn add @nathanvda/cocoon
35
+
36
+ and then in your `app/javascripts/packs/application.js` you should add
37
+
38
+ require("jquery")
39
+ require("@nathanvda/cocoon")
40
+
41
+
42
+ > Note: there are alternative npm packages, which might better suit your needs.
43
+ E.g. some offer the cocoon functionality without using jquery (search for `cocoon + vanilla` --I found three packages on npm already).
44
+ Obviously you are free to use those, however the code samples in this README will (still) rely on jquery.
45
+
46
+
30
47
  ### Rails 3.1+/Rails 4/Rails 5
31
48
 
32
49
  Add the following to `application.js` so it compiles to the asset pipeline:
@@ -218,10 +235,10 @@ This should be called within the form builder.
218
235
 
219
236
  `link_to_add_association` takes four parameters:
220
237
 
221
- - name: the text to show in the link
222
- - f: the form builder
223
- - association: the name of the association (plural) of which a new instance needs to be added (symbol or string).
224
- - html_options: extra html-options (see [`link_to`](http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to)
238
+ - **name**: the text to show in the link
239
+ - **f**: the form builder
240
+ - **association**: the name of the association (plural) of which a new instance needs to be added (symbol or string).
241
+ - **html_options**: extra html-options (see [`link_to`](http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to)
225
242
  There are some special options, the first three allow to control the placement of the new link-data:
226
243
  - `data-association-insertion-traversal` : the jquery traversal method to allow node selection relative to the link. `closest`, `next`, `children`, etc. Default: absolute selection
227
244
  - `data-association-insertion-node` : the jquery selector of the node as string, or a function that takes the `link_to_add_association` node as the parameter and returns a node. Default: parent node
@@ -339,9 +356,9 @@ This should be placed inside the partial `_<association-object-singular>_fields`
339
356
 
340
357
  It takes three parameters:
341
358
 
342
- - name: the text to show in the link
343
- - f: referring to the containing form-object
344
- - html_options: extra html-options (see `link_to`)
359
+ - **name**: the text to show in the link
360
+ - **f**: referring to the containing form-object
361
+ - **html_options**: extra html-options (see `link_to`)
345
362
 
346
363
  Optionally you could also leave out the name and supply a block that is captured to give the name (if you want to do something more complicated).
347
364
 
data/Rakefile CHANGED
@@ -11,6 +11,9 @@ require 'rdoc/task'
11
11
 
12
12
  require 'rspec/core'
13
13
  require 'rspec/core/rake_task'
14
+ require 'erb'
15
+ require 'JSON'
16
+
14
17
 
15
18
  RSpec::Core::RakeTask.new(:spec)
16
19
 
@@ -39,4 +42,48 @@ begin
39
42
  Jeweler::GemcutterTasks.new
40
43
  rescue LoadError
41
44
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
42
- end
45
+ end
46
+
47
+
48
+ require 'bundler/gem_tasks'
49
+
50
+ spec = Bundler.load_gemspec('./cocoon.gemspec')
51
+
52
+
53
+ npm_src_dir = './npm'
54
+ npm_dest_dir = './dist'
55
+ CLOBBER.include 'dist'
56
+
57
+ assets_dir = './app/assets/'
58
+
59
+ npm_files = {
60
+ File.join(npm_dest_dir, 'cocoon.js') => File.join(assets_dir, 'javascripts', 'cocoon.js'),
61
+ File.join(npm_dest_dir, 'README.md') => File.join(npm_src_dir, 'README.md'),
62
+ File.join(npm_dest_dir, 'LICENSE') => './LICENSE'
63
+ }
64
+
65
+ namespace :npm do
66
+ npm_files.each do |dest, src|
67
+ file dest => src do
68
+ cp src, dest
69
+ end
70
+ end
71
+
72
+ task :'package-json' do
73
+ template = ERB.new(File.read(File.join(npm_src_dir, 'package.json.erb')))
74
+ content = template.result_with_hash(spec: spec)
75
+ File.write(File.join(npm_dest_dir, 'package.json'),
76
+ JSON.pretty_generate(JSON.parse(content)))
77
+ end
78
+
79
+ desc "Build nathanvda-cocoon-#{spec.version}.tgz into the pkg directory"
80
+ task build: (%i[package-json] + npm_files.keys) do
81
+ system("cd #{npm_dest_dir} && npm pack && mv ./nathanvda-cocoon-#{spec.version}.tgz ../pkg/")
82
+ end
83
+
84
+ desc "Build and push nathanvda-cocoon-#{spec.version}.tgz to https://npmjs.org"
85
+ task release: %i[build] do
86
+ system("npm publish ./pkg/nathanvda-cocoon-#{spec.version}.tgz --access public")
87
+ end
88
+ end
89
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.14
1
+ 1.2.15
@@ -39,6 +39,8 @@
39
39
 
40
40
  $(document).on('click', '.add_fields', function(e) {
41
41
  e.preventDefault();
42
+ e.stopPropagation();
43
+
42
44
  var $this = $(this),
43
45
  assoc = $this.data('association'),
44
46
  assocs = $this.data('associations'),
@@ -2,26 +2,27 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: cocoon 1.2.14 ruby lib
5
+ # stub: cocoon 1.2.15 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "cocoon".freeze
9
- s.version = "1.2.14"
9
+ s.version = "1.2.15"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Nathan Van der Auwera".freeze]
14
- s.date = "2019-06-26"
14
+ s.date = "2020-09-08"
15
15
  s.description = "Unobtrusive nested forms handling, using jQuery. Use this and discover cocoon-heaven.".freeze
16
16
  s.email = "nathan@dixis.com".freeze
17
17
  s.extra_rdoc_files = [
18
+ "LICENSE",
18
19
  "README.markdown"
19
20
  ]
20
21
  s.files = [
21
22
  ".travis.yml",
22
23
  "Gemfile",
23
24
  "History.md",
24
- "MIT-LICENSE",
25
+ "LICENSE",
25
26
  "README.markdown",
26
27
  "Rakefile",
27
28
  "VERSION",
@@ -33,6 +34,8 @@ Gem::Specification.new do |s|
33
34
  "lib/cocoon.rb",
34
35
  "lib/cocoon/view_helpers.rb",
35
36
  "lib/generators/cocoon/install/install_generator.rb",
37
+ "npm/README.md",
38
+ "npm/package.json.erb",
36
39
  "spec/cocoon_spec.rb",
37
40
  "spec/dummy/Rakefile",
38
41
  "spec/dummy/app/controllers/application_controller.rb",
@@ -83,7 +86,7 @@ Gem::Specification.new do |s|
83
86
  ]
84
87
  s.homepage = "http://github.com/nathanvda/cocoon".freeze
85
88
  s.licenses = ["MIT".freeze]
86
- s.rubygems_version = "2.6.11".freeze
89
+ s.rubygems_version = "3.0.8".freeze
87
90
  s.summary = "gem that enables easier nested forms with standard forms, formtastic and simple-form".freeze
88
91
 
89
92
  if s.respond_to? :specification_version then
@@ -93,7 +96,7 @@ Gem::Specification.new do |s|
93
96
  s.add_development_dependency(%q<rails>.freeze, ["~> 4.2"])
94
97
  s.add_development_dependency(%q<sqlite3>.freeze, ["= 1.3.13"])
95
98
  s.add_development_dependency(%q<json_pure>.freeze, [">= 0"])
96
- s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.3"])
99
+ s.add_development_dependency(%q<jeweler>.freeze, [">= 0"])
97
100
  s.add_development_dependency(%q<rspec-rails>.freeze, ["~> 3.0.0"])
98
101
  s.add_development_dependency(%q<rspec>.freeze, ["~> 3.0.0"])
99
102
  s.add_development_dependency(%q<actionpack>.freeze, [">= 4.0.0"])
@@ -110,7 +113,7 @@ Gem::Specification.new do |s|
110
113
  s.add_dependency(%q<rails>.freeze, ["~> 4.2"])
111
114
  s.add_dependency(%q<sqlite3>.freeze, ["= 1.3.13"])
112
115
  s.add_dependency(%q<json_pure>.freeze, [">= 0"])
113
- s.add_dependency(%q<jeweler>.freeze, ["~> 2.3"])
116
+ s.add_dependency(%q<jeweler>.freeze, [">= 0"])
114
117
  s.add_dependency(%q<rspec-rails>.freeze, ["~> 3.0.0"])
115
118
  s.add_dependency(%q<rspec>.freeze, ["~> 3.0.0"])
116
119
  s.add_dependency(%q<actionpack>.freeze, [">= 4.0.0"])
@@ -128,7 +131,7 @@ Gem::Specification.new do |s|
128
131
  s.add_dependency(%q<rails>.freeze, ["~> 4.2"])
129
132
  s.add_dependency(%q<sqlite3>.freeze, ["= 1.3.13"])
130
133
  s.add_dependency(%q<json_pure>.freeze, [">= 0"])
131
- s.add_dependency(%q<jeweler>.freeze, ["~> 2.3"])
134
+ s.add_dependency(%q<jeweler>.freeze, [">= 0"])
132
135
  s.add_dependency(%q<rspec-rails>.freeze, ["~> 3.0.0"])
133
136
  s.add_dependency(%q<rspec>.freeze, ["~> 3.0.0"])
134
137
  s.add_dependency(%q<actionpack>.freeze, [">= 4.0.0"])
@@ -3,12 +3,11 @@ source "http://rubygems.org"
3
3
 
4
4
  group :development, :test do
5
5
  gem "rails", "~> 4.2"
6
- gem "sqlite3"
6
+ gem "sqlite3", '~> 1.3.13'
7
7
  gem "json_pure"
8
8
  gem "jeweler"
9
9
  gem "rspec-rails", "~> 3.0.0"
10
10
  gem "rspec", "~> 3.0.0"
11
- gem "actionpack", ">=4.0.0"
12
11
  gem "simplecov", :require => false
13
12
  gem "rake", "~> 10.1"
14
13
 
@@ -42,8 +42,9 @@ module Cocoon
42
42
  end
43
43
 
44
44
  # :nodoc:
45
- def render_association(association, f, new_object, form_name, render_options={}, custom_partial=nil)
45
+ def render_association(association, f, new_object, form_name, received_render_options={}, custom_partial=nil)
46
46
  partial = get_partial_path(custom_partial, association)
47
+ render_options = received_render_options.dup
47
48
  locals = render_options.delete(:locals) || {}
48
49
  ancestors = f.class.ancestors.map{|c| c.to_s}
49
50
  method_name = ancestors.include?('SimpleForm::FormBuilder') ? :simple_fields_for : (ancestors.include?('Formtastic::FormBuilder') ? :semantic_fields_for : :fields_for)
@@ -0,0 +1,8 @@
1
+ # cocoon
2
+
3
+ Cocoon is the companion javascript code for the
4
+ rails gem [cocoon](https://github.com/nathanvda/cocoon)
5
+ which offers "dynamic" nested forms.
6
+
7
+ This code depends on jQuery.
8
+
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@nathanvda/cocoon",
3
+ "version": "<%= spec.version %>",
4
+ "license": "MIT",
5
+
6
+ "description": "Companion package for the cocoon Ruby gem.",
7
+ "homepage": "https://github.com/nathanvda/cocoon",
8
+ "repository": "https://github.com/nathanvda/cocoon",
9
+ "bugs": {
10
+ "url": "https://github.com/nathanvda/cocoon/issues"
11
+ },
12
+
13
+ "author": "nathan@dixis.com",
14
+
15
+ "main": "cocoon.js",
16
+ "files": ["cocoon.js", "README", "LICENSE", "package.json"],
17
+
18
+ "dependencies": {
19
+ "jquery": "^3.3.1"
20
+ }
21
+ }
@@ -14,12 +14,12 @@ describe Cocoon do
14
14
  before(:each) do
15
15
  @tester = TestClass.new
16
16
  @post = Post.new
17
- @form_obj = double(:object => @post, :object_name => @post.class.name)
18
17
  end
19
18
 
20
19
 
21
20
  context "link_to_add_association" do
22
21
  before(:each) do
22
+ @form_obj = double(:object => @post, :object_name => @post.class.name)
23
23
  allow(@tester).to receive(:render_association).and_return('form<tag>')
24
24
  end
25
25
 
@@ -198,9 +198,13 @@ describe Cocoon do
198
198
  allow(@tester).to receive(:render_association).and_call_original
199
199
  expect(@form_obj).to receive(:fields_for) { | association, new_object, options_hash, &block| block.call }
200
200
  expect(@tester).to receive(:render).with("person_fields", {:f=>nil, :dynamic=>true, :alfred=>"Judoka"}).and_return ("partiallll")
201
- @html = @tester.link_to_add_association('add something', @form_obj, :people, :render_options => {:wrapper => 'inline', :locals => {:alfred => 'Judoka'}})
201
+ @render_options = {:wrapper => 'inline', :locals => {:alfred => 'Judoka'}}
202
+ @html = @tester.link_to_add_association('add something', @form_obj, :people, :render_options => @render_options)
202
203
  end
203
204
  it_behaves_like "a correctly rendered add link", {template: 'partiallll', association: 'person', associations: 'people' }
205
+ it "does not afffect render-options" do
206
+ expect(@render_options[:locals]).to eq({alfred: 'Judoka'})
207
+ end
204
208
  end
205
209
  context "if no locals are given it still works" do
206
210
  before do
@@ -272,6 +276,9 @@ describe Cocoon do
272
276
  end
273
277
 
274
278
  context "link_to_remove_association" do
279
+ before do
280
+ @form_obj = @tester.send(:instantiate_builder, @post.class.name, @post, {})
281
+ end
275
282
  context "without a block" do
276
283
  context "accepts a name" do
277
284
  before do
@@ -326,7 +333,7 @@ describe Cocoon do
326
333
  before do
327
334
  @post_marked_for_destruction = Post.new
328
335
  @post_marked_for_destruction.mark_for_destruction
329
- @form_obj_destroyed = double(:object => @post_marked_for_destruction, :object_name => @post_marked_for_destruction.class.name)
336
+ @form_obj_destroyed = @tester.send(:instantiate_builder, @post_marked_for_destruction.class.name, @post_marked_for_destruction, {})
330
337
  @html = @tester.link_to_remove_association('remove something', @form_obj_destroyed)
331
338
  end
332
339
 
@@ -387,11 +394,11 @@ describe Cocoon do
387
394
  # I submitted a bug for this: https://github.com/rails/rails/issues/11376
388
395
  if Rails.rails4?
389
396
  @post = Post.create(title: 'Testing')
390
- @form_obj = double(:object => @post, :object_name => @post.class.name)
391
397
  end
392
- result = @tester.create_object(@form_obj, :admin_comments)
398
+ form_obj = double(:object => @post, :object_name => @post.class.name)
399
+ result = @tester.create_object(form_obj, :admin_comments)
393
400
  expect(result.author).to eq("Admin")
394
- expect(@form_obj.object.admin_comments).to be_empty
401
+ expect(form_obj.object.admin_comments).to be_empty
395
402
  end
396
403
 
397
404
  it "creates correct association for belongs_to associations" do
@@ -420,7 +427,8 @@ describe Cocoon do
420
427
 
421
428
  it "can create using only conditions not the association" do
422
429
  expect(@tester).to receive(:create_object_with_conditions).and_return('flappie')
423
- expect(@tester.create_object(@form_obj, :comments, true)).to eq('flappie')
430
+ form_obj = @tester.send(:instantiate_builder, @post.class.name, @post, {})
431
+ expect(@tester.create_object(form_obj, :comments, true)).to eq('flappie')
424
432
  end
425
433
  end
426
434
 
@@ -4,7 +4,7 @@ class CreatePosts < ActiveRecord::Migration
4
4
  t.string :title
5
5
  t.text :body
6
6
 
7
- t.timestamps
7
+ t.timestamps null: false
8
8
  end
9
9
  end
10
10
 
@@ -5,7 +5,7 @@ class CreateComments < ActiveRecord::Migration
5
5
  t.string :author
6
6
  t.integer :post_id
7
7
 
8
- t.timestamps
8
+ t.timestamps null: false
9
9
  end
10
10
  end
11
11
 
@@ -5,7 +5,7 @@ class CreatePeople < ActiveRecord::Migration
5
5
  t.string :description
6
6
  t.integer :post_id
7
7
 
8
- t.timestamps
8
+ t.timestamps null: false
9
9
  end
10
10
  end
11
11
 
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  # This file is auto-generated from the current state of the database. Instead
2
3
  # of editing this file, please use the migrations feature of Active Record to
3
4
  # incrementally modify your database, and then regenerate this schema definition.
@@ -8,23 +9,31 @@
8
9
  # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
10
  # you'll amass, the slower it'll run and the greater likelihood for issues).
10
11
  #
11
- # It's strongly recommended to check this file into your version control system.
12
+ # It's strongly recommended that you check this file into your version control system.
12
13
 
13
- ActiveRecord::Schema.define(:version => 20110306212250) do
14
+ ActiveRecord::Schema.define(version: 20110420222224) do
14
15
 
15
- create_table "comments", :force => true do |t|
16
+ create_table "comments", force: :cascade do |t|
16
17
  t.text "body"
17
18
  t.string "author"
18
19
  t.integer "post_id"
19
- t.datetime "created_at"
20
- t.datetime "updated_at"
20
+ t.datetime "created_at", null: false
21
+ t.datetime "updated_at", null: false
21
22
  end
22
23
 
23
- create_table "posts", :force => true do |t|
24
+ create_table "people", force: :cascade do |t|
25
+ t.string "name"
26
+ t.string "description"
27
+ t.integer "post_id"
28
+ t.datetime "created_at", null: false
29
+ t.datetime "updated_at", null: false
30
+ end
31
+
32
+ create_table "posts", force: :cascade do |t|
24
33
  t.string "title"
25
34
  t.text "body"
26
- t.datetime "created_at"
27
- t.datetime "updated_at"
35
+ t.datetime "created_at", null: false
36
+ t.datetime "updated_at", null: false
28
37
  end
29
38
 
30
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.14
4
+ version: 1.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Van der Auwera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-26 00:00:00.000000000 Z
11
+ date: 2020-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: jeweler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '2.3'
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
- version: '2.3'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-rails
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -240,12 +240,13 @@ email: nathan@dixis.com
240
240
  executables: []
241
241
  extensions: []
242
242
  extra_rdoc_files:
243
+ - LICENSE
243
244
  - README.markdown
244
245
  files:
245
246
  - ".travis.yml"
246
247
  - Gemfile
247
248
  - History.md
248
- - MIT-LICENSE
249
+ - LICENSE
249
250
  - README.markdown
250
251
  - Rakefile
251
252
  - VERSION
@@ -257,6 +258,8 @@ files:
257
258
  - lib/cocoon.rb
258
259
  - lib/cocoon/view_helpers.rb
259
260
  - lib/generators/cocoon/install/install_generator.rb
261
+ - npm/README.md
262
+ - npm/package.json.erb
260
263
  - spec/cocoon_spec.rb
261
264
  - spec/dummy/Rakefile
262
265
  - spec/dummy/app/controllers/application_controller.rb
@@ -323,8 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
323
326
  - !ruby/object:Gem::Version
324
327
  version: '0'
325
328
  requirements: []
326
- rubyforge_project:
327
- rubygems_version: 2.6.11
329
+ rubygems_version: 3.0.8
328
330
  signing_key:
329
331
  specification_version: 4
330
332
  summary: gem that enables easier nested forms with standard forms, formtastic and