administrate-field-nested_has_many 0.0.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +29 -0
  3. data/.gitignore +4 -0
  4. data/.ruby-version +1 -0
  5. data/Appraisals +13 -0
  6. data/CHANGELOG.md +71 -0
  7. data/Gemfile +5 -0
  8. data/README.md +4 -3
  9. data/Rakefile +24 -0
  10. data/administrate-field-nested_has_many.gemspec +16 -9
  11. data/app/assets/stylesheets/administrate-field-nested_has_many/application.css +3 -0
  12. data/app/assets/stylesheets/administrate-field-nested_has_many/base.scss +14 -0
  13. data/app/views/fields/nested_has_many/_fields.html.erb +3 -5
  14. data/app/views/fields/nested_has_many/_form.html.erb +12 -12
  15. data/app/views/fields/nested_has_many/_show.html.erb +6 -37
  16. data/app/views/fields/nested_has_many/_show_current.html.erb +44 -0
  17. data/app/views/fields/nested_has_many/_show_old.html.erb +36 -0
  18. data/bin/rails +13 -0
  19. data/config/i18n-tasks.yml +8 -0
  20. data/config/locales/administrate-field-nested_has_many.en.yml +7 -0
  21. data/config/locales/administrate-field-nested_has_many.ja.yml +7 -0
  22. data/config/locales/administrate-field-nested_has_many.pt.yml +7 -0
  23. data/config/locales/administrate-field-nested_has_many.ru.yml +7 -0
  24. data/gemfiles/administrate_0.10.gemfile +8 -0
  25. data/gemfiles/administrate_0.10.gemfile.lock +214 -0
  26. data/gemfiles/administrate_0.13.gemfile +8 -0
  27. data/gemfiles/administrate_0.13.gemfile.lock +207 -0
  28. data/gemfiles/administrate_master.gemfile +8 -0
  29. data/gemfiles/administrate_master.gemfile.lock +219 -0
  30. data/lib/administrate/field/nested_has_many.rb +42 -12
  31. data/spec/dummy/.gitignore +3 -0
  32. data/spec/dummy/Rakefile +6 -0
  33. data/spec/dummy/app/assets/config/manifest.js +7 -0
  34. data/spec/dummy/app/assets/images/.keep +0 -0
  35. data/spec/dummy/app/assets/javascripts/application.js +14 -0
  36. data/spec/dummy/app/assets/javascripts/channels/.keep +0 -0
  37. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  38. data/spec/dummy/app/controllers/admin/application_controller.rb +21 -0
  39. data/spec/dummy/app/controllers/admin/foo/students_controller.rb +21 -0
  40. data/spec/dummy/app/controllers/admin/schools_controller.rb +21 -0
  41. data/spec/dummy/app/controllers/application_controller.rb +2 -0
  42. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  43. data/spec/dummy/app/dashboards/foo/student_dashboard.rb +51 -0
  44. data/spec/dummy/app/dashboards/school_dashboard.rb +52 -0
  45. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  46. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  47. data/spec/dummy/app/models/application_record.rb +3 -0
  48. data/spec/dummy/app/models/concerns/.keep +0 -0
  49. data/spec/dummy/app/models/foo/student.rb +3 -0
  50. data/spec/dummy/app/models/school.rb +4 -0
  51. data/spec/dummy/app/views/layouts/application.html.erb +15 -0
  52. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  53. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  54. data/spec/dummy/bin/bundle +3 -0
  55. data/spec/dummy/bin/rails +4 -0
  56. data/spec/dummy/bin/rake +4 -0
  57. data/spec/dummy/bin/setup +36 -0
  58. data/spec/dummy/bin/update +31 -0
  59. data/spec/dummy/bin/yarn +11 -0
  60. data/spec/dummy/config.ru +5 -0
  61. data/spec/dummy/config/application.rb +18 -0
  62. data/spec/dummy/config/boot.rb +5 -0
  63. data/spec/dummy/config/cable.yml +10 -0
  64. data/spec/dummy/config/database.yml +12 -0
  65. data/spec/dummy/config/environment.rb +5 -0
  66. data/spec/dummy/config/environments/development.rb +53 -0
  67. data/spec/dummy/config/environments/test.rb +36 -0
  68. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  69. data/spec/dummy/config/initializers/assets.rb +14 -0
  70. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  71. data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
  72. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  73. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  74. data/spec/dummy/config/initializers/inflections.rb +16 -0
  75. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  76. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  77. data/spec/dummy/config/locales/en.yml +33 -0
  78. data/spec/dummy/config/puma.rb +34 -0
  79. data/spec/dummy/config/routes.rb +10 -0
  80. data/spec/dummy/config/spring.rb +6 -0
  81. data/spec/dummy/config/storage.yml +34 -0
  82. data/spec/dummy/db/migrate/20180907104642_create_schools.rb +9 -0
  83. data/spec/dummy/db/migrate/20180907104703_create_students.rb +10 -0
  84. data/spec/dummy/db/schema.rb +29 -0
  85. data/spec/dummy/lib/assets/.keep +0 -0
  86. data/spec/dummy/package.json +5 -0
  87. data/spec/dummy/public/404.html +67 -0
  88. data/spec/dummy/public/422.html +67 -0
  89. data/spec/dummy/public/500.html +66 -0
  90. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  91. data/spec/dummy/public/apple-touch-icon.png +0 -0
  92. data/spec/dummy/public/favicon.ico +0 -0
  93. data/spec/dummy/storage/.keep +0 -0
  94. data/spec/factories.rb +9 -0
  95. data/spec/features/has_many_spec.rb +68 -0
  96. data/spec/features/landing_spec.rb +10 -0
  97. data/spec/i18n_spec.rb +29 -0
  98. data/spec/rails_helper.rb +67 -0
  99. data/spec/spec_helper.rb +96 -0
  100. metadata +296 -18
