pacer 2.0.4.pre-java → 2.0.6-java
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 +4 -4
- data/Gemfile +0 -1
- data/Gemfile-custom.x +42 -0
- data/lib/pacer/support/lock_jar.rb +9 -29
- data/lib/pacer/support/lock_jar_disabler.rb +13 -0
- data/lib/pacer/version.rb +2 -3
- data/lib/pacer.rb +18 -16
- data/pacer.gemspec +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c92a63098a4721ec7d8222ca84f2a590d401763d
|
|
4
|
+
data.tar.gz: 998c4250d82f63e8b5dd6eab0f709cdff4162637
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97833f79fd88d8aea018e19b124d9b7366e3ae682c01073bc1dc8aeb259d1266c431e99039367d7404a94c6b4f50d266e6513230cfa0768d7e4213b3e4bc72ea
|
|
7
|
+
data.tar.gz: ddb0377e083bc3ac020908b3870e1f59456824c313fd4607c191b4c183eec66bceaefd59fceac5f3be130f70394ae3b633d1d7b02a9aa04a52e354c1119b3f4b
|
data/Gemfile
CHANGED
data/Gemfile-custom.x
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
group :development do
|
|
2
|
+
# pacer-* gems are required for testing pacer.
|
|
3
|
+
# If you have the gem repos cloned locally, we'll use them.
|
|
4
|
+
#
|
|
5
|
+
# Note: when testing orient, use the jruby --headless option to prevent the ui window BS.
|
|
6
|
+
[ 'pacer-orient', 'pacer-dex' ].each do |lib|
|
|
7
|
+
if File.directory? "../#{lib}"
|
|
8
|
+
gem lib, :path => "../#{lib}"
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Neo4j versions are mutually incompatible
|
|
13
|
+
# To test Pacer against Neo4j 1.x when the neo2 gem is present, use:
|
|
14
|
+
#
|
|
15
|
+
# neo=1 bundle
|
|
16
|
+
# rspec
|
|
17
|
+
#
|
|
18
|
+
# To switch back, just use:
|
|
19
|
+
#
|
|
20
|
+
# bundle
|
|
21
|
+
# rspec
|
|
22
|
+
#
|
|
23
|
+
|
|
24
|
+
neo_test_ver = ENV.fetch('neo') do
|
|
25
|
+
if File.directory?("../pacer-neo4j2")
|
|
26
|
+
'2'
|
|
27
|
+
elsif File.directory?("../pacer-neo4j")
|
|
28
|
+
'1'
|
|
29
|
+
else
|
|
30
|
+
'0'
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
if neo_test_ver == '1'
|
|
34
|
+
gem 'pacer-neo4j', :path => "../pacer-neo4j"
|
|
35
|
+
elsif neo_test_ver == '2'
|
|
36
|
+
gem 'pacer-neo4j2', :path => "../pacer-neo4j2"
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
if File.directory? "../mcfly"
|
|
40
|
+
gem 'pacer-mcfly', :path => "../mcfly"
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -1,33 +1,13 @@
|
|
|
1
|
-
# TODO: Remove when https://github.com/jmhedden/lock_jar/pull/1 is merged.
|
|
2
1
|
module LockJar
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
# Lock the registered Jarfiles and generate a Jarfile.lock.
|
|
14
|
-
#
|
|
15
|
-
# Options and groups are passed through to the LockJar.lock method, but
|
|
16
|
-
# if a jarfile is specified, it will be ignored. Use LockJar.register_jarfile
|
|
17
|
-
# to add dependencies.
|
|
18
|
-
#
|
|
19
|
-
# A block can be passed in, overriding values from the Jarfiles.
|
|
20
|
-
#
|
|
21
|
-
# @return [Hash] Lock data
|
|
22
|
-
def self.lock_registered_jarfiles( *args, &blk )
|
|
23
|
-
jarfiles = @@registered_jarfiles || []
|
|
24
|
-
instances = jarfiles.map do |jarfile|
|
|
25
|
-
LockJar::Domain::JarfileDsl.create jarfile
|
|
26
|
-
end
|
|
27
|
-
combined = instances.reduce do |result, inst|
|
|
28
|
-
LockJar::Domain::DslHelper.merge result, inst
|
|
2
|
+
# If Bundler constant is defined, assume we are running in a bundled environment and
|
|
3
|
+
# register all Jarfiles
|
|
4
|
+
def self.register_bundled_jarfiles
|
|
5
|
+
if defined? Bundler
|
|
6
|
+
Gem::Specification.
|
|
7
|
+
map { |s| File.join(s.full_gem_path, 'Jarfile') }.
|
|
8
|
+
select { |f| File.exists? f }.
|
|
9
|
+
each { |f| LockJar.register_jarfile f }
|
|
10
|
+
true
|
|
29
11
|
end
|
|
30
|
-
args = args.reject { |arg| arg.is_a? String }
|
|
31
|
-
lock combined, *args, &blk
|
|
32
12
|
end
|
|
33
13
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Disable LockJar so that other libraries can't bring in random other jars.
|
|
2
|
+
# TODO: add LockJar.disable! or something like that.
|
|
3
|
+
#
|
|
4
|
+
# NOTE: this file should only be loaded by #register_bundled_jarfiles after loading is complete.
|
|
5
|
+
module LockJar
|
|
6
|
+
class << self
|
|
7
|
+
alias orig_lock lock
|
|
8
|
+
alias orig_load load
|
|
9
|
+
end
|
|
10
|
+
def self.lock(*a); end
|
|
11
|
+
def self.load(*a); end
|
|
12
|
+
end
|
|
13
|
+
|
data/lib/pacer/version.rb
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
module Pacer
|
|
2
|
-
VERSION = "2.0.
|
|
3
|
-
|
|
4
|
-
# Clients may also optionally define the following constants in the Pacer namespace:
|
|
2
|
+
VERSION = "2.0.6"
|
|
3
|
+
# Clients may optionally define the following constants in the Pacer namespace:
|
|
5
4
|
# - LOAD_JARS : set to false to manage jar loading in the client. Be sure to load the jars defined in JARFILES.
|
|
6
5
|
# - LOCKJAR_LOCK_OPTS : set some options to be passed to LockJar.lock (ie. :lockfile, :download_artifacts, :local_repo)
|
|
7
6
|
unless const_defined? :START_TIME
|
data/lib/pacer.rb
CHANGED
|
@@ -24,26 +24,28 @@ require 'rubygems'
|
|
|
24
24
|
require 'lock_jar'
|
|
25
25
|
require 'pacer/support/lock_jar'
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
if (not defined? Pacer::LOAD_JARS) or Pacer::LOAD_JARS == true
|
|
28
|
+
bundle_jarfiles = LockJar.register_bundled_jarfiles # defined in pacer/support/lock_jar.rb
|
|
29
|
+
unless bundle_jarfiles
|
|
30
|
+
LockJar.register_jarfile(File.join(File.dirname(__FILE__), "..", "Jarfile"))
|
|
31
|
+
end
|
|
32
|
+
if defined? Pacer::LOCKJAR_OPTS
|
|
33
|
+
LockJar.lock_registered_jarfiles LOCKJAR_OPTS
|
|
34
|
+
LockJar.load LOCKJAR_OPTS
|
|
35
|
+
else
|
|
36
|
+
if bundle_jarfiles
|
|
37
|
+
LockJar.lock_registered_jarfiles lockfile: 'Jarfile.lock'
|
|
38
|
+
LockJar.load 'Jarfile.lock'
|
|
39
|
+
else
|
|
40
|
+
LockJar.lock_registered_jarfiles lockfile: 'Jarfile.pacer.lock'
|
|
41
|
+
LockJar.load 'Jarfile.pacer.lock'
|
|
40
42
|
end
|
|
41
43
|
end
|
|
44
|
+
if bundle_jarfiles
|
|
45
|
+
require 'pacer/support/lock_jar_disabler'
|
|
46
|
+
end
|
|
42
47
|
end
|
|
43
48
|
|
|
44
|
-
LockJar.register_jarfile(File.join(File.dirname(__FILE__), "..", "Jarfile"))
|
|
45
|
-
Pacer.load_dependencies!
|
|
46
|
-
|
|
47
49
|
module Pacer
|
|
48
50
|
unless const_defined? :PATH
|
|
49
51
|
PATH = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
data/pacer.gemspec
CHANGED
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
|
17
17
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
|
18
18
|
s.require_paths = ['lib']
|
|
19
|
-
s.add_dependency "lock_jar", "~> 0.10.
|
|
19
|
+
s.add_dependency "lock_jar", "~> 0.10.2"
|
|
20
20
|
s.add_development_dependency 'xn_gem_release_tasks'
|
|
21
21
|
end
|
|
22
22
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pacer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.6
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Darrick Wiebe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-11-
|
|
11
|
+
date: 2014-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lock_jar
|
|
@@ -16,12 +16,12 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ~>
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.10.
|
|
19
|
+
version: 0.10.2
|
|
20
20
|
requirement: !ruby/object:Gem::Requirement
|
|
21
21
|
requirements:
|
|
22
22
|
- - ~>
|
|
23
23
|
- !ruby/object:Gem::Version
|
|
24
|
-
version: 0.10.
|
|
24
|
+
version: 0.10.2
|
|
25
25
|
prerelease: false
|
|
26
26
|
type: :runtime
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
@@ -52,6 +52,7 @@ files:
|
|
|
52
52
|
- CONTRIBUTORS
|
|
53
53
|
- Gemfile
|
|
54
54
|
- Gemfile-custom.sample
|
|
55
|
+
- Gemfile-custom.x
|
|
55
56
|
- Jarfile
|
|
56
57
|
- LICENSE.txt
|
|
57
58
|
- README.md
|
|
@@ -154,6 +155,7 @@ files:
|
|
|
154
155
|
- lib/pacer/support/enumerable.rb
|
|
155
156
|
- lib/pacer/support/hash.rb
|
|
156
157
|
- lib/pacer/support/lock_jar.rb
|
|
158
|
+
- lib/pacer/support/lock_jar_disabler.rb
|
|
157
159
|
- lib/pacer/support/native_exception.rb
|
|
158
160
|
- lib/pacer/support/nil_class.rb
|
|
159
161
|
- lib/pacer/support/proc.rb
|
|
@@ -264,9 +266,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
264
266
|
version: '0'
|
|
265
267
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
268
|
requirements:
|
|
267
|
-
- - '
|
|
269
|
+
- - '>='
|
|
268
270
|
- !ruby/object:Gem::Version
|
|
269
|
-
version:
|
|
271
|
+
version: '0'
|
|
270
272
|
requirements: []
|
|
271
273
|
rubyforge_project:
|
|
272
274
|
rubygems_version: 2.1.9
|