manticore 0.6.4-java → 0.7.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitlab-ci.yml +1 -1
- data/.travis.yml +7 -10
- data/CHANGELOG.md +3 -2
- data/Gemfile +2 -1
- data/lib/faraday/adapter/manticore.rb +1 -6
- data/lib/manticore/client.rb +4 -3
- data/lib/manticore/version.rb +1 -1
- data/manticore.gemspec +2 -2
- data/spec/manticore/client_spec.rb +1 -1
- metadata +15 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 508b2d2c3ce9fc25ca2ac915954807783cc8266aac23936a6896d103121a2f0c
|
4
|
+
data.tar.gz: a8ac97bd7fb22df23ac164d5f06f3a35c926d9eac57ae7bfb8e84c0c8d9e7907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56a60c747c187ddd1255e5da7cbc2ad78570c2ebf5390841298f45366133b48c857df8ac7b7b8bdbbb5194546e3b3112a8c08b5109c66a1299f6fe787ae890fc
|
7
|
+
data.tar.gz: 78e29e767486b820f1d1a280ae4db04b1ad33eccb7da7538bae9e48116305b44d069dc13ee322484146f9cce28b6edf71e868d73be8e075957404c50a99416eb
|
data/.gitlab-ci.yml
CHANGED
data/.travis.yml
CHANGED
@@ -1,23 +1,20 @@
|
|
1
|
+
dist: xenial
|
1
2
|
language: ruby
|
2
|
-
sudo: false
|
3
3
|
cache:
|
4
4
|
- bundler
|
5
5
|
- directories:
|
6
6
|
- $HOME/.m2
|
7
7
|
rvm:
|
8
|
-
- jruby-1.
|
9
|
-
- jruby-9.0.5
|
8
|
+
- jruby-9.1.17.0 # Ruby 2.3
|
9
|
+
- jruby-9.2.13.0 # Ruby 2.5
|
10
10
|
jdk:
|
11
|
-
-
|
12
|
-
-
|
11
|
+
- openjdk9
|
12
|
+
- openjdk11
|
13
13
|
before_install:
|
14
|
-
- gem install
|
15
|
-
- bundle install
|
14
|
+
- gem install bundler -v 1.17.3
|
16
15
|
matrix:
|
17
16
|
include:
|
18
|
-
- rvm: jruby-9.2.0.0
|
19
|
-
jdk: oraclejdk8
|
20
17
|
- rvm: jruby-head
|
21
|
-
jdk:
|
18
|
+
jdk: openjdk10
|
22
19
|
allow_failures:
|
23
20
|
- rvm: jruby-head
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
## v0.6
|
2
2
|
|
3
|
-
### v0.
|
3
|
+
### v0.7.0
|
4
4
|
|
5
|
-
|
5
|
+
* Drop support for JRuby 1.7. It probably still works, but we don't test against it anymore
|
6
|
+
* Fix a thread safety issue with regards to adding requests to the parallel execution queue while the client is already processing a queue (#80)
|
6
7
|
|
7
8
|
### v0.6.4
|
8
9
|
|
data/Gemfile
CHANGED
@@ -20,17 +20,12 @@ module Faraday
|
|
20
20
|
ParallelManager.new
|
21
21
|
end
|
22
22
|
|
23
|
-
def initialize(app, connection_options = {})
|
24
|
-
@connection_options = connection_options
|
25
|
-
super(app)
|
26
|
-
end
|
27
|
-
|
28
23
|
def client(env)
|
29
24
|
@client ||= begin
|
30
25
|
opts = {}
|
31
26
|
if ssl = env[:ssl].to_hash
|
32
27
|
opts[:ssl] = {}
|
33
|
-
opts[:ssl][:verify] = :
|
28
|
+
opts[:ssl][:verify] = ssl[:verify] unless ssl[:verify].nil?
|
34
29
|
opts[:ssl][:ca_file] = ssl[:ca_file]
|
35
30
|
opts[:ssl][:client_cert] = ssl[:client_cert]
|
36
31
|
opts[:ssl][:client_key] = ssl[:client_key]
|
data/lib/manticore/client.rb
CHANGED
@@ -223,7 +223,7 @@ module Manticore
|
|
223
223
|
@client = builder.build
|
224
224
|
finalize @client, :close
|
225
225
|
@options = options
|
226
|
-
@async_requests =
|
226
|
+
@async_requests = Queue.new
|
227
227
|
@stubs = {}
|
228
228
|
end
|
229
229
|
|
@@ -334,8 +334,9 @@ module Manticore
|
|
334
334
|
# @return [Array] An array of the responses from the requests executed.
|
335
335
|
def execute!
|
336
336
|
method = executor.java_method(:submit, [java.util.concurrent.Callable.java_class])
|
337
|
-
|
338
|
-
|
337
|
+
|
338
|
+
result = []
|
339
|
+
result << method.call(@async_requests.pop) until @async_requests.empty?
|
339
340
|
result.map do |future|
|
340
341
|
begin
|
341
342
|
future.get
|
data/lib/manticore/version.rb
CHANGED
data/manticore.gemspec
CHANGED
@@ -27,9 +27,9 @@ Gem::Specification.new do |spec|
|
|
27
27
|
|
28
28
|
spec.add_dependency "openssl_pkcs8_pure"
|
29
29
|
|
30
|
-
spec.add_development_dependency "bundler"
|
30
|
+
spec.add_development_dependency "bundler"
|
31
31
|
spec.add_development_dependency "rake"
|
32
|
-
spec.add_development_dependency "jar-dependencies"
|
32
|
+
spec.add_development_dependency "jar-dependencies", "~> 0.4.1"
|
33
33
|
|
34
34
|
spec.requirements << "jar org.apache.httpcomponents:httpclient, '~> 4.5.0'"
|
35
35
|
spec.requirements << "jar org.apache.httpcomponents:httpmime, '~> 4.5.0'"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manticore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Chris Heald
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -17,8 +17,8 @@ dependencies:
|
|
17
17
|
- !ruby/object:Gem::Version
|
18
18
|
version: '0'
|
19
19
|
name: openssl_pkcs8_pure
|
20
|
-
prerelease: false
|
21
20
|
type: :runtime
|
21
|
+
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
@@ -27,17 +27,17 @@ dependencies:
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
|
-
- - "
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '0'
|
33
33
|
name: bundler
|
34
|
-
prerelease: false
|
35
34
|
type: :development
|
35
|
+
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
@@ -45,8 +45,8 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0'
|
47
47
|
name: rake
|
48
|
-
prerelease: false
|
49
48
|
type: :development
|
49
|
+
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
@@ -55,17 +55,17 @@ dependencies:
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
60
|
+
version: 0.4.1
|
61
61
|
name: jar-dependencies
|
62
|
-
prerelease: false
|
63
62
|
type: :development
|
63
|
+
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.4.1
|
69
69
|
description: Manticore is an HTTP client built on the Apache HttpCore components
|
70
70
|
email:
|
71
71
|
- cheald@mashable.com
|
@@ -136,8 +136,7 @@ requirements:
|
|
136
136
|
- jar commons-logging:commons-logging, '~> 1.2'
|
137
137
|
- jar commons-codec:commons-codec, '~> 1.9'
|
138
138
|
- jar org.apache.httpcomponents:httpcore, '~> 4.4.4'
|
139
|
-
|
140
|
-
rubygems_version: 2.6.14.1
|
139
|
+
rubygems_version: 3.0.6
|
141
140
|
signing_key:
|
142
141
|
specification_version: 4
|
143
142
|
summary: Manticore is an HTTP client built on the Apache HttpCore components
|