File without changes
File without changes
File without changes
@@ -0,0 +1,9 @@
1
+ FactoryBot.define do
2
+ factory :school do
3
+ sequence(:name) { |i| "School ##{i}" }
4
+ end
5
+
6
+ factory :student, class: Foo::Student do
7
+ sequence(:name) { |i| "Student ##{i}" }
8
+ end
9
+ end
@@ -0,0 +1,68 @@
1
+ require "rails_helper"
2
+
3
+ feature "Has many" do
4
+ let!(:school) do
5
+ FactoryBot.create(:school, name: "School of Life")
6
+ end
7
+
8
+ let!(:student) do
9
+ FactoryBot.create(:student, name: "John Doe", school: school)
10
+ end
11
+
12
+ scenario "index" do
13
+ visit admin_schools_path
14
+ expect(page).to have_content("School of Life")
15
+ end
16
+
17
+ scenario "show" do
18
+ visit admin_school_path(school)
19
+ expect(page).to have_content("John Doe")
20
+ end
21
+
22
+ scenario "new" do
23
+ visit new_admin_school_path
24
+ expect(page).to have_content("New Schools")
25
+ end
26
+
27
+ scenario "create", js: true do
28
+ visit new_admin_school_path
29
+ expect(page).to have_content("New Schools")
30
+ expect(page).to have_content("Add Foo/Student")
31
+ fill_in "Name", with: "La Ferme du Bec Hellouin"
32
+ click_link "Add Foo/Student"
33
+ expect(page).to have_content("Remove Foo/Student")
34
+ within(".nested-fields") do
35
+ fill_in "Name", with: "Sébastien"
36
+ end
37
+ click_button "Create School"
38
+ expect(page).to have_text("La Ferme du Bec Hellouin")
39
+ expect(page).to have_text("Sébastien")
40
+ end
41
+
42
+ scenario "edit" do
43
+ school = FactoryBot.create(:school)
44
+ FactoryBot.create_list(:student, 2, school: school)
45
+ visit edit_admin_school_path(school)
46
+ expect(page).to have_content("Edit #{school.name}")
47
+ end
48
+
49
+ scenario "update", js: true do
50
+ school = FactoryBot.create(:school)
51
+ student = FactoryBot.create(:student, school: school)
52
+ visit edit_admin_school_path(school)
53
+ click_link "Add Foo/Student"
54
+
55
+ within(all(".nested-fields").last) do
56
+ fill_in "Name", with: "Sébastien"
57
+ end
58
+
59
+ within(all(".nested-fields").first) do
60
+ click_link "Remove Foo/Student"
61
+ end
62
+
63
+ click_button "Update School"
64
+
65
+ expect(page).to have_text("Sébastien")
66
+ expect(page).not_to have_text(student.name)
67
+ end
68
+ end
@@ -0,0 +1,10 @@
1
+ require "rails_helper"
2
+
3
+ feature "Landing" do
4
+ scenario "Initial admin page" do
5
+ # Just testing that the dummy app works
6
+ visit admin_root_path
7
+ expect(page).to have_content("Schools")
8
+ expect(page).to have_content("Students")
9
+ end
10
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "i18n/tasks"
4
+
5
+ RSpec.describe "I18n" do
6
+ let(:i18n) { I18n::Tasks::BaseTask.new }
7
+ let(:missing_keys) { i18n.missing_keys }
8
+ let(:unused_keys) { i18n.unused_keys }
9
+
10
+ it "does not have missing keys" do
11
+ expect(missing_keys).to be_empty,
12
+ "Missing #{missing_keys.leaves.count} i18n keys,
13
+ run `i18n-tasks missing' to show them"
14
+ end
15
+
16
+ it "does not have unused keys" do
17
+ expect(unused_keys).to be_empty,
18
+ "#{unused_keys.leaves.count} unused i18n keys,
19
+ run `i18n-tasks unused' to show them"
20
+ end
21
+
22
+ it "files are normalized" do
23
+ non_normalized = i18n.non_normalized_paths
24
+ message = "The following files need to be normalized:\n" \
25
+ "#{non_normalized.map { |path| " #{path}" }.join("\n")}\n" \
26
+ "Please run `i18n-tasks normalize` to fix"
27
+ expect(non_normalized).to be_empty, message
28
+ end
29
+ end
@@ -0,0 +1,67 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ require 'spec_helper'
3
+ ENV['RAILS_ENV'] ||= 'test'
4
+ require File.expand_path('../../spec/dummy/config/environment', __FILE__)
5
+ # Prevent database truncation if the environment is production
6
+ abort("The Rails environment is running in production mode!") if Rails.env.production?
7
+ require 'rspec/rails'
8
+ # Add additional requires below this line. Rails is not loaded until this point!
9
+ require 'factory_bot'
10
+ require_relative './factories'
11
+
12
+ Capybara.server = :webrick
13
+
14
+ # Requires supporting ruby files with custom matchers and macros, etc, in
15
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
16
+ # run as spec files by default. This means that files in spec/support that end
17
+ # in _spec.rb will both be required and run as specs, causing the specs to be
18
+ # run twice. It is recommended that you do not name files matching this glob to
19
+ # end with _spec.rb. You can configure this pattern with the --pattern
20
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
21
+ #
22
+ # The following line is provided for convenience purposes. It has the downside
23
+ # of increasing the boot-up time by auto-requiring all files in the support
24
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
25
+ # require only the support files necessary.
26
+ #
27
+ # Dir[Rails.root.join('spec', 'support', '**', '*.rb')].each { |f| require f }
28
+
29
+ # Checks for pending migrations and applies them before tests are run.
30
+ # If you are not using ActiveRecord, you can remove these lines.
31
+ begin
32
+ ActiveRecord::Migration.maintain_test_schema!
33
+ rescue ActiveRecord::PendingMigrationError => e
34
+ puts e.to_s.strip
35
+ exit 1
36
+ end
37
+ RSpec.configure do |config|
38
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
39
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
40
+
41
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
42
+ # examples within a transaction, remove the following line or assign false
43
+ # instead of true.
44
+ config.use_transactional_fixtures = true
45
+
46
+ # RSpec Rails can automatically mix in different behaviours to your tests
47
+ # based on their file location, for example enabling you to call `get` and
48
+ # `post` in specs under `spec/controllers`.
49
+ #
50
+ # You can disable this behaviour by removing the line below, and instead
51
+ # explicitly tag your specs with their type, e.g.:
52
+ #
53
+ # RSpec.describe UsersController, :type => :controller do
54
+ # # ...
55
+ # end
56
+ #
57
+ # The different available types are documented in the features, such as in
58
+ # https://relishapp.com/rspec/rspec-rails/docs
59
+ config.infer_spec_type_from_file_location!
60
+
61
+ # Filter lines from Rails gems in backtraces.
62
+ config.filter_rails_from_backtrace!
63
+ # arbitrary gems may also be filtered via:
64
+ # config.filter_gems_from_backtrace("gem name")
65
+
66
+ config.include FactoryBot::Syntax::Methods
67
+ end
@@ -0,0 +1,96 @@
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
16
+ RSpec.configure do |config|
17
+ # rspec-expectations config goes here. You can use an alternate
18
+ # assertion/expectation library such as wrong or the stdlib/minitest
19
+ # assertions if you prefer.
20
+ config.expect_with :rspec do |expectations|
21
+ # This option will default to `true` in RSpec 4. It makes the `description`
22
+ # and `failure_message` of custom matchers include text for helper methods
23
+ # defined using `chain`, e.g.:
24
+ # be_bigger_than(2).and_smaller_than(4).description
25
+ # # => "be bigger than 2 and smaller than 4"
26
+ # ...rather than:
27
+ # # => "be bigger than 2"
28
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
29
+ end
30
+
31
+ # rspec-mocks config goes here. You can use an alternate test double
32
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
33
+ config.mock_with :rspec do |mocks|
34
+ # Prevents you from mocking or stubbing a method that does not exist on
35
+ # a real object. This is generally recommended, and will default to
36
+ # `true` in RSpec 4.
37
+ mocks.verify_partial_doubles = true
38
+ end
39
+
40
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
41
+ # have no way to turn it off -- the option exists only for backwards
42
+ # compatibility in RSpec 3). It causes shared context metadata to be
43
+ # inherited by the metadata hash of host groups and examples, rather than
44
+ # triggering implicit auto-inclusion in groups with matching metadata.
45
+ config.shared_context_metadata_behavior = :apply_to_host_groups
46
+
47
+ # The settings below are suggested to provide a good initial experience
48
+ # with RSpec, but feel free to customize to your heart's content.
49
+ =begin
50
+ # This allows you to limit a spec run to individual examples or groups
51
+ # you care about by tagging them with `:focus` metadata. When nothing
52
+ # is tagged with `:focus`, all examples get run. RSpec also provides
53
+ # aliases for `it`, `describe`, and `context` that include `:focus`
54
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
55
+ config.filter_run_when_matching :focus
56
+
57
+ # Allows RSpec to persist some state between runs in order to support
58
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
59
+ # you configure your source control system to ignore this file.
60
+ config.example_status_persistence_file_path = "spec/examples.txt"
61
+
62
+ # Limits the available syntax to the non-monkey patched syntax that is
63
+ # recommended. For more details, see:
64
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
65
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
66
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
67
+ config.disable_monkey_patching!
68
+
69
+ # Many RSpec users commonly either run the entire suite or an individual
70
+ # file, and it's useful to allow more verbose output when running an
71
+ # individual spec file.
72
+ if config.files_to_run.one?
73
+ # Use the documentation formatter for detailed output,
74
+ # unless a formatter has already been configured
75
+ # (e.g. via a command-line flag).
76
+ config.default_formatter = "doc"
77
+ end
78
+
79
+ # Print the 10 slowest examples and example groups at the
80
+ # end of the spec run, to help surface which specs are running
81
+ # particularly slow.
82
+ config.profile_examples = 10
83
+
84
+ # Run specs in random order to surface order dependencies. If you find an
85
+ # order dependency and want to debug it, you can fix the order by providing
86
+ # the seed, which is printed after each run.
87
+ # --seed 1234
88
+ config.order = :random
89
+
90
+ # Seed global randomization in this process using the `--seed` CLI option.
91
+ # Setting this allows you to use `--seed` to deterministically reproduce
92
+ # test failures related to randomization by passing the same `--seed` value
93
+ # as the one that triggered the failure.
94
+ Kernel.srand config.seed
95
+ =end
96
+ end
metadata CHANGED
@@ -1,29 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-nested_has_many
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
+ - Nick Charlton
7
8
  - Grayson Wright
