naether 0.15.10 → 0.15.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebe1e3e4958e0329171b59facc99877d762d4d96662694dbbfb5b327b5862434
4
- data.tar.gz: badef59df82d427330b15e70c312d2173f23df677f6d926b32e24eb1cbbfa38a
3
+ metadata.gz: ecd38e0c279c705152812a699ce362459522b49f4f44966e5fb5fd8534da7fae
4
+ data.tar.gz: 7230a5ae30377b00ab93d5c8cbce624861dc19c1d938c9769b19ac5b7d45ca36
5
5
  SHA512:
6
- metadata.gz: ff96b533c5898f657811321e4f5a92b88c966dca87575997b09b485aa3b96db2032b3b775d5febd4102996940bca38ac73543bdf1b72c1f3062dda4d1f8039ed
7
- data.tar.gz: 8685ea256611e67c7d8646df20ee6b8bcea6187334566dd3fbc5a40d7fbee77939ae8aeae546c20972ea406e90c2d53b4aafd11155020997dc9f1ab16bf8a2d8
6
+ metadata.gz: 2b8185744d0b1d1c1c931e7551e066d81099883b4583dc09cefd985dc4d40903d197c0b8aab48f5100c4abbd76e56583a123f68b805c759359131e64055644e1
7
+ data.tar.gz: f4991bbf58a23f93d10a0badedcdda60cb7e85f7056cd85a479c791c47bf35f738936534cac49a921f929e6b59261c72c1228d46fa30fedb10df7d704e28ec89
data/Gemfile CHANGED
@@ -2,10 +2,11 @@ source "http://rubygems.org"
2
2
 
3
3
  gem 'httpclient'
4
4
  gem 'rake', '>= 12.3.3'
5
+ gem 'mutex_m', '~> 0.2.0'
5
6
 
6
7
  platform = $platform || RUBY_PLATFORM[/java/] || 'ruby'
7
8
  if platform != 'java'
8
- gem 'rjb', '= 1.6.2'
9
+ gem 'rjb', '= 1.7.3'
9
10
  end
10
11
 
11
12
  group :development do
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.15.10
1
+ 0.15.11
data/core-0.15.10.jar CHANGED
Binary file
data/core-0.15.11.jar ADDED
Binary file
@@ -95,7 +95,7 @@ module Naether
95
95
  # @param [Hash] opts
96
96
  # @return [Hash] with status of missing, downloaded, exists dependencies
97
97
  def download_dependencies(dest, opts = {})
98
- if !File.exists? dest
98
+ if !File.exist? dest
99
99
  FileUtils.mkdir_p(dest)
100
100
  end
101
101
 
@@ -123,7 +123,7 @@ module Naether
123
123
 
124
124
  maven_path = "#{dest}#{File::SEPARATOR}#{jar}"
125
125
 
126
- if !File.exists? maven_path
126
+ if !File.exist? maven_path
127
127
  maven_jar_url = "#{maven_url}/#{group}/#{artifact}/#{version}/#{jar}"
128
128
 
129
129
  data = http_client.get(maven_jar_url)
@@ -171,7 +171,7 @@ module Naether
171
171
 
172
172
  maven_path = "#{local_repo}#{File::SEPARATOR}#{group}#{File::SEPARATOR}#{artifact}#{File::SEPARATOR}#{version}#{File::SEPARATOR}#{jar}"
173
173
 
174
- if File.exists? maven_path
174
+ if File.exist? maven_path
175
175
  deps[:exists] << { dep => maven_path }
176
176
  else
177
177
  deps[:missing] << dep
@@ -191,6 +191,8 @@ module Naether
191
191
  def install_dependencies_to_local_repo(install_jars, naether_jars, opts = {})
192
192
  require "#{File.dirname(__FILE__)}/../naether"
193
193
 
194
+ # Load jars into main classpath first to ensure all dependencies are available
195
+ Naether::Java.load_paths(naether_jars)
194
196
  @naether = Naether.create_from_jars(naether_jars)
195
197
 
196
198
  if opts[:local_repo]
@@ -11,7 +11,7 @@ module Naether
11
11
  version = nil
12
12
 
13
13
  # Load VERSION file from gem to VERSION var
14
- if File.exists?( File.expand_path("#{File.dirname(__FILE__)}/../../VERSION") )
14
+ if File.exist?( File.expand_path("#{File.dirname(__FILE__)}/../../VERSION") )
15
15
  version = IO.read(File.expand_path("#{File.dirname(__FILE__)}/../../VERSION")).strip
