Skip to content

Commit

Permalink
Merge pull request #1 from ancorgs/fix_namespace
Browse files Browse the repository at this point in the history
Fix two bugs
  • Loading branch information
seuros authored Oct 24, 2016
2 parents 14691a8 + 60d4028 commit 046e116
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/state_machines/yard/handlers.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module StateMachine
module StateMachines
module YARD
# YARD custom handlers for integrating the state_machine DSL with the
# YARD documentation system
Expand Down
2 changes: 1 addition & 1 deletion lib/state_machines/yard/handlers/base.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module StateMachine
module StateMachines
module YARD
module Handlers
# Handles and processes nodes
Expand Down
2 changes: 1 addition & 1 deletion lib/state_machines/yard/handlers/event.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module StateMachine
module StateMachines
module YARD
module Handlers
# Handles and processes #event
Expand Down
2 changes: 1 addition & 1 deletion lib/state_machines/yard/handlers/machine.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module StateMachine
module StateMachines
module YARD
module Handlers
# Handles and processes #state_machine
Expand Down
2 changes: 1 addition & 1 deletion lib/state_machines/yard/handlers/state.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module StateMachine
module StateMachines
module YARD
module Handlers
# Handles and processes #state
Expand Down
4 changes: 2 additions & 2 deletions lib/state_machines/yard/handlers/transition.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module StateMachine
module StateMachines
module YARD
module Handlers
# Handles and processes #transition
Expand All @@ -13,7 +13,7 @@ def process
ast = statement.parameters.first
ast.children.each do |assoc|
# Skip conditionals
next if %w(if unless).include?(assoc[0].jump(:ident).source)
next if %w(if :if unless :unless).include?(assoc[0].jump(:ident).source)

options[extract_requirement(assoc[0])] = extract_requirement(assoc[1])
end
Expand Down

0 comments on commit 046e116

Please sign in to comment.