puppetfile-updater 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODlmMWM3ZTYxYWIwMjRkZDJhMGIxYzNjMzM0M2U3ODNmNjgxNDdiMQ==
4
+ MmE3YTJjZjE0ZGM1ODRhMmZjMjViZTEyNTIwMWVmY2UyYjc0MWIyYQ==
5
5
  data.tar.gz: !binary |-
6
- NzcwZmJjOGM1YjM0YTgzODU3MjI0NzcxODA5ZjQ2ZmI1ZDMxZGU2NQ==
6
+ YTU0NTJhY2VjNzA0MWQxYzg3ZWM5MzU2NzhhNjQxYmIyYjE5ZGUxNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGU1ZGRkN2Y3NWJmYzIyMzQ3YWFmZDY3MWZmYTA2MDlhYTBlOGY2YTM4YzAy
10
- YjM2NTZlZmMzODIzNjI1NmI0ZTIxNmU1YmU3MDA1YjU0OThhNTM0OTM2NGI4
11
- NjcyYzk5ZjZjMDhmMDBmODM0NWMwMGQ1OGE5NDBiNWRlY2M5ZTk=
9
+ ZDM5YTdkZWNhMDAxOTFiMmIyODI5YThiMDAyMDc2ZjI0MzNkZTQxNzZmZTkx
10
+ OGRjY2E2ODQ0NmRjZGU0NDBjOWYwZmU4ODVmNmFmZGY1OTE1NGMzZDI3Njg2
11
+ Yzg4Mjg4MTc3OWU4Mzg2MzNlOTUyODg5NGFiMTYwZTZmY2ZkNzI=
12
12
  data.tar.gz: !binary |-
13
- ZjFhYjhhYzZjNTA4YzQ0YWMzNzViZmJjMjdhZmYyMmM4MDY3YmQ2OTkzZjVk
14
- ZGQ3MTMyZThiNTljMzNjMGMzZmM2NmY5NmVhOGU5NTM2MDM3ZWUzN2ZjOGIz
15
- Y2NkZmY3OWM0MWY0NWMxOGZkOTAyMGVmZWY4ZTliNDZmNWFlOGE=
13
+ ZDJmZjBkYTJjZDRjZWZkMjJhNzBmMDNjNTZhNTg2NWYyZTdjYWM1MDQ2Zjk2
14
+ MWFlMjdhMjE0ZWNlZDNlNDMyZGExODVhNDcwOWJmOTMzMzhiMGYwNGIxMDNk
15
+ ZTJjYWEwZjMxZGIyYjIzMzM5ZGVhNmM4NzI4ZmM3Zjg1ZWU0OGQ=
@@ -62,10 +62,10 @@ class PuppetfileUpdater
62
62
  aug.load!
63
63
 
64
64
  error_path = '/augeas/files/Puppetfile/error'
65
- unless aug.match('/augeas/files/Puppetfile/error').size == 0
65
+ unless aug.match(error_path).size == 0
66
66
  msg = "Failed to parse Puppetfile at line #{aug.get(error_path+'/line')}, "
67
67
  msg << "character #{aug.get(error_path+'/char')}: "
68
- msg << aug.get('/augeas/files/Puppetfile/error/message')
68
+ msg << aug.get(error_path+'/message')
69
69
  abort msg
70
70
  end
71
71
 
@@ -98,6 +98,8 @@ class PuppetfileUpdater
98
98
  release = forge_m.releases.select { |r| r.deleted_at.nil? }[0]
99
99
  new_v = release.version
100
100
  puts "D: New version for #{m} is #{new_v}" if @debug
101
+
102
+ warn "W: #{m} looks abandoned (version = #{new_v})" if new_v =~ /^99/
101
103
  if new_v.split('.')[0] != v.split('.')[0]
102
104
  if @major
103
105
  warn "W: #{m} has incompatible changes between #{v} and #{new_v}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetfile-updater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camptocamp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-22 00:00:00.000000000 Z
11
+ date: 2016-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake