ffi 0.3.5-java → 0.4.0-java
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ffi might be problematic. Click here for more details.
- data/Rakefile +2 -2
- data/tasks/setup.rb +1 -1
- data/tasks/zentest.rake +36 -0
- metadata +10 -17
- data/tasks/git.rake +0 -40
data/Rakefile
CHANGED
@@ -11,13 +11,13 @@ PROJ.name = 'ffi'
|
|
11
11
|
PROJ.authors = "JRuby Project"
|
12
12
|
PROJ.email = "dev@ruby-ffi.kenai.com"
|
13
13
|
PROJ.url = "http://kenai.com/projects/ruby-ffi"
|
14
|
-
PROJ.version = "0.
|
14
|
+
PROJ.version = "0.4.0"
|
15
15
|
PROJ.rubyforge.name = 'ffi'
|
16
16
|
PROJ.svn.path = 'ffi'
|
17
17
|
PROJ.summary = "A Ruby foreign function interface"
|
18
18
|
PROJ.exclude << [ "\\.hg", "^nbproject/" ]
|
19
19
|
PROJ.notes.exclude = %w(^README\.txt$ History\.txt ^data/ ^nbproject/)
|
20
|
-
PROJ.gem.files = %w(README.txt History.txt LICENSE Rakefile) + Dir.glob("lib/**/*")
|
20
|
+
PROJ.gem.files = %w(README.txt History.txt LICENSE Rakefile) + Dir.glob("lib/**/*") + Dir.glob("tasks/*")
|
21
21
|
PROJ.gem.extras['platform']=['java']
|
22
22
|
PROJ.gem.extras['has_rdoc']=false
|
23
23
|
PROJ.gem.need_tar = false
|
data/tasks/setup.rb
CHANGED
@@ -147,7 +147,7 @@ RCOV = "#{RUBY} -S rcov"
|
|
147
147
|
RDOC = "#{RUBY} -S rdoc"
|
148
148
|
GEM = "#{RUBY} -S gem"
|
149
149
|
|
150
|
-
%w(rcov spec/rake/spectask rubyforge bones facets/ansicode).each do |lib|
|
150
|
+
%w(rcov spec/rake/spectask rubyforge bones facets/ansicode zentest).each do |lib|
|
151
151
|
begin
|
152
152
|
require lib
|
153
153
|
Object.instance_eval {const_set "HAVE_#{lib.tr('/','_').upcase}", true}
|
data/tasks/zentest.rake
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
if HAVE_ZENTEST
|
2
|
+
|
3
|
+
# --------------------------------------------------------------------------
|
4
|
+
if test(?e, PROJ.test.file) or not PROJ.test.files.to_a.empty?
|
5
|
+
require 'autotest'
|
6
|
+
|
7
|
+
namespace :test do
|
8
|
+
task :autotest do
|
9
|
+
Autotest.run
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
desc "Run the autotest loop"
|
14
|
+
task :autotest => 'test:autotest'
|
15
|
+
|
16
|
+
end # if test
|
17
|
+
|
18
|
+
# --------------------------------------------------------------------------
|
19
|
+
if HAVE_SPEC_RAKE_SPECTASK and not PROJ.spec.files.to_a.empty?
|
20
|
+
require 'autotest/rspec'
|
21
|
+
|
22
|
+
namespace :spec do
|
23
|
+
task :autotest do
|
24
|
+
load '.autotest' if test(?f, '.autotest')
|
25
|
+
Autotest::Rspec.run
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
desc "Run the autotest loop"
|
30
|
+
task :autotest => 'spec:autotest'
|
31
|
+
|
32
|
+
end # if rspec
|
33
|
+
|
34
|
+
end # if HAVE_ZENTEST
|
35
|
+
|
36
|
+
# EOF
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- JRuby Project
|
@@ -9,19 +9,10 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05
|
12
|
+
date: 2009-08-05 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
16
|
-
name: bones
|
17
|
-
type: :development
|
18
|
-
version_requirement:
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 2.4.2
|
24
|
-
version:
|
14
|
+
dependencies: []
|
15
|
+
|
25
16
|
description: ""
|
26
17
|
email: dev@ruby-ffi.kenai.com
|
27
18
|
executables: []
|
@@ -40,7 +31,6 @@ files:
|
|
40
31
|
- tasks/ann.rake
|
41
32
|
- tasks/bones.rake
|
42
33
|
- tasks/gem.rake
|
43
|
-
- tasks/git.rake
|
44
34
|
- tasks/notes.rake
|
45
35
|
- tasks/post_load.rake
|
46
36
|
- tasks/rdoc.rake
|
@@ -49,8 +39,11 @@ files:
|
|
49
39
|
- tasks/spec.rake
|
50
40
|
- tasks/svn.rake
|
51
41
|
- tasks/test.rake
|
52
|
-
|
42
|
+
- tasks/zentest.rake
|
43
|
+
has_rdoc: true
|
53
44
|
homepage: http://kenai.com/projects/ruby-ffi
|
45
|
+
licenses: []
|
46
|
+
|
54
47
|
post_install_message:
|
55
48
|
rdoc_options:
|
56
49
|
- --main
|
@@ -72,9 +65,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
65
|
requirements: []
|
73
66
|
|
74
67
|
rubyforge_project: ffi
|
75
|
-
rubygems_version: 1.3.
|
68
|
+
rubygems_version: 1.3.4
|
76
69
|
signing_key:
|
77
|
-
specification_version:
|
70
|
+
specification_version: 3
|
78
71
|
summary: A Ruby foreign function interface
|
79
72
|
test_files: []
|
80
73
|
|
data/tasks/git.rake
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
|
2
|
-
if HAVE_GIT
|
3
|
-
|
4
|
-
namespace :git do
|
5
|
-
|
6
|
-
# A prerequisites task that all other tasks depend upon
|
7
|
-
task :prereqs
|
8
|
-
|
9
|
-
desc 'Show tags from the Git repository'
|
10
|
-
task :show_tags => 'git:prereqs' do |t|
|
11
|
-
puts %x/git tag/
|
12
|
-
end
|
13
|
-
|
14
|
-
desc 'Create a new tag in the Git repository'
|
15
|
-
task :create_tag => 'git:prereqs' do |t|
|
16
|
-
v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z'
|
17
|
-
abort "Versions don't match #{v} vs #{PROJ.version}" if v != PROJ.version
|
18
|
-
|
19
|
-
tag = "%s-%s" % [PROJ.name, PROJ.version]
|
20
|
-
msg = "Creating tag for #{PROJ.name} version #{PROJ.version}"
|
21
|
-
|
22
|
-
puts "Creating Git tag '#{tag}'"
|
23
|
-
unless system "git tag -a -m '#{msg}' #{tag}"
|
24
|
-
abort "Tag creation failed"
|
25
|
-
end
|
26
|
-
|
27
|
-
if %x/git remote/ =~ %r/^origin\s*$/
|
28
|
-
unless system "git push origin #{tag}"
|
29
|
-
abort "Could not push tag to remote Git repository"
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
end # namespace :git
|
35
|
-
|
36
|
-
task 'gem:release' => 'git:create_tag'
|
37
|
-
|
38
|
-
end # if HAVE_GIT
|
39
|
-
|
40
|
-
# EOF
|