Class: EnsureVersionBump
- Inherits:
-
Object
- Object
- EnsureVersionBump
- Defined in:
- lib/ensure_version_bump.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#local ⇒ Object
readonly
Returns the value of attribute local.
-
#remote ⇒ Object
readonly
Returns the value of attribute remote.
Instance Method Summary collapse
-
#initialize(gem_name) ⇒ EnsureVersionBump
constructor
A new instance of EnsureVersionBump.
- #success? ⇒ Boolean
Constructor Details
#initialize(gem_name) ⇒ EnsureVersionBump
Returns a new instance of EnsureVersionBump.
8 9 10 11 |
# File 'lib/ensure_version_bump.rb', line 8 def initialize(gem_name) @local = Local.new(gem_name) @remote = Remote.new(gem_name) end |
Instance Attribute Details
#local ⇒ Object (readonly)
Returns the value of attribute local.
6 7 8 |
# File 'lib/ensure_version_bump.rb', line 6 def local @local end |
#remote ⇒ Object (readonly)
Returns the value of attribute remote.
6 7 8 |
# File 'lib/ensure_version_bump.rb', line 6 def remote @remote end |
Instance Method Details
#success? ⇒ Boolean
13 14 15 |
# File 'lib/ensure_version_bump.rb', line 13 def success? local.version > remote.version end |