local_resource 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +103 -0
  3. data/.circleci/setup-rubygems.sh +3 -0
  4. data/.rubocop.yml +19 -579
  5. data/.ruby-version +1 -1
  6. data/CHANGELOG.md +7 -0
  7. data/Gemfile.lock +182 -136
  8. data/LICENSE.txt +1 -1
  9. data/README.md +12 -2
  10. data/lib/local_resource/version.rb +1 -1
  11. data/local_resource.gemspec +9 -5
  12. data/spec/dummy/Rakefile +1 -1
  13. data/spec/dummy/app/assets/config/manifest.js +1 -2
  14. data/spec/dummy/app/controllers/application_controller.rb +0 -1
  15. data/spec/dummy/app/{assets/javascripts → javascript/packs}/application.js +2 -0
  16. data/spec/dummy/app/jobs/application_job.rb +5 -0
  17. data/spec/dummy/app/views/layouts/application.html.erb +3 -2
  18. data/spec/dummy/bin/rails +2 -2
  19. data/spec/dummy/bin/rake +2 -2
  20. data/spec/dummy/bin/setup +7 -12
  21. data/spec/dummy/config.ru +2 -1
  22. data/spec/dummy/config/application.rb +12 -16
  23. data/spec/dummy/config/boot.rb +1 -1
  24. data/spec/dummy/config/cable.yml +2 -2
  25. data/spec/dummy/config/database.yml +8 -16
  26. data/spec/dummy/config/environment.rb +1 -1
  27. data/spec/dummy/config/environments/development.rb +28 -6
  28. data/spec/dummy/config/environments/production.rb +45 -16
  29. data/spec/dummy/config/environments/test.rb +24 -7
  30. data/spec/dummy/config/initializers/assets.rb +0 -2
  31. data/spec/dummy/config/initializers/backtrace_silencers.rb +4 -3
  32. data/spec/dummy/config/initializers/content_security_policy.rb +28 -0
  33. data/spec/dummy/config/initializers/filter_parameter_logging.rb +3 -1
  34. data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
  35. data/spec/dummy/config/locales/en.yml +1 -1
  36. data/spec/dummy/config/puma.rb +14 -27
  37. data/spec/dummy/config/routes.rb +1 -1
  38. data/spec/dummy/config/storage.yml +34 -0
  39. data/spec/dummy/spec/lib/local_resource/instance_spec.rb +1 -1
  40. metadata +64 -29
  41. data/.hound.yml +0 -4
  42. data/.travis.yml +0 -15
  43. data/spec/dummy/app/assets/javascripts/cable.js +0 -13
  44. data/spec/dummy/bin/bundle +0 -3
  45. data/spec/dummy/bin/update +0 -29
  46. data/spec/dummy/bin/yarn +0 -11
  47. data/spec/dummy/config/secrets.yml +0 -32
  48. data/spec/dummy/config/spring.rb +0 -6
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3
1
+ 2.7
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ### 1.0.0
6
+
7
+ #### Changed
8
+
9
+ * Replace travis with circleci.
10
+ * Use Rails 6 on Dummy app.
11
+
5
12
  ### 0.2.0
6
13
 
7
14
  #### Added
data/Gemfile.lock CHANGED
@@ -1,78 +1,96 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- local_resource (0.2.0)
4
+ local_resource (1.0.0)
5
5
  open_uri_redirections
6
- rails (>= 4.2.0)
6
+ rails (>= 6.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.2.0)
12
- actionpack (= 5.2.0)
11
+ actioncable (6.1.3.2)
12
+ actionpack (= 6.1.3.2)
13
+ activesupport (= 6.1.3.2)
13
14
  nio4r (~> 2.0)
14
15
  websocket-driver (>= 0.6.1)
15
- actionmailer (5.2.0)
16
- actionpack (= 5.2.0)
17
- actionview (= 5.2.0)
18
- activejob (= 5.2.0)
16
+ actionmailbox (6.1.3.2)
17
+ actionpack (= 6.1.3.2)
18
+ activejob (= 6.1.3.2)
19
+ activerecord (= 6.1.3.2)
20
+ activestorage (= 6.1.3.2)
21
+ activesupport (= 6.1.3.2)
22
+ mail (>= 2.7.1)
23
+ actionmailer (6.1.3.2)
24
+ actionpack (= 6.1.3.2)
25
+ actionview (= 6.1.3.2)
26
+ activejob (= 6.1.3.2)
27
+ activesupport (= 6.1.3.2)
19
28
  mail (~> 2.5, >= 2.5.4)
