dynamic_fields_for_rails 1.0.1 → 1.0.2

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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -1
  3. data/lib/dynamic_fields_for_rails/version.rb +1 -1
  4. metadata +9 -184
  5. data/.gitignore +0 -18
  6. data/.rubocop.yml +0 -87
  7. data/.ruby-version +0 -1
  8. data/Gemfile +0 -6
  9. data/dynamic_fields_for_rails.gemspec +0 -28
  10. data/test/config/active_record.rb +0 -15
  11. data/test/dummy/Rakefile +0 -9
  12. data/test/dummy/app/controllers/application_controller.rb +0 -5
  13. data/test/dummy/app/helpers/application_helper.rb +0 -4
  14. data/test/dummy/app/models/application_record.rb +0 -5
  15. data/test/dummy/app/models/child.rb +0 -4
  16. data/test/dummy/app/models/parent.rb +0 -6
  17. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  18. data/test/dummy/app/views/parents/form.html.erb +0 -1
  19. data/test/dummy/config/application.rb +0 -45
  20. data/test/dummy/config/boot.rb +0 -12
  21. data/test/dummy/config/database.yml +0 -22
  22. data/test/dummy/config/environment.rb +0 -7
  23. data/test/dummy/config/environments/development.rb +0 -26
  24. data/test/dummy/config/environments/production.rb +0 -52
  25. data/test/dummy/config/environments/test.rb +0 -35
  26. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -9
  27. data/test/dummy/config/initializers/inflections.rb +0 -12
  28. data/test/dummy/config/initializers/mime_types.rb +0 -7
  29. data/test/dummy/config/initializers/secret_token.rb +0 -9
  30. data/test/dummy/config/initializers/session_store.rb +0 -10
  31. data/test/dummy/config/locales/en.yml +0 -5
  32. data/test/dummy/config/routes.rb +0 -61
  33. data/test/dummy/config.ru +0 -6
  34. data/test/dummy/db/development.sqlite3 +0 -0
  35. data/test/dummy/db/migrate/20130423140255_create_parents.rb +0 -7
  36. data/test/dummy/db/migrate/20130423140307_create_children.rb +0 -10
  37. data/test/dummy/db/schema.rb +0 -26
  38. data/test/dummy/db/test.sqlite3 +0 -0
  39. data/test/dummy/log/development.log +0 -8
  40. data/test/dummy/log/test.log +0 -2047
  41. data/test/dummy/public/404.html +0 -26
  42. data/test/dummy/public/422.html +0 -26
  43. data/test/dummy/public/500.html +0 -26
  44. data/test/dummy/public/javascripts/application.js +0 -2
  45. data/test/dummy/public/javascripts/controls.js +0 -965
  46. data/test/dummy/public/javascripts/dragdrop.js +0 -974
  47. data/test/dummy/public/javascripts/effects.js +0 -1123
  48. data/test/dummy/public/javascripts/prototype.js +0 -6001
  49. data/test/dummy/public/javascripts/rails.js +0 -202
  50. data/test/dummy/script/rails +0 -8
  51. data/test/dynamic_fields_for_helper_test.rb +0 -9
  52. data/test/link_to_add_fields_test.rb +0 -36
  53. data/test/link_to_delete_fields_test.rb +0 -42
  54. data/test/test_helper.rb +0 -19
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Dummy::Application.configure do
4
- # Settings specified here will take precedence over those in config/application.rb
5
-
6
- # The test environment is used exclusively to run your application's
7
- # test suite. You never need to work with it otherwise. Remember that
8
- # your test database is "scratch space" for the test suite and is wiped
9
- # and recreated between test runs. Don't rely on the data there!
10
- config.cache_classes = true
11
- config.eager_load = false
12
-
13
- # Show full error reports and disable caching
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Raise exceptions instead of rendering exception templates
18
- config.action_dispatch.show_exceptions = false
19
-
20
- # Disable request forgery protection in test environment
21
- config.action_controller.allow_forgery_protection = false
22
-
23
- # Tell Action Mailer not to deliver emails to the real world.
24
- # The :test delivery method accumulates sent emails in the
25
- # ActionMailer::Base.deliveries array.
26
- config.action_mailer.delivery_method = :test
27
-
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
32
-
33
- # Print deprecation notices to the stderr
34
- config.active_support.deprecation = :stderr
35
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
6
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
7
-
8
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
9
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # Add new inflection rules using the following format
6
- # (all these examples are active by default):
7
- # ActiveSupport::Inflector.inflections do |inflect|
8
- # inflect.plural /^(ox)$/i, '\1en'
9
- # inflect.singular /^(ox)en/i, '\1'
10
- # inflect.irregular 'person', 'people'
11
- # inflect.uncountable %w( fish sheep )
12
- # end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # Add new mime types for use in respond_to blocks:
6
- # Mime::Type.register "text/richtext", :rtf
7
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # Your secret key for verifying the integrity of signed cookies.
6
- # If you change this key, all old signed cookies will become invalid!
7
- # Make sure the secret is at least 30 characters and all random,
8
- # no regular words or you'll be exposed to dictionary attacks.
9
- Dummy::Application.config.secret_key_base = '5d8d9599457d5f2fa50c978d19da955350fa36c215f514e6b572b9d1d843b844d477d70fe02eacec84742e0f252cf4d93339762e5d57fed7146063faad77a030'
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
6
-
7
- # Use the database for sessions instead of the cookie-based default,
8
- # which shouldn't be used to store highly confidential information
9
- # (create the session table with "rails generate session_migration")
10
- # Dummy::Application.config.session_store :active_record_store
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: "Hello world"
@@ -1,61 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Dummy::Application.routes.draw do
4
- resources :parents
5
- # The priority is based upon order of creation:
6
- # first created -> highest priority.
7
-
8
- # Sample of regular route:
9
- # match 'products/:id' => 'catalog#view'
10
- # Keep in mind you can assign values other than :controller and :action
11
-
12
- # Sample of named route:
13
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
14
- # This route can be invoked with purchase_url(:id => product.id)
15
-
16
- # Sample resource route (maps HTTP verbs to controller actions automatically):
17
- # resources :products
18
-
19
- # Sample resource route with options:
20
- # resources :products do
21
- # member do
22
- # get 'short'
23
- # post 'toggle'
24
- # end
25
- #
26
- # collection do
27
- # get 'sold'
28
- # end
29
- # end
30
-
31
- # Sample resource route with sub-resources:
32
- # resources :products do
33
- # resources :comments, :sales
34
- # resource :seller
35
- # end
36
-
37
- # Sample resource route with more complex sub-resources
38
- # resources :products do
39
- # resources :comments
40
- # resources :sales do
41
- # get 'recent', :on => :collection
42
- # end
43
- # end
44
-
45
- # Sample resource route within a namespace:
46
- # namespace :admin do
47
- # # Directs /admin/products/* to Admin::ProductsController
48
- # # (app/controllers/admin/products_controller.rb)
49
- # resources :products
50
- # end
51
-
52
- # You can have the root of your site routed with "root"
53
- # just remember to delete public/index.html.
54
- # root :to => "welcome#index"
55
-
56
- # See how all your routes lay out with "rake routes"
57
-
58
- # This is a legacy wild controller route that's not recommended for RESTful applications.
59
- # Note: This route will make all actions in every controller accessible via GET requests.
60
- # match ':controller(/:action(/:id(.:format)))'
61
- end
data/test/dummy/config.ru DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # This file is used by Rack-based servers to start the application.
4
-
5
- require ::File.expand_path('../config/environment', __FILE__)
6
- run Dummy::Application
Binary file
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class CreateParents < ActiveRecord::Migration
4
- def change
5
- create_table :parents, &:timestamps
6
- end
7
- end
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class CreateChildren < ActiveRecord::Migration
4
- def change
5
- create_table :children do |t|
6
- t.integer :parent_id
7
- t.timestamps
8
- end
9
- end
10
- end
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # This file is auto-generated from the current state of the database. Instead
4
- # of editing this file, please use the migrations feature of Active Record to
5
- # incrementally modify your database, and then regenerate this schema definition.
6
- #
7
- # Note that this schema.rb definition is the authoritative source for your
8
- # database schema. If you need to create the application database on another
9
- # system, you should be using db:schema:load, not running all the migrations
10
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
11
- # you'll amass, the slower it'll run and the greater likelihood for issues).
12
- #
13
- # It's strongly recommended to check this file into your version control system.
14
-
15
- ActiveRecord::Schema.define(version: 20_130_423_140_307) do
16
- create_table 'children', force: true do |t|
17
- t.integer 'parent_id'
18
- t.datetime 'created_at', null: false
19
- t.datetime 'updated_at', null: false
20
- end
21
-
22
- create_table 'parents', force: true do |t|
23
- t.datetime 'created_at', null: false
24
- t.datetime 'updated_at', null: false
25
- end
26
- end
Binary file
@@ -1,8 +0,0 @@
1
- Connecting to database specified by database.yml
2
- Connecting to database specified by database.yml
3
- Connecting to database specified by database.yml
4
-  (0.1ms) select sqlite_version(*)
5
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
-  (3.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
8
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"