ritual 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/README.markdown +1 -1
- data/Rakefile +10 -0
- data/lib/ritual/extension/base.rb +4 -1
- data/lib/ritual/extension/jruby.rb +2 -2
- data/lib/ritual/version.rb +1 -1
- metadata +85 -64
data/CHANGELOG
CHANGED
data/README.markdown
CHANGED
@@ -89,7 +89,7 @@ So if the gem is `my_gem`, then Ritual configures your extension with
|
|
89
89
|
`lib/my_gem/my_gem.DLEXT`. (`DLEXT` is the shared library extension,
|
90
90
|
which varies from system to system.) `extconf.rb` should contain:
|
91
91
|
|
92
|
-
create_makefile "my_gem"
|
92
|
+
create_makefile "my_gem/my_gem"
|
93
93
|
|
94
94
|
And the extension entry point is `Init_my_gem`.
|
95
95
|
|
data/Rakefile
CHANGED
@@ -1,2 +1,12 @@
|
|
1
1
|
$:.unshift File.expand_path('lib', File.dirname(__FILE__))
|
2
2
|
require 'ritual'
|
3
|
+
|
4
|
+
task :default do
|
5
|
+
sh 'bundle exec rspec -I. spec'
|
6
|
+
|
7
|
+
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
|
8
|
+
sh 'bundle exec cucumber --tags=~@ext'
|
9
|
+
else
|
10
|
+
sh 'bundle exec cucumber --tags=~@jruby'
|
11
|
+
end
|
12
|
+
end
|
@@ -1,7 +1,10 @@
|
|
1
1
|
module Ritual
|
2
2
|
module Extension
|
3
3
|
class Base
|
4
|
-
|
4
|
+
RbConfig = defined?(RbConfig) ? RbConfig : Config
|
5
|
+
DLEXT = RbConfig::CONFIG['DLEXT']
|
6
|
+
|
7
|
+
include Rake::DSL
|
5
8
|
|
6
9
|
def initialize(name, params={})
|
7
10
|
@name = name ? name.to_sym : nil
|
@@ -7,12 +7,12 @@ module Ritual
|
|
7
7
|
task task_name do
|
8
8
|
relative_install_path = relative_path(install_path)
|
9
9
|
relative_compiled_paths = compiled_paths.map { |p| relative_path(p) }
|
10
|
-
class_path = "#{
|
10
|
+
class_path = "#{RbConfig::CONFIG['prefix']}/lib/jruby.jar"
|
11
11
|
|
12
12
|
sh 'javac', '-g', '-classpath', class_path, *source_paths
|
13
13
|
Dir.chdir path do
|
14
14
|
mkdir_p File.dirname(relative_install_path)
|
15
|
-
sh 'jar', 'cf', relative_install_path, *relative_compiled_paths
|
15
|
+
sh 'jar', 'cf', relative_install_path.to_s, *relative_compiled_paths.map(&:to_s)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
data/lib/ritual/version.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,92 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ritual
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 4
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- George Ogata
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-05-20 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: rake
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
22
32
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
26
35
|
name: thor
|
27
|
-
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
38
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
33
46
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
37
49
|
name: rspec
|
38
|
-
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
52
|
none: false
|
40
|
-
requirements:
|
53
|
+
requirements:
|
41
54
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 2
|
59
|
+
- 0
|
60
|
+
version: "2.0"
|
44
61
|
type: :development
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
48
64
|
name: cucumber
|
49
|
-
requirement: &70309457909180 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ! '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
type: :development
|
56
65
|
prerelease: false
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: ruby-debug19
|
60
|
-
requirement: &70309457908600 !ruby/object:Gem::Requirement
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
61
67
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
66
75
|
type: :development
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
76
|
+
version_requirements: *id004
|
77
|
+
description: |
|
78
|
+
Adds tasks and helpers to your Rakefile to manage releases in a
|
71
79
|
lightweight manner.
|
72
80
|
|
73
|
-
|
74
|
-
email:
|
81
|
+
email:
|
75
82
|
- george.ogata@gmail.com
|
76
|
-
executables:
|
83
|
+
executables:
|
77
84
|
- ritual
|
78
85
|
extensions: []
|
86
|
+
|
79
87
|
extra_rdoc_files: []
|
80
|
-
|
88
|
+
|
89
|
+
files:
|
81
90
|
- lib/ritual/changelog.rb
|
82
91
|
- lib/ritual/extension/base.rb
|
83
92
|
- lib/ritual/extension/jruby.rb
|
@@ -102,26 +111,38 @@ files:
|
|
102
111
|
- bin/ritual
|
103
112
|
homepage: http://github.com/oggy/ritual
|
104
113
|
licenses: []
|
114
|
+
|
105
115
|
post_install_message:
|
106
116
|
rdoc_options: []
|
107
|
-
|
117
|
+
|
118
|
+
require_paths:
|
108
119
|
- lib
|
109
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
110
121
|
none: false
|
111
|
-
requirements:
|
112
|
-
- -
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
|
115
|
-
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
hash: 3
|
126
|
+
segments:
|
127
|
+
- 0
|
128
|
+
version: "0"
|
129
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
130
|
none: false
|
117
|
-
requirements:
|
118
|
-
- -
|
119
|
-
- !ruby/object:Gem::Version
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
hash: 23
|
135
|
+
segments:
|
136
|
+
- 1
|
137
|
+
- 3
|
138
|
+
- 6
|
120
139
|
version: 1.3.6
|
121
140
|
requirements: []
|
141
|
+
|
122
142
|
rubyforge_project:
|
123
|
-
rubygems_version: 1.8.
|
143
|
+
rubygems_version: 1.8.17
|
124
144
|
signing_key:
|
125
145
|
specification_version: 3
|
126
146
|
summary: Rakefile release tasks and helpers.
|
127
147
|
test_files: []
|
148
|
+
|