Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit ed85fd9

Browse files
authored
Routine Security Updates (#981)
1 parent 8281538 commit ed85fd9

File tree

7 files changed

+184
-179
lines changed

7 files changed

+184
-179
lines changed

Gemfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ ruby "2.6.1"
55
gem "rails"
66
gem "bundler"
77

8-
gem "mongoid"
8+
# We can't upgrade to Mongoid 7 unless someone has
9+
# time to manually QA the failed view specs that
10+
# it causes. -RC 15 MAR 19
11+
gem "mongoid", "~> 6"
912
gem "delayed_job_mongoid" # <= Problematic dep upgrade
1013
gem "delayed_job_shallow_mongoid"
1114
gem "kaminari-mongoid"
@@ -20,7 +23,9 @@ gem "aws-sdk-s3"
2023
gem "bson_ext"
2124

2225
gem "searchkick"
23-
gem "gibbon"
26+
# This gem requires a manual upgrade.
27+
# Help appreciated -RC 15 MAR 19
28+
gem "gibbon", "~> 1"
2429
gem "jsonapi-serializers"
2530
gem "devise"
2631
gem "eventmachine"
@@ -59,7 +64,7 @@ end
5964
gem "font-awesome-sass"
6065

6166
# WARNING: Upgrading to foundation v6 is _not_ a trivial task.
62-
gem 'foundation-rails', '5.5.2.1'
67+
gem "foundation-rails", "5.5.2.1"
6368
gem "sprockets"
6469
gem "sprockets-es6"
6570

Gemfile.lock

Lines changed: 76 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ GEM
44
specs:
55
acme-client (0.4.1)
66
faraday (~> 0.9, >= 0.9.1)
7-
actioncable (5.2.2)
8-
actionpack (= 5.2.2)
7+
actioncable (5.2.2.1)
8+
actionpack (= 5.2.2.1)
99
nio4r (~> 2.0)
1010
websocket-driver (>= 0.6.1)
11-
actionmailer (5.2.2)
12-
actionpack (= 5.2.2)
13-
actionview (= 5.2.2)
14-
activejob (= 5.2.2)
11+
actionmailer (5.2.2.1)
12+
actionpack (= 5.2.2.1)
13+
actionview (= 5.2.2.1)
14+
activejob (= 5.2.2.1)
1515
mail (~> 2.5, >= 2.5.4)
1616
rails-dom-testing (~> 2.0)
17-
actionpack (5.2.2)
18-
actionview (= 5.2.2)
19-
activesupport (= 5.2.2)
17+
actionpack (5.2.2.1)
18+
actionview (= 5.2.2.1)
19+
activesupport (= 5.2.2.1)
2020
rack (~> 2.0)
2121
rack-test (>= 0.6.3)
2222
rails-dom-testing (~> 2.0)
2323
rails-html-sanitizer (~> 1.0, >= 1.0.2)
24-
actionview (5.2.2)
25-
activesupport (= 5.2.2)
24+
actionview (5.2.2.1)
25+
activesupport (= 5.2.2.1)
2626
builder (~> 3.1)
2727
erubi (~> 1.4)
2828
rails-dom-testing (~> 2.0)
@@ -32,20 +32,20 @@ GEM
3232
activemodel (>= 4.1, < 6)
3333
case_transform (>= 0.2)
3434
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
35-
activejob (5.2.2)
36-
activesupport (= 5.2.2)
35+
activejob (5.2.2.1)
36+
activesupport (= 5.2.2.1)
3737
globalid (>= 0.3.6)
38-
activemodel (5.2.2)
39-
activesupport (= 5.2.2)
40-
activerecord (5.2.2)
41-
activemodel (= 5.2.2)
42-
activesupport (= 5.2.2)
38+
activemodel (5.2.2.1)
39+
activesupport (= 5.2.2.1)
40+
activerecord (5.2.2.1)
41+
activemodel (= 5.2.2.1)
42+
activesupport (= 5.2.2.1)
4343
arel (>= 9.0)
44-
activestorage (5.2.2)
45-
actionpack (= 5.2.2)
46-
activerecord (= 5.2.2)
44+
activestorage (5.2.2.1)
45+
actionpack (= 5.2.2.1)
46+
activerecord (= 5.2.2.1)
4747
marcel (~> 0.3.1)
48-
activesupport (5.2.2)
48+
activesupport (5.2.2.1)
4949
concurrent-ruby (~> 1.0, >= 1.0.2)
5050
i18n (>= 0.7, < 2)
5151
minitest (~> 5.1)
@@ -58,27 +58,29 @@ GEM
5858
capybara (~> 3.12, < 4)
5959
websocket-driver (>= 0.6.5)
6060
arel (9.0.0)
61-
aws-eventstream (1.0.1)
62-
aws-partitions (1.141.0)
63-
aws-sdk-core (3.46.2)
64-
aws-eventstream (~> 1.0)
61+
aws-eventstream (1.0.2)
62+
aws-partitions (1.144.0)
63+
aws-sdk-core (3.47.0)
64+
aws-eventstream (~> 1.0, >= 1.0.2)
6565
aws-partitions (~> 1.0)
66-
aws-sigv4 (~> 1.0)
66+
aws-sigv4 (~> 1.1)
67+
http-2 (~> 0.10)
6768
jmespath (~> 1.0)
68-
aws-sdk-kms (1.13.0)
69-
aws-sdk-core (~> 3, >= 3.39.0)
70-
aws-sigv4 (~> 1.0)
69+
aws-sdk-kms (1.14.0)
70+
aws-sdk-core (~> 3, >= 3.47.0)
71+
aws-sigv4 (~> 1.1)
7172
aws-sdk-rails (2.1.0)
7273
aws-sdk-ses (~> 1)
7374
railties (>= 3)
74-
aws-sdk-s3 (1.30.1)
75-
aws-sdk-core (~> 3, >= 3.39.0)
75+
aws-sdk-s3 (1.32.0)
76+
aws-sdk-core (~> 3, >= 3.47.0)
7677
aws-sdk-kms (~> 1)
7778
aws-sigv4 (~> 1.0)
78-
aws-sdk-ses (1.14.0)
79-
aws-sdk-core (~> 3, >= 3.39.0)
80-
aws-sigv4 (~> 1.0)
81-
aws-sigv4 (1.0.3)
79+
aws-sdk-ses (1.15.0)
80+
aws-sdk-core (~> 3, >= 3.47.0)
81+
aws-sigv4 (~> 1.1)
82+
aws-sigv4 (1.1.0)
83+
aws-eventstream (~> 1.0, >= 1.0.2)
8284
babel-source (5.8.35)
8385
babel-transpiler (0.7.0)
8486
babel-source (>= 4.0, < 6)
@@ -128,7 +130,7 @@ GEM
128130
compass (~> 1.0.0)
129131
sass-rails (< 5.1)
130132
sprockets (< 4.0)
131-
concurrent-ruby (1.1.4)
133+
concurrent-ruby (1.1.5)
132134
coveralls (0.8.22)
133135
json (>= 1.8, < 3)
134136
simplecov (~> 0.16.1)
@@ -138,21 +140,21 @@ GEM
138140
crack (0.4.3)
139141
safe_yaml (~> 1.0.0)
140142
crass (1.0.4)
141-
daemons (1.2.6)
143+
daemons (1.3.1)
142144
database_cleaner (1.7.0)
143145
debug_inspector (0.0.3)
144146
delayed_job (4.1.5)
145147
activesupport (>= 3.0, < 5.3)
146-
delayed_job_mongoid (2.3.0)
148+
delayed_job_mongoid (2.3.1)
147149
delayed_job (>= 3.0, < 5)
148-
mongoid (>= 3.0, < 7)
150+
mongoid (>= 3.0, < 8)
149151
mongoid-compatibility (>= 0.4.0)
150152
delayed_job_shallow_mongoid (1.2.0)
151153
activesupport (>= 3.2)
152154
delayed_job (>= 3.0)
153155
delayed_job_mongoid (>= 2.0)
154156
mongoid (>= 3.0)
155-
devise (4.5.0)
157+
devise (4.6.1)
156158
bcrypt (~> 3.0)
157159
orm_adapter (~> 0.1)
158160
railties (>= 4.1.0, < 6.0)
@@ -161,12 +163,12 @@ GEM
161163
diff-lcs (1.3)
162164
docile (1.3.1)
163165
easy_diff (1.0.0)
164-
elasticsearch (6.1.0)
165-
elasticsearch-api (= 6.1.0)
166-
elasticsearch-transport (= 6.1.0)
167-
elasticsearch-api (6.1.0)
166+
elasticsearch (6.2.0)
167+
elasticsearch-api (= 6.2.0)
168+
elasticsearch-transport (= 6.2.0)
169+
elasticsearch-api (6.2.0)
168170
multi_json
169-
elasticsearch-transport (6.1.0)
171+
elasticsearch-transport (6.2.0)
170172
faraday
171173
multi_json
172174
erubi (1.8.0)
@@ -184,12 +186,12 @@ GEM
184186
railties (>= 4.2.0)
185187
faker (1.9.3)
186188
i18n (>= 0.7)
187-
faraday (0.15.3)
189+
faraday (0.15.4)
188190
multipart-post (>= 1.2, < 3)
189-
ffi (1.9.25)
191+
ffi (1.10.0)
190192
font-awesome-rails (4.7.0.4)
191193
railties (>= 3.2, < 6.0)
192-
font-awesome-sass (5.5.0.1)
194+
font-awesome-sass (5.6.1)
193195
sassc (>= 1.11)
194196
foundation-rails (5.5.2.1)
195197
railties (>= 3.1.0)
@@ -210,10 +212,11 @@ GEM
210212
moneta
211213
multi_json (>= 1.9.2)
212214
high_voltage (3.1.0)
215+
http-2 (0.10.1)
213216
httparty (0.16.4)
214217
mime-types (~> 3.0)
215218
multi_xml (>= 0.5.2)
216-
i18n (1.5.3)
219+
i18n (1.6.0)
217220
concurrent-ruby (~> 1.0)
218221
impressionist (1.6.1)
219222
nokogiri (~> 1)
@@ -294,7 +297,7 @@ GEM
294297
multi_json (1.13.1)
295298
multi_xml (0.6.0)
296299
multipart-post (2.0.0)
297-
mutations (0.8.3)
300+
mutations (0.9.0)
298301
activesupport
299302
nested_form (0.3.2)
300303
ng-rails-csrf (0.1.0)
@@ -332,18 +335,18 @@ GEM
332335
rack-test (1.1.0)
333336
rack (>= 1.0, < 3)
334337
rack-timeout (0.5.1)
335-
rails (5.2.2)
336-
actioncable (= 5.2.2)
337-
actionmailer (= 5.2.2)
338-
actionpack (= 5.2.2)
339-
actionview (= 5.2.2)
340-
activejob (= 5.2.2)
341-
activemodel (= 5.2.2)
342-
activerecord (= 5.2.2)
343-
activestorage (= 5.2.2)
344-
activesupport (= 5.2.2)
338+
rails (5.2.2.1)
339+
actioncable (= 5.2.2.1)
340+
actionmailer (= 5.2.2.1)
341+
actionpack (= 5.2.2.1)
342+
actionview (= 5.2.2.1)
343+
activejob (= 5.2.2.1)
344+
activemodel (= 5.2.2.1)
345+
activerecord (= 5.2.2.1)
346+
activestorage (= 5.2.2.1)
347+
activesupport (= 5.2.2.1)
345348
bundler (>= 1.3.0)
346-
railties (= 5.2.2)
349+
railties (= 5.2.2.1)
347350
sprockets-rails (>= 2.0.0)
348351
rails-assets-angular (1.5.8)
349352
rails-assets-angular-dragdrop (1.0.13)
@@ -399,9 +402,9 @@ GEM
399402
sass-rails (>= 4.0, < 6)
400403
rails_serve_static_assets (0.0.5)
401404
rails_stdout_logging (0.0.5)
402-
railties (5.2.2)
403-
actionpack (= 5.2.2)
404-
activesupport (= 5.2.2)
405+
railties (5.2.2.1)
406+
actionpack (= 5.2.2.1)
407+
activesupport (= 5.2.2.1)
405408
method_source
406409
rake (>= 0.8.7)
407410
thor (>= 0.19.0, < 2.0)
@@ -411,9 +414,9 @@ GEM
411414
ffi (~> 1.0)
412415
regexp_parser (1.3.0)
413416
remotipart (1.4.2)
414-
responders (2.4.0)
415-
actionpack (>= 4.2.0, < 5.3)
416-
railties (>= 4.2.0, < 5.3)
417+
responders (2.4.1)
418+
actionpack (>= 4.2.0, < 6.0)
419+
railties (>= 4.2.0, < 6.0)
417420
rollbar (2.19.2)
418421
multi_json
419422
rspec-core (3.8.0)
@@ -441,8 +444,8 @@ GEM
441444
sprockets (>= 2.8, < 4.0)
442445
sprockets-rails (>= 2.0, < 4.0)
443446
tilt (>= 1.1, < 3)
444-
sassc (2.0.0)
445-
ffi (~> 1.9.6)
447+
sassc (2.0.1)
448+
ffi (~> 1.9)
446449
rake
447450
searchkick (3.1.2)
448451
activemodel (>= 4.2)
@@ -467,7 +470,7 @@ GEM
467470
activesupport (>= 4.0)
468471
sprockets (>= 3.0.0)
469472
stringex (2.8.5)
470-
temple (0.8.0)
473+
temple (0.8.1)
471474
term-ansicolor (1.7.1)
472475
tins (~> 1.0)
473476
terrapin (0.6.0)
@@ -527,7 +530,7 @@ DEPENDENCIES
527530
faker
528531
font-awesome-sass
529532
foundation-rails (= 5.5.2.1)
530-
gibbon
533+
gibbon (~> 1)
531534
high_voltage
532535
impressionist
533536
jquery-rails
@@ -537,7 +540,7 @@ DEPENDENCIES
537540
letsencrypt-rails-heroku
538541
letter_opener
539542
merit
540-
mongoid
543+
mongoid (~> 6)
541544
mongoid-history
542545
mongoid-paperclip
543546
mongoid-slug
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
require 'spec_helper'
2-
require 'openfarm_errors'
1+
require "spec_helper"
2+
require "openfarm_errors"
33

44
describe Crops::UpdateCrop do
55
let(:mutation) { Crops::UpdateCrop }
@@ -11,45 +11,45 @@
1111
let(:params) do
1212
{ user: user,
1313
id: "#{crop.id}",
14-
attributes: { binomial_name: 'updated',
15-
description: 'A random description' } }
14+
attributes: { binomial_name: "updated",
15+
description: "A random description" } }
1616
end
1717