20
29
  rails-dom-testing (~> 2.0)
21
- actionpack (5.2.0)
22
- actionview (= 5.2.0)
23
- activesupport (= 5.2.0)
24
- rack (~> 2.0)
30
+ actionpack (6.1.3.2)
31
+ actionview (= 6.1.3.2)
32
+ activesupport (= 6.1.3.2)
33
+ rack (~> 2.0, >= 2.0.9)
25
34
  rack-test (>= 0.6.3)
26
35
  rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.2.0)
29
- activesupport (= 5.2.0)
36
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
37
+ actiontext (6.1.3.2)
38
+ actionpack (= 6.1.3.2)
39
+ activerecord (= 6.1.3.2)
40
+ activestorage (= 6.1.3.2)
41
+ activesupport (= 6.1.3.2)
42
+ nokogiri (>= 1.8.5)
43
+ actionview (6.1.3.2)
44
+ activesupport (= 6.1.3.2)
30
45
  builder (~> 3.1)
31
46
  erubi (~> 1.4)
32
47
  rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.2.0)
35
- activesupport (= 5.2.0)
48
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
+ activejob (6.1.3.2)
50
+ activesupport (= 6.1.3.2)
36
51
  globalid (>= 0.3.6)
37
- activemodel (5.2.0)
38
- activesupport (= 5.2.0)
39
- activerecord (5.2.0)
40
- activemodel (= 5.2.0)
41
- activesupport (= 5.2.0)
42
- arel (>= 9.0)
43
- activestorage (5.2.0)
44
- actionpack (= 5.2.0)
45
- activerecord (= 5.2.0)
46
- marcel (~> 0.3.1)
47
- activesupport (5.2.0)
52
+ activemodel (6.1.3.2)
53
+ activesupport (= 6.1.3.2)
54
+ activerecord (6.1.3.2)
55
+ activemodel (= 6.1.3.2)
56
+ activesupport (= 6.1.3.2)
57
+ activestorage (6.1.3.2)
58
+ actionpack (= 6.1.3.2)
59
+ activejob (= 6.1.3.2)
60
+ activerecord (= 6.1.3.2)
61
+ activesupport (= 6.1.3.2)
62
+ marcel (~> 1.0.0)
63
+ mini_mime (~> 1.0.2)
64
+ activesupport (6.1.3.2)
48
65
  concurrent-ruby (~> 1.0, >= 1.0.2)
49
- i18n (>= 0.7, < 2)
50
- minitest (~> 5.1)
51
- tzinfo (~> 1.1)
52
- arel (9.0.0)
53
- builder (3.2.3)
54
- coderay (1.1.2)
55
- concurrent-ruby (1.0.5)
56
- coveralls (0.8.21)
66
+ i18n (>= 1.6, < 2)
67
+ minitest (>= 5.1)
68
+ tzinfo (~> 2.0)
69
+ zeitwerk (~> 2.3)
70
+ ast (2.4.2)
71
+ builder (3.2.4)
72
+ coderay (1.1.3)
73
+ concurrent-ruby (1.1.9)
74
+ coveralls (0.8.23)
57
75
  json (>= 1.8, < 3)
58
- simplecov (~> 0.14.1)
76
+ simplecov (~> 0.16.1)
59
77
  term-ansicolor (~> 1.3)
60
- thor (~> 0.19.4)
78
+ thor (>= 0.19.4, < 2.0)
61
79
  tins (~> 1.6)
62
- crass (1.0.4)
63
- diff-lcs (1.3)
64
- docile (1.1.5)
65
- erubi (1.7.1)
66
- factory_bot (4.10.0)
67
- activesupport (>= 3.0.0)
68
- factory_bot_rails (4.10.0)
69
- factory_bot (~> 4.10.0)
70
- railties (>= 3.0.0)
71
- ffi (1.9.25)
72
- formatador (0.2.5)
73
- globalid (0.4.1)
80
+ crass (1.0.6)
81
+ diff-lcs (1.4.4)
82
+ docile (1.4.0)
83
+ erubi (1.10.0)
84
+ factory_bot (6.2.0)
85
+ activesupport (>= 5.0.0)
86
+ factory_bot_rails (6.2.0)
87
+ factory_bot (~> 6.2.0)
88
+ railties (>= 5.0.0)
89
+ ffi (1.15.3)
90
+ formatador (0.3.0)
91
+ globalid (0.4.2)
74
92
  activesupport (>= 4.2.0)
