Skip to content

Commit

Permalink
Replace byebug with debug gem + add .tool-version file
Browse files Browse the repository at this point in the history
  • Loading branch information
StanBright committed Jan 9, 2023
1 parent 7357669 commit fb7cc8f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 3.1.1
13 changes: 11 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ PATH
remote: .
specs:
kt-paperclip-vips (1.2.2)
activesupport (>= 6.1)
kt-paperclip (~> 7.0)
ruby-vips (~> 2.1)

Expand All @@ -15,13 +16,18 @@ GEM
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
byebug (11.1.3)
climate_control (0.2.0)
concurrent-ruby (1.1.10)
debug (1.7.1)
irb (>= 1.5.0)
reline (>= 0.3.1)
diff-lcs (1.5.0)
ffi (1.15.5)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
io-console (0.6.0)
irb (1.6.2)
reline (>= 0.3.0)
kt-paperclip (7.1.1)
activemodel (>= 4.2.0)
activesupport (>= 4.2.0)
Expand All @@ -34,6 +40,8 @@ GEM
mime-types-data (3.2022.0105)
minitest (5.17.0)
rake (13.0.6)
reline (0.3.2)
io-console (~> 0.5)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
Expand All @@ -58,8 +66,9 @@ PLATFORMS
ruby

DEPENDENCIES
activemodel (>= 6.1)
bundler (~> 2.0)
byebug (~> 11.0)
debug
kt-paperclip-vips!
rake (~> 13.0)
rspec (~> 3.0)
Expand Down
1 change: 1 addition & 0 deletions lib/paperclip-vips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require "paperclip"
require "paperclip-vips/version"
require "paperclip-vips/paperclip/vips"
require "active_support/all"

module PaperclipVips
def self.root
Expand Down
7 changes: 4 additions & 3 deletions paperclip-vips.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency 'kt-paperclip', "~> 7.0"
spec.add_runtime_dependency "ruby-vips", "~> 2.1"
spec.add_runtime_dependency "activesupport", ">= 6.1"

spec.add_development_dependency "bundler", "~> 2.0"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "byebug", "~> 11.0"
# spec.add_development_dependency "activesupport", "~> 6.1"
# spec.add_development_dependency "activemodel", "~> 6.1"
spec.add_development_dependency "debug"
# spec.add_development_dependency "byebug", "~> 11.0"
spec.add_development_dependency "activemodel", ">= 6.1"
end
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
require "bundler/setup"
Bundler.setup


# We need this because of this https://github.com/thoughtbot/paperclip/pull/2369
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/object/try'
require "paperclip-vips"
require 'debug'

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
Expand Down

0 comments on commit fb7cc8f

Please sign in to comment.