okuribito_rails 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -12
  3. data/Rakefile +6 -23
  4. data/app/controllers/okuribito_rails/application_controller.rb +1 -0
  5. data/app/controllers/okuribito_rails/method_call_situations_controller.rb +4 -1
  6. data/app/models/okuribito_rails/method_call_log.rb +4 -0
  7. data/app/models/okuribito_rails/method_call_situation.rb +7 -0
  8. data/lib/generators/okuribito_rails/install_generator.rb +9 -10
  9. data/lib/generators/okuribito_rails/templates/initializer.erb +1 -1
  10. data/lib/okuribito_rails/config.rb +1 -1
  11. data/lib/okuribito_rails/observe_method.rb +4 -2
  12. data/lib/okuribito_rails/railtie.rb +8 -6
  13. data/lib/okuribito_rails/version.rb +1 -1
  14. data/spec/dummy/Rakefile +6 -0
  15. data/spec/dummy/app/assets/config/manifest.js +5 -0
  16. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  17. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  18. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  19. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  20. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  21. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  22. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  23. data/spec/dummy/app/jobs/application_job.rb +2 -0
  24. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  25. data/spec/dummy/app/models/application_record.rb +3 -0
  26. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  27. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  28. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  29. data/spec/dummy/bin/bundle +3 -0
  30. data/spec/dummy/bin/rails +4 -0
  31. data/spec/dummy/bin/rake +4 -0
  32. data/spec/dummy/bin/setup +34 -0
  33. data/spec/dummy/bin/update +29 -0
  34. data/spec/dummy/config/application.rb +23 -0
  35. data/spec/dummy/config/boot.rb +5 -0
  36. data/spec/dummy/config/cable.yml +9 -0
  37. data/spec/dummy/config/database.yml +25 -0
  38. data/spec/dummy/config/environment.rb +5 -0
  39. data/spec/dummy/config/environments/development.rb +54 -0
  40. data/spec/dummy/config/environments/production.rb +86 -0
  41. data/spec/dummy/config/environments/test.rb +42 -0
  42. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  43. data/spec/dummy/config/initializers/assets.rb +11 -0
  44. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  45. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  46. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  47. data/spec/dummy/config/initializers/inflections.rb +16 -0
  48. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  49. data/spec/dummy/config/initializers/new_framework_defaults.rb +24 -0
  50. data/spec/dummy/config/initializers/session_store.rb +3 -0
  51. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  52. data/spec/dummy/config/locales/en.yml +23 -0
  53. data/spec/dummy/config/puma.rb +47 -0
  54. data/spec/dummy/config/routes.rb +3 -0
  55. data/spec/dummy/config/secrets.yml +22 -0
  56. data/spec/dummy/config/spring.rb +6 -0
  57. data/spec/dummy/config.ru +5 -0
  58. data/spec/dummy/db/development.sqlite3 +0 -0
  59. data/spec/dummy/db/schema.rb +38 -0
  60. data/spec/dummy/db/test.sqlite3 +0 -0
  61. data/spec/dummy/log/development.log +5 -0
  62. data/spec/dummy/log/test.log +2049 -0
  63. data/spec/dummy/public/404.html +67 -0
  64. data/spec/dummy/public/422.html +67 -0
  65. data/spec/dummy/public/500.html +66 -0
  66. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  67. data/spec/dummy/public/apple-touch-icon.png +0 -0
  68. data/spec/dummy/public/favicon.ico +0 -0
  69. data/spec/factories.rb +14 -0
  70. data/spec/models/method_call_log_spec.rb +93 -0
  71. data/spec/models/method_call_situation_spec.rb +114 -0
  72. data/spec/spec_helper.rb +14 -0
  73. metadata +211 -26
metadata CHANGED
@@ -1,102 +1,172 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okuribito_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhiro Matsumura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-28 00:00:00.000000000 Z
11
+ date: 2016-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: okuribito
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.0'
34
- - - <
34
+ - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: '6'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - '>='
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: '4.0'
44
- - - <
44
+ - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '6'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: kaminari
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - '>='
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - '>='
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: sqlite3
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - '>='
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - '>='
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rspec
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
73
87
  - !ruby/object:Gem::Version
74
88
  version: '0'
75
89
  - !ruby/object:Gem::Dependency
76
90
  name: rspec-rails
77
91
  requirement: !ruby/object:Gem::Requirement
78
92
  requirements:
79
- - - '>='
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: factory_girl_rails
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rubocop
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: simplecov
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
80
136
  - !ruby/object:Gem::Version
81
137
  version: '0'
82
138
  type: :development
83
139
  prerelease: false
84
140
  version_requirements: !ruby/object:Gem::Requirement
85
141
  requirements:
86
- - - '>='
142
+ - - ">="
87
143
  - !ruby/object:Gem::Version
