Class: EnsureVersionBump

Inherits:
Object
  • Object
show all
Defined in:
lib/ensure_version_bump.rb

Defined Under Namespace

Classes: Local, Remote

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#localObject (readonly)

Returns the value of attribute local.



6
7
8
# File 'lib/ensure_version_bump.rb', line 6

def local
  @local
end

#remoteObject (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

Returns:

  • (Boolean)


13
14
15
# File 'lib/ensure_version_bump.rb', line 13

def success?
  local.version > remote.version
end