threadify 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/threadify.rb +1 -1
- data/rakefile +7 -16
- data/threadify.gemspec +1 -1
- metadata +1 -1
data/lib/threadify.rb
CHANGED
data/rakefile
CHANGED
@@ -84,25 +84,16 @@ task :gemspec do
|
|
84
84
|
end
|
85
85
|
|
86
86
|
task :gem => [:clean, :gemspec] do
|
87
|
-
#gem = File.join(This.pkgdir, "#{ lib }.gemspec")
|
88
|
-
#open("#{ This.pkgdir }/#{ lib }.gemspec", "w"){|fd| fd.puts template}
|
89
|
-
#before = Dir['*.gem']
|
90
|
-
#cmd = "gem build #{ This.lib }.gemspec"
|
91
|
-
#`#{ cmd } 2>&1`
|
92
|
-
#after = Dir['*.gem']
|
93
|
-
#gems = [after - before]
|
94
|
-
#p gems
|
95
|
-
|
96
87
|
Fu.mkdir_p This.pkgdir
|
97
|
-
Dir
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
88
|
+
before = Dir['*.gem']
|
89
|
+
cmd = "gem build #{ This.gemspec }"
|
90
|
+
`#{ cmd }`
|
91
|
+
after = Dir['*.gem']
|
92
|
+
gem = ((after - before).first || after.first) or abort('no gem!')
|
93
|
+
Fu.mv gem, This.pkgdir
|
94
|
+
This.gem = File.basename(gem)
|
103
95
|
end
|
104
96
|
|
105
|
-
|
106
97
|
task :readme do
|
107
98
|
samples = ''
|
108
99
|
prompt = '~ > '
|
data/threadify.gemspec
CHANGED