88
144
  version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: codeclimate-test-reporter
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: 1.0.0
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: 1.0.0
89
159
  description: OkuribitoRails is an engine for Rails that aims to be the managing method
90
- call status.You should create a configuration file. (Describe the method name you
91
- want to monitor)When OkuribitoRails detected a method call during application execution,
92
- it registers the method call information in the DB.In other words, you can identify
93
- methods that have not been called from anywhere in production!
160
+ call status.
94
161
  email:
95
162
  - ym.contributor@gmail.com
96
163
  executables: []
97
164
  extensions: []
98
165
  extra_rdoc_files: []
99
166
  files:
167
+ - MIT-LICENSE
168
+ - README.md
169
+ - Rakefile
100
170
  - app/assets/javascripts/okuribito_rails/application.js
101
171
  - app/assets/stylesheets/okuribito_rails/application.css
102
172
  - app/assets/stylesheets/okuribito_rails/method_call_info.css
@@ -114,17 +184,73 @@ files:
114
184
  - db/migrate/20161027150000_create_okuribito_rails_method_call_logs.rb
115
185
  - lib/generators/okuribito_rails/install_generator.rb
116
186
  - lib/generators/okuribito_rails/templates/initializer.erb
187
+ - lib/okuribito_rails.rb
117
188
  - lib/okuribito_rails/config.rb
118
189
  - lib/okuribito_rails/engine.rb
119
190
  - lib/okuribito_rails/observe_method.rb
120
191
  - lib/okuribito_rails/railtie.rb
121
192
  - lib/okuribito_rails/regist_method.rb
122
193
  - lib/okuribito_rails/version.rb
123
- - lib/okuribito_rails.rb
124
194
  - lib/tasks/okuribito_rails_tasks.rake
125
- - MIT-LICENSE
126
- - Rakefile
127
- - README.md
195
+ - spec/dummy/Rakefile
196
+ - spec/dummy/app/assets/config/manifest.js
197
+ - spec/dummy/app/assets/javascripts/application.js
198
+ - spec/dummy/app/assets/javascripts/cable.js
199
+ - spec/dummy/app/assets/stylesheets/application.css
200
+ - spec/dummy/app/channels/application_cable/channel.rb
201
+ - spec/dummy/app/channels/application_cable/connection.rb
202
+ - spec/dummy/app/controllers/application_controller.rb
203
+ - spec/dummy/app/helpers/application_helper.rb
204
+ - spec/dummy/app/jobs/application_job.rb
205
+ - spec/dummy/app/mailers/application_mailer.rb
206
+ - spec/dummy/app/models/application_record.rb
207
+ - spec/dummy/app/views/layouts/application.html.erb
208
+ - spec/dummy/app/views/layouts/mailer.html.erb
209
+ - spec/dummy/app/views/layouts/mailer.text.erb
210
+ - spec/dummy/bin/bundle
211
+ - spec/dummy/bin/rails
212
+ - spec/dummy/bin/rake
213
+ - spec/dummy/bin/setup
214
+ - spec/dummy/bin/update
215
+ - spec/dummy/config.ru
216
+ - spec/dummy/config/application.rb
217
+ - spec/dummy/config/boot.rb
218
+ - spec/dummy/config/cable.yml
219
+ - spec/dummy/config/database.yml
220
+ - spec/dummy/config/environment.rb
221
+ - spec/dummy/config/environments/development.rb
222
+ - spec/dummy/config/environments/production.rb
223
+ - spec/dummy/config/environments/test.rb
224
+ - spec/dummy/config/initializers/application_controller_renderer.rb
225
+ - spec/dummy/config/initializers/assets.rb
226
+ - spec/dummy/config/initializers/backtrace_silencers.rb
227
+ - spec/dummy/config/initializers/cookies_serializer.rb
228
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
229
+ - spec/dummy/config/initializers/inflections.rb
230
+ - spec/dummy/config/initializers/mime_types.rb
231
+ - spec/dummy/config/initializers/new_framework_defaults.rb
232
+ - spec/dummy/config/initializers/session_store.rb
233
+ - spec/dummy/config/initializers/wrap_parameters.rb
234
+ - spec/dummy/config/locales/en.yml
235
+ - spec/dummy/config/puma.rb
236
+ - spec/dummy/config/routes.rb
237
+ - spec/dummy/config/secrets.yml
238
+ - spec/dummy/config/spring.rb
239
+ - spec/dummy/db/development.sqlite3
240
+ - spec/dummy/db/schema.rb
241
+ - spec/dummy/db/test.sqlite3
242
+ - spec/dummy/log/development.log
243
+ - spec/dummy/log/test.log
244
+ - spec/dummy/public/404.html
245
+ - spec/dummy/public/422.html
246
+ - spec/dummy/public/500.html
247
+ - spec/dummy/public/apple-touch-icon-precomposed.png
248
+ - spec/dummy/public/apple-touch-icon.png
249
+ - spec/dummy/public/favicon.ico
250
+ - spec/factories.rb
251
+ - spec/models/method_call_log_spec.rb
252
+ - spec/models/method_call_situation_spec.rb
253
+ - spec/spec_helper.rb
128
254
  homepage: https://github.com/muramurasan/okuribito_rails
