Sha256: d10dd024622e37b17f45785188aab26bb0f4335df963f4e595a6a12a36f0d4b9
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
class InvocaGems::GemspecLine attr_reader :gemspec, :gem_name, :line, :index, :prefix def initialize(gemspec, gem_name, line, index) @gemspec = gemspec @gem_name = gem_name @line = line @index = index @prefix = @line.match(/\A(\s*\S+\s+)[\'\"]/)[1] end def save! gemspec.save!(self) end def update_version(new_version) @line = "#{@prefix}'#{gem_name}', '#{new_version}'" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
invoca_gems-0.1.0 | lib/invoca_gems/gemspec_line.rb |