Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Commit

Permalink
Merge pull request #38 from Factlink/pavlov-0.1.1
Browse files Browse the repository at this point in the history
Upgrade pavlov version to 0.1.1
  • Loading branch information
markijbema committed Aug 5, 2013
2 parents 48bf44b + 8bdc769 commit ac3162c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
9 changes: 9 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## 0.1.1

* Where you require pavlov, also require 'pavlov/alpha_compatibility'
* change all calls of `query`, `command` and `interactor` to `old_query`, `old_command`, `old_query`
* change all references to `@options` in interactors, commands and queries to `pavlov_options`

## 0.1.0

This guide assumes you're at least at 0.1.0
34 changes: 34 additions & 0 deletions lib/pavlov/alpha_compatibility.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
require 'pavlov'

module Pavlov
module Operation
def pavlov_options
@options
end
def pavlov_options=(options)
@options = options
end
end

def self.old_command *arguments
command *arguments
end
def self.old_query *arguments
query *arguments
end
def self.old_interactor *arguments
interactor *arguments
end

module Helpers
def old_interactor *args
interactor *args
end
def old_command *args
command *args
end
def old_query *args
query *args
end
end
end
2 changes: 1 addition & 1 deletion lib/pavlov/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ module Pavlov
# We're doing this because we might write tests that deal
# with other versions of bundler and we are unsure how to
# handle this better.
VERSION = "0.1.0"
VERSION = "0.1.1"
end

0 comments on commit ac3162c

Please sign in to comment.