rake-compiler 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +6 -0
- data/lib/rake/extensiontask.rb +1 -1
- data/spec/lib/rake/extensiontask_spec.rb +2 -2
- data/tasks/gem.rake +4 -9
- metadata +17 -6
- data/tasks/news.rake +0 -39
- data/tasks/release.rake +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66a05703cce796eea6b36e8666adaa6d983b090954babf81a9ad9207e2c30491
|
4
|
+
data.tar.gz: e2a76f29210adc2fd8d2edeaeef3219856c868e1841793e800e80b8e7c77de5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18c48fa7c58ec123a34e570df747cd94397e2941d595f0e081c2b66a0868fd05abc409ad4287b7fea8a34e0767397ec5af12c61a0b9aec4bc9861900988bf32b
|
7
|
+
data.tar.gz: 2e0cbef56d9f8e22ebfd29b0bc56f7f398ba60f1985f1d98bff5ecd026d9bc1c71293ea333c4c195915fff988d0ed123f287754e037fad4ae55de7a01d063229
|
data/History.txt
CHANGED
data/lib/rake/extensiontask.rb
CHANGED
@@ -260,7 +260,7 @@ Java extension should be preferred.
|
|
260
260
|
end
|
261
261
|
spec.required_ruby_version = [
|
262
262
|
">= #{ruby_api_version(sorted_ruby_versions.first)}",
|
263
|
-
"< #{ruby_api_version(sorted_ruby_versions.last).succ}"
|
263
|
+
"< #{ruby_api_version(sorted_ruby_versions.last).succ}.dev"
|
264
264
|
]
|
265
265
|
|
266
266
|
# clear the extensions defined in the specs
|
@@ -490,8 +490,8 @@ describe Rake::ExtensionTask do
|
|
490
490
|
end
|
491
491
|
|
492
492
|
expected_required_ruby_versions = [
|
493
|
-
Gem::Requirement.new([">= 1.8", "< 2.11"]),
|
494
|
-
Gem::Requirement.new([">= 1.8", "< 2.11"]),
|
493
|
+
Gem::Requirement.new([">= 1.8", "< 2.11.dev"]),
|
494
|
+
Gem::Requirement.new([">= 1.8", "< 2.11.dev"]),
|
495
495
|
]
|
496
496
|
cross_specs.collect(&:required_ruby_version).should == expected_required_ruby_versions
|
497
497
|
cross_specs.collect(&:extensions).should == [[], []]
|
data/tasks/gem.rake
CHANGED
@@ -1,10 +1,5 @@
|
|
1
|
-
require
|
1
|
+
require "bundler/gem_helper"
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
gem_package = Gem::PackageTask.new(GEM_SPEC) do |pkg|
|
8
|
-
pkg.need_tar = false
|
9
|
-
pkg.need_zip = false
|
10
|
-
end
|
3
|
+
base_dir = File.join(__dir__, "..")
|
4
|
+
helper = Bundler::GemHelper.new(base_dir)
|
5
|
+
helper.install
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-compiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-12-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -25,6 +25,20 @@ dependencies:
|
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bundler
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: rspec
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,8 +121,6 @@ files:
|
|
107
121
|
- tasks/common.rake
|
108
122
|
- tasks/cucumber.rake
|
109
123
|
- tasks/gem.rake
|
110
|
-
- tasks/news.rake
|
111
|
-
- tasks/release.rake
|
112
124
|
- tasks/rspec.rake
|
113
125
|
homepage: https://github.com/rake-compiler/rake-compiler
|
114
126
|
licenses:
|
@@ -133,8 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
145
|
- !ruby/object:Gem::Version
|
134
146
|
version: 1.8.23
|
135
147
|
requirements: []
|
136
|
-
|
137
|
-
rubygems_version: 3.0.0.beta1
|
148
|
+
rubygems_version: 3.0.1
|
138
149
|
signing_key:
|
139
150
|
specification_version: 4
|
140
151
|
summary: Rake-based Ruby Extension (C, Java) task generator.
|
data/tasks/news.rake
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
desc 'Generate email template to standard output'
|
2
|
-
task :announce do
|
3
|
-
fail "no GEM_SPEC is found or defined. 'announce' task cannot work without it." unless defined?(GEM_SPEC)
|
4
|
-
|
5
|
-
# read project info and overview
|
6
|
-
notes = begin
|
7
|
-
r = File.read("README.rdoc")
|
8
|
-
r.split(/^(=+ .*)/)[1..4].join.strip
|
9
|
-
rescue
|
10
|
-
warn "Missing README.rdoc"
|
11
|
-
''
|
12
|
-
end
|
13
|
-
|
14
|
-
# read changes
|
15
|
-
changes = begin
|
16
|
-
h = File.read("History.txt")
|
17
|
-
h.split(/^(===+ .*)/)[1..2].join.strip
|
18
|
-
rescue
|
19
|
-
warn "Missing History.txt"
|
20
|
-
''
|
21
|
-
end
|
22
|
-
|
23
|
-
# standard fields
|
24
|
-
subject = "#{GEM_SPEC.name} #{GEM_SPEC.version} Released"
|
25
|
-
title = "#{GEM_SPEC.name} version #{GEM_SPEC.version} has been released!"
|
26
|
-
body = "#{notes}\n\nChanges:\n\n#{changes}"
|
27
|
-
urls = [GEM_SPEC.homepage].map { |u| "* <#{u.strip}>" }.join("\n")
|
28
|
-
|
29
|
-
puts "=" * 80, ""
|
30
|
-
puts "Subject: [ANN] #{subject}"
|
31
|
-
puts
|
32
|
-
puts title
|
33
|
-
puts
|
34
|
-
puts urls
|
35
|
-
puts
|
36
|
-
puts body
|
37
|
-
puts
|
38
|
-
puts "=" * 80, ""
|
39
|
-
end
|
data/tasks/release.rake
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
desc 'Package gems and upload to RubyGems'
|
2
|
-
task :release, [:version] => [:package] do |t, args|
|
3
|
-
args.with_defaults(:version => "")
|
4
|
-
ver = args.version
|
5
|
-
|
6
|
-
fail "no GEM_SPEC is found or defined. 'release' task cannot work without it." unless defined?(GEM_SPEC)
|
7
|
-
|
8
|
-
# compare versions to avoid mistakes
|
9
|
-
unless ver == GEM_SPEC.version.to_s then
|
10
|
-
fail "Version mismatch (supplied and specification versions differ)."
|
11
|
-
end
|
12
|
-
|
13
|
-
files = FileList["pkg/#{GEM_SPEC.name}-#{GEM_SPEC.version}*.*"].to_a
|
14
|
-
fail "No files found for the release." if files.empty?
|
15
|
-
|
16
|
-
puts "Files to release:"
|
17
|
-
files.each do |f|
|
18
|
-
puts " * #{f}"
|
19
|
-
end
|
20
|
-
|
21
|
-
puts "Releasing #{GEM_SPEC.name} version #{GEM_SPEC.version}..."
|
22
|
-
files.each do |f|
|
23
|
-
system "gem push #{f}"
|
24
|
-
end
|
25
|
-
puts "Done."
|
26
|
-
end
|