hen 0.8.2 → 0.8.3

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
  SHA1:
3
- metadata.gz: 46e9643145094306c1cf93c72dcdaf7f7c897310
4
- data.tar.gz: 017b5fecca7ee2b7682d28107ed194a59d201682
3
+ metadata.gz: 41a427c2b22fa5a23c11701dc8ab087e3ce8a1f7
4
+ data.tar.gz: 3ba1cb73a3c4aad45c448408ffbbbdab799b5e63
5
5
  SHA512:
6
- metadata.gz: 6968fb11d427a021e501848c240d605a6bc88fa11be8ad19abed9a3194e064d9ece71ffd29a7d473a4b31025a141b7bd54ede795e702735805cd4badf967fee3
7
- data.tar.gz: 29afd04d72f51d635b831078203d1ccc5413ed3d4db12fad3e65003d82fb9fba9bb96726035feed06dd35f9b4998fdca294509c70a1c2fe592bc886f0b9864f6
6
+ metadata.gz: 2427fd95d03def026b1b252a930ed62e362eeae785021743d02093923b7a74304fe6d09e544dcf3ae1759c735c00d4eb9de1c8c3d8567b17ccafc4aff5cf12ea
7
+ data.tar.gz: 217094ac3076e6f693eaa886a17d68b15dbafb5990e642d1f77071a0bc5d016e56db1386710c4479b3a7d4b016849cd85aad0c1098c08e80618ec208b6e9a9ba
data/ChangeLog CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  = Revision history for hen
4
4
 
5
+ == 0.8.3 [2015-08-14]
6
+
7
+ * Handle multivalued requirements in <tt>gem:dependencies:current</tt>.
8
+ * Warn about prerelease dependencies.
9
+
5
10
  == 0.8.2 [2015-07-28]
6
11
 
7
12
  * New task <tt>gem:dependencies:current</tt>.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to hen version 0.8.2
5
+ This documentation refers to hen version 0.8.3
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -72,7 +72,7 @@ RubyGem:: https://rubygems.org/gems/hen
72
72
  Copyright (C) 2007-2012 University of Cologne,
73
73
  Albertus-Magnus-Platz, 50923 Cologne, Germany
74
74
 
75
- Copyright (C) 2013-2014 Jens Wille
75
+ Copyright (C) 2013-2015 Jens Wille
76
76
 
77
77
  hen is free software: you can redistribute it and/or modify it under the
78
78
  terms of the GNU Affero General Public License as published by the Free
@@ -4,7 +4,7 @@ class Hen
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 8
7
- TINY = 2
7
+ TINY = 3
8
8
 
9
9
  class << self
10
10
 
@@ -165,6 +165,10 @@ Hen gem: :rdoc do
165
165
  spec.add_development_dependency(name, *requirements)
166
166
  }
167
167
 
168
+ spec.dependencies.each { |dependency|
169
+ warn "WARNING: Prerelease dependency: #{dependency}" if dependency.prerelease?
170
+ }
171
+
168
172
  ### => set options!
169
173
 
170
174
  set_options(spec, gem_options, 'Gem')
@@ -202,15 +206,17 @@ Hen gem: :rdoc do
202
206
  desc "List gem dependencies' current versions"
203
207
  task 'gem:dependencies:current' do
204
208
  gem_spec.dependencies.each { |dependency|
205
- print '%s (%s, %s): ' % [
206
- dependency.name, dependency.type, req = dependency.requirement
209
+ req = dependency.requirement.as_list.map(&:to_s)
210
+
211
+ print '%s (%s: %s): ' % [
212
+ dependency.name, dependency.type, req.join(', ')
207
213
  ]
208
214
 
209
215
  begin
210
216
  ver = dependency.to_spec.version
211
217
  rec = ver.approximate_recommendation
212
218
 
213
- puts "#{ver}#{" (#{rec})" if req.to_s != rec}"
219
+ puts "#{ver}#{" (#{rec})" unless req.include?(rec)}"
214
220
  rescue Exception => err
215
221
  puts "#{err.class} (#{err})"
216
222
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-28 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
@@ -106,15 +106,14 @@ licenses:
106
106
  metadata: {}
107
107
  post_install_message: |2+
108
108
 
109
- hen-0.8.2 [2015-07-28]:
109
+ hen-0.8.3 [2015-08-14]:
110
110
 
111
- * New task <tt>gem:dependencies:current</tt>.
112
- * Added Travis CI link to skeleton +README+.
113
- * Added Ruby 2.2 to skeleton +.travis.yml+.
111
+ * Handle multivalued requirements in <tt>gem:dependencies:current</tt>.
112
+ * Warn about prerelease dependencies.
114
113
 
115
114
  rdoc_options:
116
115
  - "--title"
117
- - hen Application documentation (v0.8.2)
116
+ - hen Application documentation (v0.8.3)
118
117
  - "--charset"
119
118
  - UTF-8
120
119
  - "--line-numbers"