Class: Prpr::Action::Gemfile::Update
- Inherits:
-
Base
- Object
- Base
- Prpr::Action::Gemfile::Update
- Defined in:
- lib/prpr/action/gemfile/update.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/prpr/action/gemfile/update.rb', line 7 def call if files.map(&:filename).include? 'Gemfile.lock' head_versions.each do |name, version| old_version = base_versions[name] next unless version next unless old_version if version.major != old_version.major add_comment(name, 'major version changed!') end if version.major == old_version.major && version.minor != old_version.minor add_comment(name, 'minor version changed!') end end end end |