cocaine gem renamed to terrapin

This commit is contained in:
Kyle Drake 2018-12-09 23:33:00 -08:00
parent 81d8c09c18
commit c6140531ee
4 changed files with 7 additions and 10 deletions

View file

@ -14,7 +14,7 @@ gem 'mail'
gem 'tilt' gem 'tilt'
gem 'erubis' gem 'erubis'
gem 'stripe', '4.2.0' #, source: 'https://code.stripe.com/' gem 'stripe', '4.2.0' #, source: 'https://code.stripe.com/'
gem 'cocaine' gem 'terrapin'
gem 'zipruby' gem 'zipruby'
gem 'sass', require: nil gem 'sass', require: nil
gem 'dav4rack', git: 'https://github.com/planio-gmbh/dav4rack.git', branch: 'redmine-storage' gem 'dav4rack', git: 'https://github.com/planio-gmbh/dav4rack.git', branch: 'redmine-storage'

View file

@ -11,7 +11,6 @@ GIT
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
remote: https://code.stripe.com/
specs: specs:
acme-client (2.0.1) acme-client (2.0.1)
faraday (~> 0.9, >= 0.9.1) faraday (~> 0.9, >= 0.9.1)
@ -43,8 +42,6 @@ GEM
certified (1.0.0) certified (1.0.0)
climate_control (0.2.0) climate_control (0.2.0)
cliver (0.3.2) cliver (0.3.2)
cocaine (0.6.0)
terrapin (= 0.6.0)
coderay (1.1.2) coderay (1.1.2)
concurrent-ruby (1.1.3) concurrent-ruby (1.1.3)
connection_pool (2.2.2) connection_pool (2.2.2)
@ -297,7 +294,6 @@ DEPENDENCIES
capybara capybara
capybara_minitest_spec capybara_minitest_spec
certified certified
cocaine
coveralls coveralls
dav4rack! dav4rack!
erubis erubis
@ -352,8 +348,9 @@ DEPENDENCIES
sinatra (= 2.0.3) sinatra (= 2.0.3)
sinatra-flash sinatra-flash
sinatra-xsendfile sinatra-xsendfile
stripe (= 4.2.0)! stripe (= 4.2.0)
stripe-ruby-mock (= 2.5.6) stripe-ruby-mock (= 2.5.6)
terrapin
thread thread
tilt tilt
timecop timecop

View file

@ -34,7 +34,7 @@ class Archive < Sequel::Model
rbox.disconnect rbox.disconnect
end end
else else
line = Cocaine::CommandLine.new('ipfs', 'pin rm :ipfs_hash') line = Terrapin::CommandLine.new('ipfs', 'pin rm :ipfs_hash')
response = line.run ipfs_hash: ipfs_hash response = line.run ipfs_hash: ipfs_hash
output_array = response.to_s.split("\n") output_array = response.to_s.split("\n")
end end

View file

@ -667,7 +667,7 @@ class Site < Sequel::Model
return true if ENV['TRAVIS'] == 'true' return true if ENV['TRAVIS'] == 'true'
File.chmod 0666, uploaded_file[:tempfile].path File.chmod 0666, uploaded_file[:tempfile].path
line = Cocaine::CommandLine.new( line = Terrapin::CommandLine.new(
"clamdscan", "-i --remove=no --no-summary --stdout :path", "clamdscan", "-i --remove=no --no-summary --stdout :path",
expected_outcodes: [0, 1] expected_outcodes: [0, 1]
) )
@ -724,11 +724,11 @@ class Site < Sequel::Model
rbox.disconnect rbox.disconnect
end end
else else
line = Cocaine::CommandLine.new('ipfs', 'add -r -Q :path') line = Terrapin::CommandLine.new('ipfs', 'add -r -Q :path')
response = line.run path: files_path response = line.run path: files_path
end end
response.first response.strip
end end
def purge_old_archives def purge_old_archives