lhc 10.5.1 → 10.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: b0317c2927977e904543c2d6f64b70324e6b94634ffce6ff1752cbaddd2acf2a
4
- data.tar.gz: 19883b07caef846a43108601e931102348933abc4191af2c506d60496b86ec2e
2
+ SHA1:
3
+ metadata.gz: 1ceecd53d94051855df66cfa2733ac9afda9b6b4
4
+ data.tar.gz: fbb5373333e5a18c287c1846b3bf0ad5b913e269
5
5
  SHA512:
6
- metadata.gz: 6668ebf6f02d6cd4b9e49ff9f5fd22985dff77f7ae451b2062c1a65b93f32c1f8e3efabc981c0ce98b183e4f8435a8330dd274452cb5807444ce9da432e05377
7
- data.tar.gz: ba098ab293a43a2035e79af76630d5a0fb5c867e73f5f0da7886fac697feeda98eed0c838bb8a3c72a83e577324f0e7b668f7dfb18b4b16bb0da5bd0d34cb27c
6
+ metadata.gz: 829385685260241d20874839ca0a32d8ad05f5870a7a9e6a509882833bc86af8d02d6addd1b837acf0b31456e29a65e4267d9110ddbb2f1fc6e6c76536ddf146
7
+ data.tar.gz: 63bc036627030c330e0a1ea811ea8296ce1cdf64b0ea499d761e29e0c5cae7b853d7484d501116bed38b901d81d7e25b504a61b7d5254ff079e742e79bb062e8
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org/'
2
+
3
+ gemspec
4
+ gem 'activesupport', '~> 4.2.11'
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org/'
2
+
3
+ gemspec
4
+ gem 'activesupport', '~> 5.0.0'
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org/'
2
+
3
+ gemspec
4
+ gem 'activesupport', '~> 6.0.0.rc2'
@@ -1,4 +1,6 @@
1
1
  jobs:
2
2
  include:
3
+ - cider-ci/jobs/rspec-activesupport-4.yml
4
+ - cider-ci/jobs/rspec-activesupport-5.yml
5
+ - cider-ci/jobs/rspec-activesupport-6.yml
3
6
  - cider-ci/jobs/rubocop.yml
4
- - cider-ci/jobs/rspec.yml
@@ -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
- bundle install
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
@@ -11,8 +11,8 @@ rubocop:
11
11
  tasks:
12
12
 
13
13
  rubocop:
14
-
15
- include:
14
+
15
+ include:
16
16
  - cider-ci/task_components/ruby.yml
17
17
  - cider-ci/task_components/bundle.yml
18
18
  - cider-ci/task_components/rubocop.yml
@@ -7,6 +7,9 @@ trial_attachments:
7
7
  include_match: Gemfile
8
8
  content_type: text/plain
9
9
 
10
+ environment_variables:
11
+ BUNDLER: '_1.17.3_'
12
+
10
13
  scripts:
11
14
 
12
15
  bundle:
@@ -16,3 +19,4 @@ scripts:
16
19
  start_when:
17
20
  'ruby installed':
18
21
  script_key: ruby-install
22
+
@@ -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$
@@ -20,7 +20,6 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ['lib']
21
21
 
22
22
  s.requirements << 'Ruby >= 2.0.0'
23
- s.required_ruby_version = '>= 2.3.0'
24
23
 
25
24
  s.add_dependency 'activesupport', '>= 4.2'
26
25
  s.add_dependency 'addressable'
@@ -11,7 +11,12 @@ module LHC
11
11
  included do
12
12
  Typhoeus::Config.user_agent = begin
13
13
  version = LHC::VERSION
14
- application = defined?(Rails) ? Rails.application.class.parent_name : nil
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LHC
4
- VERSION ||= '10.5.1'
4
+ VERSION ||= '10.5.2'
5
5
  end
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.1
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-14 00:00:00.000000000 Z
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: 2.3.0
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.7.8
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