hoe-deveiate 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -3
- data.tar.gz.sig +1 -2
- data/History.rdoc +5 -0
- data/README.rdoc +1 -1
- data/lib/hoe/deveiate.rb +26 -8
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04a834a85d95a512da06c96812bd935d9f33bfde
|
4
|
+
data.tar.gz: 78716d0609753c8963af6307824b8883d2c56a8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca8e7c5f4f1a30369c63a3d01ffd1adb216052c4a36c1329c774e3f8f3d71834e629e913bcd4d02c0edb501a34bf1021d4a3ca7f8b960a92bc67753eee8f9a2e
|
7
|
+
data.tar.gz: 27751699db12edacce467b620703e782a6477af66a0eeab89ab61e6090cca4fea155e2bc0b3cf25b3a5546b57eb1984765c13e0b82857d1587737f202125858f
|
checksums.yaml.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
(F��7?'!����NdzG��\� 6��Mp�Ee�}�ݘl��]��X���֞����i�짱�Ո�����l|EV��r9��L&��\Q���T���lhN�̃Q�go�Cӛ�7�T�����A�S�?��W
|
1
|
+
�Dк�,�����Dȹ��֞����%�Ek��e �<���U��.�4����4�ޒ��QJ��o~�g����h�9�"�18��ll��l��b�WdN%K�8T��l)*�\��ag4y�)� Bƹ��� x]����/+�!U!� �*6���M[&m��k쿥���jg�h�yI��=�?�$�����N�����2��E�BYJOA/S��L >T'<u����*,"<ܽt��H�kƹ/�nt�Z(������
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
���H��C�_\��������eXIX,�|g&x\�x�0w�ik,�����$�ܻ��+��wl`:��)Kk9.��!$yV��m����C/�M��)8J�7t�������Sb�=((
|
1
|
+
ڇ`BXs�⛐���53�q
|
data/History.rdoc
CHANGED
data/README.rdoc
CHANGED
data/lib/hoe/deveiate.rb
CHANGED
@@ -6,6 +6,7 @@ require 'mail'
|
|
6
6
|
require 'net/smtp'
|
7
7
|
require 'openssl'
|
8
8
|
require 'pathname'
|
9
|
+
require 'tempfile'
|
9
10
|
|
10
11
|
Hoe.plugin( :highline, :mercurial )
|
11
12
|
|
@@ -15,10 +16,10 @@ Hoe.plugin( :highline, :mercurial )
|
|
15
16
|
module Hoe::Deveiate
|
16
17
|
|
17
18
|
# Library version constant
|
18
|
-
VERSION = '0.
|
19
|
+
VERSION = '0.4.0'
|
19
20
|
|
20
21
|
# Version-control revision constant
|
21
|
-
REVISION = %q$Revision:
|
22
|
+
REVISION = %q$Revision: c9dbc99b5d1f $
|
22
23
|
|
23
24
|
# Regexp to match trailing whitespace
|
24
25
|
TRAILING_WHITESPACE_RE = /[ \t]+$/
|
@@ -226,16 +227,31 @@ module Hoe::Deveiate
|
|
226
227
|
|
227
228
|
### Update the contents of .rvm.gems to include the latest gems.
|
228
229
|
def update_rvm_gemset( deps )
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
230
|
+
tmp = Tempfile.new( 'gemset' )
|
231
|
+
deps.keys.each {|dep| deps[dep.name] = deps.delete(dep) }
|
232
|
+
|
233
|
+
RVM_GEMSET.each_line do |line|
|
234
|
+
if line =~ /^\s*(#|$)/
|
235
|
+
tmp.print( line )
|
236
|
+
else
|
237
|
+
gem, version = line.split( /\s+/, 2 )
|
238
|
+
|
239
|
+
if (( newer = deps.delete(gem) ))
|
240
|
+
tmp.puts( gem + ' -v' + newer.to_s )
|
233
241
|
else
|
234
|
-
|
235
|
-
fh.puts( dep.name + ' -v' + mspec.version.to_s )
|
242
|
+
tmp.print( line )
|
236
243
|
end
|
237
244
|
end
|
238
245
|
end
|
246
|
+
|
247
|
+
deps.each do |gem, newer|
|
248
|
+
next unless newer
|
249
|
+
tmp.puts( gem + ' -v' + newer.to_s )
|
250
|
+
end
|
251
|
+
|
252
|
+
tmp.close
|
253
|
+
|
254
|
+
FileUtils.cp( tmp.path, RVM_GEMSET, :verbose => true )
|
239
255
|
end
|
240
256
|
|
241
257
|
|
@@ -258,11 +274,13 @@ module Hoe::Deveiate
|
|
258
274
|
|
259
275
|
gemspec.dependencies.each do |dep|
|
260
276
|
newer_dep = nil
|
277
|
+
|
261
278
|
if (( mspec = dep.matching_specs.last ))
|
262
279
|
newer_dep = Gem::Dependency.new( dep.name, dep.requirement, "> #{mspec.version}" )
|
263
280
|
else
|
264
281
|
newer_dep = Gem::Dependency.new( dep.name, dep.requirement )
|
265
282
|
end
|
283
|
+
|
266
284
|
remotes, _ = fetcher.search_for_dependency( newer_dep )
|
267
285
|
remotes.map! {|gem, _| gem.version }
|
268
286
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe-deveiate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
6mKCwjpegytE0oifXfF8k75A9105cBnNiMZOe1tXiqYc/exCgWvbggurzDOcRkZu
|
31
31
|
/YSusaiDXHKU2O3Akc3htA==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2014-01-08 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: hoe
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project: hoe-deveiate
|
160
|
-
rubygems_version: 2.
|
160
|
+
rubygems_version: 2.2.1
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: A collection of Rake tasks and utility functions I use to maintain my Open
|
metadata.gz.sig
CHANGED
Binary file
|