repo_analyzer 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +103 -0
  3. data/.circleci/setup-rubygems.sh +3 -0
  4. data/.editorconfig +24 -0
  5. data/.gitignore +9 -0
  6. data/.rspec +3 -0
  7. data/.rubocop.yml +505 -0
  8. data/.ruby-version +1 -0
  9. data/CHANGELOG.md +7 -0
  10. data/Gemfile +12 -0
  11. data/Gemfile.lock +320 -0
  12. data/Guardfile +12 -0
  13. data/LICENSE.txt +21 -0
  14. data/README.md +165 -0
  15. data/Rakefile +10 -0
  16. data/app/assets/config/repo_analyzer_manifest.js +1 -0
  17. data/app/assets/images/repo_analyzer/.keep +0 -0
  18. data/app/assets/stylesheets/repo_analyzer/application.css +15 -0
  19. data/app/clients/repo_analyzer/github_client.rb +31 -0
  20. data/app/controllers/repo_analyzer/application_controller.rb +4 -0
  21. data/app/extractors/repo_analyzer/brakeman_extractor.rb +33 -0
  22. data/app/extractors/repo_analyzer/circleci_extractor.rb +46 -0
  23. data/app/extractors/repo_analyzer/github_extractor.rb +64 -0
  24. data/app/extractors/repo_analyzer/power_types_extractor.rb +21 -0
  25. data/app/extractors/repo_analyzer/project_config_extractor.rb +53 -0
  26. data/app/extractors/repo_analyzer/project_info_extractor.rb +20 -0
  27. data/app/extractors/repo_analyzer/project_versions_extractor.rb +80 -0
  28. data/app/extractors/repo_analyzer/rails_best_practices_extractor.rb +36 -0
  29. data/app/extractors/repo_analyzer/rubocop_extractor.rb +74 -0
  30. data/app/extractors/repo_analyzer/tests_info_extractor.rb +87 -0
  31. data/app/helpers/repo_analyzer/application_helper.rb +4 -0
  32. data/app/jobs/repo_analyzer/application_job.rb +4 -0
  33. data/app/jobs/repo_analyzer/extract_project_info_job.rb +35 -0
  34. data/app/jobs/repo_analyzer/post_extracted_info_job.rb +28 -0
  35. data/app/mailers/repo_analyzer/application_mailer.rb +6 -0
  36. data/app/models/repo_analyzer/application_record.rb +5 -0
  37. data/app/utils/output_utils.rb +10 -0
  38. data/app/values/repo_analyzer/project_data_bridge.rb +48 -0
  39. data/app/views/layouts/repo_analyzer/application.html.erb +15 -0
  40. data/bin/rails +25 -0
  41. data/config/routes.rb +2 -0
  42. data/lib/generators/repo_analyzer/install/USAGE +5 -0
  43. data/lib/generators/repo_analyzer/install/install_generator.rb +19 -0
  44. data/lib/generators/repo_analyzer/install/templates/initializer.rb +2 -0
  45. data/lib/repo_analyzer/engine.rb +15 -0
  46. data/lib/repo_analyzer/example_class.rb +7 -0
  47. data/lib/repo_analyzer/version.rb +3 -0
  48. data/lib/repo_analyzer.rb +48 -0
  49. data/lib/tasks/repo_analyzer_tasks.rake +7 -0
  50. data/repo_analyzer.gemspec +42 -0
  51. data/spec/assets/test_project/README.md +1 -0
  52. data/spec/assets/test_project/app/commands/some_comand.rb +0 -0
  53. data/spec/assets/test_project/app/javascript/src/component.spec.js +0 -0
  54. data/spec/assets/test_project/app/javascript/src/components/component.spec.js +0 -0
  55. data/spec/assets/test_project/app/observers/some_observer.rb +0 -0
  56. data/spec/assets/test_project/old_circleci_config.yml +21 -0
  57. data/spec/assets/test_project/spec/commands/command1_spec.rb +0 -0
  58. data/spec/assets/test_project/spec/commands/command2_spec.rb +0 -0
  59. data/spec/assets/test_project/spec/integration/integration1_spec.rb +0 -0
  60. data/spec/assets/test_project/spec/system/system_test_spec.rb +0 -0
  61. data/spec/assets/test_project/valid_circleci_config.yml +152 -0
  62. data/spec/assets/test_project/valid_gem_gemfile_lock +14 -0
  63. data/spec/assets/test_project/valid_gemfile_lock +684 -0
  64. data/spec/assets/test_project/valid_makefile +35 -0
  65. data/spec/assets/test_project/valid_package_json +84 -0
  66. data/spec/assets/test_project/valid_package_json_without_vue +74 -0
  67. data/spec/assets/test_project/valid_rubocop_rules.yml +54 -0
  68. data/spec/dummy/Rakefile +6 -0
  69. data/spec/dummy/app/assets/config/manifest.js +3 -0
  70. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  71. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  72. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  73. data/spec/dummy/app/controllers/application_controller.rb +2 -0
  74. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  75. data/spec/dummy/app/javascript/packs/application.js +15 -0
  76. data/spec/dummy/app/jobs/application_job.rb +7 -0
  77. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  78. data/spec/dummy/app/models/application_record.rb +3 -0
  79. data/spec/dummy/app/views/layouts/application.html.erb +15 -0
  80. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  81. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  82. data/spec/dummy/bin/rails +4 -0
  83. data/spec/dummy/bin/rake +4 -0
  84. data/spec/dummy/bin/setup +33 -0
  85. data/spec/dummy/config/application.rb +38 -0
  86. data/spec/dummy/config/boot.rb +5 -0
  87. data/spec/dummy/config/cable.yml +10 -0
  88. data/spec/dummy/config/database.yml +25 -0
  89. data/spec/dummy/config/environment.rb +5 -0
  90. data/spec/dummy/config/environments/development.rb +81 -0
  91. data/spec/dummy/config/environments/production.rb +120 -0
  92. data/spec/dummy/config/environments/test.rb +59 -0
  93. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  94. data/spec/dummy/config/initializers/assets.rb +12 -0
  95. data/spec/dummy/config/initializers/backtrace_silencers.rb +8 -0
  96. data/spec/dummy/config/initializers/content_security_policy.rb +28 -0
  97. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  98. data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -0
  99. data/spec/dummy/config/initializers/inflections.rb +16 -0
  100. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  101. data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
  102. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  103. data/spec/dummy/config/locales/en.yml +33 -0
  104. data/spec/dummy/config/puma.rb +43 -0
  105. data/spec/dummy/config/routes.rb +3 -0
  106. data/spec/dummy/config/storage.yml +34 -0
  107. data/spec/dummy/config.ru +6 -0
  108. data/spec/dummy/public/404.html +67 -0
  109. data/spec/dummy/public/422.html +67 -0
  110. data/spec/dummy/public/500.html +66 -0
  111. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  112. data/spec/dummy/public/apple-touch-icon.png +0 -0
  113. data/spec/dummy/public/favicon.ico +0 -0
  114. data/spec/extractors/brakeman_extractor_spec.rb +73 -0
  115. data/spec/extractors/circleci_extractor_spec.rb +45 -0
  116. data/spec/extractors/github_extractor_spec.rb +77 -0
  117. data/spec/extractors/power_types_extractor_spec.rb +18 -0
  118. data/spec/extractors/project_config_extractor_spec.rb +52 -0
  119. data/spec/extractors/project_versions_extractor_spec.rb +63 -0
  120. data/spec/extractors/rails_best_practices_extractor_spec.rb +53 -0
  121. data/spec/extractors/rubocop_extractor_spec.rb +113 -0
  122. data/spec/extractors/tests_info_extractor_spec.rb +65 -0
  123. data/spec/fixtures/files/image.png +0 -0
  124. data/spec/fixtures/files/video.mp4 +0 -0
  125. data/spec/jobs/repo_analyzer/extract_project_info_job_spec.rb +50 -0
  126. data/spec/jobs/repo_analyzer/post_extracted_info_job_spec.rb +52 -0
  127. data/spec/rails_helper.rb +42 -0
  128. data/spec/spec_helper.rb +9 -0
  129. data/spec/support/repo_analyzer_helpers.rb +37 -0
  130. metadata +518 -0
