gem-src 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/gem-src.gemspec +1 -1
- data/lib/rubygems_plugin.rb +3 -3
- metadata +3 -3
data/gem-src.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "gem-src"
|
7
|
-
gem.version = '0.3.
|
7
|
+
gem.version = '0.3.2'
|
8
8
|
gem.authors = ["Akira Matsuda"]
|
9
9
|
gem.email = ["ronnie@dio.jp"]
|
10
10
|
gem.description = 'Gem.post_install { `git clone gem_source src` }'
|
data/lib/rubygems_plugin.rb
CHANGED
@@ -2,11 +2,11 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem.post_install do |installer|
|
4
4
|
clone_dir = if ENV['GEMSRC_CLONE_ROOT']
|
5
|
-
File.expand_path ENV['GEMSRC_CLONE_ROOT']
|
5
|
+
File.expand_path installer.spec.name, ENV['GEMSRC_CLONE_ROOT']
|
6
6
|
elsif Gem.configuration[:gemsrc_clone_root]
|
7
|
-
File.expand_path Gem.configuration[:gemsrc_clone_root]
|
7
|
+
File.expand_path installer.spec.name, Gem.configuration[:gemsrc_clone_root]
|
8
8
|
else
|
9
|
-
gem_dir = installer.respond_to?(:gem_dir) ? installer.gem_dir : File.expand_path(installer.gem_home, 'gems', installer.spec.full_name)
|
9
|
+
gem_dir = installer.respond_to?(:gem_dir) ? installer.gem_dir : File.expand_path(File.join(installer.gem_home, 'gems', installer.spec.full_name))
|
10
10
|
File.join gem_dir, 'src'
|
11
11
|
end
|
12
12
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-src
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Akira Matsuda
|