junctions 0.0.1 → 0.0.3

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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +50 -0
  3. data/Gemfile +14 -0
  4. data/Gemfile.lock +45 -0
  5. data/LICENSE +21 -0
  6. data/README.md +49 -0
  7. data/junctions.gemspec +29 -0
  8. data/lib/junctions/engine.rb +30 -110
  9. data/lib/junctions/version.rb +4 -2
  10. data/lib/junctions.rb +11 -0
  11. data/test/junctions_test.rb +25 -3
  12. data/test/lib/common/wibble_extensions.rb +14 -0
  13. data/test/lib/metal/wibble_extensions.rb +11 -0
  14. data/test/lib/plastic/wibble_extensions.rb +7 -0
  15. data/test/lib/wibble.rb +8 -0
  16. data/test/lib/wobble.rb +8 -0
  17. data/test/test_helper.rb +1 -17
  18. metadata +78 -127
  19. data/lib/junctions/brand_methods.rb +0 -35
  20. data/test/dummy/README.rdoc +0 -28
  21. data/test/dummy/Rakefile +0 -6
  22. data/test/dummy/app/assets/javascripts/application.js +0 -13
  23. data/test/dummy/app/assets/javascripts/easy_checks.js +0 -2
  24. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  25. data/test/dummy/app/assets/stylesheets/easy_checks.css +0 -4
  26. data/test/dummy/app/assets/stylesheets/scaffold.css +0 -56
  27. data/test/dummy/app/controllers/application_controller.rb +0 -5
  28. data/test/dummy/app/controllers/easy_checks_controller.rb +0 -58
  29. data/test/dummy/app/helpers/application_helper.rb +0 -2
  30. data/test/dummy/app/helpers/easy_checks_helper.rb +0 -2
  31. data/test/dummy/app/models/easy_check.rb +0 -2
  32. data/test/dummy/app/views/easy_checks/_form.html.erb +0 -17
  33. data/test/dummy/app/views/easy_checks/edit.html.erb +0 -6
  34. data/test/dummy/app/views/easy_checks/index.html.erb +0 -25
  35. data/test/dummy/app/views/easy_checks/new.html.erb +0 -5
  36. data/test/dummy/app/views/easy_checks/show.html.erb +0 -4
  37. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  38. data/test/dummy/bin/bundle +0 -3
  39. data/test/dummy/bin/rails +0 -4
  40. data/test/dummy/bin/rake +0 -4
  41. data/test/dummy/bin/setup +0 -29
  42. data/test/dummy/config/application.rb +0 -26
  43. data/test/dummy/config/boot.rb +0 -5
  44. data/test/dummy/config/brands/databases/core/database.yml +0 -50
  45. data/test/dummy/config/brands/databases/dumdeedee/database.yml +0 -50
  46. data/test/dummy/config/brands/environments/core/development.rb +0 -13
  47. data/test/dummy/config/brands/environments/core/production.rb +0 -77
  48. data/test/dummy/config/brands/environments/core/test.rb +0 -42
  49. data/test/dummy/config/brands/environments/dumdeedee/development.rb +0 -4
  50. data/test/dummy/config/brands/environments/dumdeedee/production.rb +0 -77
  51. data/test/dummy/config/brands/environments/dumdeedee/test.rb +0 -42
  52. data/test/dummy/config/database.yml +0 -50
  53. data/test/dummy/config/environment.rb +0 -5
  54. data/test/dummy/config/environments/development.rb +0 -41
  55. data/test/dummy/config/environments/production.rb +0 -77
  56. data/test/dummy/config/environments/test.rb +0 -42
  57. data/test/dummy/config/initializers/assets.rb +0 -11
  58. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  59. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  60. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  61. data/test/dummy/config/initializers/inflections.rb +0 -16
  62. data/test/dummy/config/initializers/mime_types.rb +0 -4
  63. data/test/dummy/config/initializers/session_store.rb +0 -3
  64. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  65. data/test/dummy/config/locales/en.yml +0 -23
  66. data/test/dummy/config/routes.rb +0 -7
  67. data/test/dummy/config/secrets.yml +0 -22
  68. data/test/dummy/config.ru +0 -4
  69. data/test/dummy/db/migrate/20141118121139_create_easy_checks.rb +0 -8
  70. data/test/dummy/db/schema.rb +0 -36
  71. data/test/dummy/lib/brands/app/views/dumdeedee/easy_checks/index.html.erb +0 -25
  72. data/test/dummy/public/404.html +0 -67
  73. data/test/dummy/public/422.html +0 -67
  74. data/test/dummy/public/500.html +0 -66
  75. data/test/dummy/test/controllers/easy_checks_controller_test.rb +0 -49
  76. data/test/dummy/test/fixtures/easy_checks.yml +0 -11
  77. data/test/dummy/test/models/easy_check_test.rb +0 -7
  78. data/test/integration/navigation_test.rb +0 -10
  79. data/test/lib/generators/junctions/model_generator_test.rb +0 -36
