Skip to content

Commit

Permalink
gh-7 Improve require for base workflow
Browse files Browse the repository at this point in the history
When used in Rails context, its default `Bundler.require` /
`require_gem` usually does a `require` for all Gems used in the project,
also for transitive dependencies like your-app -> workflow-activerecord
-> workflow.  That way the CI build
https://travis-ci.org/geekq/workflow-activerecord works.

Anyway, adding this single `require` fix can not harm, but improve
things in some special context. Like minimal `irb` without bundler.
  • Loading branch information
Vladimir Dobriakov committed May 31, 2019
1 parent c390a5d commit 68fb46b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ You can have a look at an advanced [`on_transition`][] example in
Changelog
---------

### New in the version 4.1.5

* gh-7 Improve require for base `workflow`

### New in the version 4.1.3

* retire Ruby 2.3 and Rails 4.1 since this Ruby version has reached end of life
Expand Down
2 changes: 1 addition & 1 deletion lib/workflow_activerecord.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'rubygems'

require 'workflow'
require 'workflow/specification'
require 'workflow_activerecord/adapters/active_record'

Expand Down
2 changes: 1 addition & 1 deletion lib/workflow_activerecord/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module WorkflowActiverecord
VERSION = "4.1.4"
VERSION = "4.1.5"
end

0 comments on commit 68fb46b

Please sign in to comment.