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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8fe057e89823489d827d290efff9707daf45aa2
4
- data.tar.gz: 66fa9314e448b3760ec84554d65421307eaa80b1
3
+ metadata.gz: 04a834a85d95a512da06c96812bd935d9f33bfde
4
+ data.tar.gz: 78716d0609753c8963af6307824b8883d2c56a8c
5
5
  SHA512:
6
- metadata.gz: d209dd9021612a7c8cc8ccd0565ff631c5edd7a48d98e0b6dcba670eafa48b68087207eaa867cf871e2b90fc1c0858ddfa675ec3230a9feb38eab2358d970a4c
7
- data.tar.gz: 594f80f10ace333185ad58394b3b7e52d41224b2d9796737293be33cc7c30281b570f32917c4d2cfcdb7b21dc0c3b694a044066f8edc6e43d88fd050f847175e
6
+ metadata.gz: ca8e7c5f4f1a30369c63a3d01ffd1adb216052c4a36c1329c774e3f8f3d71834e629e913bcd4d02c0edb501a34bf1021d4a3ca7f8b960a92bc67753eee8f9a2e
7
+ data.tar.gz: 27751699db12edacce467b620703e782a6477af66a0eeab89ab61e6090cca4fea155e2bc0b3cf25b3a5546b57eb1984765c13e0b82857d1587737f202125858f
@@ -1,3 +1 @@
1
- sH'_���ߔ����9� �� <~��{�r� �f��A_?РNJe������yK��K����g���rC[�#!5����:cur��B��dQnx9=r���
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��bWdN %K8T��l)*�\��ag4y)� Bƹ��� x]����/+�!U!� �*6���M[&m��k쿥���jghyI��=�?�$�����N�����2��E�BYJOA/S��L >T'<u����*,"<ܽt��H�kƹ/�ntZ(������
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- 5�$�l�����ԝ玏�;�U%aM���HC��x
2
- ���H��C�_\����� ���eXIX,�|g&x\�x�0w�ik,�����$�ܻ��+��wl`:��)Kk9.��!$yV��m����C/�M��)8J�7t�������Sb�=((
1
+ ڇ`BXs�⛐���53q
@@ -1,3 +1,8 @@
1
+ == v0.4.0 [2014-01-07] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Finish up the gemset-update tasks
4
+
5
+
1
6
  == v0.3.0 [2013-08-15] Michael Granger <ged@FaerieMUD.org>
2
7
 
3
8
  - Add RVM gemset-updating task.
@@ -31,7 +31,7 @@ to install any missing dependencies.
31
31
 
32
32
  == License
33
33
 
34
- Copyright (c) 2011-2012, Michael Granger
34
+ Copyright (c) 2011-2014, Michael Granger
35
35
  All rights reserved.
36
36
 
37
37
  Redistribution and use in source and binary forms, with or without
@@ -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.3.0'
19
+ VERSION = '0.4.0'
19
20
 
20
21
  # Version-control revision constant
21
- REVISION = %q$Revision: 674e3312ed6a $
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
- RVM_GEMSET.open( File::WRONLY|File::TRUNC, 0644 ) do |fh|
230
- deps.sort_by {|dep, _| dep.name }.each do |dep, newer|
231
- if newer
232
- fh.puts( dep.name + ' -v' + newer.to_s )
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
- mspec = dep.matching_specs.last
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.3.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: 2013-08-16 00:00:00.000000000 Z
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.0.5
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