8
- autorequire:
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-04-21 00:00:00.000000000 Z
12
+ date: 2020-07-02 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: administrate
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - "~>"
18
+ - - ">"
19
+ - !ruby/object:Gem::Version
20
+ version: '0.8'
21
+ - - "<"
18
22
  - !ruby/object:Gem::Version
19
- version: 0.2.0
23
+ version: '1'
20
24
  type: :runtime
21
25
  prerelease: false
22
26
  version_requirements: !ruby/object:Gem::Requirement
23
27
  requirements:
24
- - - "~>"
28
+ - - ">"
25
29
  - !ruby/object:Gem::Version
26
- version: 0.2.0
30
+ version: '0.8'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '1'
27
34
  - !ruby/object:Gem::Dependency
28
35
  name: cocoon
29
36
  requirement: !ruby/object:Gem::Requirement
@@ -31,6 +38,9 @@ dependencies:
31
38
  - - "~>"
32
39
  - !ruby/object:Gem::Version
33
40
  version: '1.2'
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.2.11
34
44
  type: :runtime
35
45
  prerelease: false
36
46
  version_requirements: !ruby/object:Gem::Requirement
@@ -38,41 +48,238 @@ dependencies:
38
48
  - - "~>"
39
49
  - !ruby/object:Gem::Version
