fettle 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +28 -0
  4. data/Rakefile +29 -0
  5. data/app/assets/config/fettle_manifest.js +2 -0
  6. data/app/assets/javascripts/fettle/application.js +13 -0
  7. data/app/assets/stylesheets/fettle/application.css +15 -0
  8. data/app/controllers/fettle/application_controller.rb +5 -0
  9. data/app/controllers/fettle/health_controller.rb +9 -0
  10. data/app/helpers/fettle/application_helper.rb +4 -0
  11. data/app/jobs/fettle/application_job.rb +4 -0
  12. data/app/mailers/fettle/application_mailer.rb +6 -0
  13. data/app/models/fettle/application_record.rb +5 -0
  14. data/app/views/layouts/fettle/application.html.erb +14 -0
  15. data/config/routes.rb +3 -0
  16. data/lib/fettle/engine.rb +11 -0
  17. data/lib/fettle/version.rb +3 -0
  18. data/lib/fettle.rb +5 -0
  19. data/lib/tasks/fettle_tasks.rake +4 -0
  20. data/spec/controllers/fettle/health_controller_spec.rb +17 -0
  21. data/spec/dummy/Rakefile +6 -0
  22. data/spec/dummy/app/assets/config/manifest.js +5 -0
  23. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  24. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  25. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  26. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  27. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  28. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  29. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  30. data/spec/dummy/app/jobs/application_job.rb +2 -0
  31. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  32. data/spec/dummy/app/models/application_record.rb +3 -0
  33. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  34. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  35. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  36. data/spec/dummy/bin/bundle +3 -0
  37. data/spec/dummy/bin/rails +4 -0
  38. data/spec/dummy/bin/rake +4 -0
  39. data/spec/dummy/bin/setup +37 -0
  40. data/spec/dummy/bin/update +29 -0
  41. data/spec/dummy/bin/yarn +11 -0
  42. data/spec/dummy/config/application.rb +18 -0
  43. data/spec/dummy/config/boot.rb +5 -0
  44. data/spec/dummy/config/cable.yml +10 -0
  45. data/spec/dummy/config/database.yml +25 -0
  46. data/spec/dummy/config/environment.rb +5 -0
  47. data/spec/dummy/config/environments/development.rb +46 -0
  48. data/spec/dummy/config/environments/production.rb +91 -0
  49. data/spec/dummy/config/environments/test.rb +36 -0
  50. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  51. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  52. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  53. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  54. data/spec/dummy/config/initializers/inflections.rb +16 -0
  55. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  56. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  57. data/spec/dummy/config/locales/en.yml +33 -0
  58. data/spec/dummy/config/puma.rb +56 -0
  59. data/spec/dummy/config/routes.rb +3 -0
  60. data/spec/dummy/config/secrets.yml +32 -0
  61. data/spec/dummy/config/spring.rb +6 -0
  62. data/spec/dummy/config.ru +5 -0
  63. data/spec/dummy/db/development.sqlite3 +0 -0
  64. data/spec/dummy/db/test.sqlite3 +0 -0
  65. data/spec/dummy/log/development.log +70 -0
  66. data/spec/dummy/log/test.log +20 -0
  67. data/spec/dummy/package.json +5 -0
  68. data/spec/dummy/public/404.html +67 -0
  69. data/spec/dummy/public/422.html +67 -0
  70. data/spec/dummy/public/500.html +66 -0
  71. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  72. data/spec/dummy/public/apple-touch-icon.png +0 -0
  73. data/spec/dummy/public/favicon.ico +0 -0
  74. data/spec/examples.txt +3 -0
  75. data/spec/rails_helper.rb +55 -0
  76. data/spec/spec_helper.rb +77 -0
  77. metadata +232 -0