@@ -0,0 +1,684 @@
1
+ GIT
2
+ remote: https://github.com/SoftwareBrothers/active_skin.git
3
+ revision: ce714442d2ae84705a652316610582dd28a33e01
4
+ specs:
5
+ active_skin (0.0.12)
6
+
7
+ GIT
8
+ remote: https://github.com/platanus/metagem.git
9
+ revision: 499b689cc85caafabb71868d989d548dbc058904
10
+ branch: main
11
+ specs:
12
+ metagem (0.1.0)
13
+ rails (>= 6.0)
14
+
15
+ PATH
16
+ remote: engines/dynattributes
17
+ specs:
18
+ dynattributes (0.1.0)
19
+ power-types
20
+ rails (= 6.0.4)
21
+
22
+ PATH
23
+ remote: engines/githubify
24
+ specs:
25
+ githubify (0.1.0)
26
+ dynattributes
27
+ octokit (~> 4.0)
28
+ power-types
29
+ rails (>= 6.0)
30
+
31
+ PATH
32
+ remote: engines/harvestation
33
+ specs:
34
+ harvestation (0.1.0)
35
+ power-types
36
+ rails (= 6.0.4)
37
+
38
+ PATH
39
+ remote: engines/herokugration
40
+ specs:
41
+ herokugration (0.1.0)
42
+ power-types
43
+ rails (= 6.0.4)
44
+
45
+ PATH
46
+ remote: engines/slackgration
47
+ specs:
48
+ slackgration (0.1.0)
49
+ power-types
50
+ rails (= 6.0.4)
51
+
52
+ PATH
53
+ remote: engines/tasks
54
+ specs:
55
+ tasks (0.1.0)
56
+ power-types
57
+ rails (= 6.0.4)
58
+
59
+ GEM
60
+ remote: https://rubygems.org/
61
+ specs:
62
+ actioncable (6.0.4)
63
+ actionpack (= 6.0.4)
64
+ nio4r (~> 2.0)
65
+ websocket-driver (>= 0.6.1)
66
+ actionmailbox (6.0.4)
67
+ actionpack (= 6.0.4)
68
+ activejob (= 6.0.4)
69
+ activerecord (= 6.0.4)
70
+ activestorage (= 6.0.4)
71
+ activesupport (= 6.0.4)
72
+ mail (>= 2.7.1)
73
+ actionmailer (6.0.4)
74
+ actionpack (= 6.0.4)
75
+ actionview (= 6.0.4)
76
+ activejob (= 6.0.4)
77
+ mail (~> 2.5, >= 2.5.4)
78
+ rails-dom-testing (~> 2.0)
79
+ actionpack (6.0.4)
80
+ actionview (= 6.0.4)
81
+ activesupport (= 6.0.4)
82
+ rack (~> 2.0, >= 2.0.8)
83
+ rack-test (>= 0.6.3)
84
+ rails-dom-testing (~> 2.0)
85
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
86
+ actiontext (6.0.4)
87
+ actionpack (= 6.0.4)
88
+ activerecord (= 6.0.4)
89
+ activestorage (= 6.0.4)
90
+ activesupport (= 6.0.4)
91
+ nokogiri (>= 1.8.5)
92
+ actionview (6.0.4)
93
+ activesupport (= 6.0.4)
94
+ builder (~> 3.1)
95
+ erubi (~> 1.4)
96
+ rails-dom-testing (~> 2.0)
97
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
98
+ active_material (1.5.2)
99
+ active_model_serializers (0.10.13)
100
+ actionpack (>= 4.1, < 7.1)
101
+ activemodel (>= 4.1, < 7.1)
102
+ case_transform (>= 0.2)
103
+ jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
104
+ activeadmin (2.9.0)
105
+ arbre (~> 1.2, >= 1.2.1)
106
+ formtastic (>= 3.1, < 5.0)
107
+ formtastic_i18n (~> 0.4)
108
+ inherited_resources (~> 1.7)
109
+ jquery-rails (~> 4.2)
110
+ kaminari (~> 1.0, >= 1.2.1)
111
+ railties (>= 5.2, < 6.2)
112
+ ransack (~> 2.1, >= 2.1.1)
113
+ activeadmin_addons (1.8.2)
114
+ active_material
115
+ railties
116
+ require_all
117
+ sassc
118
+ sassc-rails
119
+ xdan-datetimepicker-rails (~> 2.5.1)
120
+ activejob (6.0.4)
121
+ activesupport (= 6.0.4)
122
+ globalid (>= 0.3.6)
123
+ activemodel (6.0.4)
124
+ activesupport (= 6.0.4)
125
+ activerecord (6.0.4)
126
+ activemodel (= 6.0.4)
127
+ activesupport (= 6.0.4)
128
+ activestorage (6.0.4)
129
+ actionpack (= 6.0.4)
130
+ activejob (= 6.0.4)
131
+ activerecord (= 6.0.4)
132
+ marcel (~> 1.0.0)
133
+ activesupport (6.0.4)
134
+ concurrent-ruby (~> 1.0, >= 1.0.2)
135
+ i18n (>= 0.7, < 2)
136
+ minitest (~> 5.1)
137
+ tzinfo (~> 1.1)
138
+ zeitwerk (~> 2.2, >= 2.2.2)
139
+ addressable (2.7.0)
140
+ public_suffix (>= 2.0.2, < 5.0)
141
+ annotate (3.1.1)
142
+ activerecord (>= 3.2, < 7.0)
143
+ rake (>= 10.4, < 14.0)
144
+ api-pagination (5.0.0)
145
+ arbre (1.4.0)
146
+ activesupport (>= 3.0.0, < 6.2)
147
+ ruby2_keywords (>= 0.0.2, < 1.0)
148
+ argon2-kdf (0.1.6)
149
+ ast (2.4.2)
150
+ aws-eventstream (1.1.1)
151
+ aws-partitions (1.472.0)
152
+ aws-sdk-core (3.115.0)
153
+ aws-eventstream (~> 1, >= 1.0.2)
154
+ aws-partitions (~> 1, >= 1.239.0)
155
+ aws-sigv4 (~> 1.1)
156
+ jmespath (~> 1.0)
157
+ aws-sdk-kms (1.44.0)
158
+ aws-sdk-core (~> 3, >= 3.112.0)
159
+ aws-sigv4 (~> 1.1)
160
+ aws-sdk-s3 (1.96.1)
161
+ aws-sdk-core (~> 3, >= 3.112.0)
162
+ aws-sdk-kms (~> 1)
163
+ aws-sigv4 (~> 1.1)
164
+ aws-sigv4 (1.2.3)
165
+ aws-eventstream (~> 1, >= 1.0.2)
166
+ bcrypt (3.1.16)
167
+ better_errors (2.9.1)
168
+ coderay (>= 1.0.0)
169
+ erubi (>= 1.0.0)
170
+ rack (>= 0.9.0)
171
+ binding_of_caller (1.0.0)
172
+ debug_inspector (>= 0.0.1)
173
+ blind_index (2.2.0)
174
+ activesupport (>= 5)
175
+ argon2-kdf (>= 0.1.1)
176
+ bootsnap (1.7.5)
177
+ msgpack (~> 1.0)
178
+ builder (3.2.4)
179
+ byebug (11.1.3)
180
+ capybara (3.35.3)
181
+ addressable
182
+ mini_mime (>= 0.1.3)
183
+ nokogiri (~> 1.8)
184
+ rack (>= 1.6.0)
185
+ rack-test (>= 0.6.3)
186
+ regexp_parser (>= 1.5, < 3.0)
187
+ xpath (~> 3.2)
188
+ case_transform (0.2)
189
+ activesupport
190
+ childprocess (3.0.0)
191
+ coderay (1.1.3)
192
+ concurrent-ruby (1.1.9)
193
+ connection_pool (2.2.5)
194
+ content_disposition (1.0.0)
195
+ crass (1.0.6)
196
+ data_migrate (7.0.1)
197
+ activerecord (>= 5.0)
198
+ railties (>= 5.0)
199
+ debug_inspector (1.1.0)
200
+ devise (4.8.1)
201
+ bcrypt (~> 3.0)
202
+ orm_adapter (~> 0.1)
203
+ railties (>= 4.1.0)
204
+ responders
205
+ warden (~> 1.2.3)
206
+ devise-i18n (1.10.0)
207
+ devise (>= 4.8.0)
208
+ diff-lcs (1.4.4)
209
+ docile (1.4.0)
210
+ dotenv (2.7.6)
211
+ dotenv-rails (2.7.6)
212
+ dotenv (= 2.7.6)
213
+ railties (>= 3.2)
214
+ down (5.2.2)
215
+ addressable (~> 2.5)
216
+ enumerize (2.4.0)
217
+ activesupport (>= 3.2)
218
+ erubi (1.10.0)
219
+ factory_bot (6.2.0)
220
+ activesupport (>= 5.0.0)
221
+ factory_bot_rails (6.2.0)
222
+ factory_bot (~> 6.2.0)
223
+ railties (>= 5.0.0)
224
+ faker (2.18.0)
225
+ i18n (>= 1.6, < 2)
226
+ faraday (1.4.3)
227
+ faraday-em_http (~> 1.0)
228
+ faraday-em_synchrony (~> 1.0)
229
+ faraday-excon (~> 1.1)
230
+ faraday-net_http (~> 1.0)
231
+ faraday-net_http_persistent (~> 1.1)
232
+ multipart-post (>= 1.2, < 3)
233
+ ruby2_keywords (>= 0.0.4)
234
+ faraday-em_http (1.0.0)
235
+ faraday-em_synchrony (1.0.0)
236
+ faraday-excon (1.1.0)
237
+ faraday-net_http (1.0.1)
238
+ faraday-net_http_persistent (1.1.0)
239
+ ffi (1.15.3)
240
+ ffi (1.15.3-x64-mingw32)
241
+ formatador (0.3.0)
242
+ formtastic (4.0.0)
243
+ actionpack (>= 5.2.0)
244
+ formtastic_i18n (0.7.0)
245
+ globalid (1.0.0)
246
+ activesupport (>= 5.0)
247
+ guard (2.17.0)
248
+ formatador (>= 0.2.4)
249
+ listen (>= 2.7, < 4.0)
250
+ lumberjack (>= 1.0.12, < 2.0)
251
+ nenv (~> 0.1)
252
+ notiffany (~> 0.0)
253
+ pry (>= 0.9.12)
254
+ shellany (~> 0.0)
255
+ thor (>= 0.18.1)
256
+ guard-compat (1.2.1)
257
+ guard-rspec (4.7.3)
258
+ guard (~> 2.1)
259
+ guard-compat (~> 1.1)
260
+ rspec (>= 2.99.0, < 4.0)
261
+ has_scope (0.8.0)
262
+ actionpack (>= 5.2)
263
+ activesupport (>= 5.2)
264
+ heroku-stage (0.4.0)
265
+ rails
266
+ httparty (0.20.0)
267
+ mime-types (~> 3.0)
268
+ multi_xml (>= 0.5.2)
269
+ i18n (1.9.1)
270
+ concurrent-ruby (~> 1.0)
271
+ inherited_resources (1.13.0)
272
+ actionpack (>= 5.2, < 6.2)
273
+ has_scope (~> 0.6)
274
+ railties (>= 5.2, < 6.2)
275
+ responders (>= 2, < 4)
276
+ jbuilder (2.11.2)
277
+ activesupport (>= 5.0.0)
278
+ jmespath (1.4.0)
279
+ jquery-rails (4.4.0)
280
+ rails-dom-testing (>= 1, < 3)
281
+ railties (>= 4.2.0)
282
+ thor (>= 0.14, < 2.0)
283
+ json-schema (2.8.1)
284
+ addressable (>= 2.4)
285
+ jsonapi-renderer (0.2.2)
286
+ kaminari (1.2.2)
287
+ activesupport (>= 4.1.0)
288
+ kaminari-actionview (= 1.2.2)
289
+ kaminari-activerecord (= 1.2.2)
290
+ kaminari-core (= 1.2.2)
291
+ kaminari-actionview (1.2.2)
292
+ actionview
293
+ kaminari-core (= 1.2.2)
294
+ kaminari-activerecord (1.2.2)
295
+ activerecord
296
+ kaminari-core (= 1.2.2)
297
+ kaminari-core (1.2.2)
298
+ launchy (2.5.0)
299
+ addressable (~> 2.7)
300
+ letter_opener (1.7.0)
301
+ launchy (~> 2.2)
302
+ listen (3.5.1)
303
+ rb-fsevent (~> 0.10, >= 0.10.3)
304
+ rb-inotify (~> 0.9, >= 0.9.10)
305
+ lockbox (0.6.6)
306
+ loofah (2.13.0)
307
+ crass (~> 1.0.2)
308
+ nokogiri (>= 1.5.9)
309
+ lumberjack (1.2.8)
310
+ mail (2.7.1)
311
+ mini_mime (>= 0.1.1)
312
+ marcel (1.0.2)
313
+ method_source (1.0.0)
314
+ mime-types (3.3.1)
315
+ mime-types-data (~> 3.2015)
316
+ mime-types-data (3.2021.0901)
317
+ mini_mime (1.1.2)
318
+ mini_portile2 (2.7.1)
319
+ minitest (5.15.0)
320
+ mjml-rails (4.6.1)
321
+ msgpack (1.4.2)
322
+ multi_xml (0.6.0)
323
+ multipart-post (2.1.1)
324
+ mustermann (1.1.1)
325
+ ruby2_keywords (~> 0.0.1)
326
+ nenv (0.3.0)
327
+ nio4r (2.5.8)
328
+ nokogiri (1.13.1)
329
+ mini_portile2 (~> 2.7.0)
330
+ racc (~> 1.4)
331
+ nokogiri (1.13.1-x64-mingw32)
332
+ racc (~> 1.4)
333
+ notiffany (0.1.3)
334
+ nenv (~> 0.1)
335
+ shellany (~> 0.0)
336
+ octokit (4.22.0)
337
+ faraday (>= 0.9)
338
+ sawyer (~> 0.8.0, >= 0.5.3)
339
+ orm_adapter (0.5.0)
340
+ parallel (1.20.1)
341
+ parser (3.0.1.1)
342
+ ast (~> 2.4.1)
343
+ pg (1.2.3)
344
+ pg (1.2.3-x64-mingw32)
345
+ power-types (0.4.0)
346
+ activesupport
347
+ power_api (1.0.0)
348
+ active_model_serializers (~> 0.10.0)
349
+ api-pagination
350
+ kaminari
351
+ rails (>= 6.0)
352
+ ransack
353
+ responders
354
+ rswag-api
355
+ rswag-ui
356
+ simple_token_authentication (~> 1.0)
357
+ versionist (~> 1.0)
358
+ pry (0.13.1)
359
+ coderay (~> 1.1)
360
+ method_source (~> 1.0)
361
+ pry-byebug (3.9.0)
362
+ byebug (~> 11.0)
363
+ pry (~> 0.13.0)
364
+ pry-rails (0.3.9)
365
+ pry (>= 0.10.4)
366
+ public_suffix (4.0.6)
367
+ puma (4.3.8)
368
+ nio4r (~> 2.0)
369
+ paperclip (5.0.0)
370
+ activemodel (>= 4.2.0)
371
+ activesupport (>= 4.2.0)
372
+ cocaine (~> 0.5.5)
373
+ mime-types
374
+ mimemagic (~> 0.3.0)
375
+ pundit (2.1.0)
376
+ activesupport (>= 3.0.0)
377
+ racc (1.6.0)
378
+ rack (2.2.3)
379
+ rack-cors (1.1.1)
380
+ rack (>= 2.0.0)
381
+ rack-protection (2.1.0)
382
+ rack
383
+ rack-proxy (0.7.0)
384
+ rack
385
+ rack-test (1.1.0)
386
+ rack (>= 1.0, < 3)
387
+ rack-timeout (0.6.0)
388
+ rails (6.0.4)
389
+ actioncable (= 6.0.4)
390
+ actionmailbox (= 6.0.4)
391
+ actionmailer (= 6.0.4)
392
+ actionpack (= 6.0.4)
393
+ actiontext (= 6.0.4)
394
+ actionview (= 6.0.4)
395
+ activejob (= 6.0.4)
396
+ activemodel (= 6.0.4)
397
+ activerecord (= 6.0.4)
398
+ activestorage (= 6.0.4)
399
+ activesupport (= 6.0.4)
400
+ bundler (>= 1.3.0)
401
+ railties (= 6.0.4)
402
+ sprockets-rails (>= 2.0.0)
403
+ rails-dom-testing (2.0.3)
404
+ activesupport (>= 4.2.0)
405
+ nokogiri (>= 1.6)
406
+ rails-html-sanitizer (1.4.2)
407
+ loofah (~> 2.3)
408
+ rails-i18n (6.0.0)
409
+ i18n (>= 0.7, < 2)
410
+ railties (>= 6.0.0, < 7)
411
+ rails-queue-it (0.1.0)
412
+ rails (>= 6.0)
413
+ rails_stdout_logging (0.0.5)
414
+ railties (6.0.4)
415
+ actionpack (= 6.0.4)
416
+ activesupport (= 6.0.4)
417
+ method_source
418
+ rake (>= 0.8.7)
419
+ thor (>= 0.20.3, < 2.0)
420
+ rainbow (3.0.0)
421
+ rake (13.0.6)
422
+ ransack (2.5.0)
423
+ activerecord (>= 5.2.4)
424
+ activesupport (>= 5.2.4)
425
+ i18n
426
+ rb-fsevent (0.11.0)
427
+ rb-inotify (0.10.1)
428
+ ffi (~> 1.0)
429
+ recipient_interceptor (0.3.0)
430
+ mail
431
+ redis (4.4.0)
432
+ regexp_parser (2.1.1)
433
+ require_all (3.0.0)
434
+ responders (3.0.1)
435
+ actionpack (>= 5.0)
436
+ railties (>= 5.0)
437
+ rexml (3.2.5)
438
+ rolify (6.0.0)
439
+ rspec (3.10.0)
440
+ rspec-core (~> 3.10.0)
441
+ rspec-expectations (~> 3.10.0)
442
+ rspec-mocks (~> 3.10.0)
443
+ rspec-core (3.10.1)
444
+ rspec-support (~> 3.10.0)
445
+ rspec-expectations (3.10.1)
446
+ diff-lcs (>= 1.2.0, < 2.0)
447
+ rspec-support (~> 3.10.0)
448
+ rspec-mocks (3.10.2)
449
+ diff-lcs (>= 1.2.0, < 2.0)
450
+ rspec-support (~> 3.10.0)
451
+ rspec-nc (0.3.0)
452
+ rspec (>= 3)
453
+ terminal-notifier (>= 1.4)
454
+ rspec-rails (5.0.1)
455
+ actionpack (>= 5.2)
456
+ activesupport (>= 5.2)
457
+ railties (>= 5.2)
458
+ rspec-core (~> 3.10)
459
+ rspec-expectations (~> 3.10)
460
+ rspec-mocks (~> 3.10)
461
+ rspec-support (~> 3.10)
462
+ rspec-support (3.10.2)
463
+ rspec_junit_formatter (0.4.1)
464
+ rspec-core (>= 2, < 4, != 2.12.0)
465
+ rswag-api (2.4.0)
466
+ railties (>= 3.1, < 7.0)
467
+ rswag-specs (2.4.0)
468
+ activesupport (>= 3.1, < 7.0)
469
+ json-schema (~> 2.2)
470
+ railties (>= 3.1, < 7.0)
471
+ rswag-ui (2.4.0)
472
+ actionpack (>= 3.1, < 7.0)
473
+ railties (>= 3.1, < 7.0)
474
+ rubocop (1.18.0)
475
+ parallel (~> 1.10)
476
+ parser (>= 3.0.0.0)
477
+ rainbow (>= 2.2.2, < 4.0)
478
+ regexp_parser (>= 1.8, < 3.0)
479
+ rexml
480
+ rubocop-ast (>= 1.7.0, < 2.0)
481
+ ruby-progressbar (~> 1.7)
482
+ unicode-display_width (>= 1.4.0, < 3.0)
483
+ rubocop-ast (1.7.0)
484
+ parser (>= 3.0.1.1)
485
+ rubocop-performance (1.11.3)
486
+ rubocop (>= 1.7.0, < 2.0)
487
+ rubocop-ast (>= 0.4.0)
488
+ rubocop-rails (2.11.1)
489
+ activesupport (>= 4.2.0)
490
+ rack (>= 1.1)
491
+ rubocop (>= 1.7.0, < 2.0)
492
+ rubocop-rspec (2.4.0)
493
+ rubocop (~> 1.0)
494
+ rubocop-ast (>= 1.1.0)
495
+ ruby-progressbar (1.11.0)
496
+ ruby2_keywords (0.0.4)
497
+ ruby_http_client (3.5.2)
498
+ rubyzip (2.3.2)
499
+ sass-rails (6.0.0)
500
+ sassc-rails (~> 2.1, >= 2.1.1)
501
+ sassc (2.4.0)
502
+ ffi (~> 1.9)
503
+ sassc (2.4.0-x64-mingw32)
504
+ ffi (~> 1.9)
505
+ sassc-rails (2.1.2)
506
+ railties (>= 4.0.0)
507
+ sassc (>= 2.0)
508
+ sprockets (> 3.0)
509
+ sprockets-rails
510
+ tilt
511
+ sawyer (0.8.2)
512
+ addressable (>= 2.3.5)
513
+ faraday (> 0.8, < 2.0)
514
+ scout_apm (4.1.1)
515
+ parser
516
+ selenium-webdriver (3.142.7)
517
+ childprocess (>= 0.5, < 4.0)
518
+ rubyzip (>= 1.2.2)
519
+ send_grid_mailer (1.2.1)
520
+ letter_opener (~> 1.7.0)
521
+ rails (>= 4.2.0)
522
+ sendgrid-ruby (~> 4.0, >= 4.0.4)
523
+ sendgrid-ruby (4.3.3)
524
+ ruby_http_client (~> 3.0)
525
+ sinatra (>= 1.4.7, < 3)
526
+ sentry-raven (3.1.2)
527
+ faraday (>= 1.0)
528
+ shellany (0.0.1)
529
+ shoulda-matchers (4.5.1)
530
+ activesupport (>= 4.2.0)
531
+ shrine (3.4.0)
532
+ content_disposition (~> 1.0)
533
+ down (~> 5.1)
534
+ sidekiq (6.2.2)
535
+ connection_pool (>= 2.2.2)
536
+ rack (~> 2.0)
537
+ redis (>= 4.2.0)
538
+ simple_token_authentication (1.17.0)
539
+ actionmailer (>= 3.2.6, < 7)
540
+ actionpack (>= 3.2.6, < 7)
541
+ devise (>= 3.2, < 6)
542
+ simplecov (0.21.2)
543
+ docile (~> 1.1)
544
+ simplecov-html (~> 0.11)
545
+ simplecov_json_formatter (~> 0.1)
546
+ simplecov-html (0.12.3)
547
+ simplecov_json_formatter (0.1.3)
548
+ simplecov_linter_formatter (0.2.0)
549
+ rainbow
550
+ simplecov_text_formatter (0.1.0)
551
+ sinatra (2.1.0)
552
+ mustermann (~> 1.0)
553
+ rack (~> 2.2)
554
+ rack-protection (= 2.1.0)
555
+ tilt (~> 2.0)
556
+ spring (2.1.1)
557
+ sprockets (4.0.2)
558
+ concurrent-ruby (~> 1.0)
559
+ rack (> 1, < 3)
560
+ sprockets-rails (3.4.2)
561
+ actionpack (>= 5.2)
562
+ activesupport (>= 5.2)
563
+ sprockets (>= 3.0.0)
564
+ strong_migrations (0.7.7)
565
+ activerecord (>= 5)
566
+ terminal-notifier (2.0.0)
567
+ thor (1.2.1)
568
+ thread_safe (0.3.6)
569
+ tilt (2.0.10)
570
+ turbolinks (5.2.1)
571
+ turbolinks-source (~> 5.2)
572
+ turbolinks-source (5.2.0)
573
+ tzinfo (1.2.9)
574
+ thread_safe (~> 0.1)
575
+ tzinfo-data (1.2021.1)
576
+ tzinfo (>= 1.0.0)
577
+ unicode-display_width (2.0.0)
578
+ versionist (1.7.0)
579
+ activesupport (>= 3)
580
+ railties (>= 3)
581
+ yard (~> 0.9.11)
582
+ warden (1.2.9)
583
+ rack (>= 2.0.9)
584
+ webdrivers (4.6.0)
585
+ nokogiri (~> 1.6)
586
+ rubyzip (>= 1.3.0)
587
+ selenium-webdriver (>= 3.0, < 4.0)
588
+ webpacker (4.3.0)
589
+ activesupport (>= 4.2)
590
+ rack-proxy (>= 0.6.1)
591
+ railties (>= 4.2)
592
+ webrick (1.7.0)
593
+ websocket-driver (0.7.5)
594
+ websocket-extensions (>= 0.1.0)
595
+ websocket-extensions (0.1.5)
596
+ xdan-datetimepicker-rails (2.5.4)
597
+ jquery-rails
598
+ rails (>= 3.2.16)
599
+ xpath (3.2.0)
600
+ nokogiri (~> 1.8)
601
+ yard (0.9.27)
602
+ webrick (~> 1.7.0)
603
+ zeitwerk (2.5.4)
604
+
605
+ PLATFORMS
606
+ ruby
607
+ x64-mingw32
608
+
609
+ DEPENDENCIES
610
+ active_skin!
611
+ activeadmin (~> 2.6)
612
+ activeadmin_addons (~> 1.8.2)
613
+ annotate (~> 3.0)
614
+ aws-sdk-s3 (~> 1.0)
615
+ better_errors
616
+ binding_of_caller
617
+ blind_index
618
+ bootsnap
619
+ capybara
620
+ data_migrate
621
+ devise
622
+ devise-i18n
623
+ dotenv-rails
624
+ dynattributes!
625
+ enumerize
626
+ factory_bot_rails
627
+ faker
628
+ githubify!
629
+ guard-rspec
630
+ harvestation!
631
+ heroku-stage
632
+ herokugration!
633
+ httparty
634
+ jbuilder (~> 2.7)
635
+ letter_opener
636
+ listen
637
+ lockbox
638
+ marcel (~> 1.0)
639
+ metagem!
640
+ mjml-rails
641
+ pg
642
+ power-types
643
+ power_api (~> 1.0)
644
+ pry-byebug
645
+ pry-rails
646
+ puma (~> 4.1)
647
+ pundit
648
+ rack-cors (~> 1.1)
649
+ rack-timeout
650
+ rails (~> 6.0.4)
651
+ rails-i18n
652
+ rails-queue-it
653
+ rails_stdout_logging
654
+ recipient_interceptor
655
+ rolify
656
+ rspec-nc
657
+ rspec-rails
658
+ rspec_junit_formatter (~> 0.4)
659
+ rswag-specs
660
+ rubocop (~> 1.9)
661
+ rubocop-performance
662
+ rubocop-rails
663
+ rubocop-rspec (~> 2.2)
664
+ sass-rails (>= 6)
665
+ scout_apm
666
+ send_grid_mailer (~> 1.2.1)
667
+ sentry-raven
668
+ shoulda-matchers
669
+ shrine (~> 3.0)
670
+ sidekiq
671
+ simplecov (~> 0.21)
672
+ simplecov_linter_formatter
673
+ simplecov_text_formatter
674
+ slackgration!
675
+ spring
676
+ strong_migrations
677
+ tasks!
678
+ turbolinks (~> 5)
679
+ tzinfo-data
680
+ webdrivers (~> 4.0)
681
+ webpacker (~> 4.0)
682
+
683
+ BUNDLED WITH
684
+ 2.1.4
@@ -0,0 +1,35 @@
1
+ PROJECT ?= lacatan
2
+
3
+ SHELL := /bin/bash
4
+
5
+ run: help
6
+
7
+ BOLD ?= $(shell tput bold)
8
+ NORMAL ?= $(shell tput sgr0)
9
+
10
+ help:
11
+ @echo "Generate a backup in the environment (staging|production) database:"
12
+ @echo " ${BOLD}make backup-<environment>${NORMAL}"
13
+ @echo ""
14
+ @echo "Copy latest database backup from the environment (staging|production) to local database:"
15
+ @echo " ${BOLD}make restore-from-<environment>${NORMAL}"
16
+ @echo ""
17
+
18
+ services-port:
19
+ @set -o pipefail; \
20
+ docker-compose port ${SERVICE} ${PORT} 2> /dev/null | cut -d':' -f2 || echo ${PORT}
21
+
22
+ backup-staging: ROLE=staging
23
+ backup-production: ROLE=production
24
+ backup-%:
25
+ @echo Capturing $(ROLE)....
26
+ @heroku pg:backups:capture --remote $(ROLE)
27
+
28
+ restore-from-staging: ROLE=staging
29
+ restore-from-production: ROLE=production
30
+ restore-from-%:
31
+ $(eval TEMP_FILE=$(shell mktemp))
32
+ @echo Restoring from $(ROLE)....
33
+ @heroku pg:backups:download --remote $(ROLE) --output $(TEMP_FILE)
34
+ @pg_restore --verbose --clean --no-acl --no-owner -h localhost \
35
+ -U postgres -p $(shell make services-port SERVICE=postgresql PORT=5432) -d $(PROJECT)_development $(TEMP_FILE)