129
255
  licenses: []
130
256
  metadata: {}
@@ -134,19 +260,78 @@ require_paths:
134
260
  - lib
135
261
  required_ruby_version: !ruby/object:Gem::Requirement
136
262
  requirements:
137
- - - '>='
263
+ - - ">="
138
264
  - !ruby/object:Gem::Version
139
265
  version: '0'
140
266
  required_rubygems_version: !ruby/object:Gem::Requirement
141
267
  requirements:
142
- - - '>='
268
+ - - ">="
143
269
  - !ruby/object:Gem::Version
144
270
  version: '0'
145
271
  requirements: []
146
272
  rubyforge_project:
147
- rubygems_version: 2.0.14.1
273
+ rubygems_version: 2.5.1
148
274
  signing_key:
149
275
  specification_version: 4
150
276
  summary: OkuribitoRails is an engine for Rails that aims to be the managing method
151
277
  call status.
152
- test_files: []
278
+ test_files:
279
+ - spec/dummy/app/assets/config/manifest.js
280
+ - spec/dummy/app/assets/javascripts/application.js
281
+ - spec/dummy/app/assets/javascripts/cable.js
282
+ - spec/dummy/app/assets/stylesheets/application.css
283
+ - spec/dummy/app/channels/application_cable/channel.rb
284
+ - spec/dummy/app/channels/application_cable/connection.rb
285
+ - spec/dummy/app/controllers/application_controller.rb
286
+ - spec/dummy/app/helpers/application_helper.rb
287
+ - spec/dummy/app/jobs/application_job.rb
288
+ - spec/dummy/app/mailers/application_mailer.rb
289
+ - spec/dummy/app/models/application_record.rb
290
+ - spec/dummy/app/views/layouts/application.html.erb
291
+ - spec/dummy/app/views/layouts/mailer.html.erb
292
+ - spec/dummy/app/views/layouts/mailer.text.erb
293
+ - spec/dummy/bin/bundle
294
+ - spec/dummy/bin/rails
295
+ - spec/dummy/bin/rake
296
+ - spec/dummy/bin/setup
297
+ - spec/dummy/bin/update
298
+ - spec/dummy/config/application.rb
299
+ - spec/dummy/config/boot.rb
300
+ - spec/dummy/config/cable.yml
301
+ - spec/dummy/config/database.yml
302
+ - spec/dummy/config/environment.rb
303
+ - spec/dummy/config/environments/development.rb
304
+ - spec/dummy/config/environments/production.rb
305
+ - spec/dummy/config/environments/test.rb
306
+ - spec/dummy/config/initializers/application_controller_renderer.rb
307
+ - spec/dummy/config/initializers/assets.rb
308
+ - spec/dummy/config/initializers/backtrace_silencers.rb
309
+ - spec/dummy/config/initializers/cookies_serializer.rb
310
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
311
+ - spec/dummy/config/initializers/inflections.rb
312
+ - spec/dummy/config/initializers/mime_types.rb
313
+ - spec/dummy/config/initializers/new_framework_defaults.rb
314
+ - spec/dummy/config/initializers/session_store.rb
315
+ - spec/dummy/config/initializers/wrap_parameters.rb
316
+ - spec/dummy/config/locales/en.yml
317
+ - spec/dummy/config/puma.rb
318
+ - spec/dummy/config/routes.rb
319
+ - spec/dummy/config/secrets.yml
320
+ - spec/dummy/config/spring.rb
321
+ - spec/dummy/config.ru
322
+ - spec/dummy/db/development.sqlite3
323
+ - spec/dummy/db/schema.rb
324
+ - spec/dummy/db/test.sqlite3
325
+ - spec/dummy/log/development.log
326
+ - spec/dummy/log/test.log
327
+ - spec/dummy/public/404.html
328
+ - spec/dummy/public/422.html
329
+ - spec/dummy/public/500.html
330
+ - spec/dummy/public/apple-touch-icon-precomposed.png
331
+ - spec/dummy/public/apple-touch-icon.png
332
+ - spec/dummy/public/favicon.ico
333
+ - spec/dummy/Rakefile
334
+ - spec/factories.rb
335
+ - spec/models/method_call_log_spec.rb
336
+ - spec/models/method_call_situation_spec.rb
337
+ - spec/spec_helper.rb