moses 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/moses.rb +2 -2
  3. data/moses.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/lib/moses.rb CHANGED
@@ -62,7 +62,7 @@ module Moses
62
62
  set_option_command
63
63
 
64
64
  self.send(@command) if valid_command?
65
- self.send(@default_command || :help) if @command.nil?
65
+ self.send(default_command || :help) if @command.nil?
66
66
  end
67
67
 
68
68
  private
@@ -97,7 +97,7 @@ module Moses
97
97
  end
98
98
 
99
99
  def valid_command?
100
- default_commands.include?(@command) || [*commands].include?(@command) && self.class.method_defined?(@command)
100
+ default_commands.include?(@command) || self.class.method_defined?(:commands) && [*commands].include?(@command) && self.class.method_defined?(@command)
101
101
  end
102
102
 
103
103
  def create_variable_option(flag, value = nil)
data/moses.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "moses"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dayton Nolan"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moses
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  segments:
129
129
  - 0
130
- hash: -622874752206041444
130
+ hash: -1783026924940414943
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  none: false
133
133
  requirements: