Skip to content

Commit

Permalink
Nuke Operation::Result in favor of Orc::Result
Browse files Browse the repository at this point in the history
  • Loading branch information
snusnu committed Aug 1, 2014
1 parent a280bdc commit cc49822
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 32 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ gem 'anima', git: "#{MBJ}/anima.git", branch: M
gem 'morpher', git: "#{MBJ}/morpher.git", branch: MASTER
gem 'lupo', git: "#{SNUSNU}/lupo.git", branch: MASTER
gem 'procto', git: "#{SNUSNU}/procto.git", branch: MASTER
gem 'orc', git: "#{SNUSNU}/orc.git", branch: MASTER

gem 'axiom', git: "#{DKUBB}/axiom.git", branch: 'add-relation-one'
gem 'axiom-optimizer', git: "#{DKUBB}/axiom-optimizer.git", branch: MASTER
Expand Down
2 changes: 1 addition & 1 deletion lib/ramom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
require 'anima'
require 'lupo'
require 'procto'
require 'orc'
require 'adamantium'
require 'abstract_type'

Expand Down Expand Up @@ -55,7 +56,6 @@ def self.query(*args)
require 'ramom/aggregate'
require 'ramom/operation/registry'
require 'ramom/operation/registrar'
require 'ramom/operation/result'
require 'ramom/operation/environment'
require 'ramom/operation'
require 'ramom/command'
Expand Down
8 changes: 4 additions & 4 deletions lib/ramom/operation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ def dress(attributes)
dresser.call(attributes)
end

def success(data)
Result::Success.new(data)
def success(object)
Orc::Result.success(object)
end

def failure(data)
Result::Failure.new(data)
def failure(status, context)
Orc::Result.failure(status, context)
end
end # Operation
end # Ramom
27 changes: 0 additions & 27 deletions lib/ramom/operation/result.rb

This file was deleted.

1 change: 1 addition & 0 deletions ramom.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Gem::Specification.new do |gem|
gem.add_dependency 'anima', '~> 0.2.0'
gem.add_dependency 'lupo', '~> 0.0.1'
gem.add_dependency 'procto', '~> 0.0.2'
gem.add_dependency 'orc', '~> 0.0.1'
gem.add_dependency 'morpher', '~> 0.2.3'
gem.add_dependency 'adamantium', '~> 0.2.0'
gem.add_dependency 'abstract_type', '~> 0.0.7'
Expand Down

0 comments on commit cc49822

Please sign in to comment.