18-
it 'requires fields' do
18+
it "requires fields" do
1919
errors = mutation.run({}).errors.message_list
20-
expect(errors).to include('Attributes is required')
21-
expect(errors).to include('Id is required')
20+
expect(errors).to include("Attributes is required")
21+
expect(errors).to include("ID is required")
2222
end
2323

24-
it 'updates valid crops' do
24+
it "updates valid crops" do
2525
result = mutation.run(params).result
2626
expect(result).to be_a(Crop)
2727
expect(result.valid?).to be(true)
2828
end
2929

30-
it 'updates a crop taxon' do
31-
params[:attributes][:taxon] = 'Genus'
30+
it "updates a crop taxon" do
31+
params[:attributes][:taxon] = "Genus"
3232
result = mutation.run(params).result
3333
expect(result).to be_a(Crop)
3434
expect(result.valid?).to be(true)
35-
expect(result.taxon).to eq('Genus')
35+
expect(result.taxon).to eq("Genus")
3636
end
3737

38-
it 'updates crop companions' do
38+
it "updates crop companions" do
3939
params[:attributes][:companions] = [companion_crop].map(&:id)
4040
result = mutation.run(params).result
4141
expect(result).to be_a(Crop)
4242
expect(result.valid?).to be(true)
4343
expect(result.companions.first).to eq(companion_crop)
4444
end
4545

46-
it 'disallows phony URLs' do
46+
it "disallows phony URLs" do
4747
image_hash = {
48-
image_url: 'iWroteThisWrong.net/2haLt4J.jpg'
48+
image_url: "iWroteThisWrong.net/2haLt4J.jpg",
4949
}
50-
image_params = params.merge(images: [ image_hash ])
50+
image_params = params.merge(images: [image_hash])
5151
results = mutation.run(image_params)
5252
expect(results.success?).to be_falsey
53-
expect(results.errors.message[:images]).to include('not a valid URL')
53+
expect(results.errors.message[:images]).to include("not a valid URL")
5454
end
5555
end

0 commit comments

Comments
 (0)