metadata CHANGED
@@ -1,31 +1,87 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: junctions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul McKibbin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-18 00:00:00.000000000 Z
11
+ date: 2018-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5'
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: '5'
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
27
83
  - !ruby/object:Gem::Dependency
28
- name: sqlite3
84
+ name: config_files
29
85
  requirement: !ruby/object:Gem::Requirement
30
86
  requirements:
31
87
  - - "~>"
@@ -45,71 +101,21 @@ executables: []
45
101
  extensions: []
46
102
  extra_rdoc_files: []
47
103
  files:
104
+ - ".gitignore"
105
+ - Gemfile
106
+ - Gemfile.lock
107
+ - LICENSE
108
+ - README.md
109
+ - junctions.gemspec
48
110
  - lib/junctions.rb
49
- - lib/junctions/brand_methods.rb
50
111
  - lib/junctions/engine.rb
51
112
  - lib/junctions/version.rb
52
- - test/dummy/README.rdoc
53
- - test/dummy/Rakefile
54
- - test/dummy/app/assets/javascripts/application.js
55
- - test/dummy/app/assets/javascripts/easy_checks.js
56
- - test/dummy/app/assets/stylesheets/application.css
57
- - test/dummy/app/assets/stylesheets/easy_checks.css
58
- - test/dummy/app/assets/stylesheets/scaffold.css
59
- - test/dummy/app/controllers/application_controller.rb
60
- - test/dummy/app/controllers/easy_checks_controller.rb
61
- - test/dummy/app/helpers/application_helper.rb
62
- - test/dummy/app/helpers/easy_checks_helper.rb
63
- - test/dummy/app/models/easy_check.rb
64
- - test/dummy/app/views/easy_checks/_form.html.erb
65
- - test/dummy/app/views/easy_checks/edit.html.erb
66
- - test/dummy/app/views/easy_checks/index.html.erb
67
- - test/dummy/app/views/easy_checks/new.html.erb
68
- - test/dummy/app/views/easy_checks/show.html.erb
69
- - test/dummy/app/views/layouts/application.html.erb
70
- - test/dummy/bin/bundle
71
- - test/dummy/bin/rails
72
- - test/dummy/bin/rake
73
- - test/dummy/bin/setup
74
- - test/dummy/config.ru
75
- - test/dummy/config/application.rb
76
- - test/dummy/config/boot.rb
77
- - test/dummy/config/brands/databases/core/database.yml
78
- - test/dummy/config/brands/databases/dumdeedee/database.yml
79
- - test/dummy/config/brands/environments/core/development.rb
80
- - test/dummy/config/brands/environments/core/production.rb
81
- - test/dummy/config/brands/environments/core/test.rb
82
- - test/dummy/config/brands/environments/dumdeedee/development.rb
83
- - test/dummy/config/brands/environments/dumdeedee/production.rb
84
- - test/dummy/config/brands/environments/dumdeedee/test.rb
85
- - test/dummy/config/database.yml
86
- - test/dummy/config/environment.rb
87
- - test/dummy/config/environments/development.rb
88
- - test/dummy/config/environments/production.rb
89
- - test/dummy/config/environments/test.rb
90
- - test/dummy/config/initializers/assets.rb
91
- - test/dummy/config/initializers/backtrace_silencers.rb
92
- - test/dummy/config/initializers/cookies_serializer.rb
93
- - test/dummy/config/initializers/filter_parameter_logging.rb
94
- - test/dummy/config/initializers/inflections.rb
95
- - test/dummy/config/initializers/mime_types.rb
96
- - test/dummy/config/initializers/session_store.rb
97
- - test/dummy/config/initializers/wrap_parameters.rb
98
- - test/dummy/config/locales/en.yml
99
- - test/dummy/config/routes.rb
100
- - test/dummy/config/secrets.yml
101
- - test/dummy/db/migrate/20141118121139_create_easy_checks.rb
102
- - test/dummy/db/schema.rb
103
- - test/dummy/lib/brands/app/views/dumdeedee/easy_checks/index.html.erb
104
- - test/dummy/public/404.html
105
- - test/dummy/public/422.html
106
- - test/dummy/public/500.html
107
- - test/dummy/test/controllers/easy_checks_controller_test.rb
108
- - test/dummy/test/fixtures/easy_checks.yml
109
- - test/dummy/test/models/easy_check_test.rb
110
- - test/integration/navigation_test.rb
111
113
  - test/junctions_test.rb
