iri 0.5.1 → 0.6.0
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/.gitattributes +7 -0
- data/.github/workflows/codecov.yml +20 -0
- data/.github/workflows/rake.yml +24 -0
- data/.rubocop.yml +2 -0
- data/.rultor.yml +5 -8
- data/Gemfile +8 -2
- data/LICENSE.txt +1 -1
- data/README.md +2 -3
- data/Rakefile +10 -2
- data/iri.gemspec +4 -14
- data/lib/iri.rb +2 -2
- data/renovate.json +6 -0
- data/test/test__helper.rb +2 -6
- data/test/test_iri.rb +2 -2
- metadata +12 -95
- data/.travis.yml +0 -15
- data/appveyor.yml +0 -36
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce27b75cc4402cfb28991f6f061b2191e298dde147d77bf6b5c6215b96d1cc83
|
|
4
|
+
data.tar.gz: 2f01f12f02dbdc96f7923c2a1c2d0ea18ccf9d7c3ae44c001626fc16d96b60c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38bc3965b37e014551e3048ec24736d3c56f2810e2b2cc32c50ef199ea19ff96e8396fdc9299a1c5d0aaa360901e5f7fdc37844f43800eddc04513cbe80f4e1f
|
|
7
|
+
data.tar.gz: e6bdbddd987e10546f8c05939b68dc85ca79961da4deed79fb73eabf00b35b0dfae0ce1324491ae1c01c61bcdaefdd1abd765c3a666572b7581e7d65e9e1998f
|
data/.gitattributes
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: codecov
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
jobs:
|
|
8
|
+
codecov:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v3
|
|
12
|
+
- uses: ruby/setup-ruby@v1
|
|
13
|
+
with:
|
|
14
|
+
ruby-version: 2.7
|
|
15
|
+
- run: bundle update
|
|
16
|
+
- run: bundle exec rake
|
|
17
|
+
- uses: codecov/codecov-action@v3
|
|
18
|
+
with:
|
|
19
|
+
file: coverage/.resultset.json
|
|
20
|
+
fail_ci_if_error: true
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rake
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- master
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
name: test
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
os: [ubuntu-20.04, macos-12, windows-2022]
|
|
16
|
+
ruby: [2.7, 3.1]
|
|
17
|
+
runs-on: ${{ matrix.os }}
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v3
|
|
20
|
+
- uses: ruby/setup-ruby@v1
|
|
21
|
+
with:
|
|
22
|
+
ruby-version: ${{ matrix.ruby }}
|
|
23
|
+
- run: bundle update
|
|
24
|
+
- run: bundle exec rake
|
data/.rubocop.yml
CHANGED
data/.rultor.yml
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
docker:
|
|
2
|
+
image: yegor256/rultor-image:1.20.0
|
|
1
3
|
assets:
|
|
2
4
|
rubygems.yml: yegor256/home#assets/rubygems.yml
|
|
3
5
|
install: |-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
bundle install
|
|
6
|
+
pdd -f /dev/null
|
|
7
|
+
sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"
|
|
7
8
|
release:
|
|
8
9
|
script: |-
|
|
10
|
+
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
|
|
9
11
|
bundle exec rake
|
|
10
12
|
rm -rf *.gem
|
|
11
13
|
sed -i "s/0\.0\.0/${tag}/g" iri.gemspec
|
|
@@ -17,8 +19,3 @@ release:
|
|
|
17
19
|
merge:
|
|
18
20
|
script: |-
|
|
19
21
|
bundle exec rake
|
|
20
|
-
deploy:
|
|
21
|
-
script: |-
|
|
22
|
-
echo Nothing to deploy
|
|
23
|
-
exit 1
|
|
24
|
-
|
data/Gemfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2019-
|
|
3
|
+
# Copyright (c) 2019-2023 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -21,5 +21,11 @@
|
|
|
21
21
|
# SOFTWARE.
|
|
22
22
|
|
|
23
23
|
source 'https://rubygems.org'
|
|
24
|
-
ruby '~>2.2'
|
|
25
24
|
gemspec
|
|
25
|
+
|
|
26
|
+
gem 'minitest', '5.18.0', require: false
|
|
27
|
+
gem 'rake', '13.0.6', require: false
|
|
28
|
+
gem 'rdoc', '6.5.0', require: false
|
|
29
|
+
gem 'rubocop', '1.52.0', require: false
|
|
30
|
+
gem 'rubocop-rspec', '2.22.0', require: false
|
|
31
|
+
gem 'simplecov', '0.22.0', require: false
|
data/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2019-
|
|
3
|
+
Copyright (c) 2019-2023 Yegor Bugayenko
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
|
@@ -4,14 +4,13 @@
|
|
|
4
4
|
[](http://www.rultor.com/p/yegor256/iri)
|
|
5
5
|
[](https://www.jetbrains.com/ruby/)
|
|
6
6
|
|
|
7
|
-
[](https://ci.appveyor.com/project/yegor256/iri)
|
|
7
|
+
[](https://github.com/yegor256/iri/actions/workflows/rake.yml)
|
|
9
8
|
[](http://badge.fury.io/rb/iri)
|
|
10
9
|
[](https://codeclimate.com/github/yegor256/iri/maintainability)
|
|
11
10
|
[](http://rubydoc.info/github/yegor256/iri/master/frames)
|
|
12
|
-
|
|
13
11
|
[](https://github.com/yegor256/iri/blob/master/LICENSE.txt)
|
|
14
12
|
[](https://codecov.io/github/yegor256/iri?branch=master)
|
|
13
|
+

|
|
15
14
|
[](https://hitsofcode.com/view/github/yegor256/iri)
|
|
16
15
|
|
|
17
16
|
The class [`Iri`](https://www.rubydoc.info/github/yegor256/iri/master/Iri)
|
data/Rakefile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2019-
|
|
3
|
+
# Copyright (c) 2019-2023 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -34,7 +34,7 @@ def version
|
|
|
34
34
|
Gem::Specification.load(Dir['*.gemspec'].first).version
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
task default: %i[clean test rubocop]
|
|
37
|
+
task default: %i[clean test rubocop copyright]
|
|
38
38
|
|
|
39
39
|
require 'rake/testtask'
|
|
40
40
|
Rake::TestTask.new do |test|
|
|
@@ -55,3 +55,11 @@ RuboCop::RakeTask.new do |task|
|
|
|
55
55
|
task.fail_on_error = true
|
|
56
56
|
task.requires << 'rubocop-rspec'
|
|
57
57
|
end
|
|
58
|
+
|
|
59
|
+
task :copyright do
|
|
60
|
+
sh "grep -q -r '#{Date.today.strftime('%Y')}' \
|
|
61
|
+
--include '*.rb' \
|
|
62
|
+
--include '*.txt' \
|
|
63
|
+
--include 'Rakefile' \
|
|
64
|
+
."
|
|
65
|
+
end
|
data/iri.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# (The MIT License)
|
|
4
4
|
#
|
|
5
|
-
# Copyright (c) 2019-
|
|
5
|
+
# Copyright (c) 2019-2023 Yegor Bugayenko
|
|
6
6
|
#
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
8
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -24,14 +24,10 @@
|
|
|
24
24
|
|
|
25
25
|
require 'English'
|
|
26
26
|
Gem::Specification.new do |s|
|
|
27
|
-
s.
|
|
28
|
-
if s.respond_to? :required_rubygems_version=
|
|
29
|
-
s.required_rubygems_version = Gem::Requirement.new('>= 0')
|
|
30
|
-
end
|
|
31
|
-
s.rubygems_version = '2.5'
|
|
27
|
+
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
|
32
28
|
s.required_ruby_version = '>=2.2'
|
|
33
29
|
s.name = 'iri'
|
|
34
|
-
s.version = '0.
|
|
30
|
+
s.version = '0.6.0'
|
|
35
31
|
s.license = 'MIT'
|
|
36
32
|
s.summary = 'Simple Immutable Ruby URI Builder'
|
|
37
33
|
s.description = 'Class Iri helps you build a URI and then modify its \
|
|
@@ -40,13 +36,7 @@ parts via a simple fluent interface.'
|
|
|
40
36
|
s.email = 'yegor256@gmail.com'
|
|
41
37
|
s.homepage = 'https://github.com/yegor256/iri'
|
|
42
38
|
s.files = `git ls-files`.split($RS)
|
|
43
|
-
s.test_files = s.files.grep(%r{^(test)/})
|
|
44
39
|
s.rdoc_options = ['--charset=UTF-8']
|
|
45
40
|
s.extra_rdoc_files = ['README.md']
|
|
46
|
-
s.
|
|
47
|
-
s.add_development_dependency 'minitest', '5.11.3'
|
|
48
|
-
s.add_development_dependency 'rake', '12.3.3'
|
|
49
|
-
s.add_development_dependency 'rdoc', '6.3.1'
|
|
50
|
-
s.add_development_dependency 'rubocop', '0.62.0'
|
|
51
|
-
s.add_development_dependency 'rubocop-rspec', '1.31.0'
|
|
41
|
+
s.metadata['rubygems_mfa_required'] = 'true'
|
|
52
42
|
end
|
data/lib/iri.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# (The MIT License)
|
|
4
4
|
#
|
|
5
|
-
# Copyright (c) 2019-
|
|
5
|
+
# Copyright (c) 2019-2023 Yegor Bugayenko
|
|
6
6
|
#
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
8
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -42,7 +42,7 @@ require 'cgi'
|
|
|
42
42
|
# {README}[https://github.com/yegor256/iri/blob/master/README.md] file.
|
|
43
43
|
#
|
|
44
44
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
|
45
|
-
# Copyright:: Copyright (c) 2019-
|
|
45
|
+
# Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
|
|
46
46
|
# License:: MIT
|
|
47
47
|
class Iri
|
|
48
48
|
# When URI is not valid.
|
data/renovate.json
ADDED
data/test/test__helper.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2019-
|
|
3
|
+
# Copyright (c) 2019-2023 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -20,11 +20,7 @@
|
|
|
20
20
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
# SOFTWARE.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
$stdout.sync = true
|
|
24
24
|
|
|
25
25
|
require 'simplecov'
|
|
26
26
|
SimpleCov.start
|
|
27
|
-
if ENV['CI'] == 'true'
|
|
28
|
-
require 'codecov'
|
|
29
|
-
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
|
30
|
-
end
|
data/test/test_iri.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# (The MIT License)
|
|
4
4
|
#
|
|
5
|
-
# Copyright (c) 2019-
|
|
5
|
+
# Copyright (c) 2019-2023 Yegor Bugayenko
|
|
6
6
|
#
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
8
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -27,7 +27,7 @@ require_relative '../lib/iri'
|
|
|
27
27
|
|
|
28
28
|
# Iri test.
|
|
29
29
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
|
30
|
-
# Copyright:: Copyright (c) 2019-
|
|
30
|
+
# Copyright:: Copyright (c) 2019-2023 Yegor Bugayenko
|
|
31
31
|
# License:: MIT
|
|
32
32
|
class IriTest < Minitest::Test
|
|
33
33
|
def test_builds_uri
|
metadata
CHANGED
|
@@ -1,99 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: iri
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yegor Bugayenko
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
-
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: codecov
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - '='
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.2.11
|
|
20
|
-
type: :development
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - '='
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.2.11
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: minitest
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - '='
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: 5.11.3
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - '='
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: 5.11.3
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: rake
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - '='
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: 12.3.3
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - '='
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: 12.3.3
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: rdoc
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - '='
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: 6.3.1
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - '='
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: 6.3.1
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rubocop
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - '='
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: 0.62.0
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - '='
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: 0.62.0
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: rubocop-rspec
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - '='
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: 1.31.0
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - '='
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: 1.31.0
|
|
11
|
+
date: 2023-06-04 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
97
13
|
description: |-
|
|
98
14
|
Class Iri helps you build a URI and then modify its \
|
|
99
15
|
parts via a simple fluent interface.
|
|
@@ -104,25 +20,28 @@ extra_rdoc_files:
|
|
|
104
20
|
- README.md
|
|
105
21
|
files:
|
|
106
22
|
- ".0pdd.yml"
|
|
23
|
+
- ".gitattributes"
|
|
24
|
+
- ".github/workflows/codecov.yml"
|
|
25
|
+
- ".github/workflows/rake.yml"
|
|
107
26
|
- ".gitignore"
|
|
108
27
|
- ".pdd"
|
|
109
28
|
- ".rubocop.yml"
|
|
110
29
|
- ".rultor.yml"
|
|
111
|
-
- ".travis.yml"
|
|
112
30
|
- Gemfile
|
|
113
31
|
- LICENSE.txt
|
|
114
32
|
- README.md
|
|
115
33
|
- Rakefile
|
|
116
|
-
- appveyor.yml
|
|
117
34
|
- iri.gemspec
|
|
118
35
|
- lib/iri.rb
|
|
119
36
|
- logo.svg
|
|
37
|
+
- renovate.json
|
|
120
38
|
- test/test__helper.rb
|
|
121
39
|
- test/test_iri.rb
|
|
122
40
|
homepage: https://github.com/yegor256/iri
|
|
123
41
|
licenses:
|
|
124
42
|
- MIT
|
|
125
|
-
metadata:
|
|
43
|
+
metadata:
|
|
44
|
+
rubygems_mfa_required: 'true'
|
|
126
45
|
post_install_message:
|
|
127
46
|
rdoc_options:
|
|
128
47
|
- "--charset=UTF-8"
|
|
@@ -139,10 +58,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
139
58
|
- !ruby/object:Gem::Version
|
|
140
59
|
version: '0'
|
|
141
60
|
requirements: []
|
|
142
|
-
rubygems_version: 3.
|
|
61
|
+
rubygems_version: 3.2.15
|
|
143
62
|
signing_key:
|
|
144
|
-
specification_version:
|
|
63
|
+
specification_version: 4
|
|
145
64
|
summary: Simple Immutable Ruby URI Builder
|
|
146
|
-
test_files:
|
|
147
|
-
- test/test__helper.rb
|
|
148
|
-
- test/test_iri.rb
|
|
65
|
+
test_files: []
|
data/.travis.yml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
rvm:
|
|
3
|
-
- 2.6.0
|
|
4
|
-
cache: bundler
|
|
5
|
-
branches:
|
|
6
|
-
only:
|
|
7
|
-
- master
|
|
8
|
-
install:
|
|
9
|
-
- travis_retry bundle update
|
|
10
|
-
- gem install pdd -v 0.20.5
|
|
11
|
-
script:
|
|
12
|
-
- pdd -f /dev/null
|
|
13
|
-
- bundle exec rake
|
|
14
|
-
after_success:
|
|
15
|
-
- "bash <(curl -s https://codecov.io/bash)"
|
data/appveyor.yml
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
version: '{build}'
|
|
2
|
-
skip_tags: true
|
|
3
|
-
clone_depth: 10
|
|
4
|
-
branches:
|
|
5
|
-
only:
|
|
6
|
-
- master
|
|
7
|
-
except:
|
|
8
|
-
- gh-pages
|
|
9
|
-
os: Windows Server 2012
|
|
10
|
-
environment:
|
|
11
|
-
matrix:
|
|
12
|
-
- ruby_version: "25-x64"
|
|
13
|
-
install:
|
|
14
|
-
- ps: |
|
|
15
|
-
$Env:PATH = "C:\Ruby${Env:ruby_version}\bin;${Env:PATH}"
|
|
16
|
-
if ($Env:ruby_version -match "^23" ) {
|
|
17
|
-
# RubyInstaller; download OpenSSL headers from OpenKnapsack Project
|
|
18
|
-
$Env:openssl_dir = "C:\Ruby${Env:ruby_version}"
|
|
19
|
-
appveyor DownloadFile http://dl.bintray.com/oneclick/OpenKnapsack/x64/openssl-1.0.2j-x64-windows.tar.lzma
|
|
20
|
-
7z e openssl-1.0.2j-x64-windows.tar.lzma
|
|
21
|
-
7z x -y -oC:\Ruby${Env:ruby_version} openssl-1.0.2j-x64-windows.tar
|
|
22
|
-
} else {
|
|
23
|
-
# RubyInstaller2; openssl package seems to be installed already
|
|
24
|
-
$Env:openssl_dir = "C:\msys64\mingw64"
|
|
25
|
-
}
|
|
26
|
-
- bundle config --local path vendor/bundle
|
|
27
|
-
- bundle config build.openssl --with-openssl-dir=%openssl_dir%
|
|
28
|
-
- ruby -v
|
|
29
|
-
- bundle -v
|
|
30
|
-
build_script:
|
|
31
|
-
- bundle update
|
|
32
|
-
- bundle install
|
|
33
|
-
test_script:
|
|
34
|
-
- bundle exec rake --quiet
|
|
35
|
-
cache:
|
|
36
|
-
- vendor/bundle
|