40
50
  version: '1.2'
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 1.2.11
41
54
  - !ruby/object:Gem::Dependency
42
- name: rails
55
+ name: appraisal
43
56
  requirement: !ruby/object:Gem::Requirement
44
57
  requirements:
45
- - - "~>"
58
+ - - ">="
46
59
  - !ruby/object:Gem::Version
47
- version: '4.2'
48
- type: :runtime
60
+ version: '0'
61
+ type: :development
49
62
  prerelease: false
50
63
  version_requirements: !ruby/object:Gem::Requirement
51
64
  requirements:
52
- - - "~>"
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: capybara
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ - !ruby/object:Gem::Dependency
83
+ name: selenium-webdriver
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: factory_bot
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: i18n-tasks
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ type: :development
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ - !ruby/object:Gem::Dependency
125
+ name: rake
126
+ requirement: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ type: :development
132
+ prerelease: false
133
+ version_requirements: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ - !ruby/object:Gem::Dependency
139
+ name: rspec-rails
140
+ requirement: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ type: :development
146
+ prerelease: false
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ - !ruby/object:Gem::Dependency
153
+ name: sqlite3
154
+ requirement: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ type: :development
160
+ prerelease: false
161
+ version_requirements: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
53
164
  - !ruby/object:Gem::Version
