gem-this 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/lib/gem_this.rb +10 -2
- metadata +2 -2
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ spec = Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
# Change these as appropriate
|
22
22
|
s.name = "gem-this"
|
23
|
-
s.version = "0.3.
|
23
|
+
s.version = "0.3.1"
|
24
24
|
s.summary = "Make existing code into a gem, without any fuss."
|
25
25
|
s.author = "James Adam"
|
26
26
|
s.email = "james@lazyatom.com"
|
@@ -116,4 +116,4 @@ begin
|
|
116
116
|
end
|
117
117
|
rescue LoadError
|
118
118
|
puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
|
119
|
-
end
|
119
|
+
end
|
data/lib/gem_this.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
1
2
|
require 'erb'
|
2
3
|
require 'etc'
|
3
4
|
|
@@ -31,7 +32,7 @@ class GemThis
|
|
31
32
|
add_to_gitignore if using_git?
|
32
33
|
end
|
33
34
|
unless has_lib_directory?
|
34
|
-
log "You don't
|
35
|
+
log "You don't seem to have a lib directory - please edit the Rakefile to set where your code is."
|
35
36
|
false
|
36
37
|
end
|
37
38
|
end
|
@@ -47,7 +48,14 @@ class GemThis
|
|
47
48
|
end
|
48
49
|
|
49
50
|
def author_email
|
50
|
-
|
51
|
+
email = ''
|
52
|
+
|
53
|
+
# even if using git, author may not have specified email address
|
54
|
+
if using_git?
|
55
|
+
email = %x{git config --get user.email}.strip
|
56
|
+
end
|
57
|
+
|
58
|
+
email == '' ? "youremail@example.com" : email
|
51
59
|
end
|
52
60
|
|
53
61
|
def author_url
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-this
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Adam
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-30 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|