Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two bugs #1

Merged
merged 2 commits into from
Oct 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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