Skip to content

Commit

Permalink
Update Ruby version, tests, patch svg_icon XSS vector
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCarlino committed May 20, 2019
1 parent 4ee7d2f commit 523c4c2
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.1
2.6.3
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: ruby
# If you don't specify a version, Travis CI will use MRI 1.9.3 as the default.
# http://docs.travis-ci.com/user/languages/ruby/
rvm:
- 2.6.1
- 2.6.3
services:
- mongodb
- elasticsearch
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Image name: openfarm-webapp
#

FROM ruby:2.6.1
FROM ruby:2.6.3
MAINTAINER https://github.com/FarmBot/OpenFarm

ENV PHANTOM_JS_VERSION 1.9.8
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

ruby "2.6.1"
ruby "2.6.3"

gem "rails"
gem "bundler"
Expand Down
3 changes: 1 addition & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ GEM
moneta
multi_json (>= 1.9.2)
high_voltage (3.1.0)
http-2 (0.10.1)
httparty (0.16.4)
mime-types (~> 3.0)
multi_xml (>= 0.5.2)
Expand Down Expand Up @@ -588,7 +587,7 @@ DEPENDENCIES
webmock

RUBY VERSION
ruby 2.6.1p33
ruby 2.6.3p62

BUNDLED WITH
1.17.2
4 changes: 2 additions & 2 deletions scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ echo "--- INSTALLING RVM ---"

gpg --keyserver hkp://pool.sks-keyservers.net:80 --recv-keys D39DC0E3

curl -sSL https://get.rvm.io | bash -s stable --quiet-curl --ruby=2.6.1
curl -sSL https://get.rvm.io | bash -s stable --quiet-curl --ruby=2.6.3

echo "--- INSTALLING RUBY 2.6.1 ---"

source /home/vagrant/.rvm/scripts/rvm

rvm reload
rvm --default use 2.6.1
rvm --default use 2.6.3

echo "--- INSTALLING ELASTICSEARCH ---"

Expand Down
4 changes: 2 additions & 2 deletions spec/models/guide_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@

it "sets the popularity score" do
Guide.destroy_all
FactoryBot.create(:guide)
FactoryBot.create(:guide)
FactoryBot.create(:guide, impressions_field: 10)
FactoryBot.create(:guide, impressions_field: 12)
guide = FactoryBot.create(:guide)
expect(guide.popularity_score).not_to eq(0)
end
Expand Down

0 comments on commit 523c4c2

Please sign in to comment.