record_collection 1.0.0 → 1.0.1

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 (117) hide show
  1. checksums.yaml +4 -4
  2. data/lib/record_collection/version.rb +1 -1
  3. metadata +3 -220
  4. data/.gitignore +0 -24
  5. data/.rspec +0 -1
  6. data/.travis.yml +0 -15
  7. data/CHANGELOG.md +0 -88
  8. data/Gemfile +0 -15
  9. data/LICENSE.txt +0 -22
  10. data/app/assets/images/record_collection/.keep +0 -0
  11. data/bin/rails +0 -13
  12. data/gemfiles/Gemfile.rails-4.2.x +0 -10
  13. data/gemfiles/Gemfile.rails-5.0.x +0 -10
  14. data/gemfiles/Gemfile.rails-master +0 -13
  15. data/record_collection.gemspec +0 -50
  16. data/spec/base/accessors_spec.rb +0 -20
  17. data/spec/base/after_record_update_no_arity_spec.rb +0 -15
  18. data/spec/base/after_record_update_spec.rb +0 -22
  19. data/spec/base/before_record_update_no_arity_spec.rb +0 -15
  20. data/spec/base/before_record_update_spec.rb +0 -22
  21. data/spec/base/behaviour_spec.rb +0 -39
  22. data/spec/base/finding_records_spec.rb +0 -98
  23. data/spec/base/inheritance_spec.rb +0 -15
  24. data/spec/base/refine_relation_spec.rb +0 -10
  25. data/spec/base/validations_spec.rb +0 -26
  26. data/spec/dummy/README.rdoc +0 -28
  27. data/spec/dummy/Rakefile +0 -6
  28. data/spec/dummy/app/assets/config/manifest.js +0 -3
  29. data/spec/dummy/app/assets/images/.keep +0 -0
  30. data/spec/dummy/app/assets/javascripts/application.js.coffee +0 -23
  31. data/spec/dummy/app/assets/javascripts/foundation.min.js +0 -6081
  32. data/spec/dummy/app/assets/javascripts/modernizr.js +0 -8
  33. data/spec/dummy/app/assets/stylesheets/application.sass +0 -3
  34. data/spec/dummy/app/assets/stylesheets/components/_forms.sass +0 -4
  35. data/spec/dummy/app/assets/stylesheets/components/_structure.sass +0 -9
  36. data/spec/dummy/app/assets/stylesheets/foundation.css +0 -6201
  37. data/spec/dummy/app/assets/stylesheets/normalize.css +0 -427
  38. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  39. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  40. data/spec/dummy/app/controllers/dashboard_controller.rb +0 -4
  41. data/spec/dummy/app/controllers/employees_controller.rb +0 -73
  42. data/spec/dummy/app/controllers/projects_controller.rb +0 -73
  43. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  44. data/spec/dummy/app/mailers/.keep +0 -0
  45. data/spec/dummy/app/models/.keep +0 -0
  46. data/spec/dummy/app/models/concerns/.keep +0 -0
  47. data/spec/dummy/app/models/employee/collection.rb +0 -6
  48. data/spec/dummy/app/models/employee.rb +0 -3
  49. data/spec/dummy/app/models/project/collection.rb +0 -6
  50. data/spec/dummy/app/models/project.rb +0 -3
  51. data/spec/dummy/app/views/application/_form_errors.html.slim +0 -8
  52. data/spec/dummy/app/views/dashboard/home.html.slim +0 -1
  53. data/spec/dummy/app/views/employees/_form.html.erb +0 -25
  54. data/spec/dummy/app/views/employees/collection_edit.html.slim +0 -11
  55. data/spec/dummy/app/views/employees/edit.html.erb +0 -6
  56. data/spec/dummy/app/views/employees/index.html.slim +0 -28
  57. data/spec/dummy/app/views/employees/new.html.erb +0 -5
  58. data/spec/dummy/app/views/employees/show.html.erb +0 -14
  59. data/spec/dummy/app/views/layouts/application.html.slim +0 -30
  60. data/spec/dummy/app/views/projects/_form.html.erb +0 -21
  61. data/spec/dummy/app/views/projects/collection_edit.html.slim +0 -11
  62. data/spec/dummy/app/views/projects/edit.html.erb +0 -6
  63. data/spec/dummy/app/views/projects/index.html.slim +0 -20
  64. data/spec/dummy/app/views/projects/new.html.erb +0 -5
  65. data/spec/dummy/app/views/projects/show.html.erb +0 -14
  66. data/spec/dummy/bin/bundle +0 -3
  67. data/spec/dummy/bin/rails +0 -4
  68. data/spec/dummy/bin/rake +0 -4
  69. data/spec/dummy/bin/setup +0 -29
  70. data/spec/dummy/config/application.rb +0 -26
  71. data/spec/dummy/config/boot.rb +0 -5
  72. data/spec/dummy/config/database.yml +0 -25
  73. data/spec/dummy/config/environment.rb +0 -5
  74. data/spec/dummy/config/environments/development.rb +0 -41
  75. data/spec/dummy/config/environments/production.rb +0 -79
  76. data/spec/dummy/config/environments/test.rb +0 -48
  77. data/spec/dummy/config/initializers/assets.rb +0 -11
  78. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  79. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -3
  80. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  81. data/spec/dummy/config/initializers/inflections.rb +0 -16
  82. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  83. data/spec/dummy/config/initializers/session_store.rb +0 -3
  84. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  85. data/spec/dummy/config/locales/record_collection.en.yml +0 -28
  86. data/spec/dummy/config/routes.rb +0 -5
  87. data/spec/dummy/config/secrets.yml +0 -22
  88. data/spec/dummy/config.ru +0 -4
  89. data/spec/dummy/db/migrate/20150203124634_create_employees.rb +0 -10
  90. data/spec/dummy/db/migrate/20150204103712_add_vegan_to_employees.rb +0 -5
  91. data/spec/dummy/db/migrate/20150204103925_add_admin_to_employees.rb +0 -5
  92. data/spec/dummy/db/migrate/20150204125014_create_projects.rb +0 -11
  93. data/spec/dummy/db/migrate/20150721122805_add_description_to_projects.rb +0 -5
  94. data/spec/dummy/db/migrate/20151215123553_add_project_id_to_employees.rb +0 -5
  95. data/spec/dummy/db/migrate/20151225113902_add_start_date_to_projects.rb +0 -5
  96. data/spec/dummy/db/migrate/20151226083300_add_hint_visible_to_projects.rb +0 -5
  97. data/spec/dummy/db/schema.rb +0 -37
  98. data/spec/dummy/lib/assets/.keep +0 -0
  99. data/spec/dummy/log/.keep +0 -0
  100. data/spec/dummy/public/404.html +0 -67
  101. data/spec/dummy/public/422.html +0 -67
  102. data/spec/dummy/public/500.html +0 -66
  103. data/spec/dummy/public/favicon.ico +0 -0
  104. data/spec/features/disabled_boolean_spec.rb +0 -19
  105. data/spec/features/multi_select_spec.rb +0 -24
  106. data/spec/features/optional_boolean_hint_and_append_text_spec.rb +0 -12
  107. data/spec/features/optional_boolean_with_normal_resource_spec.rb +0 -20
  108. data/spec/features/optional_date_field_all_nil_spec.rb +0 -10
  109. data/spec/features/optional_text_field_with_normal_resource_spec.rb +0 -16
  110. data/spec/features/optionals_with_one_record_spec.rb +0 -16
  111. data/spec/features/translations_spec.rb +0 -9
  112. data/spec/fixtures/collections.rb +0 -0
  113. data/spec/rails/form_builder_spec.rb +0 -113
  114. data/spec/rails/form_for_spec.rb +0 -58
  115. data/spec/record_selection/base_spec.rb +0 -157
  116. data/spec/record_selection/name_spec.rb +0 -10
  117. data/spec/spec_helper.rb +0 -32