54
- version: '4.2'
165
+ version: '0'
55
166
  description: Plugin for nested has_many forms in Administrate
56
167
  email:
168
+ - nick@nickcharlton.net
57
169
  - wright.grayson@gmail.com
58
170
  executables: []
59
171
  extensions: []
60
172
  extra_rdoc_files: []
61
173
  files:
174
+ - ".circleci/config.yml"
175
+ - ".gitignore"
176
+ - ".ruby-version"
177
+ - Appraisals
178
+ - CHANGELOG.md
179
+ - Gemfile
62
180
  - README.md
181
+ - Rakefile
63
182
  - administrate-field-nested_has_many.gemspec
64
183
  - app/assets/javascripts/administrate-field-nested_has_many/application.js
184
+ - app/assets/stylesheets/administrate-field-nested_has_many/application.css
185
+ - app/assets/stylesheets/administrate-field-nested_has_many/base.scss
65
186
  - app/views/fields/nested_has_many/_fields.html.erb
66
187
  - app/views/fields/nested_has_many/_form.html.erb
67
188
  - app/views/fields/nested_has_many/_index.html.erb
68
189
  - app/views/fields/nested_has_many/_show.html.erb
190
+ - app/views/fields/nested_has_many/_show_current.html.erb
191
+ - app/views/fields/nested_has_many/_show_old.html.erb
192
+ - bin/rails
193
+ - config/i18n-tasks.yml
194
+ - config/locales/administrate-field-nested_has_many.en.yml
195
+ - config/locales/administrate-field-nested_has_many.ja.yml
196
+ - config/locales/administrate-field-nested_has_many.pt.yml
197
+ - config/locales/administrate-field-nested_has_many.ru.yml
198
+ - gemfiles/administrate_0.10.gemfile
199
+ - gemfiles/administrate_0.10.gemfile.lock
200
+ - gemfiles/administrate_0.13.gemfile
201
+ - gemfiles/administrate_0.13.gemfile.lock
202
+ - gemfiles/administrate_master.gemfile
203
+ - gemfiles/administrate_master.gemfile.lock
69
204
  - lib/administrate/field/nested_has_many.rb
