puppetfile_editor 0.10.0 → 1.0.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
2
  SHA256:
3
- metadata.gz: f431857e3460fbf90c39ada56a127a65fbdc4ef9db39a5ccad75627eab12d28f
4
- data.tar.gz: 2d486f9aa6336b5490d975829f93bf3719db3ce2effb0cd62b41640551489748
3
+ metadata.gz: 1aa03506290047e4f702b9511a949ecf5e9fecb97b09a3637fee1176049530fb
4
+ data.tar.gz: 1542a0a8a403612ccaceaecd6ab39080be93544fa310cc6611cb87f520c97714
5
5
  SHA512:
6
- metadata.gz: 684fa54d9a927693bd9c403784d674afaab7e4957c236194276d62b47322735ae1901f4b5d45d379c640d28b30ac63ae415c643af8241b8c5cd8f2c784311c63
7
- data.tar.gz: cf39e13a56f3318a953026ffaaba32f80763e5892f906c84f5c5223dbaf0cd83f21d2e455df6706f9159d27840ac3bb13545ebe50a14b67dd50333f4fe50a6a9
6
+ metadata.gz: 6849ca1462a835339be88650ea522eb188c5a3575e928a30074a8cdd0c03d3ab5555e9dc8d508adc1ec2a3f165f51b08013c1f7d49c51fda4792e108b6c31099
7
+ data.tar.gz: 43d366d447bb52e136dfa0c79dea57902ad72ce70d1670df977546ea3f357e0ce4db51b502f9e160b8390df47d601af8c3b04cb7a28176b5e523c700174f9107
data/CHANGELOG.md CHANGED
@@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.0] - 2019-10-16
10
+ ### Changed
11
+ - [GH-3](https://github.com/pegasd/puppetfile_editor/issues/3): Write local modules in non-legacy format: `, local: true`.
12
+
13
+ ## [0.10.0] - 2019-08-10
14
+ ### Added
15
+ - [GH-3](https://github.com/pegasd/puppetfile_editor/issues/3): Able to understand local modules in various formats. Both `, :local` and
16
+ `, local: true` work.
17
+
9
18
  ## [0.10.0] - 2019-08-10
10
19
  ### Added
11
20
  - Able to understand local modules in various formats. Both `, :local` and `, local: true` work.
@@ -16,7 +25,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
16
25
 
17
26
  ## [0.8.0] - 2018-07-12
18
27
  ### Changed
19
- - [#1](https://github.com/pegasd/puppetfile_editor/issues/1): Do not downgrade modules while merging, whenever possible (see issue for more details).
28
+ - [GH-1](https://github.com/pegasd/puppetfile_editor/issues/1): Do not downgrade modules while merging, whenever possible (see issue for
29
+ more details).
20
30
  - Changed status message and color for modules not found in original Puppetfile (old one generated too much noise).
21
31
 
22
32
 
@@ -117,7 +117,7 @@ module PuppetfileEditor
117
117
  end
118
118
  end
119
119
 
120
- def dump
120
+ def dump(legacy_local = false)
121
121
  output = []
122
122
  case @type
123
123
  when :hg, :git
@@ -132,7 +132,11 @@ module PuppetfileEditor
132
132
  output.push " #{param} #{value}"
133
133
  end
134
134
  when :local
135
- output.push("mod '#{full_title}', :local")
135
+ if legacy_local
136
+ output.push("mod '#{full_title}', :local")
137
+ else
138
+ output.push("mod '#{full_title}', local: true")
139
+ end
136
140
  else
137
141
  if @params.nil?
138
142
  output.push("mod '#{full_title}'")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PuppetfileEditor
4
- VERSION = '0.10.0'
4
+ VERSION = '1.0.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.10.0
4
+ version: 1.0.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: 2019-08-10 00:00:00.000000000 Z
11
+ date: 2019-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler