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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +103 -0
- data/.circleci/setup-rubygems.sh +3 -0
- data/.rubocop.yml +19 -579
- data/.ruby-version +1 -1
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +182 -136
- data/LICENSE.txt +1 -1
- data/README.md +12 -2
- data/lib/local_resource/version.rb +1 -1
- data/local_resource.gemspec +9 -5
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/app/assets/config/manifest.js +1 -2
- data/spec/dummy/app/controllers/application_controller.rb +0 -1
- data/spec/dummy/app/{assets/javascripts → javascript/packs}/application.js +2 -0
- data/spec/dummy/app/jobs/application_job.rb +5 -0
- data/spec/dummy/app/views/layouts/application.html.erb +3 -2
- data/spec/dummy/bin/rails +2 -2
- data/spec/dummy/bin/rake +2 -2
- data/spec/dummy/bin/setup +7 -12
- data/spec/dummy/config.ru +2 -1
- data/spec/dummy/config/application.rb +12 -16
- data/spec/dummy/config/boot.rb +1 -1
- data/spec/dummy/config/cable.yml +2 -2
- data/spec/dummy/config/database.yml +8 -16
- data/spec/dummy/config/environment.rb +1 -1
- data/spec/dummy/config/environments/development.rb +28 -6
- data/spec/dummy/config/environments/production.rb +45 -16
- data/spec/dummy/config/environments/test.rb +24 -7
- data/spec/dummy/config/initializers/assets.rb +0 -2
- data/spec/dummy/config/initializers/backtrace_silencers.rb +4 -3
- data/spec/dummy/config/initializers/content_security_policy.rb +28 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +3 -1
- data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
- data/spec/dummy/config/locales/en.yml +1 -1
- data/spec/dummy/config/puma.rb +14 -27
- data/spec/dummy/config/routes.rb +1 -1
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/spec/lib/local_resource/instance_spec.rb +1 -1
- metadata +64 -29
- data/.hound.yml +0 -4
- data/.travis.yml +0 -15
- data/spec/dummy/app/assets/javascripts/cable.js +0 -13
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/update +0 -29
- data/spec/dummy/bin/yarn +0 -11
- data/spec/dummy/config/secrets.yml +0 -32
- data/spec/dummy/config/spring.rb +0 -6
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
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.
|
4
|
+
local_resource (1.0.0)
|
5
5
|
open_uri_redirections
|
6
|
-
rails (>=
|
6
|
+
rails (>= 6.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (
|
12
|
-
actionpack (=
|
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
|
-
|
16
|
-
actionpack (=
|
17
|
-
|
18
|
-
|
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 (
|
22
|
-
actionview (=
|
23
|
-
activesupport (=
|
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
|
28
|
-
|
29
|
-
|
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.
|
34
|
-
activejob (
|
35
|
-
activesupport (=
|
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 (
|
38
|
-
activesupport (=
|
39
|
-
activerecord (
|
40
|
-
activemodel (=
|
41
|
-
activesupport (=
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
activerecord (=
|
46
|
-
|
47
|
-
|
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 (>=
|
50
|
-
minitest (
|
51
|
-
tzinfo (~>
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
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.
|
76
|
+
simplecov (~> 0.16.1)
|
59
77
|
term-ansicolor (~> 1.3)
|
60
|
-
thor (
|
78
|
+
thor (>= 0.19.4, < 2.0)
|
61
79
|
tins (~> 1.6)
|
62
|
-
crass (1.0.
|
63
|
-
diff-lcs (1.
|
64
|
-
docile (1.
|
65
|
-
erubi (1.
|
66
|
-
factory_bot (
|
67
|
-
activesupport (>=
|
68
|
-
factory_bot_rails (
|
69
|
-
factory_bot (~>
|
70
|
-
railties (>=
|
71
|
-
ffi (1.
|
72
|
-
formatador (0.
|
73
|
-
globalid (0.4.
|
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.
|
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.
|
107
|
+
i18n (1.8.10)
|
90
108
|
concurrent-ruby (~> 1.0)
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
rb-
|
95
|
-
|
96
|
-
loofah (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.
|
100
|
-
mail (2.7.
|
117
|
+
lumberjack (1.2.8)
|
118
|
+
mail (2.7.1)
|
101
119
|
mini_mime (>= 0.1.1)
|
102
|
-
marcel (0.
|
103
|
-
|
104
|
-
|
105
|
-
|
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.
|
111
|
-
nokogiri (1.
|
112
|
-
|
113
|
-
|
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
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
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
|
-
|
123
|
-
|
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 (
|
126
|
-
actioncable (=
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
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
|
142
|
-
loofah (~> 2.
|
143
|
-
railties (
|
144
|
-
actionpack (=
|
145
|
-
activesupport (=
|
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 (
|
149
|
-
|
150
|
-
|
151
|
-
rb-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
rspec-
|
156
|
-
rspec-
|
157
|
-
|
158
|
-
|
159
|
-
|
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.
|
162
|
-
rspec-mocks (3.
|
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.
|
165
|
-
rspec-rails (
|
166
|
-
actionpack (>=
|
167
|
-
activesupport (>=
|
168
|
-
railties (>=
|
169
|
-
rspec-core (~> 3.
|
170
|
-
rspec-expectations (~> 3.
|
171
|
-
rspec-mocks (~> 3.
|
172
|
-
rspec-support (~> 3.
|
173
|
-
rspec-support (3.
|
174
|
-
|
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.
|
177
|
-
docile (~> 1.1
|
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 (
|
220
|
+
sprockets (4.0.2)
|
182
221
|
concurrent-ruby (~> 1.0)
|
183
222
|
rack (> 1, < 3)
|
184
|
-
sprockets-rails (3.2.
|
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.
|
189
|
-
|
227
|
+
sqlite3 (1.4.2)
|
228
|
+
sync (0.5.0)
|
229
|
+
term-ansicolor (1.7.1)
|
190
230
|
tins (~> 1.0)
|
191
|
-
thor (
|
192
|
-
|
193
|
-
|
194
|
-
tzinfo (
|
195
|
-
|
196
|
-
|
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.
|
239
|
+
websocket-extensions (0.1.5)
|
240
|
+
zeitwerk (2.4.2)
|
199
241
|
|
200
242
|
PLATFORMS
|
201
|
-
|
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
|
-
|
254
|
+
rspec_junit_formatter
|
255
|
+
rubocop (= 0.65.0)
|
256
|
+
rubocop-rspec
|
257
|
+
sqlite3 (~> 1.4.2)
|
212
258
|
|
213
259
|
BUNDLED WITH
|
214
|
-
|
260
|
+
2.2.15
|
data/LICENSE.txt
CHANGED
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
|
-
[![
|
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
|
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
|