puppetfile_editor 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 362e6f21d26c644b49d50b1e0b57cdcf28b32fca
4
- data.tar.gz: 2d65a424f9215a246a06cdde7fed12f46f5af34f
2
+ SHA256:
3
+ metadata.gz: b99bd7f019aa2f0f45886781196541dbc26ee417563c442ec108f64c35127dc1
4
+ data.tar.gz: 512cc9b743df97fe6ea944b6aa47a1cd2ce82f37ec84072d06053ca409482470
5
5
  SHA512:
6
- metadata.gz: 1c9e011a05cf98d47efbe7392cb4c32cd9e4bf958ddb85d31a43a29cabee0d1363e82cd8f3d59dbc03e1e93bfea17e1e848826b93a9a2b7da77c811f1279c07a
7
- data.tar.gz: 61154333de1a4d2b31adc70909cfc13adb20902c986582ea5c5e83841776d33948f43612b6ccd3413a9310b17f3b529af65d5f3c18366be16b66634220ddad42
6
+ metadata.gz: 4dc9b545e14367eb025409bb3e00f0fa1771ce01d5725eb45c2f3544425391896899a7a7bce02d1d8e1d611ce3b5912018d4b6722cd60b098c756d1ae2ba421a
7
+ data.tar.gz: ad6327a2c9eaed1f8e9f1bf60369f009c580a8a0763cc1cfc75a8df3ae71574ea22ef7a311c4056790e81202de5e64860413722e2d8ffeae71c9d03c87aa0b0f
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [0.7.0] - 2018-02-15
8
+ ### Added
9
+ - Warn about downgrading forge, git, and hg modules while merging.
10
+
7
11
  ## [0.6.1] - 2017-12-11
8
12
  ### Fixed
9
13
  - Changed default CLI path to `Puppetfile` instead of `./Puppetfile` for better auditing.
@@ -116,6 +116,7 @@ module PuppetfileEditor
116
116
  not_found: "[ \e[31;1mx\e[0m ]",
117
117
  type_mismatched: "[ \e[31;1mx\e[0m ]",
118
118
  wont_upgrade: "[ \e[33;1m!\e[0m ]",
119
+ downgrade: "[ \e[31;1m!\e[0m ]",
119
120
  warn: "[ \e[31;1m!!\e[0m ]",
120
121
  undef: '',
121
122
  }
@@ -74,6 +74,8 @@ module PuppetfileEditor
74
74
  if full_version == mod.full_version
75
75
  set_message("versions match (#{full_version})", :matched)
76
76
  return
77
+ elsif Gem::Version.new(full_version.sub('tag: ', '')) > Gem::Version.new(mod.full_version.sub('tag: ', ''))
78
+ set_message("DOWNGRADED (#{full_version} to #{mod.full_version})", :downgrade)
77
79
  else
78
80
  set_message("updated (#{full_version} to #{mod.full_version})", :updated)
79
81
  end
@@ -90,6 +92,8 @@ module PuppetfileEditor
90
92
  if full_version == mod.full_version
91
93
  set_message("versions match (#{full_version})", :matched)
92
94
  return
95
+ elsif Gem::Version.new(full_version) > Gem::Version.new(mod.full_version)
96
+ set_message("DOWNGRADED (#{full_version} to #{mod.full_version})", :downgrade)
93
97
  else
94
98
  set_message("updated (#{full_version} to #{mod.full_version})", :updated)
95
99
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PuppetfileEditor
4
- VERSION = '0.6.1'
4
+ VERSION = '0.7.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetfile_editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Piven
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-11 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubyforge_project:
106
- rubygems_version: 2.6.13
106
+ rubygems_version: 2.7.3
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Parse and edit Puppetfile