threadify 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/threadify.rb +1 -1
  2. data/rakefile +7 -16
  3. data/threadify.gemspec +1 -1
  4. metadata +1 -1
@@ -1,5 +1,5 @@
1
1
  module Threadify
2
- Threadify::VERSION = '1.1.0' unless defined?(Threadify::VERSION)
2
+ Threadify::VERSION = '1.2.0' unless defined?(Threadify::VERSION)
3
3
  def Threadify.version() Threadify::VERSION end
4
4
 
5
5
  require 'thread'
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.chdir(This.pkgdir) do
98
- cmd = "gem build ../#{ This.gemspec }"
99
- `#{ cmd } 2>&1`
100
- gem = Dir['*.gem'].first or 'abort no gem!'
101
- This.gem = File.basename(gem)
102
- end
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 = '~ > '
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "threadify"
6
- spec.version = "1.1.0"
6
+ spec.version = "1.2.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "threadify"
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: threadify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard