lhc 10.5.1 → 10.5.2
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 +5 -5
- data/Gemfile.activesupport4 +4 -0
- data/Gemfile.activesupport5 +4 -0
- data/Gemfile.activesupport6 +4 -0
- data/cider-ci.yml +3 -1
- data/cider-ci/bin/bundle +25 -1
- data/cider-ci/jobs/rspec-activesupport-4.yml +28 -0
- data/cider-ci/jobs/{rspec.yml → rspec-activesupport-5.yml} +6 -3
- data/cider-ci/jobs/rspec-activesupport-6.yml +28 -0
- data/cider-ci/jobs/rubocop.yml +2 -2
- data/cider-ci/task_components/bundle.yml +4 -0
- data/cider-ci/task_components/rspec.yml +2 -3
- data/lhc.gemspec +0 -1
- data/lib/lhc/concerns/lhc/request/user_agent_concern.rb +6 -1
- data/lib/lhc/version.rb +1 -1
- metadata +10 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1ceecd53d94051855df66cfa2733ac9afda9b6b4
|
4
|
+
data.tar.gz: fbb5373333e5a18c287c1846b3bf0ad5b913e269
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 829385685260241d20874839ca0a32d8ad05f5870a7a9e6a509882833bc86af8d02d6addd1b837acf0b31456e29a65e4267d9110ddbb2f1fc6e6c76536ddf146
|
7
|
+
data.tar.gz: 63bc036627030c330e0a1ea811ea8296ce1cdf64b0ea499d761e29e0c5cae7b853d7484d501116bed38b901d81d7e25b504a61b7d5254ff079e742e79bb062e8
|
data/cider-ci.yml
CHANGED
data/cider-ci/bin/bundle
CHANGED
@@ -8,6 +8,10 @@ if [ ! -f ~/.rubies/$RUBY/bin/bundle ]; then
|
|
8
8
|
gem install bundler
|
9
9
|
fi
|
10
10
|
|
11
|
+
# install bundler v. 1.17.3 in order to be able to run the tests with
|
12
|
+
# ACTIVESUPPORT=4 because rails (= 4.2.0) depends on bundler (< 2.0, >= 1.3.0)
|
13
|
+
gem install bundler:1.17.3
|
14
|
+
|
11
15
|
sed "s/^source 'https:\/\/rubygems\.intra\.local\.ch'*/source 'http\:\/\/52.29.7.59:9292'/g" Gemfile > Gemfile.tmp
|
12
16
|
mv Gemfile.tmp Gemfile
|
13
17
|
|
@@ -15,13 +19,33 @@ DIGEST=$(git ls-tree HEAD --\
|
|
15
19
|
cider-ci.yml cider-ci Gemfile.lock \
|
16
20
|
| openssl dgst -sha1 | cut -d ' ' -f 2)
|
17
21
|
|
22
|
+
if [ ! -z ${ACTIVESUPPORT:-} ]; then
|
23
|
+
DIGEST=$(echo "$DIGEST $ACTIVESUPPORT")
|
24
|
+
fi
|
25
|
+
|
18
26
|
DIGEST=$(echo "$DIGEST $PATH" \
|
19
27
|
| openssl dgst -sha1 | cut -d ' ' -f 2)
|
20
28
|
|
29
|
+
echo "DIGEST"
|
30
|
+
echo "${DIGEST}"
|
31
|
+
|
21
32
|
CACHE_SIGNATURE_FILE="/tmp/bundle_cache_signature_${DIGEST}"
|
22
33
|
|
23
34
|
if [ ! -f $CACHE_SIGNATURE_FILE ] ; then
|
24
|
-
|
35
|
+
if [ ! -z ${ACTIVESUPPORT:-} ]; then
|
36
|
+
if [ ! -z ${BUNDLER:-} ]; then
|
37
|
+
echo "BUNDLE_GEMFILE=Gemfile.activesupport$ACTIVESUPPORT bundle $BUNDLER install"
|
38
|
+
BUNDLE_GEMFILE=Gemfile.activesupport$ACTIVESUPPORT bundle $BUNDLER install
|
39
|
+
else
|
40
|
+
echo "BUNDLE_GEMFILE=Gemfile.activesupport$ACTIVESUPPORT bundle install"
|
41
|
+
BUNDLE_GEMFILE=Gemfile.activesupport$ACTIVESUPPORT bundle install
|
42
|
+
fi
|
43
|
+
else
|
44
|
+
echo "bundle install"
|
45
|
+
bundle $BUNDLER install
|
46
|
+
fi
|
25
47
|
touch $CACHE_SIGNATURE_FILE
|
26
48
|
fi
|
27
49
|
|
50
|
+
echo "bundle install"
|
51
|
+
bundle $BUNDLER install
|
@@ -0,0 +1,28 @@
|
|
1
|
+
rspec-active-support-v4:
|
2
|
+
name: 'rspec with ActiveSupport v4'
|
3
|
+
|
4
|
+
run_when:
|
5
|
+
'some HEAD has been updated':
|
6
|
+
type: branch
|
7
|
+
include_match: ^.*$
|
8
|
+
|
9
|
+
context:
|
10
|
+
|
11
|
+
script_defaults:
|
12
|
+
template_environment_variables: true
|
13
|
+
|
14
|
+
task_defaults:
|
15
|
+
environment_variables:
|
16
|
+
ACTIVESUPPORT: '4'
|
17
|
+
BUNDLER: '_1.17.3_'
|
18
|
+
|
19
|
+
max_trials: 2
|
20
|
+
dispatch_storm_delay_duration: 1 Seconds
|
21
|
+
include:
|
22
|
+
- cider-ci/task_components/ruby.yml
|
23
|
+
- cider-ci/task_components/bundle.yml
|
24
|
+
- cider-ci/task_components/rspec.yml
|
25
|
+
|
26
|
+
tasks:
|
27
|
+
all-rspec:
|
28
|
+
name: All rspec tests, using ActiveSupport v4
|
@@ -1,5 +1,5 @@
|
|
1
|
-
rspec:
|
2
|
-
name: 'rspec'
|
1
|
+
rspec-active-support-v5:
|
2
|
+
name: 'rspec with ActiveSupport v5'
|
3
3
|
|
4
4
|
run_when:
|
5
5
|
'some HEAD has been updated':
|
@@ -12,6 +12,9 @@ rspec:
|
|
12
12
|
template_environment_variables: true
|
13
13
|
|
14
14
|
task_defaults:
|
15
|
+
environment_variables:
|
16
|
+
ACTIVESUPPORT: '5'
|
17
|
+
|
15
18
|
max_trials: 2
|
16
19
|
dispatch_storm_delay_duration: 1 Seconds
|
17
20
|
include:
|
@@ -21,4 +24,4 @@ rspec:
|
|
21
24
|
|
22
25
|
tasks:
|
23
26
|
all-rspec:
|
24
|
-
name: All rspec tests
|
27
|
+
name: All rspec tests, using ActiveSupport v5
|
@@ -0,0 +1,28 @@
|
|
1
|
+
rspec-active-support-v6:
|
2
|
+
name: 'rspec with ActiveSupport v6'
|
3
|
+
|
4
|
+
run_when:
|
5
|
+
'some HEAD has been updated':
|
6
|
+
type: branch
|
7
|
+
include_match: ^.*$
|
8
|
+
|
9
|
+
context:
|
10
|
+
|
11
|
+
script_defaults:
|
12
|
+
template_environment_variables: true
|
13
|
+
|
14
|
+
task_defaults:
|
15
|
+
environment_variables:
|
16
|
+
ACTIVESUPPORT: '6'
|
17
|
+
RUBY: 'ruby-2.6.3'
|
18
|
+
|
19
|
+
max_trials: 2
|
20
|
+
dispatch_storm_delay_duration: 1 Seconds
|
21
|
+
include:
|
22
|
+
- cider-ci/task_components/ruby.yml
|
23
|
+
- cider-ci/task_components/bundle.yml
|
24
|
+
- cider-ci/task_components/rspec.yml
|
25
|
+
|
26
|
+
tasks:
|
27
|
+
all-rspec:
|
28
|
+
name: All rspec tests, using ActiveSupport v6
|
data/cider-ci/jobs/rubocop.yml
CHANGED
@@ -18,13 +18,12 @@ scripts:
|
|
18
18
|
set -eux
|
19
19
|
mkdir -p tmp/cache
|
20
20
|
export PATH=~/.rubies/$RUBY/bin:$PATH
|
21
|
-
bundle exec rspec
|
22
|
-
|
21
|
+
if [ ! -z ${ACTIVESUPPORT:-} ]; then BUNDLE_GEMFILE=Gemfile.activesupport$ACTIVESUPPORT bundle $BUNDLER exec rspec; else bundle exec rspec; fi
|
22
|
+
|
23
23
|
start_when:
|
24
24
|
'bundled':
|
25
25
|
script_key: bundle
|
26
26
|
|
27
|
-
|
28
27
|
trial_attachments:
|
29
28
|
logs:
|
30
29
|
include_match: log\/.*\.log$
|
data/lhc.gemspec
CHANGED
@@ -11,7 +11,12 @@ module LHC
|
|
11
11
|
included do
|
12
12
|
Typhoeus::Config.user_agent = begin
|
13
13
|
version = LHC::VERSION
|
14
|
-
application =
|
14
|
+
application = nil
|
15
|
+
if defined?(Rails)
|
16
|
+
app_class = Rails.application.class
|
17
|
+
application = (ActiveSupport.gem_version >= Gem::Version.new('6.0.0.rc2')) ? app_class.module_parent_name : app_class.parent_name
|
18
|
+
end
|
19
|
+
|
15
20
|
"LHC (#{[version, application].compact.join('; ')}) [https://github.com/local-ch/lhc]"
|
16
21
|
end
|
17
22
|
end
|
data/lib/lhc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lhc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.5.
|
4
|
+
version: 10.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://github.com/local-ch/lhc/contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -193,6 +193,9 @@ files:
|
|
193
193
|
- ".rubocop.yml"
|
194
194
|
- ".ruby-version"
|
195
195
|
- Gemfile
|
196
|
+
- Gemfile.activesupport4
|
197
|
+
- Gemfile.activesupport5
|
198
|
+
- Gemfile.activesupport6
|
196
199
|
- LICENSE
|
197
200
|
- README.md
|
198
201
|
- Rakefile
|
@@ -200,7 +203,9 @@ files:
|
|
200
203
|
- cider-ci/bin/bundle
|
201
204
|
- cider-ci/bin/ruby_install
|
202
205
|
- cider-ci/bin/ruby_version
|
203
|
-
- cider-ci/jobs/rspec.yml
|
206
|
+
- cider-ci/jobs/rspec-activesupport-4.yml
|
207
|
+
- cider-ci/jobs/rspec-activesupport-5.yml
|
208
|
+
- cider-ci/jobs/rspec-activesupport-6.yml
|
204
209
|
- cider-ci/jobs/rubocop.yml
|
205
210
|
- cider-ci/task_components/bundle.yml
|
206
211
|
- cider-ci/task_components/rspec.yml
|
@@ -382,7 +387,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
382
387
|
requirements:
|
383
388
|
- - ">="
|
384
389
|
- !ruby/object:Gem::Version
|
385
|
-
version:
|
390
|
+
version: '0'
|
386
391
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
387
392
|
requirements:
|
388
393
|
- - ">="
|
@@ -391,7 +396,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
391
396
|
requirements:
|
392
397
|
- Ruby >= 2.0.0
|
393
398
|
rubyforge_project:
|
394
|
-
rubygems_version: 2.
|
399
|
+
rubygems_version: 2.6.14
|
395
400
|
signing_key:
|
396
401
|
specification_version: 4
|
397
402
|
summary: Advanced HTTP Client for Ruby, fueled with interceptors
|