Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
Update dependencies & Update to Ruby 2.6
  • Loading branch information
ninoseki committed Aug 28, 2019
1 parent c084f72 commit 4794b4c
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Version 2.2

AllCops:
TargetRubyVersion: 2.5
TargetRubyVersion: 2.6

Style/Alias:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ language: ruby
cache: bundler

rvm:
- 2.5
- 2.6

script: bundle exec rake spec
12 changes: 6 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

source "https://rubygems.org"

ruby "~> 2.5.0"
ruby "~> 2.6"

gem "dotenv", "~> 2.5"
gem "dotenv", "~> 2.7"
gem "logstash-logger", "~> 0.26"
gem "puma", "~> 3.12"
gem "puma", "~> 4.1"
gem "rack", "~> 2.0"
gem "require_all", "~> 2.0"

group :development, :test do
gem 'coveralls', "~> 0.8", require: false
gem "coveralls", "~> 0.8", require: false
gem "foreman", "~> 0.85"
gem "itamae", "~> 1.9"
gem "pry", "~> 0.11"
gem "itamae", "~> 1.10"
gem "pry", "~> 0.12"
gem "rack-test", "~> 1.1"
gem "rake", "~> 12.3"
gem "rspec", "~> 3.8"
Expand Down
16 changes: 9 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GEM
tins (~> 1.6)
diff-lcs (1.3)
docile (1.3.1)
dotenv (2.5.0)
dotenv (2.7.5)
foreman (0.85.0)
thor (~> 0.19.1)
hashie (3.6.0)
Expand All @@ -30,10 +30,12 @@ GEM
net-ssh (>= 2.6.5)
net-ssh (5.1.0)
net-telnet (0.1.1)
nio4r (2.5.0)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
puma (3.12.0)
puma (4.1.0)
nio4r (~> 2.0)
rack (2.0.6)
rack-test (1.1.0)
rack (>= 1.0, < 3)
Expand Down Expand Up @@ -76,12 +78,12 @@ PLATFORMS

DEPENDENCIES
coveralls (~> 0.8)
dotenv (~> 2.5)
dotenv (~> 2.7)
foreman (~> 0.85)
itamae (~> 1.9)
itamae (~> 1.10)
logstash-logger (~> 0.26)
pry (~> 0.11)
puma (~> 3.12)
pry (~> 0.12)
puma (~> 4.1)
rack (~> 2.0)
rack-test (~> 1.1)
rake (~> 12.3)
Expand All @@ -90,7 +92,7 @@ DEPENDENCIES
shotgun (~> 0.9)

RUBY VERSION
ruby 2.5.1p57
ruby 2.6.1p33

BUNDLED WITH
1.17.3
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ A web-based low-interaction honeypot build on [Rack](https://github.com/rack/rac

## Supported

- Ubuntu 16.04 LTS and Ruby 2.5.
- Ubuntu 16.04 LTS and Ruby 2.6.

## Installation

Expand Down
14 changes: 8 additions & 6 deletions cookbooks/sleep_warm/default.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
# frozen_string_literal: true

# install Ruby 2.5
# install Ruby 2.6
"git build-essential".split.each { |name| package name }

execute "yes | sudo apt-add-repository ppa:brightbox/ruby-ng" do
not_if "grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep brightbox-ubuntu-ruby-ng"
end

execute "sudo apt-get update" do
not_if "dpkg -l ruby2.5"
not_if "dpkg -l ruby2.6"
end

"ruby2.5 ruby2.5-dev ruby-switch".split.each { |name| package name }
"ruby2.6 ruby2.6-dev ruby-switch".split.each { |name| package name }

execute "sudo ruby-switch --set ruby 2.5" do
not_if "ruby -v | grep 2.5"
execute "sudo ruby-switch --set ruby 2.6" do
not_if "ruby -v | grep 2.6"
end

gem_package "bundler"
execute "sudo gem install bundler -v 2.0" do
not_if "gem list | grep bundler | grep 2.0 "
end

# install sleep_warm
user "sleep-warm" do
Expand Down

0 comments on commit 4794b4c

Please sign in to comment.