sprout 0.7.163-x86-linux → 0.7.165-x86-linux

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sprout might be problematic. Click here for more details.

@@ -42,7 +42,13 @@ module Sprout
42
42
 
43
43
  # The full gem name like 'sprout-asunit3-library'
44
44
  def gem_name
45
- @gem_name ||= "sprout-#{name}-library"
45
+ @gem_name ||= "sprout-#{clean_name}-library"
46
+ end
47
+
48
+ # Ensure that namespaced rake tasks only use
49
+ # the final part for name-based features
50
+ def clean_name
51
+ return name.split(':').pop
46
52
  end
47
53
 
48
54
  # The path to the library source or swc that will be copied into your project.
@@ -78,7 +84,7 @@ module Sprout
78
84
  def project_path
79
85
  if(File.directory?(@library_path))
80
86
  # library is source dir
81
- File.join(project_lib, name)
87
+ File.join(project_lib, clean_name)
82
88
  else
83
89
  # library is a binary (like swc, jar, etc)
84
90
  File.join(project_lib, File.basename(@file_target.archive_path))
@@ -2,7 +2,7 @@ module Sprout
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 7
5
- TINY = 163
5
+ TINY = 165
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  MAJOR_MINOR = [MAJOR, MINOR].join('.')
data/lib/sprout.rb CHANGED
@@ -3,6 +3,16 @@ require 'archive/tar/minitar'
3
3
  require 'rake'
4
4
  require 'rake/clean'
5
5
 
6
+ # This is a fix for Issue #106
7
+ # http://code.google.com/p/projectsprouts/issues/detail?id=106
8
+ # Which is created because the new version (1.0.1) of RubyGems
9
+ # includes open-uri, while older versions do not.
10
+ # When open-uri is included twice, we get a bunch of nasty
11
+ # warnings because constants are being overwritten.
12
+ if(Gem::Version.new(Gem::RubyGemsVersion) < Gem::Version.new('1.0.1'))
13
+ require 'open-uri'
14
+ end
15
+
6
16
  $:.push(File.dirname(__FILE__))
7
17
  require 'progress_bar'
8
18
  require 'sprout/log'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.163
4
+ version: 0.7.165
5
5
  platform: x86-linux
6
6
  authors:
7
7
  - Luke Bayes
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-20 00:00:00 -08:00
12
+ date: 2008-02-22 00:00:00 -08:00
13
13
  default_executable: sprout
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -70,7 +70,6 @@ files:
70
70
  - doc
71
71
  - lib
72
72
  - MIT-LICENSE
73
- - pkg
74
73
  - rakefile.rb
75
74
  - samples
76
75
  - script