@@ -1,5 +0,0 @@
1
- <h1>New Employee</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Back', employees_path %>
@@ -1,14 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <strong>Name:</strong>
5
- <%= @employee.name %>
6
- </p>
7
-
8
- <p>
9
- <strong>Section:</strong>
10
- <%= @employee.section %>
11
- </p>
12
-
13
- <%= link_to 'Edit', edit_employee_path(@employee) %> |
14
- <%= link_to 'Back', employees_path %>
@@ -1,30 +0,0 @@
1
- <!DOCTYPE html>
2
- doctype html
3
- html
4
- head
5
- title Dummy
6
- = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
7
- = javascript_include_tag 'application', 'data-turbolinks-track' => true
8
- = csrf_meta_tags
9
- body
10
- nav.top-bar data-topbar="" role="navigation"
11
- ul.title-area
12
- li.name
13
- h1
14
- a href="/" Record collection
15
- li.toggle-topbar.menu-icon
16
- a href="#"
17
- span Menu
18
- section.top-bar-section
19
- ul.left
20
- li: a href=employees_path class=(controller_name=="employees" ? "active" : nil) Employees
21
- li: a href=projects_path class=(controller_name=="projects" ? "active" : nil) Projects
22
- .row
23
- .small-12.columns
24
- - flash.each do |name, msg|
25
- - if msg.is_a?(String)
26
- .alert-box.round class=(name.to_s == 'notice' ? 'success' : 'alert') data-alert=true
27
- = msg
28
- a.close href="#" &times;
29
- .row
30
- .small-12.columns= yield
@@ -1,21 +0,0 @@
1
- <%= form_for(@project) do |f| %>
2
- <% if @project.errors.any? %>
3
- <div id="error_explanation">
4
- <h2><%= pluralize(@project.errors.count, "error") %> prohibited this project from being saved:</h2>
5
-
6
- <ul>
7
- <% @project.errors.full_messages.each do |message| %>
8
- <li><%= message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div class="field">
15
- <%= f.label :name %><br>
16
- <%= f.text_field :name %>
17
- </div>
18
- <div class="actions">
19
- <%= f.submit %>
20
- </div>
21
- <% end %>
@@ -1,11 +0,0 @@
1
- h1 Edit multiple projects
2
- = simple_form_for @collection, url: [:collection_update, @collection] do |f|
3
- = render 'form_errors', target: @collection
4
- .form-inputs= f.optional_boolean :finished, disabled: true
5
- .form-inputs= f.optional_boolean :hint_visible, hint: "Check this one if the hint is visible. Hint testing", append_text: "Just appending text must also be visible"
6
- .form-inputs= f.optional_input :start_date
7
- .form-inputs= f.optional_input :description, hint: "Hint normal display for other attributes, use .optional-attribute-hint with data-hint='abc' in your simple_form config to use the record_collection styling"
8
- .form-actions= f.submit
9
- .page-actions
10
- = link_to 'Back', projects_path
11
-
@@ -1,6 +0,0 @@
1
- <h1>Editing Project</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Show', @project %> |
6
- <%= link_to 'Back', projects_path %>
@@ -1,20 +0,0 @@
1
- h1 Listing Projects
2
- table.with-selection
3
- thead
4
- tr
5
- th Name
6
- th Finished?
7
- th colspan=3
8
- tbody
9
- - @projects.each do |project|
10
- tr data-record=project.attributes.to_json
11
- td= project.name
12
- td.finished= project.finished ? 'yes' : 'no'
13
- td= link_to 'Show', project
14
- td= link_to 'Edit', edit_project_path(project)
15
- td= link_to 'Destroy', project, method: :delete, data: {confirm: 'Are you sure?' }
16
- br
17
- .page-actions
18
- button.actions-button.button.warning onclick="window.location = Routes.collection_edit_projects_path({ids: MultiSelect.selected_ids()})" Actions
19
- span.devider
20
- = link_to 'New Project', new_project_path, class: 'info button'
@@ -1,5 +0,0 @@
1
- <h1>New Project</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Back', projects_path %>
@@ -1,14 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <strong>Name:</strong>
5
- <%= @project.name %>
6
- </p>
7
-
8
- <p>
9
- <strong>Finished:</strong>
10
- <%= @project.finished ? 'yes' : 'no' %>
11
- </p>
12
-
13
- <%= link_to 'Edit', edit_project_path(@project) %> |
14
- <%= link_to 'Back', projects_path %>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
data/spec/dummy/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
data/spec/dummy/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
data/spec/dummy/bin/setup DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'pathname'
3
-
4
- # path to your application root.
5
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
-
7
- Dir.chdir APP_ROOT do
8
- # This script is a starting point to setup your application.
9
- # Add necessary setup steps to this file:
10
-
11
- puts "== Installing dependencies =="
12
- system "gem install bundler --conservative"
13
- system "bundle check || bundle install"
14
-
15
- # puts "\n== Copying sample files =="
16
- # unless File.exist?("config/database.yml")
17
- # system "cp config/database.yml.sample config/database.yml"
18
- # end
19
-
20
- puts "\n== Preparing database =="
21
- system "bin/rake db:setup"
22
-
23
- puts "\n== Removing old logs and tempfiles =="
24
- system "rm -f log/*"
25
- system "rm -rf tmp/cache"
26
-
27
- puts "\n== Restarting application server =="
28
- system "touch tmp/restart.txt"
29
- end
@@ -1,26 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require(*Rails.groups(development: ['development', 'test']))
6
- require "record_collection"
7
-
8
- module Dummy
9
- class Application < Rails::Application
10
- # Settings in config/environments/* take precedence over those specified here.
11
- # Application configuration should go into files in config/initializers
12
- # -- all .rb files in that directory are automatically loaded.
13
-
14
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
15
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
16
- # config.time_zone = 'Central Time (US & Canada)'
17
-
18
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
19
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
- # config.i18n.default_locale = :de
21
-
22
- # Do not swallow errors in after_commit/after_rollback callbacks.
23
- # config.active_record.raise_in_transactional_callbacks = true if Gem::Requirement.new(">= 4.2").satisfied_by?(Gem::Version.new(Rails.version))
24
- end
25
- end
26
-
@@ -1,5 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- #
7
- default: &default
8
- adapter: sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- development:
13
- <<: *default
14
- database: db/development.sqlite3
15
-
16
- # Warning: The database defined as "test" will be erased and
17
- # re-generated from your development database when you run "rake".
18
- # Do not set this db to the same as development or production.
19
- test:
20
- <<: *default
21
- database: db/test.sqlite3
22
-
23
- production:
24
- <<: *default
25
- database: db/production.sqlite3
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
@@ -1,41 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Do not eager load code on boot.
10
- config.eager_load = false
11
-
12
- # Show full error reports and disable caching.
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send.
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger.
20
- config.active_support.deprecation = :log
21
-
22
- # Raise an error on page load if there are pending migrations.
23
- config.active_record.migration_error = :page_load
24
-
25
- # Debug mode disables concatenation and preprocessing of assets.
26
- # This option may cause significant delays in view rendering with a large
27
- # number of complex assets.
28
- config.assets.debug = false
29
-
30
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
- # yet still be able to expire them through the digest params.
32
- config.assets.digest = true
33
-
34
- # Adds additional error checking when serving assets at runtime.
35
- # Checks for improperly declared sprockets dependencies.
36
- # Raises helpful error messages.
37
- config.assets.raise_runtime_errors = true
38
-
39
- # Raises error for missing translations
40
- # config.action_view.raise_on_missing_translations = true
41
- end
@@ -1,79 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # Code is not reloaded between requests.
5
- config.cache_classes = true
6
-
7
- # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both threaded web servers
9
- # and those relying on copy on write to perform better.
10
- # Rake tasks automatically ignore this option for performance.
11
- config.eager_load = true
12
-
13
- # Full error reports are disabled and caching is turned on.
14
- config.consider_all_requests_local = false
15
- config.action_controller.perform_caching = true
16
-
17
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
- # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like
20
- # NGINX, varnish or squid.
21
- # config.action_dispatch.rack_cache = true
22
-
23
- # Disable serving static files from the `/public` folder by default since
24
- # Apache or NGINX already handles this.
25
- config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
26
-
27
- # Compress JavaScripts and CSS.
28
- config.assets.js_compressor = :uglifier
29
- # config.assets.css_compressor = :sass
30
-
31
- # Do not fallback to assets pipeline if a precompiled asset is missed.
32
- config.assets.compile = false
33
-
34
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35
- # yet still be able to expire them through the digest params.
36
- config.assets.digest = true
37
-
38
- # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
39
-
40
- # Specifies the header that your server uses for sending files.
41
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
43
-
44
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45
- # config.force_ssl = true
46
-
47
- # Use the lowest log level to ensure availability of diagnostic information
48
- # when problems arise.
49
- config.log_level = :debug
50
-
51
- # Prepend all log lines with the following tags.
52
- # config.log_tags = [ :subdomain, :uuid ]
53
-
54
- # Use a different logger for distributed setups.
55
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
56
-
57
- # Use a different cache store in production.
58
- # config.cache_store = :mem_cache_store
59
-
60
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
- # config.action_controller.asset_host = 'http://assets.example.com'
62
-
63
- # Ignore bad email addresses and do not raise email delivery errors.
64
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65
- # config.action_mailer.raise_delivery_errors = false
66
-
67
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68
- # the I18n.default_locale when a translation cannot be found).
69
- config.i18n.fallbacks = true
70
-
71
- # Send deprecation notices to registered listeners.
72
- config.active_support.deprecation = :notify
73
-
74
- # Use default logging formatter so that PID and timestamp are not suppressed.
75
- config.log_formatter = ::Logger::Formatter.new
76
-
77
- # Do not dump schema after migrations.
78
- config.active_record.dump_schema_after_migration = false
79
- end
@@ -1,48 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Do not eager load code on boot. This avoids loading your whole application
11
- # just for the purpose of running a single test. If you are using a tool that
12
- # preloads Rails for running tests, you may have to set it to true.
13
- config.eager_load = false
14
-
15
- # Configure static file server for tests with Cache-Control for performance.
16
- if Rails.version.start_with?('4')
17
- config.serve_static_files = true # rails < 5
18
- config.static_cache_control = 'public, max-age=3600' # rails < 5
19
- else
20
- config.public_file_server.enabled = true
21
- config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
22
- end
23
-
24
-
25
- # Show full error reports and disable caching.
26
- config.consider_all_requests_local = true
27
- config.action_controller.perform_caching = false
28
-
29
- # Raise exceptions instead of rendering exception templates.
30
- config.action_dispatch.show_exceptions = false
31
-
32
- # Disable request forgery protection in test environment.
33
- config.action_controller.allow_forgery_protection = false
34
-
35
- # Tell Action Mailer not to deliver emails to the real world.
36
- # The :test delivery method accumulates sent emails in the
37
- # ActionMailer::Base.deliveries array.
38
- config.action_mailer.delivery_method = :test
39
-
40
- # Randomize the order test cases are executed.
41
- config.active_support.test_order = :random
42
-
43
- # Print deprecation notices to the stderr.
44
- config.active_support.deprecation = :stderr
45
-
46
- # Raises error for missing translations
47
- # config.action_view.raise_on_missing_translations = true
48
- end
@@ -1,11 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Version of your assets, change this if you want to expire all your assets.
4
- Rails.application.config.assets.version = '1.0'
5
-
6
- # Add additional assets to the asset load path
7
- # Rails.application.config.assets.paths << Emoji.images_path
8
-
9
- # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
- # Rails.application.config.assets.precompile += %w( search.js )
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure sensitive parameters which will be filtered from the log file.
4
- Rails.application.config.filter_parameters += [:password]
@@ -1,16 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format. Inflections
4
- # are locale specific, and you may define rules for as many different
5
- # locales as you wish. All of these examples are active by default:
6
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
- # inflect.plural /^(ox)$/i, '\1en'
8
- # inflect.singular /^(ox)en/i, '\1'
9
- # inflect.irregular 'person', 'people'
10
- # inflect.uncountable %w( fish sheep )
11
- # end
12
-
13
- # These inflection rules are supported but not enabled by default:
14
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym 'RESTful'
16
- # end
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
@@ -1,28 +0,0 @@
1
- en:
2
- activerecord:
3
- collections:
4
- employee: Employees collection
5
- attributes:
6
- employee:
7
- section: Department
8
- helpers:
9
- submit:
10
- collection:
11
- create: "Update %{model}"
12
- action:
13
- create:
14
- successful: Successfully created %{model}
15
- update:
16
- successful: Successfully updated %{model}
17
- collection_update:
18
- successful: Successfully updated %{model} collection
19
- destroy:
20
- successful: Successfully destroyed %{model}
21
- new:
22
- link: New
23
- index:
24
- link: Back
25
- edit:
26
- link: Edit
27
- show:
28
- link: Show
@@ -1,5 +0,0 @@
1
- Rails.application.routes.draw do
2
- collection_resources :employees
3
- collection_resources :projects
4
- root to: 'dashboard#home'
5
- end
@@ -1,22 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: f51165a5f86c76b48142d8cc907c1f5d53d17f5795f9760f2766cabb5487d42738fbccb095271fd7cfae7612ae562bdb3a928009880ad8bc5fa31d14269dd2e7
15
-
16
- test:
17
- secret_key_base: cf2b5898bcf4fb7c54c0cdc5c9156b46dc282b16a6f33c64e2c1fc178357fe6df994252bfad1be877dd0b83b37b4157937832ae7d538e75013ca184838e5a9e0
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
data/spec/dummy/config.ru DELETED
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails.application
@@ -1,10 +0,0 @@
1
- class CreateEmployees < ActiveRecord::Migration
2
- def change
3
- create_table :employees do |t|
4
- t.string :name
5
- t.string :section
6
-
7
- t.timestamps null: false
8
- end
9
- end
10
- end
@@ -1,5 +0,0 @@
1
- class AddVeganToEmployees < ActiveRecord::Migration
2
- def change
3
- add_column :employees, :vegan, :boolean, default: true
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddAdminToEmployees < ActiveRecord::Migration
2
- def change
3
- add_column :employees, :admin, :boolean, default: false
4
- end
5
- end
@@ -1,11 +0,0 @@
1
- class CreateProjects < ActiveRecord::Migration
2
- def change
3
- create_table :projects do |t|
4
- t.string :name
5
- t.boolean :finished
6
- t.string :state
7
-
8
- t.timestamps null: false
9
- end
10
- end
11
- end
@@ -1,5 +0,0 @@
1
- class AddDescriptionToProjects < ActiveRecord::Migration
2
- def change
3
- add_column :projects, :description, :text
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddProjectIdToEmployees < ActiveRecord::Migration
2
- def change
3
- add_column :employees, :project_id, :integer
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddStartDateToProjects < ActiveRecord::Migration
2
- def change
3
- add_column :projects, :start_date, :date
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddHintVisibleToProjects < ActiveRecord::Migration
2
- def change
3
- add_column :projects, :hint_visible, :boolean, null: false, default: false
4
- end
5
- end