112
- - test/lib/generators/junctions/model_generator_test.rb
114
+ - test/lib/common/wibble_extensions.rb
115
+ - test/lib/metal/wibble_extensions.rb
116
+ - test/lib/plastic/wibble_extensions.rb
117
+ - test/lib/wibble.rb
118
+ - test/lib/wobble.rb
113
119
  - test/test_helper.rb
114
120
  homepage: http://blackrat.org
115
121
  licenses:
@@ -136,65 +142,10 @@ signing_key:
136
142
  specification_version: 4
137
143
  summary: Summary of Junctions.
138
144
  test_files:
139
- - test/dummy/app/assets/javascripts/application.js
140
- - test/dummy/app/assets/javascripts/easy_checks.js
141
- - test/dummy/app/assets/stylesheets/application.css
142
- - test/dummy/app/assets/stylesheets/easy_checks.css
143
- - test/dummy/app/assets/stylesheets/scaffold.css
144
- - test/dummy/app/controllers/application_controller.rb
145
- - test/dummy/app/controllers/easy_checks_controller.rb
146
- - test/dummy/app/helpers/application_helper.rb
147
- - test/dummy/app/helpers/easy_checks_helper.rb
148
- - test/dummy/app/models/easy_check.rb
149
- - test/dummy/app/views/easy_checks/_form.html.erb
150
- - test/dummy/app/views/easy_checks/edit.html.erb
151
- - test/dummy/app/views/easy_checks/index.html.erb
152
- - test/dummy/app/views/easy_checks/new.html.erb
153
- - test/dummy/app/views/easy_checks/show.html.erb
154
- - test/dummy/app/views/layouts/application.html.erb
155
- - test/dummy/bin/bundle
156
- - test/dummy/bin/rails
157
- - test/dummy/bin/rake
158
- - test/dummy/bin/setup
159
- - test/dummy/config/application.rb
160
- - test/dummy/config/boot.rb
161
- - test/dummy/config/brands/databases/core/database.yml
162
- - test/dummy/config/brands/databases/dumdeedee/database.yml
163
- - test/dummy/config/brands/environments/core/development.rb
164
- - test/dummy/config/brands/environments/core/production.rb
165
- - test/dummy/config/brands/environments/core/test.rb
166
- - test/dummy/config/brands/environments/dumdeedee/development.rb
167
- - test/dummy/config/brands/environments/dumdeedee/production.rb
168
- - test/dummy/config/brands/environments/dumdeedee/test.rb
169
- - test/dummy/config/database.yml
170
- - test/dummy/config/environment.rb
171
- - test/dummy/config/environments/development.rb
172
- - test/dummy/config/environments/production.rb
173
- - test/dummy/config/environments/test.rb
174
- - test/dummy/config/initializers/assets.rb
175
- - test/dummy/config/initializers/backtrace_silencers.rb
176
- - test/dummy/config/initializers/cookies_serializer.rb
177
- - test/dummy/config/initializers/filter_parameter_logging.rb
178
- - test/dummy/config/initializers/inflections.rb
179
- - test/dummy/config/initializers/mime_types.rb
180
- - test/dummy/config/initializers/session_store.rb
181
- - test/dummy/config/initializers/wrap_parameters.rb
182
- - test/dummy/config/locales/en.yml
183
- - test/dummy/config/routes.rb
184
- - test/dummy/config/secrets.yml
185
- - test/dummy/config.ru
186
- - test/dummy/db/migrate/20141118121139_create_easy_checks.rb
187
- - test/dummy/db/schema.rb
188
- - test/dummy/lib/brands/app/views/dumdeedee/easy_checks/index.html.erb
189
- - test/dummy/public/404.html
190
- - test/dummy/public/422.html
191
- - test/dummy/public/500.html
192
- - test/dummy/Rakefile
193
- - test/dummy/README.rdoc
194
- - test/dummy/test/controllers/easy_checks_controller_test.rb
195
- - test/dummy/test/fixtures/easy_checks.yml
196
- - test/dummy/test/models/easy_check_test.rb
197
- - test/integration/navigation_test.rb
198
145
  - test/junctions_test.rb
