Class: SocialStream::Release::DependencyUpdate

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/social_stream/release/dependency_update.rb

Instance Method Summary collapse

Instance Method Details

#update(gemspec, dependency, version) ⇒ Object



7
8
9
10
11
# File 'lib/social_stream/release/dependency_update.rb', line 7

def update gemspec, dependency, version
  gsub_file gemspec,
            /social_stream-#{ dependency }.*(\d+\.\d+\.\d+)/,
            "social_stream-#{ dependency }', '~> #{ version }"
end