75
- guard (2.14.2)
93
+ guard (2.17.0)
76
94
  formatador (>= 0.2.4)
77
95
  listen (>= 2.7, < 4.0)
78
96
  lumberjack (>= 1.0.12, < 2.0)
@@ -86,119 +104,144 @@ GEM
86
104
  guard (~> 2.1)
87
105
  guard-compat (~> 1.1)
88
106
  rspec (>= 2.99.0, < 4.0)
89
- i18n (1.0.1)
107
+ i18n (1.8.10)
90
108
  concurrent-ruby (~> 1.0)
91
- json (2.1.0)
92
- listen (3.1.5)
93
- rb-fsevent (~> 0.9, >= 0.9.4)
94
- rb-inotify (~> 0.9, >= 0.9.7)
95
- ruby_dep (~> 1.2)
96
- loofah (2.2.2)
109
+ jaro_winkler (1.5.4)
110
+ json (2.5.1)
111
+ listen (3.5.1)
112
+ rb-fsevent (~> 0.10, >= 0.10.3)
113
+ rb-inotify (~> 0.9, >= 0.9.10)
114
+ loofah (2.10.0)
97
115
  crass (~> 1.0.2)
98
116
  nokogiri (>= 1.5.9)
99
- lumberjack (1.0.13)
100
- mail (2.7.0)
117
+ lumberjack (1.2.8)
118
+ mail (2.7.1)
101
119
  mini_mime (>= 0.1.1)
102
- marcel (0.3.2)
103
- mimemagic (~> 0.3.2)
104
- method_source (0.9.0)
105
- mimemagic (0.3.2)
106
- mini_mime (1.0.0)
107
- mini_portile2 (2.3.0)
108
- minitest (5.11.3)
120
+ marcel (1.0.1)
121
+ method_source (1.0.0)
122
+ mini_mime (1.0.3)
123
+ minitest (5.14.4)
109
124
  nenv (0.3.0)
110
- nio4r (2.3.1)
111
- nokogiri (1.8.3)
112
- mini_portile2 (~> 2.3.0)
113
- notiffany (0.1.1)
125
+ nio4r (2.5.7)
126
+ nokogiri (1.11.7-x86_64-darwin)
127
+ racc (~> 1.4)
128
+ nokogiri (1.11.7-x86_64-linux)
129
+ racc (~> 1.4)
130
+ notiffany (0.1.3)
114
131
  nenv (~> 0.1)
115
132
  shellany (~> 0.0)
116
133
  open_uri_redirections (0.2.1)
117
- pry (0.11.3)
118
- coderay (~> 1.1.0)
119
- method_source (~> 0.9.0)
120
- pry-rails (0.3.6)
134
+ parallel (1.20.1)
135
+ parser (3.0.1.1)
136
+ ast (~> 2.4.1)
137
+ powerpack (0.1.3)
138
+ pry (0.14.1)
139
+ coderay (~> 1.1)
140
+ method_source (~> 1.0)
141
+ pry-rails (0.3.9)
121
142
  pry (>= 0.10.4)
122
- rack (2.0.5)
123
- rack-test (1.0.0)
143
+ psych (4.0.1)
144
+ racc (1.5.2)
145
+ rack (2.2.3)
146
+ rack-test (1.1.0)
124
147
  rack (>= 1.0, < 3)