199
- - test/lib/generators/junctions/model_generator_test.rb
146
+ - test/lib/common/wibble_extensions.rb
147
+ - test/lib/metal/wibble_extensions.rb
148
+ - test/lib/plastic/wibble_extensions.rb
149
+ - test/lib/wibble.rb
150
+ - test/lib/wobble.rb
200
151
  - test/test_helper.rb
@@ -1,35 +0,0 @@
1
- module Junctions
2
- module BrandMethods
3
- class << self
4
- def brand_classes
5
- Junctions::Engine::brand_list.reverse
6
- end
7
-
8
- def activate_for_brand(brand_class, base, base_name)
9
- name=base_name.gsub("Core::", "#{brand_class}::")
10
- begin
11
- require_dependency(name.underscore)
12
- base.instance_eval {
13
- include name.constantize
14
- # puts("Included #{name} in #{self.class.name}.") if Rails.env.development?
15
- } if name.gsub(/::[^:]*$/, '').constantize.const_defined?(name.demodulize)
16
- rescue MissingSourceFile => e
17
- # puts("No brand extensions for #{name}.") if Rails.env.development?
18
- rescue Exception => e
19
- puts(e.message)
20
- puts(e.backtrace)
21
- end unless base_name==name
22
- end
23
-
24
- def activate(base, name)
25
- brand_classes.each { |brand_class| activate_for_brand(brand_class.camelize, base, name) }
26
- end
27
-
28
- def include_environment
29
- brand_classes.each do |brand_class|
30
- require "config/brands/environments/#{brand_class}/#{Rails.env}"
31
- end
32
- end
33
- end
34
- end
35
- end
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
data/test/dummy/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
@@ -1,13 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,56 +0,0 @@
1
- body { background-color: #fff; color: #333; }
2
-
3
- body, p, ol, ul, td {
4
- font-family: verdana, arial, helvetica, sans-serif;
5
- font-size: 13px;
6
- line-height: 18px;
7
- }
8
-
9
- pre {
10
- background-color: #eee;
11
- padding: 10px;
12
- font-size: 11px;
13
- }
14
-
15
- a { color: #000; }
16
- a:visited { color: #666; }
17
- a:hover { color: #fff; background-color:#000; }
18
-
19
- div.field, div.actions {
20
- margin-bottom: 10px;
21
- }
22
-
23
- #notice {
24
- color: green;
25
- }
26
-
27
- .field_with_errors {
28
- padding: 2px;
29
- background-color: red;
30
- display: table;
31
- }
32
-
33
- #error_explanation {
34
- width: 450px;
35
- border: 2px solid red;
36
- padding: 7px;
37
- padding-bottom: 0;
38
- margin-bottom: 20px;
39
- background-color: #f0f0f0;
40
- }
41
-
42
- #error_explanation h2 {
43
- text-align: left;
44
- font-weight: bold;
45
- padding: 5px 5px 5px 15px;
46
- font-size: 12px;
47
- margin: -7px;
48
- margin-bottom: 0px;
49
- background-color: #c00;
50
- color: #fff;
51
- }
52
-
53
- #error_explanation ul li {
54
- font-size: 12px;
55
- list-style: square;
56
- }
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
@@ -1,58 +0,0 @@
1
- class EasyChecksController < ApplicationController
2
- before_action :set_easy_check, only: [:show, :edit, :update, :destroy]
3
-
4
- # GET /easy_checks
5
- def index
6
- @easy_checks = EasyCheck.all
7
- end
8
-
9
- # GET /easy_checks/1
10
- def show
11
- end
12
-
13
- # GET /easy_checks/new
14
- def new
15
- @easy_check = EasyCheck.new
16
- end
17
-
18
- # GET /easy_checks/1/edit
19
- def edit
20
- end
21
-
22
- # POST /easy_checks
23
- def create
24
- @easy_check = EasyCheck.new(easy_check_params)
25
-
26
- if @easy_check.save
27
- redirect_to @easy_check, notice: 'Easy check was successfully created.'
28
- else
29
- render :new
30
- end
31
- end
32
-
33
- # PATCH/PUT /easy_checks/1
34
- def update
35
- if @easy_check.update(easy_check_params)
36
- redirect_to @easy_check, notice: 'Easy check was successfully updated.'
37
- else
38
- render :edit
39
- end
40
- end
41
-
42
- # DELETE /easy_checks/1
43
- def destroy
44
- @easy_check.destroy
45
- redirect_to easy_checks_url, notice: 'Easy check was successfully destroyed.'
46
- end
47
-
48
- private
49
- # Use callbacks to share common setup or constraints between actions.
50
- def set_easy_check
51
- @easy_check = EasyCheck.find(params[:id])
52
- end
53
-
54
- # Only allow a trusted parameter "white list" through.
55
- def easy_check_params
56
- params[:easy_check]
57
- end
58
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- module EasyChecksHelper
2
- end
@@ -1,2 +0,0 @@
1
- class EasyCheck < ActiveRecord::Base
2
- end
@@ -1,17 +0,0 @@
1
- <%= form_for(@easy_check) do |f| %>
2
- <% if @easy_check.errors.any? %>
3
- <div id="error_explanation">
4
- <h2><%= pluralize(@easy_check.errors.count, "error") %> prohibited this easy_check from being saved:</h2>
5
-
6
- <ul>
7
- <% @easy_check.errors.full_messages.each do |message| %>
8
- <li><%= message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div class="actions">
15
- <%= f.submit %>
16
- </div>
17
- <% end %>
@@ -1,6 +0,0 @@
1
- <h1>Editing Easy Check</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Show', @easy_check %> |
6
- <%= link_to 'Back', easy_checks_path %>
@@ -1,25 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <h1>Listing Easy Checks</h1>
4
-
5
- <table>
6
- <thead>
7
- <tr>
8
- <th colspan="3"></th>
9
- </tr>
10
- </thead>
11
-
12
- <tbody>
13
- <% @easy_checks.each do |easy_check| %>
14
- <tr>
15
- <td><%= link_to 'Show', easy_check %></td>
16
- <td><%= link_to 'Edit', edit_easy_check_path(easy_check) %></td>
17
- <td><%= link_to 'Destroy', easy_check, method: :delete, data: { confirm: 'Are you sure?' } %></td>
18
- </tr>
19
- <% end %>
20
- </tbody>
21
- </table>
22
-
23
- <br>
24
-
25
- <%= link_to 'New Easy check', new_easy_check_path %>
@@ -1,5 +0,0 @@
1
- <h1>New Easy Check</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Back', easy_checks_path %>
@@ -1,4 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <%= link_to 'Edit', edit_easy_check_path(@easy_check) %> |
4
- <%= link_to 'Back', easy_checks_path %>
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -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/test/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/test/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/test/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)
6
- require "junctions"
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
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__)