Skip to content

Commit

Permalink
bump ruby version
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Aug 23, 2019
1 parent 07db447 commit f21fba0
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.3
2.6.3
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.5.3-slim
FROM ruby:2.6.3-slim

# Install dependencies
RUN apt-get update \
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ruby File.read('.ruby-version').strip

# gems that have rails engines are are always needed
group :preload do
gem 'rails', '5.2.2.1'
gem 'rails', '5.2.3'
gem 'dotenv'
gem 'connection_pool'
gem 'marco-polo'
Expand Down
92 changes: 46 additions & 46 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -161,45 +161,45 @@ GEM
remote: https://rubygems.org/
remote: https://rails-assets.org/
specs:
actioncable (5.2.2.1)
actionpack (= 5.2.2.1)
actioncable (5.2.3)
actionpack (= 5.2.3)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.2.1)
actionpack (= 5.2.2.1)
actionview (= 5.2.2.1)
activejob (= 5.2.2.1)
actionmailer (5.2.3)
actionpack (= 5.2.3)
actionview (= 5.2.3)
activejob (= 5.2.3)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.2.1)
actionview (= 5.2.2.1)
activesupport (= 5.2.2.1)
actionpack (5.2.3)
actionview (= 5.2.3)
activesupport (= 5.2.3)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.2.1)
activesupport (= 5.2.2.1)
actionview (5.2.3)
activesupport (= 5.2.3)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
active_hash (2.1.0)
activesupport (>= 5.0.0)
activejob (5.2.2.1)
activesupport (= 5.2.2.1)
activejob (5.2.3)
activesupport (= 5.2.3)
globalid (>= 0.3.6)
activemodel (5.2.2.1)
activesupport (= 5.2.2.1)
activerecord (5.2.2.1)
activemodel (= 5.2.2.1)
activesupport (= 5.2.2.1)
activemodel (5.2.3)
activesupport (= 5.2.3)
activerecord (5.2.3)
activemodel (= 5.2.3)
activesupport (= 5.2.3)
arel (>= 9.0)
activestorage (5.2.2.1)
actionpack (= 5.2.2.1)
activerecord (= 5.2.2.1)
activestorage (5.2.3)
actionpack (= 5.2.3)
activerecord (= 5.2.3)
marcel (~> 0.3.1)
activesupport (5.2.2.1)
activesupport (5.2.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
Expand Down Expand Up @@ -356,7 +356,7 @@ GEM
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mimemagic (0.3.3)
mini_mime (1.0.1)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.11.3)
minitest-rails (3.0.0)
Expand All @@ -371,12 +371,12 @@ GEM
multi_json (1.13.1)
multi_xml (0.6.0)
multipart-post (2.0.0)
mysql2 (0.4.10)
mysql2 (0.5.2)
net-http-persistent (2.9.4)
net-ldap (0.16.1)
netrc (0.11.0)
newrelic_rpm (4.1.0.333)
nio4r (2.3.1)
nio4r (2.4.0)
nokogiri (1.10.4)
mini_portile2 (~> 2.4.0)
oauth (0.5.3)
Expand Down Expand Up @@ -440,23 +440,23 @@ GEM
psych (3.1.0)
puma (3.11.3)
pyu-ruby-sasl (0.0.3.3)
rack (2.0.6)
rack (2.0.7)
rack-mini-profiler (0.10.2)
rack (>= 1.2.0)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.2.1)
actioncable (= 5.2.2.1)
actionmailer (= 5.2.2.1)
actionpack (= 5.2.2.1)
actionview (= 5.2.2.1)
activejob (= 5.2.2.1)
activemodel (= 5.2.2.1)
activerecord (= 5.2.2.1)
activestorage (= 5.2.2.1)
activesupport (= 5.2.2.1)
rails (5.2.3)
actioncable (= 5.2.3)
actionmailer (= 5.2.3)
actionpack (= 5.2.3)
actionview (= 5.2.3)
activejob (= 5.2.3)
activemodel (= 5.2.3)
activerecord (= 5.2.3)
activestorage (= 5.2.3)
activesupport (= 5.2.3)
bundler (>= 1.3.0)
railties (= 5.2.2.1)
railties (= 5.2.3)
sprockets-rails (>= 2.0.0)
rails-assets-bootstrap-select (1.10.0)
rails-assets-jquery (>= 1.8)
Expand All @@ -481,16 +481,16 @@ GEM
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
rails-html-sanitizer (1.2.0)
loofah (~> 2.2, >= 2.2.2)
railties (5.2.2.1)
actionpack (= 5.2.2.1)
activesupport (= 5.2.2.1)
railties (5.2.3)
actionpack (= 5.2.3)
activesupport (= 5.2.3)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rainbow (3.0.0)
rake (12.3.1)
rake (12.3.3)
recursive-open-struct (1.1.0)
request_store (1.4.0)
rack (>= 1.4)
Expand Down Expand Up @@ -565,9 +565,9 @@ GEM
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
websocket-driver (0.7.0)
websocket-driver (0.7.1)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
websocket-extensions (0.1.4)
zendesk_api (1.16.0)
faraday (~> 0.9)
hashie (>= 3.5.2, < 4.0.0)
Expand Down Expand Up @@ -635,7 +635,7 @@ DEPENDENCIES
pry-rails
puma
rack-mini-profiler
rails (= 5.2.2.1)
rails (= 5.2.3)
rails-assets-bootstrap-select!
rails-assets-jquery!
rails-assets-jquery-cookie!
Expand Down Expand Up @@ -686,7 +686,7 @@ DEPENDENCIES
webmock

RUBY VERSION
ruby 2.5.3
ruby 2.6.3p62

BUNDLED WITH
1.17.3
Original file line number Diff line number Diff line change
Expand Up @@ -1016,9 +1016,8 @@ def secret_annotations(hash)
it "fails nicely with invalid json" do
environment.update_column(:value, 'foo')
e = assert_raises(Samson::Hooks::UserError) { template.to_hash }
e.message.must_equal(
"Unable to set path spec.foo for Deployment in role app-server: " \
"JSON::ParserError 765: unexpected token at 'foo'"
e.message.must_include(
"Unable to set path spec.foo for Deployment in role app-server: JSON::ParserError"
)
end

Expand Down
3 changes: 2 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ def stub_const(base, name, value)
end

def self.only_callbacks_for_plugin(callback)
plugin_name = caller(1..1).first[/\/plugins\/([^\/]+)/, 1] || raise("not called from a plugin")
line = caller(1..1).first
plugin_name = line[/\/plugins\/([^\/]+)/, 1] || raise("not called from a plugin not #{line}")
around { |t| Samson::Hooks.only_callbacks_for_plugin(plugin_name, callback, &t) }
end

Expand Down

0 comments on commit f21fba0

Please sign in to comment.