ruby-maven 3.1.1.0.2 → 3.1.1.0.3.dev
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/ruby/tesla-polyglot-ruby-0.0.9.jar +0 -0
- data/lib/tesla-polyglot-cli-0.0.9.jar +0 -0
- data/lib/tesla-polyglot-common-0.0.9.jar +0 -0
- data/ruby/maven/ruby/gem_setup.rb +45 -0
- data/ruby/maven/ruby/tasks.rb +5 -21
- data/ruby/maven/ruby/version.rb +1 -1
- metadata +29 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cccc70381a6be029b22c017f9c55809156f79c1
|
4
|
+
data.tar.gz: 42756c24992ed1c43b5fdcf9957992abf7dbeada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b13006f745e4ebea2877ee01812c1225167ead22c851256b9e17e7101c16a6ec963d9be57578125a2a9ec1ca05c51be06468170b5f0274b95e65869b7482cbd4
|
7
|
+
data.tar.gz: 551f84995183bcf0aad9d3609f2eab714dcec548480c8b2550592b50e6b2c452247056943afd59f6f2c2afae1c76c6c9a7b748563dfd4fa5303c891028757f2f
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'maven/ruby/maven'
|
2
|
+
module Maven
|
3
|
+
module Ruby
|
4
|
+
class GemSetup
|
5
|
+
|
6
|
+
def self.setup( specfile )
|
7
|
+
basedir = File.dirname( File.expand_path( specfile ) )
|
8
|
+
extdir = File.join( basedir, 'ext' )
|
9
|
+
return unless File.exists? extdir
|
10
|
+
|
11
|
+
deps = File.join( extdir, 'deps.lst' )
|
12
|
+
|
13
|
+
File.open( File.join( extdir, 'Makefile' ), 'w' ) do |f|
|
14
|
+
f.print <<EOF
|
15
|
+
install:
|
16
|
+
clean:
|
17
|
+
EOF
|
18
|
+
end
|
19
|
+
|
20
|
+
spec = eval( File.read( specfile ) )
|
21
|
+
jars_file = File.join( basedir, spec.require_path,
|
22
|
+
"#{spec.name}_jars.rb" )
|
23
|
+
|
24
|
+
return if File.exists?( jars_file ) &&
|
25
|
+
File.mtime( specfile ) < File.mtime( jars_file )
|
26
|
+
|
27
|
+
maven = Maven.new
|
28
|
+
maven.exec 'dependency:list', "-DoutputFile=#{deps}", '-DincludeScope=runtime', '-DoutputAbsoluteArtifactFilename=true', '-DincludeTypes=jar', '-DoutputScope=false', '-f', specfile
|
29
|
+
File.open( jars_file, 'w' ) do |f|
|
30
|
+
f.puts "require 'jar-dependencies'"
|
31
|
+
f.puts
|
32
|
+
File.read( deps ).each_line do |line|
|
33
|
+
if line.match /:jar:/
|
34
|
+
line.gsub!( /:jar:|:compile:|:runtime:/, ':' )
|
35
|
+
line.sub!( /^\s+/, '' )
|
36
|
+
path = line.sub( /^.*:/, '' )
|
37
|
+
args = line.sub( /:[^:]+$/, '' ).gsub( /:/, "', '" )
|
38
|
+
f.puts( "require_jarfile( '#{path}', '#{args}' )" )
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
data/ruby/maven/ruby/tasks.rb
CHANGED
@@ -1,16 +1,10 @@
|
|
1
1
|
require 'maven/ruby/maven'
|
2
|
-
require 'maven/tools/dsl'
|
3
2
|
require 'rake'
|
4
3
|
|
5
4
|
module Maven
|
6
5
|
class Tasks
|
7
6
|
include Rake::DSL
|
8
7
|
|
9
|
-
def self.instance( maven = nil )
|
10
|
-
@maven = maven if maven
|
11
|
-
@maven
|
12
|
-
end
|
13
|
-
|
14
8
|
def install
|
15
9
|
|
16
10
|
desc "Setup Maven instance."
|
@@ -51,20 +45,10 @@ module Maven
|
|
51
45
|
Tasks.new.install
|
52
46
|
end
|
53
47
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
require 'maven/tools/model'
|
59
|
-
Maven::Tasks.instance( Maven::Ruby::Maven.new( tesla( &block ),
|
60
|
-
'.rake.pom.xml' ) )
|
61
|
-
else
|
62
|
-
if Maven::Tasks.instance
|
63
|
-
Maven::Tasks.instance
|
64
|
-
else
|
65
|
-
m = Maven::Ruby::Maven.new
|
66
|
-
m.embedded = true
|
67
|
-
Maven::Tasks.instance( m )
|
68
|
-
end
|
48
|
+
def maven
|
49
|
+
unless @__maven__
|
50
|
+
@__maven__ = Maven::Ruby::Maven.new
|
51
|
+
@__maven__.embedded = true
|
69
52
|
end
|
53
|
+
@__maven__
|
70
54
|
end
|
data/ruby/maven/ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,72 +1,73 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-maven
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.1.0.
|
4
|
+
version: 3.1.1.0.3.dev
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Meier
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: maven-tools
|
15
|
-
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.33'
|
20
|
-
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
23
|
requirements:
|
22
24
|
- - ~>
|
23
25
|
- !ruby/object:Gem::Version
|
24
26
|
version: '0.33'
|
25
|
-
prerelease: false
|
26
|
-
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ruby-maven-libs
|
29
|
-
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 3.1.1
|
34
|
-
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
35
37
|
requirements:
|
36
38
|
- - '='
|
37
39
|
- !ruby/object:Gem::Version
|
38
40
|
version: 3.1.1
|
39
|
-
prerelease: false
|
40
|
-
type: :runtime
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
|
-
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '5.0'
|
48
|
-
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
49
51
|
requirements:
|
50
52
|
- - ~>
|
51
53
|
- !ruby/object:Gem::Version
|
52
54
|
version: '5.0'
|
53
|
-
prerelease: false
|
54
|
-
type: :development
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
|
-
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '10.0'
|
62
|
-
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
65
|
requirements:
|
64
66
|
- - ~>
|
65
67
|
- !ruby/object:Gem::Version
|
66
68
|
version: '10.0'
|
67
|
-
|
68
|
-
|
69
|
-
description: maven support for ruby based on tesla maven. MRI needs java/javac command installed.
|
69
|
+
description: maven support for ruby based on tesla maven. MRI needs java/javac command
|
70
|
+
installed.
|
70
71
|
email:
|
71
72
|
- m.kristian@web.de
|
72
73
|
executables:
|
@@ -82,17 +83,18 @@ files:
|
|
82
83
|
- ruby/ruby-maven.rb
|
83
84
|
- ruby/tesla_maven.rb
|
84
85
|
- ruby/ruby_maven.rb
|
85
|
-
- ruby/maven/ruby.rb
|
86
86
|
- ruby/maven/ruby/version.rb
|
87
87
|
- ruby/maven/ruby/maven.rb
|
88
|
+
- ruby/maven/ruby/gem_setup.rb
|
88
89
|
- ruby/maven/ruby/tasks.rb
|
90
|
+
- ruby/maven/ruby.rb
|
89
91
|
- lib/tesla-polyglot-cli-0.0.9.jar
|
90
92
|
- lib/tesla-polyglot-common-0.0.9.jar
|
91
93
|
homepage: https://github.com/tesla/tesla-polyglot/tree/master/tesla-polyglot-gem
|
92
94
|
licenses:
|
93
95
|
- EPL
|
94
96
|
metadata: {}
|
95
|
-
post_install_message:
|
97
|
+
post_install_message:
|
96
98
|
rdoc_options:
|
97
99
|
- --main
|
98
100
|
- README.md
|
@@ -105,13 +107,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
107
|
version: '0'
|
106
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
109
|
requirements:
|
108
|
-
- - '
|
110
|
+
- - '>'
|
109
111
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
112
|
+
version: 1.3.1
|
111
113
|
requirements: []
|
112
|
-
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
114
|
-
signing_key:
|
114
|
+
rubyforge_project:
|
115
|
+
rubygems_version: 2.0.3
|
116
|
+
signing_key:
|
115
117
|
specification_version: 4
|
116
118
|
summary: maven support for ruby projects
|
117
119
|
test_files: []
|