16
16
 
17
17
  # VERSION file not found in gem dir, assume in current path, e.g.running from checkout
@@ -73,7 +73,7 @@ module Naether
73
73
 
74
74
  paths.each do |path|
75
75
  expanded_path = File.expand_path(path)
76
- if File.exists?( expanded_path )
76
+ if File.exist?( expanded_path )
77
77
  @class_loader.addPath( expanded_path )
78
78
 
79
79
  load_paths << expanded_path
@@ -96,7 +96,7 @@ module Naether
96
96
 
97
97
  paths.each do |path|
98
98
  expanded_path = File.expand_path(path)
99
- if !@loaded_paths.include?( expanded_path ) && File.exists?( expanded_path )
99
+ if !@loaded_paths.include?( expanded_path ) && File.exist?( expanded_path )
100
100
  $CLASSPATH << expanded_path
101
101
  load_paths << expanded_path
102
102
  @loaded_paths << expanded_path
@@ -107,7 +107,7 @@ module Naether
107
107
 
108
108
  paths.each do |path|
109
109
  expanded_path = File.expand_path(path)
110
- if File.exists?( expanded_path )
110
+ if File.exist?( expanded_path )
111
111
  @class_loader.addPath( path )
112
112
  loadable_paths << expanded_path
113
113
  end
@@ -129,7 +129,7 @@ module Naether
129
129
 
130
130
  paths.each do |path|
131
131
  expanded_path = File.expand_path(path)
132
- if !@loaded_paths.include?(expanded_path) && File.exists?( expanded_path )
132
+ if !@loaded_paths.include?(expanded_path) && File.exist?( expanded_path )
133
133
  @loaded_paths << expanded_path
134
134
  Rjb::add_jar( expanded_path )
135
135
  loadable_paths << expanded_path
data/lib/naether/java.rb CHANGED
@@ -20,7 +20,7 @@ module Naether
20
20
  def initialize()
21
21
  naether_jar = Naether::Configuration.naether_jar
22
22
 
23
- unless File.exists? naether_jar
23
+ unless File.exist? naether_jar
24
24
  raise "Cannot create Naether::Java: #{naether_jar} does not exist"
25
25
  end
26
26
 
data/naether.gemspec ADDED
@@ -0,0 +1,59 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: naether 0.15.11 ruby lib
6
+ # stub: Rakefile
7
+
8
+ Gem::Specification.new do |s|
9
+ s.name = "naether".freeze
10
+ s.version = "0.15.11".freeze
11
+
12
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
13
+ s.require_paths = ["lib".freeze]
14
+ s.authors = ["Michael Guymon".freeze]
15
+ s.date = "1980-01-02"
16
+ s.description = "Java dependency resolver using Maven's Aether".freeze
17
+ s.email = "michael@tobedevoured.com".freeze
18
+ s.extensions = ["Rakefile".freeze]
19
+ s.extra_rdoc_files = [
20
+ "LICENSE",
21
+ "README.md"
22
+ ]
23
+ s.files = [
24
+ "Gemfile",
25
+ "LICENSE",
26
+ "README.md",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "core-0.15.10.jar",
30
+ "core-0.15.11.jar",
31
+ "jar_dependencies.yml",
32
+ "lib/naether.rb",
33
+ "lib/naether/bootstrap.rb",
34
+ "lib/naether/configuration.rb",
35
+ "lib/naether/java.rb",
36
+ "lib/naether/java/jruby.rb",
37
+ "lib/naether/java/ruby.rb",
38
+ "lib/naether/maven.rb",
39
+ "lib/naether/notation.rb",
40
+ "lib/naether/runtime.rb",
41
+ "naether.gemspec",
42
+ "pom.xml"
43
+ ]
44
+ s.homepage = "http://github.com/mguymon/naether".freeze
45
+ s.licenses = ["Apache".freeze]
46
+ s.rubygems_version = "3.6.9".freeze
47
+ s.summary = "Java dependency resolver using Maven's Aether".freeze
48
+
49
+ s.specification_version = 4
50
+
51
+ s.add_runtime_dependency(%q<httpclient>.freeze, [">= 0".freeze])
52
+ s.add_runtime_dependency(%q<rake>.freeze, [">= 12.3.3".freeze])
53
+ s.add_runtime_dependency(%q<mutex_m>.freeze, ["~> 0.2.0".freeze])
54
+ s.add_runtime_dependency(%q<rjb>.freeze, ["= 1.7.3".freeze])
55
+ s.add_development_dependency(%q<rspec>.freeze, ["> 2.9".freeze])
56
+ s.add_development_dependency(%q<yard>.freeze, [">= 0".freeze])
57
+ s.add_development_dependency(%q<kramdown>.freeze, [">= 0".freeze])
58
+ end
59
+
data/pom.xml CHANGED
@@ -3,7 +3,7 @@
3
3
  <modelVersion>4.0.0</modelVersion>