125
- rails (5.2.0)
126
- actioncable (= 5.2.0)
127
- actionmailer (= 5.2.0)
128
- actionpack (= 5.2.0)
129
- actionview (= 5.2.0)
130
- activejob (= 5.2.0)
131
- activemodel (= 5.2.0)
132
- activerecord (= 5.2.0)
133
- activestorage (= 5.2.0)
134
- activesupport (= 5.2.0)
135
- bundler (>= 1.3.0)
136
- railties (= 5.2.0)
148
+ rails (6.1.3.2)
149
+ actioncable (= 6.1.3.2)
150
+ actionmailbox (= 6.1.3.2)
151
+ actionmailer (= 6.1.3.2)
152
+ actionpack (= 6.1.3.2)
153
+ actiontext (= 6.1.3.2)
154
+ actionview (= 6.1.3.2)
155
+ activejob (= 6.1.3.2)
156
+ activemodel (= 6.1.3.2)
157
+ activerecord (= 6.1.3.2)
158
+ activestorage (= 6.1.3.2)
159
+ activesupport (= 6.1.3.2)
160
+ bundler (>= 1.15.0)
161
+ railties (= 6.1.3.2)
137
162
  sprockets-rails (>= 2.0.0)
138
163
  rails-dom-testing (2.0.3)
139
164
  activesupport (>= 4.2.0)
140
165
  nokogiri (>= 1.6)
141
- rails-html-sanitizer (1.0.4)
142
- loofah (~> 2.2, >= 2.2.2)
143
- railties (5.2.0)
144
- actionpack (= 5.2.0)
145
- activesupport (= 5.2.0)
166
+ rails-html-sanitizer (1.3.0)
167
+ loofah (~> 2.3)
168
+ railties (6.1.3.2)
169
+ actionpack (= 6.1.3.2)
170
+ activesupport (= 6.1.3.2)
146
171
  method_source
147
172
  rake (>= 0.8.7)
148
- thor (>= 0.18.1, < 2.0)
149
- rake (12.3.1)
150
- rb-fsevent (0.10.3)
151
- rb-inotify (0.9.10)
152
- ffi (>= 0.5.0, < 2)
153
- rspec (3.7.0)
154
- rspec-core (~> 3.7.0)
155
- rspec-expectations (~> 3.7.0)
156
- rspec-mocks (~> 3.7.0)
157
- rspec-core (3.7.1)
158
- rspec-support (~> 3.7.0)
159
- rspec-expectations (3.7.0)
173
+ thor (~> 1.0)
174
+ rainbow (3.0.0)
175
+ rake (13.0.3)
176
+ rb-fsevent (0.11.0)
177
+ rb-inotify (0.10.1)
178
+ ffi (~> 1.0)
179
+ rspec (3.10.0)
180
+ rspec-core (~> 3.10.0)
181
+ rspec-expectations (~> 3.10.0)
182
+ rspec-mocks (~> 3.10.0)
183
+ rspec-core (3.10.1)
184
+ rspec-support (~> 3.10.0)
185
+ rspec-expectations (3.10.1)
160
186
  diff-lcs (>= 1.2.0, < 2.0)
161
- rspec-support (~> 3.7.0)
162
- rspec-mocks (3.7.0)
187
+ rspec-support (~> 3.10.0)
188
+ rspec-mocks (3.10.2)
163
189
  diff-lcs (>= 1.2.0, < 2.0)
164
- rspec-support (~> 3.7.0)
165
- rspec-rails (3.7.2)
166
- actionpack (>= 3.0)
167
- activesupport (>= 3.0)
168
- railties (>= 3.0)
169
- rspec-core (~> 3.7.0)
170
- rspec-expectations (~> 3.7.0)
171
- rspec-mocks (~> 3.7.0)
172
- rspec-support (~> 3.7.0)
173
- rspec-support (3.7.1)
174
- ruby_dep (1.5.0)
190
+ rspec-support (~> 3.10.0)
191
+ rspec-rails (5.0.1)
192
+ actionpack (>= 5.2)
193
+ activesupport (>= 5.2)
194
+ railties (>= 5.2)
195
+ rspec-core (~> 3.10)
196
+ rspec-expectations (~> 3.10)
197
+ rspec-mocks (~> 3.10)
198
+ rspec-support (~> 3.10)
199
+ rspec-support (3.10.2)
200
+ rspec_junit_formatter (0.4.1)
201
+ rspec-core (>= 2, < 4, != 2.12.0)
202
+ rubocop (0.65.0)
203
+ jaro_winkler (~> 1.5.1)
204
+ parallel (~> 1.10)
205
+ parser (>= 2.5, != 2.5.1.1)
206
+ powerpack (~> 0.1)
207
+ psych (>= 3.1.0)
208
+ rainbow (>= 2.2.2, < 4.0)
209
+ ruby-progressbar (~> 1.7)
210
+ unicode-display_width (~> 1.4.0)
211
+ rubocop-rspec (1.35.0)
212
+ rubocop (>= 0.60.0)
213
+ ruby-progressbar (1.11.0)
175
214
  shellany (0.0.1)
