Skip to content

Commit

Permalink
revert code
Browse files Browse the repository at this point in the history
  • Loading branch information
sbhawsingka committed Jan 27, 2020
1 parent 120d09d commit 5c7959e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ Paperclip is distributed as a gem, which is how it should be used in your app.
Include the gem in your Gemfile:

```ruby
gem "kt-paperclip", "~> 6.2.0", require: "paperclip"
gem "kt-paperclip", "~> 6.2.0"
```

Or, if you want to get the latest, you can get master from the main paperclip repository:

```ruby
gem "kt-paperclip", git: "git://github.com/kreeti/paperclip.git", require: "paperclip"
gem "kt-paperclip", git: "git://github.com/kreeti/paperclip.git"
```

If you're trying to use features that don't seem to be in the latest released gem, but are
Expand Down
7 changes: 3 additions & 4 deletions features/step_definitions/rails_steps.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'pry'
Given /^I generate a new rails application$/ do
steps %{
When I successfully run `rails new #{APP_NAME} --skip-bundle`
Expand All @@ -25,7 +24,7 @@
And I remove turbolinks
And I comment out lines that contain "action_mailer" in "config/environments/*.rb"
And I empty the application.js file
And I configure the application to use paperclip from this project
And I configure the application to use "paperclip" from this project
}

FileUtils.chdir("../../..")
Expand Down Expand Up @@ -199,8 +198,8 @@ def attach_attachment(name, definition = nil)
expect(actual).to eq(expected)
end

When /^I configure the application to use paperclip from this project$/ do
append_to_gemfile "gem 'kt-paperclip', path: '#{PROJECT_ROOT}', require: 'paperclip'"
When /^I configure the application to use "([^\"]+)" from this project$/ do |name|
append_to_gemfile "gem '#{name}', :path => '#{PROJECT_ROOT}'"
steps %{And I successfully run `bundle install --local`}
end

Expand Down

0 comments on commit 5c7959e

Please sign in to comment.