4
4
  <groupId>com.tobedevoured.naether</groupId>
5
5
  <artifactId>core</artifactId>
6
- <version>0.15.10</version>
6
+ <version>0.15.11</version>
7
7
  <name>Naether</name>
8
8
  <packaging>jar</packaging>
9
9
  <url>https://github.com/mguymon/naether</url>
@@ -47,8 +47,8 @@
47
47
  <mavenVersion>3.0.3</mavenVersion>
48
48
  <wagonVersion>1.0</wagonVersion>
49
49
  <org.slf4j.version>1.7.6</org.slf4j.version>
50
- <maven.compiler.source>1.7</maven.compiler.source>
51
- <maven.compiler.target>1.7</maven.compiler.target>
50
+ <maven.compiler.source>1.8</maven.compiler.source>
51
+ <maven.compiler.target>1.8</maven.compiler.target>
52
52
  </properties>
53
53
 
54
54
  <dependencies>
@@ -215,6 +215,7 @@
215
215
  <plugin>
216
216
  <groupId>org.apache.maven.plugins</groupId>
217
217
  <artifactId>maven-gpg-plugin</artifactId>
218
+ <version>3.1.0</version>
218
219
  <executions>
219
220
  <execution>
220
221
  <id>sign-artifacts</id>
@@ -246,7 +247,15 @@
246
247
  </execution>
247
248
  </executions>
248
249
  </plugin>
249
-
250
+ <plugin>
251
+ <groupId>org.sonatype.central</groupId>
252
+ <artifactId>central-publishing-maven-plugin</artifactId>
253
+ <version>0.9.0</version>
254
+ <extensions>true</extensions>
255
+ <configuration>
256
+ <publishingServerId>central</publishingServerId>
257
+ </configuration>
258
+ </plugin>
250
259
  </plugins>
251
260
  </build>
252
261
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naether
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.10
4
+ version: 0.15.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Guymon
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-04-12 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: httpclient
@@ -38,20 +37,34 @@ dependencies:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
39
  version: 12.3.3
40
+ - !ruby/object:Gem::Dependency
41
+ name: mutex_m
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 0.2.0
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: 0.2.0
41
54
  - !ruby/object:Gem::Dependency
42
55
  name: rjb
43
56
  requirement: !ruby/object:Gem::Requirement
44
57
  requirements:
45
58
  - - '='
46
59
  - !ruby/object:Gem::Version
47
- version: 1.6.2
60
+ version: 1.7.3
48
61
  type: :runtime
49
62
  prerelease: false
50
63
  version_requirements: !ruby/object:Gem::Requirement
51
64
  requirements:
52
65
  - - '='
53
66
  - !ruby/object:Gem::Version
54
- version: 1.6.2
67
+ version: 1.7.3
55
68
  - !ruby/object:Gem::Dependency
56
69
  name: rspec
57
70
  requirement: !ruby/object:Gem::Requirement
@@ -109,6 +122,7 @@ files:
109
122
  - Rakefile
110
123
  - VERSION
111
124
  - core-0.15.10.jar
125
+ - core-0.15.11.jar
112
126
  - jar_dependencies.yml
113
127
  - lib/naether.rb
114
128
  - lib/naether/bootstrap.rb
@@ -119,12 +133,12 @@ files:
119
133
  - lib/naether/maven.rb
120
134
  - lib/naether/notation.rb
121
135
  - lib/naether/runtime.rb
136
+ - naether.gemspec
122
137
  - pom.xml
123
138
  homepage: http://github.com/mguymon/naether
124
139
  licenses:
125
140
  - Apache
126
141
  metadata: {}
127
- post_install_message:
128
142
  rdoc_options: []
129
143
  require_paths:
130
144
  - lib
@@ -139,8 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
153
  - !ruby/object:Gem::Version
140
154
  version: '0'
141
155
  requirements: []
142
- rubygems_version: 3.2.33
143
- signing_key:
156
+ rubygems_version: 3.6.9
144
157
  specification_version: 4
145
158
  summary: Java dependency resolver using Maven's Aether
146
159
  test_files: []