205
+ - spec/dummy/.gitignore
206
+ - spec/dummy/Rakefile
207
+ - spec/dummy/app/assets/config/manifest.js
208
+ - spec/dummy/app/assets/images/.keep
209
+ - spec/dummy/app/assets/javascripts/application.js
210
+ - spec/dummy/app/assets/javascripts/channels/.keep
211
+ - spec/dummy/app/assets/stylesheets/application.css
212
+ - spec/dummy/app/controllers/admin/application_controller.rb
213
+ - spec/dummy/app/controllers/admin/foo/students_controller.rb
214
+ - spec/dummy/app/controllers/admin/schools_controller.rb
215
+ - spec/dummy/app/controllers/application_controller.rb
216
+ - spec/dummy/app/controllers/concerns/.keep
217
+ - spec/dummy/app/dashboards/foo/student_dashboard.rb
218
+ - spec/dummy/app/dashboards/school_dashboard.rb
219
+ - spec/dummy/app/helpers/application_helper.rb
220
+ - spec/dummy/app/mailers/application_mailer.rb
221
+ - spec/dummy/app/models/application_record.rb
222
+ - spec/dummy/app/models/concerns/.keep
223
+ - spec/dummy/app/models/foo/student.rb
224
+ - spec/dummy/app/models/school.rb
225
+ - spec/dummy/app/views/layouts/application.html.erb
226
+ - spec/dummy/app/views/layouts/mailer.html.erb
227
+ - spec/dummy/app/views/layouts/mailer.text.erb
228
+ - spec/dummy/bin/bundle
229
+ - spec/dummy/bin/rails
230
+ - spec/dummy/bin/rake
231
+ - spec/dummy/bin/setup
232
+ - spec/dummy/bin/update
233
+ - spec/dummy/bin/yarn
234
+ - spec/dummy/config.ru
235
+ - spec/dummy/config/application.rb
236
+ - spec/dummy/config/boot.rb
237
+ - spec/dummy/config/cable.yml
238
+ - spec/dummy/config/database.yml
239
+ - spec/dummy/config/environment.rb
240
+ - spec/dummy/config/environments/development.rb
241
+ - spec/dummy/config/environments/test.rb
242
+ - spec/dummy/config/initializers/application_controller_renderer.rb
243
+ - spec/dummy/config/initializers/assets.rb
244
+ - spec/dummy/config/initializers/backtrace_silencers.rb
245
+ - spec/dummy/config/initializers/content_security_policy.rb
246
+ - spec/dummy/config/initializers/cookies_serializer.rb
247
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
248
+ - spec/dummy/config/initializers/inflections.rb
249
+ - spec/dummy/config/initializers/mime_types.rb
250
+ - spec/dummy/config/initializers/wrap_parameters.rb
251
+ - spec/dummy/config/locales/en.yml
252
+ - spec/dummy/config/puma.rb
253
+ - spec/dummy/config/routes.rb
254
+ - spec/dummy/config/spring.rb
255
+ - spec/dummy/config/storage.yml
256
+ - spec/dummy/db/migrate/20180907104642_create_schools.rb
257
+ - spec/dummy/db/migrate/20180907104703_create_students.rb
258
+ - spec/dummy/db/schema.rb
259
+ - spec/dummy/lib/assets/.keep
260
+ - spec/dummy/log/.keep
261
+ - spec/dummy/package.json
262
+ - spec/dummy/public/404.html
263
+ - spec/dummy/public/422.html
264
+ - spec/dummy/public/500.html
265
+ - spec/dummy/public/apple-touch-icon-precomposed.png
266
+ - spec/dummy/public/apple-touch-icon.png
267
+ - spec/dummy/public/favicon.ico
268
+ - spec/dummy/storage/.keep
269
+ - spec/dummy/tmp/.keep
270
+ - spec/dummy/tmp/storage/.keep
271
+ - spec/factories.rb
272
+ - spec/features/has_many_spec.rb
273
+ - spec/features/landing_spec.rb
274
+ - spec/i18n_spec.rb
70
275
  - spec/lib/administrate/field/nested_has_many_spec.rb
71
- homepage: https://github.com/graysonwright/administrate-field-nested_has_many
276
+ - spec/rails_helper.rb
277
+ - spec/spec_helper.rb
278
+ homepage: https://github.com/nickcharlton/administrate-field-nested_has_many
72
279
  licenses:
73
280
  - MIT
74
281
  metadata: {}
75
- post_install_message:
282
+ post_install_message:
76
283
  rdoc_options: []
77
284
  require_paths:
78
285
  - lib
@@ -87,10 +294,81 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
294
  - !ruby/object:Gem::Version
88
295
  version: '0'
89
296
  requirements: []
90
- rubyforge_project:
91
- rubygems_version: 2.5.1
92
- signing_key:
297
+ rubygems_version: 3.1.2
298
+ signing_key:
93
299
  specification_version: 4
