ruby-ext 0.4.4 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +32 -32
- metadata +5 -6
- data/.gitignore +0 -5
data/Rakefile
CHANGED
@@ -1,64 +1,64 @@
|
|
1
1
|
require 'rake'
|
2
|
-
require '
|
2
|
+
require 'fileutils'
|
3
|
+
current_dir = File.expand_path(File.dirname(__FILE__))
|
4
|
+
Dir.chdir current_dir
|
3
5
|
|
4
|
-
Dir.chdir File.dirname(__FILE__)
|
5
6
|
|
7
|
+
#
|
6
8
|
# Specs
|
9
|
+
#
|
10
|
+
require 'spec/rake/spectask'
|
11
|
+
|
7
12
|
task :default => :spec
|
8
13
|
|
9
14
|
Spec::Rake::SpecTask.new('spec') do |t|
|
10
|
-
|
11
|
-
t.libs = [
|
15
|
+
t.spec_files = FileList["spec/**/*_spec.rb"].select{|f| f !~ /\/_/}
|
16
|
+
t.libs = ["#{current_dir}/lib"]
|
12
17
|
end
|
13
18
|
|
19
|
+
|
20
|
+
#
|
14
21
|
# Gem
|
22
|
+
#
|
15
23
|
require 'rake/clean'
|
16
24
|
require 'rake/gempackagetask'
|
17
|
-
|
25
|
+
|
26
|
+
gem_options = {
|
27
|
+
:name => "ruby-ext",
|
28
|
+
:version => "0.4.6",
|
29
|
+
:summary => "Ruby language extensions",
|
30
|
+
:dependencies => %w(facets)
|
31
|
+
}
|
18
32
|
|
19
33
|
spec = Gem::Specification.new do |s|
|
20
|
-
s.
|
21
|
-
s.
|
22
|
-
|
23
|
-
s.description = "Ruby language extensions"
|
34
|
+
gem_options.delete(:dependencies).each{|d| s.add_dependency d}
|
35
|
+
gem_options.each{|k, v| s.send "#{k}=", v}
|
36
|
+
|
24
37
|
s.author = "Alexey Petrushin"
|
25
|
-
|
26
|
-
s.
|
27
|
-
|
38
|
+
s.homepage = "http://github.com/alexeypetrushin/ruby_ext" # "#{gem_options[:name]}"
|
39
|
+
s.require_path = "lib"
|
40
|
+
s.files = (%w{Rakefile readme.md} + Dir.glob("{lib,spec}/**/*"))
|
28
41
|
|
29
42
|
s.platform = Gem::Platform::RUBY
|
30
|
-
s.has_rdoc = true
|
31
|
-
# s.extra_rdoc_files = ["README.rdoc"]
|
32
|
-
|
33
|
-
s.files = (%w{Rakefile readme.md .gitignore} + Dir.glob("{lib,spec}/**/*"))
|
34
|
-
# s.executables = ['restclient']
|
35
|
-
# s.add_dependency("BlueCloth", ">= 0.0.4")
|
36
|
-
s.add_dependency "facets"
|
37
|
-
|
38
|
-
s.require_path = "lib"
|
43
|
+
s.has_rdoc = true
|
39
44
|
end
|
40
45
|
|
41
|
-
|
42
|
-
|
46
|
+
package_dir = "#{current_dir}/build"
|
43
47
|
Rake::GemPackageTask.new(spec) do |p|
|
44
|
-
package_dir = PACKAGE_DIR
|
45
|
-
# FileUtils.mkdir package_dir unless File.exist? package_dir
|
46
48
|
p.need_tar = true if RUBY_PLATFORM !~ /mswin/
|
47
49
|
p.need_zip = true
|
48
50
|
p.package_dir = package_dir
|
49
51
|
end
|
50
52
|
|
51
|
-
# CLEAN.include [ 'pkg', '*.gem']
|
52
|
-
|
53
53
|
task :push do
|
54
|
-
dir = Dir.chdir
|
55
|
-
|
56
|
-
|
57
|
-
end
|
54
|
+
# dir = Dir.chdir package_dir do
|
55
|
+
gem_file = Dir.glob("#{package_dir}/#{gem_options[:name]}*.gem").first
|
56
|
+
system "gem push #{gem_file}"
|
57
|
+
# end
|
58
58
|
end
|
59
59
|
|
60
60
|
task :clean do
|
61
|
-
system "rm -r #{
|
61
|
+
system "rm -r #{package_dir}"
|
62
62
|
end
|
63
63
|
|
64
64
|
task :release => [:gem, :push, :clean]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 6
|
10
|
+
version: 0.4.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alexey Petrushin
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: "0"
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
|
-
description:
|
35
|
+
description:
|
36
36
|
email:
|
37
37
|
executables: []
|
38
38
|
|
@@ -43,7 +43,6 @@ extra_rdoc_files: []
|
|
43
43
|
files:
|
44
44
|
- Rakefile
|
45
45
|
- readme.md
|
46
|
-
- .gitignore
|
47
46
|
- lib/ruby_ext/array.rb
|
48
47
|
- lib/ruby_ext/basic_object.rb
|
49
48
|
- lib/ruby_ext/class.rb
|
@@ -91,7 +90,7 @@ files:
|
|
91
90
|
- spec/spec.opts
|
92
91
|
- spec/synchronize_spec.rb
|
93
92
|
has_rdoc: true
|
94
|
-
homepage: http://github.com/alexeypetrushin/
|
93
|
+
homepage: http://github.com/alexeypetrushin/ruby_ext
|
95
94
|
licenses: []
|
96
95
|
|
97
96
|
post_install_message:
|