176
- simplecov (0.14.1)
177
- docile (~> 1.1.0)
215
+ simplecov (0.16.1)
216
+ docile (~> 1.1)
178
217
  json (>= 1.8, < 3)
179
218
  simplecov-html (~> 0.10.0)
180
219
  simplecov-html (0.10.2)
181
- sprockets (3.7.2)
220
+ sprockets (4.0.2)
182
221
  concurrent-ruby (~> 1.0)
183
222
  rack (> 1, < 3)
184
- sprockets-rails (3.2.1)
223
+ sprockets-rails (3.2.2)
185
224
  actionpack (>= 4.0)
186
225
  activesupport (>= 4.0)
187
226
  sprockets (>= 3.0.0)
188
- sqlite3 (1.3.13)
189
- term-ansicolor (1.6.0)
227
+ sqlite3 (1.4.2)
228
+ sync (0.5.0)
229
+ term-ansicolor (1.7.1)
190
230
  tins (~> 1.0)
191
- thor (0.19.4)
192
- thread_safe (0.3.6)
193
- tins (1.16.3)
194
- tzinfo (1.2.5)
195
- thread_safe (~> 0.1)
196
- websocket-driver (0.7.0)
231
+ thor (1.1.0)
232
+ tins (1.29.1)
233
+ sync
234
+ tzinfo (2.0.4)
235
+ concurrent-ruby (~> 1.0)
236
+ unicode-display_width (1.4.1)
237
+ websocket-driver (0.7.5)
197
238
  websocket-extensions (>= 0.1.0)
198
- websocket-extensions (0.1.3)
239
+ websocket-extensions (0.1.5)
240
+ zeitwerk (2.4.2)
199
241
 
200
242
  PLATFORMS
201
- ruby
243
+ x86_64-darwin-20
244
+ x86_64-linux
202
245
 
203
246
  DEPENDENCIES
204
247
  coveralls
@@ -208,7 +251,10 @@ DEPENDENCIES
208
251
  pry
209
252
  pry-rails
210
253
  rspec-rails
211
- sqlite3
254
+ rspec_junit_formatter
255
+ rubocop (= 0.65.0)
256
+ rubocop-rspec
257
+ sqlite3 (~> 1.4.2)
212
258
 
213
259
  BUNDLED WITH
214
- 1.16.1
260
+ 2.2.15
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright 2018 Platanus
3
+ Copyright 2021 Platanus
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Local Resource
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/local_resource.svg)](https://badge.fury.io/rb/local_resource)
4
- [![Build Status](https://travis-ci.org/platanus/local_resource.svg?branch=master)](https://travis-ci.org/platanus/local_resource)
4
+ [![CircleCI](https://circleci.com/gh/platanus/local_resource.svg?style=shield)](https://app.circleci.com/pipelines/github/platanus/local_resource)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/platanus/local_resource/badge.svg?branch=master)](https://coveralls.io/github/platanus/local_resource?branch=master)
6
6
 
7
- Rails engine to take a file from a url, download it to the tmp, use it and delete it
7
+ Rails engine to treat external resources as if they were local.
8
8
 
9
9
  ## Installation
10
10
 
@@ -53,6 +53,16 @@ bundle exec guard
53
53
 
54
54
  You need to put **all your tests** in the `/local_resource/spec/dummy/spec/` directory.
55
55
 
56
+ ## Publishing
57
+
58
+ On master/main branch...
59
+
60
+ 1. Change `VERSION` in `lib/local_resource/version.rb`.
61
+ 2. Change `Unreleased` title to current version in `CHANGELOG.md`.
62
+ 3. Commit new release. For example: `Releasing v0.1.0`.
63
+ 4. Create tag. For example: `git tag v0.1.0`.
64
+ 5. Push tag. For example: `git push origin v0.1.0`.
65
+
56
66
  ## Contributing
57
67
 
58
68
  1. Fork it
@@ -1,3 +1,3 @@
1
1
  module LocalResource
2
- VERSION = '0.2.0'
2
+ VERSION = '1.0.0'
3
3
  end