@@ -0,0 +1,55 @@
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('../dummy/config/environment.rb', __FILE__)
5
+
6
+ # Prevent database truncation if the environment is production
7
+ if Rails.env.production?
8
+ abort('The Rails environment is running in production mode!')
9
+ end
10
+ require 'rspec/rails'
11
+
12
+ # Requires supporting ruby files with custom matchers and macros, etc, in
13
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
14
+ # run as spec files by default. This means that files in spec/support that end
15
+ # in _spec.rb will both be required and run as specs, causing the specs to be
16
+ # run twice. It is recommended that you do not name files matching this glob to
17
+ # end with _spec.rb. You can configure this pattern with the --pattern
18
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
19
+ #
20
+ # The following line is provided for convenience purposes. It has the downside
21
+ # of increasing the boot-up time by auto-requiring all files in the support
22
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
23
+ # require only the support files necessary.
24
+ #
25
+ # Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
26
+
27
+ RSpec.configure do |config|
28
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
29
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
30
+
31
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
32
+ # examples within a transaction, remove the following line or assign false
33
+ # instead of true.
34
+ config.use_transactional_fixtures = true
35
+
36
+ # RSpec Rails can automatically mix in different behaviours to your tests
37
+ # based on their file location, for example enabling you to call `get` and
38
+ # `post` in specs under `spec/controllers`.
39
+ #
40
+ # You can disable this behaviour by removing the line below, and instead
41
+ # explicitly tag your specs with their type, e.g.:
42
+ #
43
+ # RSpec.describe UsersController, :type => :controller do
44
+ # # ...
45
+ # end
46
+ #
47
+ # The different available types are documented in the features, such as in
48
+ # https://relishapp.com/rspec/rspec-rails/docs
49
+ config.infer_spec_type_from_file_location!
50
+
51
+ # Filter lines from Rails gems in backtraces.
52
+ config.filter_rails_from_backtrace!
53
+ # arbitrary gems may also be filtered via:
54
+ # config.filter_gems_from_backtrace("gem name")
55
+ end
@@ -0,0 +1,77 @@
1
+ RSpec.configure do |config|
2
+ # rspec-expectations config goes here. You can use an alternate
3
+ # assertion/expectation library such as wrong or the stdlib/minitest
4
+ # assertions if you prefer.
5
+ config.expect_with :rspec do |expectations|
6
+ # This option will default to `true` in RSpec 4. It makes the `description`
7
+ # and `failure_message` of custom matchers include text for helper methods
8
+ # defined using `chain`, e.g.:
9
+ # be_bigger_than(2).and_smaller_than(4).description
10
+ # # => "be bigger than 2 and smaller than 4"
11
+ # ...rather than:
12
+ # # => "be bigger than 2"
13
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
14
+ end
15
+
16
+ # rspec-mocks config goes here. You can use an alternate test double
17
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
18
+ config.mock_with :rspec do |mocks|
19
+ # Prevents you from mocking or stubbing a method that does not exist on
20
+ # a real object. This is generally recommended, and will default to
21
+ # `true` in RSpec 4.
22
+ mocks.verify_partial_doubles = true
23
+ end
24
+
25
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
26
+ # have no way to turn it off -- the option exists only for backwards
27
+ # compatibility in RSpec 3). It causes shared context metadata to be
28
+ # inherited by the metadata hash of host groups and examples, rather than
29
+ # triggering implicit auto-inclusion in groups with matching metadata.
30
+ config.shared_context_metadata_behavior = :apply_to_host_groups
31
+
32
+ # This allows you to limit a spec run to individual examples or groups
33
+ # you care about by tagging them with `:focus` metadata. When nothing
34
+ # is tagged with `:focus`, all examples get run. RSpec also provides
35
+ # aliases for `it`, `describe`, and `context` that include `:focus`
36
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
37
+ config.filter_run_when_matching :focus
38
+
39
+ # Allows RSpec to persist some state between runs in order to support
40
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
41
+ # you configure your source control system to ignore this file.
42
+ config.example_status_persistence_file_path = 'spec/examples.txt'
43
+
44
+ # Limits the available syntax to the non-monkey patched syntax that is
45
+ # recommended. For more details, see:
46
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
47
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
48
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
49
+ config.disable_monkey_patching!
50
+
51
+ # Many RSpec users commonly either run the entire suite or an individual
52
+ # file, and it's useful to allow more verbose output when running an
53
+ # individual spec file.
54
+ if config.files_to_run.one?
55
+ # Use the documentation formatter for detailed output,
56
+ # unless a formatter has already been configured
57
+ # (e.g. via a command-line flag).
58
+ config.default_formatter = 'doc'
59
+ end
60
+
61
+ # Print the 10 slowest examples and example groups at the
62
+ # end of the spec run, to help surface which specs are running
63
+ # particularly slow.
64
+ config.profile_examples = 10
65
+
66
+ # Run specs in random order to surface order dependencies. If you find an
67
+ # order dependency and want to debug it, you can fix the order by providing
68
+ # the seed, which is printed after each run.
69
+ # --seed 1234
70
+ config.order = :random
71
+
72
+ # Seed global randomization in this process using the `--seed` CLI option.
73
+ # Setting this allows you to use `--seed` to deterministically reproduce
74
+ # test failures related to randomization by passing the same `--seed` value
75
+ # as the one that triggered the failure.
76
+ Kernel.srand config.seed
77
+ end
metadata ADDED
@@ -0,0 +1,232 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fettle
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Sean Kenny
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-10-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.1.4
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.1.4
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
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: sqlite3
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
+ description: Customisable health checks for Rails apps
70
+ email:
71
+ - sean.kenny@hotmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - MIT-LICENSE
77
+ - README.md
78
+ - Rakefile
79
+ - app/assets/config/fettle_manifest.js
80
+ - app/assets/javascripts/fettle/application.js
81
+ - app/assets/stylesheets/fettle/application.css
82
+ - app/controllers/fettle/application_controller.rb
83
+ - app/controllers/fettle/health_controller.rb
84
+ - app/helpers/fettle/application_helper.rb
85
+ - app/jobs/fettle/application_job.rb
86
+ - app/mailers/fettle/application_mailer.rb
87
+ - app/models/fettle/application_record.rb
88
+ - app/views/layouts/fettle/application.html.erb
89
+ - config/routes.rb
90
+ - lib/fettle.rb
91
+ - lib/fettle/engine.rb
92
+ - lib/fettle/version.rb
93
+ - lib/tasks/fettle_tasks.rake
94
+ - spec/controllers/fettle/health_controller_spec.rb
95
+ - spec/dummy/Rakefile
96
+ - spec/dummy/app/assets/config/manifest.js
97
+ - spec/dummy/app/assets/javascripts/application.js
98
+ - spec/dummy/app/assets/javascripts/cable.js
99
+ - spec/dummy/app/assets/stylesheets/application.css
100
+ - spec/dummy/app/channels/application_cable/channel.rb
101
+ - spec/dummy/app/channels/application_cable/connection.rb
102
+ - spec/dummy/app/controllers/application_controller.rb
103
+ - spec/dummy/app/helpers/application_helper.rb
104
+ - spec/dummy/app/jobs/application_job.rb
105
+ - spec/dummy/app/mailers/application_mailer.rb
106
+ - spec/dummy/app/models/application_record.rb
107
+ - spec/dummy/app/views/layouts/application.html.erb
108
+ - spec/dummy/app/views/layouts/mailer.html.erb
109
+ - spec/dummy/app/views/layouts/mailer.text.erb
110
+ - spec/dummy/bin/bundle
111
+ - spec/dummy/bin/rails
112
+ - spec/dummy/bin/rake
113
+ - spec/dummy/bin/setup
114
+ - spec/dummy/bin/update
115
+ - spec/dummy/bin/yarn
116
+ - spec/dummy/config.ru
117
+ - spec/dummy/config/application.rb
118
+ - spec/dummy/config/boot.rb
119
+ - spec/dummy/config/cable.yml
120
+ - spec/dummy/config/database.yml
121
+ - spec/dummy/config/environment.rb
122
+ - spec/dummy/config/environments/development.rb
123
+ - spec/dummy/config/environments/production.rb
124
+ - spec/dummy/config/environments/test.rb
125
+ - spec/dummy/config/initializers/application_controller_renderer.rb
126
+ - spec/dummy/config/initializers/backtrace_silencers.rb
127
+ - spec/dummy/config/initializers/cookies_serializer.rb
128
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
129
+ - spec/dummy/config/initializers/inflections.rb
130
+ - spec/dummy/config/initializers/mime_types.rb
131
+ - spec/dummy/config/initializers/wrap_parameters.rb
132
+ - spec/dummy/config/locales/en.yml
133
+ - spec/dummy/config/puma.rb
134
+ - spec/dummy/config/routes.rb
135
+ - spec/dummy/config/secrets.yml
136
+ - spec/dummy/config/spring.rb
137
+ - spec/dummy/db/development.sqlite3
138
+ - spec/dummy/db/test.sqlite3
139
+ - spec/dummy/log/development.log
140
+ - spec/dummy/log/test.log
141
+ - spec/dummy/package.json
142
+ - spec/dummy/public/404.html
143
+ - spec/dummy/public/422.html
144
+ - spec/dummy/public/500.html
145
+ - spec/dummy/public/apple-touch-icon-precomposed.png
146
+ - spec/dummy/public/apple-touch-icon.png
147
+ - spec/dummy/public/favicon.ico
148
+ - spec/examples.txt
149
+ - spec/rails_helper.rb
150
+ - spec/spec_helper.rb
151
+ homepage: https://git.thebeansgroup.com/utilities/fettle
152
+ licenses:
153
+ - MIT
154
+ metadata: {}
155
+ post_install_message:
156
+ rdoc_options: []
157
+ require_paths:
158
+ - lib
159
+ required_ruby_version: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ required_rubygems_version: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: '0'
169
+ requirements: []
170
+ rubyforge_project:
171
+ rubygems_version: 2.6.11
172
+ signing_key:
173
+ specification_version: 4
174
+ summary: Making sure you app is in fine fettle
175
+ test_files:
176
+ - spec/controllers/fettle/health_controller_spec.rb
177
+ - spec/dummy/app/assets/config/manifest.js
178
+ - spec/dummy/app/assets/javascripts/application.js
179
+ - spec/dummy/app/assets/javascripts/cable.js
180
+ - spec/dummy/app/assets/stylesheets/application.css
181
+ - spec/dummy/app/channels/application_cable/channel.rb
182
+ - spec/dummy/app/channels/application_cable/connection.rb
183
+ - spec/dummy/app/controllers/application_controller.rb
184
+ - spec/dummy/app/helpers/application_helper.rb
185
+ - spec/dummy/app/jobs/application_job.rb
186
+ - spec/dummy/app/mailers/application_mailer.rb
187
+ - spec/dummy/app/models/application_record.rb
188
+ - spec/dummy/app/views/layouts/application.html.erb
189
+ - spec/dummy/app/views/layouts/mailer.html.erb
190
+ - spec/dummy/app/views/layouts/mailer.text.erb
191
+ - spec/dummy/bin/bundle
192
+ - spec/dummy/bin/rails
193
+ - spec/dummy/bin/rake
194
+ - spec/dummy/bin/setup
195
+ - spec/dummy/bin/update
196
+ - spec/dummy/bin/yarn
197
+ - spec/dummy/config/application.rb
198
+ - spec/dummy/config/boot.rb
199
+ - spec/dummy/config/cable.yml
200
+ - spec/dummy/config/database.yml
201
+ - spec/dummy/config/environment.rb
202
+ - spec/dummy/config/environments/development.rb
203
+ - spec/dummy/config/environments/production.rb
204
+ - spec/dummy/config/environments/test.rb
205
+ - spec/dummy/config/initializers/application_controller_renderer.rb
206
+ - spec/dummy/config/initializers/backtrace_silencers.rb
207
+ - spec/dummy/config/initializers/cookies_serializer.rb
208
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
209
+ - spec/dummy/config/initializers/inflections.rb
210
+ - spec/dummy/config/initializers/mime_types.rb
211
+ - spec/dummy/config/initializers/wrap_parameters.rb
212
+ - spec/dummy/config/locales/en.yml
213
+ - spec/dummy/config/puma.rb
214
+ - spec/dummy/config/routes.rb
215
+ - spec/dummy/config/secrets.yml
216
+ - spec/dummy/config/spring.rb
217
+ - spec/dummy/config.ru
218
+ - spec/dummy/db/development.sqlite3
219
+ - spec/dummy/db/test.sqlite3
220
+ - spec/dummy/log/development.log
221
+ - spec/dummy/log/test.log
222
+ - spec/dummy/package.json
223
+ - spec/dummy/public/404.html
224
+ - spec/dummy/public/422.html
225
+ - spec/dummy/public/500.html
226
+ - spec/dummy/public/apple-touch-icon-precomposed.png
227
+ - spec/dummy/public/apple-touch-icon.png
228
+ - spec/dummy/public/favicon.ico
229
+ - spec/dummy/Rakefile
230
+ - spec/examples.txt
231
+ - spec/rails_helper.rb
232
+ - spec/spec_helper.rb