94
300
  summary: Plugin for nested has_many forms in Administrate
95
301
  test_files:
302
+ - spec/dummy/.gitignore
303
+ - spec/dummy/Rakefile
304
+ - spec/dummy/app/assets/config/manifest.js
305
+ - spec/dummy/app/assets/images/.keep
306
+ - spec/dummy/app/assets/javascripts/application.js
307
+ - spec/dummy/app/assets/javascripts/channels/.keep
308
+ - spec/dummy/app/assets/stylesheets/application.css
309
+ - spec/dummy/app/controllers/admin/application_controller.rb
310
+ - spec/dummy/app/controllers/admin/foo/students_controller.rb
311
+ - spec/dummy/app/controllers/admin/schools_controller.rb
312
+ - spec/dummy/app/controllers/application_controller.rb
313
+ - spec/dummy/app/controllers/concerns/.keep
314
+ - spec/dummy/app/dashboards/foo/student_dashboard.rb
315
+ - spec/dummy/app/dashboards/school_dashboard.rb
316
+ - spec/dummy/app/helpers/application_helper.rb
317
+ - spec/dummy/app/mailers/application_mailer.rb
318
+ - spec/dummy/app/models/application_record.rb
319
+ - spec/dummy/app/models/concerns/.keep
320
+ - spec/dummy/app/models/foo/student.rb
321
+ - spec/dummy/app/models/school.rb
322
+ - spec/dummy/app/views/layouts/application.html.erb
323
+ - spec/dummy/app/views/layouts/mailer.html.erb
324
+ - spec/dummy/app/views/layouts/mailer.text.erb
325
+ - spec/dummy/bin/bundle
326
+ - spec/dummy/bin/rails
327
+ - spec/dummy/bin/rake
328
+ - spec/dummy/bin/setup
329
+ - spec/dummy/bin/update
330
+ - spec/dummy/bin/yarn
331
+ - spec/dummy/config.ru
332
+ - spec/dummy/config/application.rb
333
+ - spec/dummy/config/boot.rb
334
+ - spec/dummy/config/cable.yml
335
+ - spec/dummy/config/database.yml
336
+ - spec/dummy/config/environment.rb
337
+ - spec/dummy/config/environments/development.rb
338
+ - spec/dummy/config/environments/test.rb
339
+ - spec/dummy/config/initializers/application_controller_renderer.rb
340
+ - spec/dummy/config/initializers/assets.rb
341
+ - spec/dummy/config/initializers/backtrace_silencers.rb
342
+ - spec/dummy/config/initializers/content_security_policy.rb
343
+ - spec/dummy/config/initializers/cookies_serializer.rb
344
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
345
+ - spec/dummy/config/initializers/inflections.rb
346
+ - spec/dummy/config/initializers/mime_types.rb
347
+ - spec/dummy/config/initializers/wrap_parameters.rb
348
+ - spec/dummy/config/locales/en.yml
349
+ - spec/dummy/config/puma.rb
350
+ - spec/dummy/config/routes.rb
351
+ - spec/dummy/config/spring.rb
352
+ - spec/dummy/config/storage.yml
353
+ - spec/dummy/db/migrate/20180907104642_create_schools.rb
354
+ - spec/dummy/db/migrate/20180907104703_create_students.rb
355
+ - spec/dummy/db/schema.rb
356
+ - spec/dummy/lib/assets/.keep
357
+ - spec/dummy/log/.keep
358
+ - spec/dummy/package.json
359
+ - spec/dummy/public/404.html
360
+ - spec/dummy/public/422.html
361
+ - spec/dummy/public/500.html
362
+ - spec/dummy/public/apple-touch-icon-precomposed.png
363
+ - spec/dummy/public/apple-touch-icon.png
364
+ - spec/dummy/public/favicon.ico
365
+ - spec/dummy/storage/.keep
366
+ - spec/dummy/tmp/.keep
367
+ - spec/dummy/tmp/storage/.keep
368
+ - spec/factories.rb
369
+ - spec/features/has_many_spec.rb
370
+ - spec/features/landing_spec.rb
371
+ - spec/i18n_spec.rb
96
372
  - spec/lib/administrate/field/nested_has_many_spec.rb
373
+ - spec/rails_helper.rb
374
+ - spec/spec_helper.rb