ruby-maven 3.3.3 → 3.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/bin/rmvn +21 -5
- data/lib/maven/ruby/maven.rb +3 -2
- data/lib/maven/ruby/version.rb +1 -1
- data/lib/ruby_maven.rb +10 -4
- data/ruby-maven.gemspec +5 -4
- metadata +27 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b6bebb55278b2e1519916aa02a846ed6cd72a2d
|
4
|
+
data.tar.gz: e37e8ce14f2ac63a5fd58fe32313ceea6ff273a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 829b8190843bb9969df839dacc7a1426865cbf0ac01a6c31a77d3e6a744ce00a6140d8a9dd4e6bf83db5ff6c62094be801d64ee7de09e6435809aa69e87e56b6
|
7
|
+
data.tar.gz: cfb4721a3e79f242947ba8c6c48acda0497da64073fb23a98bf55a8da1c3366db490404ac76358d2efb60a7c23995e53dfee6a970066d88cbed9c218de79849b
|
data/.gitignore
CHANGED
data/bin/rmvn
CHANGED
@@ -1,7 +1,23 @@
|
|
1
|
-
#!/usr/bin/env
|
2
|
-
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
#
|
3
|
+
# This file was generated by RubyGems.
|
4
|
+
#
|
5
|
+
# The application 'ruby-maven' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
3
8
|
|
4
|
-
|
5
|
-
ARGV.clear # clean up in case another script gets executed it gets a clear ARGV
|
9
|
+
require 'rubygems'
|
6
10
|
|
7
|
-
|
11
|
+
version = ">= 0"
|
12
|
+
|
13
|
+
if ARGV.first
|
14
|
+
str = ARGV.first
|
15
|
+
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
|
16
|
+
if str =~ /\A_(.*)_\z/
|
17
|
+
version = $1
|
18
|
+
ARGV.shift
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
gem 'ruby-maven', version
|
23
|
+
load Gem.bin_path('ruby-maven', 'rmvn', version)
|
data/lib/maven/ruby/maven.rb
CHANGED
@@ -94,11 +94,12 @@ module Maven
|
|
94
94
|
end
|
95
95
|
|
96
96
|
def exec(*args)
|
97
|
+
mvn_args = (args + options_array)
|
97
98
|
if verbose
|
98
|
-
puts "mvn #{
|
99
|
+
puts "mvn #{mvn_args.join(' ')}"
|
99
100
|
end
|
100
101
|
|
101
|
-
result = RubyMaven.exec( *
|
102
|
+
result = RubyMaven.exec( *mvn_args )
|
102
103
|
if @embedded and not result
|
103
104
|
# TODO remove this when the embedded case is gone
|
104
105
|
raise "error in executing maven #{result}"
|
data/lib/maven/ruby/version.rb
CHANGED
data/lib/ruby_maven.rb
CHANGED
@@ -41,7 +41,7 @@ module RubyMaven
|
|
41
41
|
def self.dir
|
42
42
|
@dir ||= File.expand_path( '../../', __FILE__ )
|
43
43
|
end
|
44
|
-
|
44
|
+
|
45
45
|
def self.launch( *args )
|
46
46
|
old_maven_home = ENV['M2_HOME']
|
47
47
|
ENV['M2_HOME'] = Maven.home
|
@@ -55,12 +55,18 @@ module RubyMaven
|
|
55
55
|
|
56
56
|
ensure
|
57
57
|
ENV['M2_HOME'] = old_maven_home
|
58
|
-
|
58
|
+
unless has_extensions
|
59
|
+
FileUtils.rm_f( extensions )
|
60
|
+
dir = File.dirname( extensions )
|
61
|
+
# delete empty .mvn directory
|
62
|
+
FileUtils.rm_rf( dir ) if Dir[dir].size == 0
|
63
|
+
end
|
59
64
|
end
|
60
|
-
|
65
|
+
|
61
66
|
POLYGLOT_VERSION = begin
|
62
67
|
xml = File.read( File.join( dir, '.mvn/extensions.xml' ) )
|
63
68
|
xml.sub( /.*<version>/m, '' ).sub(/<\/version>.*/m, '' )
|
64
|
-
|
69
|
+
rescue Errno::ENOENT => e
|
70
|
+
'0.1.11'
|
65
71
|
end
|
66
72
|
end
|
data/ruby-maven.gemspec
CHANGED
@@ -12,16 +12,17 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.email = ["m.kristian@web.de"]
|
13
13
|
|
14
14
|
s.homepage = %q{https://github.com/takari/ruby-maven}
|
15
|
-
|
16
|
-
s.license = 'EPL'
|
15
|
+
|
16
|
+
s.license = 'EPL'
|
17
|
+
|
18
|
+
s.executable = 'rmvn'
|
17
19
|
|
18
20
|
s.files = `git ls-files`.split($/)
|
19
21
|
|
20
|
-
s.executables = ['rmvn']
|
21
22
|
s.rdoc_options = ["--main", "README.md"]
|
22
23
|
|
23
24
|
s.add_dependency 'ruby-maven-libs', "~> 3.3.1"
|
24
|
-
s.add_development_dependency 'minitest', '~> 5.3'
|
25
|
+
s.add_development_dependency 'minitest', '~> 5.3'
|
25
26
|
s.add_development_dependency 'rake', '~> 10.3'
|
26
27
|
end
|
27
28
|
|
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-maven
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Meier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: ruby-maven-libs
|
15
|
-
version_requirements: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 3.3.1
|
20
14
|
requirement: !ruby/object:Gem::Requirement
|
21
15
|
requirements:
|
22
|
-
- - ~>
|
16
|
+
- - "~>"
|
23
17
|
- !ruby/object:Gem::Version
|
24
18
|
version: 3.3.1
|
19
|
+
name: ruby-maven-libs
|
25
20
|
prerelease: false
|
26
21
|
type: :runtime
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: minitest
|
29
22
|
version_requirements: !ruby/object:Gem::Requirement
|
30
23
|
requirements:
|
31
|
-
- - ~>
|
24
|
+
- - "~>"
|
32
25
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
26
|
+
version: 3.3.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
34
28
|
requirement: !ruby/object:Gem::Requirement
|
35
29
|
requirements:
|
36
|
-
- - ~>
|
30
|
+
- - "~>"
|
37
31
|
- !ruby/object:Gem::Version
|
38
32
|
version: '5.3'
|
33
|
+
name: minitest
|
39
34
|
prerelease: false
|
40
35
|
type: :development
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
36
|
version_requirements: !ruby/object:Gem::Requirement
|
44
37
|
requirements:
|
45
|
-
- - ~>
|
38
|
+
- - "~>"
|
46
39
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
40
|
+
version: '5.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
48
42
|
requirement: !ruby/object:Gem::Requirement
|
49
43
|
requirements:
|
50
|
-
- - ~>
|
44
|
+
- - "~>"
|
51
45
|
- !ruby/object:Gem::Version
|
52
46
|
version: '10.3'
|
47
|
+
name: rake
|
53
48
|
prerelease: false
|
54
49
|
type: :development
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.3'
|
55
55
|
description: maven support for ruby DSL pom files. MRI needs java/javac installed.
|
56
56
|
email:
|
57
57
|
- m.kristian@web.de
|
@@ -60,9 +60,10 @@ executables:
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
-
- .gitignore
|
64
|
-
- .mvn/extensions.xml
|
63
|
+
- ".gitignore"
|
64
|
+
- ".mvn/extensions.xml"
|
65
65
|
- Mavenfile
|
66
|
+
- bin/rmvn
|
66
67
|
- lib/maven/ruby.rb
|
67
68
|
- lib/maven/ruby/maven.rb
|
68
69
|
- lib/maven/ruby/tasks.rb
|
@@ -72,31 +73,31 @@ files:
|
|
72
73
|
- ruby-maven.gemspec
|
73
74
|
- spec/ruby_maven_spec.rb
|
74
75
|
- spec/setup.rb
|
75
|
-
- bin/rmvn
|
76
76
|
homepage: https://github.com/takari/ruby-maven
|
77
77
|
licenses:
|
78
78
|
- EPL
|
79
79
|
metadata: {}
|
80
80
|
post_install_message:
|
81
81
|
rdoc_options:
|
82
|
-
- --main
|
82
|
+
- "--main"
|
83
83
|
- README.md
|
84
84
|
require_paths:
|
85
85
|
- lib
|
86
86
|
required_ruby_version: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- -
|
93
|
+
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.4.8
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: maven support for ruby projects
|
102
102
|
test_files: []
|
103
|
+
has_rdoc:
|