apiaryio 0.11.1 → 0.15.0

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
- SHA1:
3
- metadata.gz: 1417d99a9e588c993ef580607fcc2025e0d61c70
4
- data.tar.gz: 1985f7eef3dab74baaeadf733a12d2292c0727c4
2
+ SHA256:
3
+ metadata.gz: 9d82d5213c6cf1b9ec2f14c30c6668d0477de794338df8387087805bbe1fa966
4
+ data.tar.gz: f3302452ee5dea3f53b70cfba39d94aab3eb99ae2c554c7e822ec7f6351e6e8c
5
5
  SHA512:
6
- metadata.gz: 11fa8c0d486ee15f901a63940578954090bd68bf2fe7357acc26f68d43b767929f62bfe9d605abfde97e608dc1a380912eae6b7081ef2d9c02e5aff28bc89897
7
- data.tar.gz: 6337d8bf20fc985c68d5c73725d15a88053463135c5db62d38176090026eb04b810b84574730de8cdf244aa364f48693ac37fa8ee39c9b6a9b7cd59a109c338f
6
+ metadata.gz: ad32626008932bf5e4b756d226e2cb393960de6972a41b320fa587374d54859091886732a0dfddb5d1b55a82c50b5c139d8f54b53a124c17fc298aaf888afc19
7
+ data.tar.gz: 995a9747c582fba4207bbd18b48319d9fc12a25973fc55b39daadbc04be364b1f893b40e496013ed4d4ab4328e870dc5924b7cb9f4b85a1d643956207c9f0c37
@@ -0,0 +1,52 @@
1
+ version: 2
2
+ workflows:
3
+ version: 2
4
+ test:
5
+ jobs:
6
+ - test-2.4
7
+ - test-2.5
8
+ - test-2.6
9
+ - test-2.7
10
+ - test-3.0
11
+ jobs:
12
+ test-2.4: &test-template
13
+ docker:
14
+ - image: circleci/ruby:2.4-browsers
15
+ steps:
16
+ - checkout
17
+ - run:
18
+ name: Install bundler
19
+ command: |
20
+ gem install bundler
21
+ - run:
22
+ name: Install deps
23
+ command: |
24
+ bundle install
25
+ - run:
26
+ name: Run rubocop
27
+ command: |
28
+ bundle exec rubocop --config .rubocop_todo.yml
29
+ - run:
30
+ name: Run rspec
31
+ command: |
32
+ bundle exec rspec spec
33
+ - run:
34
+ name: Run cucumber
35
+ command: |
36
+ bundle exec cucumber
37
+ test-2.5:
38
+ <<: *test-template
39
+ docker:
40
+ - image: circleci/ruby:2.5-browsers
41
+ test-2.6:
42
+ <<: *test-template
43
+ docker:
44
+ - image: circleci/ruby:2.6-browsers
45
+ test-2.7:
46
+ <<: *test-template
47
+ docker:
48
+ - image: circleci/ruby:2.7-browsers
49
+ test-3.0:
50
+ <<: *test-template
51
+ docker:
52
+ - image: circleci/ruby:3.0-browsers
@@ -0,0 +1,24 @@
1
+ name: release
2
+ on:
3
+ push:
4
+ tags: [v*]
5
+ jobs:
6
+ docker:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: Checkout
10
+ uses: actions/checkout@v2
11
+ - name: Login to docker
12
+ uses: azure/docker-login@v1
13
+ with:
14
+ username: ${{ secrets.DOCKER_USERNAME }}
15
+ password: ${{ secrets.DOCKER_PASSWORD }}
16
+ - name: Get the version
17
+ id: version
18
+ run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
19
+ - name: Docker Build and Release
20
+ run: |
21
+ docker build . -t apiaryio/client
22
+ docker tag apiaryio/client apiaryio/client:${{ steps.version.outputs.VERSION }}
23
+ docker push apiaryio/client
24
+ docker push apiaryio/client:${{ steps.version.outputs.VERSION }}
@@ -0,0 +1,29 @@
1
+ name: test
2
+ on:
3
+ push:
4
+ branches: [master]
5
+ pull_request:
6
+ branches: [master]
7
+ types: [opened, reopened, synchronize]
8
+ jobs:
9
+ test:
10
+ runs-on: ${{ matrix.os }}
11
+ strategy:
12
+ matrix:
13
+ os: ["windows-latest", "ubuntu-latest"]
14
+ ruby: ["3.0.x", "2.7.x", "2.6.x", "2.5.x"]
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - name: Set up Ruby
18
+ uses: actions/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby }}
21
+ - name: Set up Bundler
22
+ run: gem install bundler --no-document
23
+ - name: Install dependencies
24
+ run: bundle install
25
+ - name: Run test
26
+ run: bundle exec rspec spec
27
+ - name: Run cucumber tests
28
+ if: matrix.os != 'windows-latest'
29
+ run: bundle exec cucumber
data/.gitignore CHANGED
@@ -9,6 +9,7 @@
9
9
  /test/version_tmp/
10
10
  /tmp/
11
11
  /vendor
12
+ pmip.rb
12
13
 
13
14
  ## Specific to RubyMotion:
14
15
  .dat*
@@ -36,3 +37,11 @@ Gemfile.lock
36
37
 
37
38
  # testing
38
39
  spec/fixtures/test.html
40
+ rules.json
41
+ functions.js
42
+
43
+ # idea ide
44
+ /.idea
45
+
46
+ # netbeans IDE
47
+ /nbproject
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ ## 0.15.0
4
+ * fix: change domain from docs.<subdomain>.apiary.io to <subdomain>.docs.apiary.io
5
+ * fix(security): [CVE-2020-10663](https://www.ruby-lang.org/en/news/2020/03/19/json-dos-cve-2020-10663/) and [CVE-2020-8184](https://nvd.nist.gov/vuln/detail/CVE-2020-8184)
6
+ ## 0.14.1
7
+ * fix: [update rack to 2.1.4](https://github.com/advisories/GHSA-j6w9-fv6q-3q52)
8
+
9
+ ## 0.14.0
10
+
11
+ ### Breaking
12
+ * Remove support for ruby 2.3
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM coopermaa/alpine-ruby:2.2
1
+ FROM ruby:2.4-alpine
2
2
  RUN apk add --update build-base && rm /var/cache/apk/*
3
3
  RUN gem install apiaryio
4
4
  ENTRYPOINT ["apiary"]
data/README.md CHANGED
@@ -8,12 +8,12 @@ Apiary CLI Client
8
8
  ## Description
9
9
 
10
10
  The Apiary CLI Client gem is a command line tool for developing and previewing
11
- [API Blueprint](http://apiblueprint.org) documents locally. It can also be
11
+ [API Blueprint](https://apiblueprint.org) documents locally. It can also be
12
12
  used for pushing updated documents to and fetching existing documents from
13
- [Apiary](http://apiary.io).
13
+ [Apiary](https://apiary.io).
14
14
 
15
15
 
16
- Please see the `apiary help` command and the [full documentation](http://client.apiary.io) for an in-depth look in how to use this tool.
16
+ Please see the `apiary help` command and the [full documentation](https://client.apiary.io) for an in-depth look in how to use this tool.
17
17
 
18
18
  For instructions on making your own changes, see [Hacking Apiary CLI Client](#hacking-apiary-cli-client), below.
19
19
 
@@ -45,7 +45,7 @@ docker build -t "apiaryio/client" .
45
45
  *Required only for publish and fetch commands.*
46
46
 
47
47
 
48
- 1. Make sure you are a registered user of [Apiary](http://apiary.io).
48
+ 1. Make sure you are a registered user of [Apiary](https://apiary.io).
49
49
  2. Retrieve API key (token) on [this page](https://login.apiary.io/tokens).
50
50
  3. Export it as an environment variable:
51
51
 
@@ -57,10 +57,10 @@ export APIARY_API_KEY=<your_token>
57
57
  ```
58
58
  $ apiary help
59
59
  Commands:
60
- apiary fetch --api-name=API_NAME # Fetch API Description Document from API_NAME.apiary.io
60
+ apiary fetch --api-name=API_NAME # Fetch API Description Document from API_NAME.docs.apiary.io
61
61
  apiary help [COMMAND] # Describe available commands or one specific command
62
62
  apiary preview # Show API documentation in browser or write it to file
63
- apiary publish --api-name=API_NAME # Publish API Description Document on docs.API_NAME.apiary.io (API Description must exist on apiary.io)
63
+ apiary publish --api-name=API_NAME # Publish API Description Document on API_NAME.docs.apiary.io (API Description must exist on apiary.io)
64
64
  apiary styleguide # Check API Description Document against styleguide rules (Apiary.io pro plan is required - https://apiary.io/plans )
65
65
  apiary version # Show version
66
66
 
@@ -79,7 +79,7 @@ Options:
79
79
  --api-name=API_NAME
80
80
  [--output=FILE] # Write API Description Document into specified file
81
81
 
82
- Fetch API Description Document from API_NAME.apiary.io
82
+ Fetch API Description Document from API_NAME.docs.apiary.io
83
83
  ```
84
84
 
85
85
  #### preview
@@ -117,7 +117,7 @@ Options:
117
117
  # Default: true
118
118
  --api-name=API_NAME
119
119
 
120
- Publish API Description Document on docs.API_NAME.apiary.io (API Description must exist on apiary.io)
120
+ Publish API Description Document on API_NAME.docs.apiary.io (API Description must exist on apiary.io)
121
121
  ```
122
122
 
123
123
  #### styleguide
@@ -192,9 +192,14 @@ Use `bundle install` to install your changes locally, for manual and ad-hock tes
192
192
 
193
193
  Only gem owners `gem owner apiaryio` can publish new gem into [RubyGems](https://rubygems.org/gems/apiaryio).
194
194
 
195
- ```sh
196
- $ rake release
197
- ```
195
+ 1. bump version in `lib/apiary/version.rb`
196
+ 2. update `CHANGELOG.md`
197
+ 3. prepare Github Release with text in `CHANGELOG`
198
+ 4. make gem release:
199
+
200
+ ```sh
201
+ $ rake release
202
+ ```
198
203
 
199
204
 
200
205
  ## License
data/apiary.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'apiary/version'
6
6
 
7
7
  Gem::Specification.new do |gem|
8
- gem.required_ruby_version = '>= 2.2.0'
8
+ gem.required_ruby_version = '>= 2.3.0'
9
9
 
10
10
  gem.name = 'apiaryio'
11
11
  gem.version = Apiary::VERSION
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
 
15
15
  gem.description = 'Apiary.io CLI'
16
16
  gem.summary = 'Apiary.io CLI'
17
- gem.homepage = 'http://apiary.io'
17
+ gem.homepage = 'https://apiary.io'
18
18
  gem.license = 'MIT'
19
19
 
20
20
  gem.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
@@ -24,14 +24,14 @@ Gem::Specification.new do |gem|
24
24
  gem.require_paths = ['lib']
25
25
 
26
26
  gem.add_runtime_dependency 'rest-client', '~> 2.0'
27
- gem.add_runtime_dependency 'rack', '~> 2.0.0'
28
- gem.add_runtime_dependency 'thor', '~> 0.19.1'
29
- gem.add_runtime_dependency 'json', '~> 1.8'
27
+ gem.add_runtime_dependency 'rack', '>= 2.2.3'
28
+ gem.add_runtime_dependency 'thor', '~> 0.20.3'
29
+ gem.add_runtime_dependency 'json', '>= 2.3.0'
30
30
  gem.add_runtime_dependency 'launchy', '~> 2.4'
31
- gem.add_runtime_dependency 'listen', '~> 2.0'
31
+ gem.add_runtime_dependency 'listen', '~> 3.0'
32
32
 
33
- gem.add_development_dependency 'bundler', '~> 1.12'
34
- gem.add_development_dependency 'rake', '~> 10.0'
33
+ gem.add_development_dependency 'bundler', '~> 2.0'
34
+ gem.add_development_dependency 'rake', '>= 12.3.3'
35
35
  gem.add_development_dependency 'rspec', '~> 3.4'
36
36
  gem.add_development_dependency 'webmock', '>= 2.2.0'
37
37
  gem.add_development_dependency 'aruba', '~> 0.14'
@@ -1,8 +1,8 @@
1
- Feature: Publish apiary.apib on docs.API_NAME.apiary.io
1
+ Feature: Publish apiary.apib on API_NAME.docs.apiary.io
2
2
 
3
3
  # This is integration testing you have to set APIARY_API_KEY
4
4
  @needs_apiary_api_key
5
- Scenario: Publish apiary.apib on docs.API_NAME.apiary.io
5
+ Scenario: Publish apiary.apib on API_NAME.docs.apiary.io
6
6
 
7
7
  # expected to fail
8
8
  When I run `apiary publish --path=apiary.apib --api-name 1111apiaryclienttest`
@@ -1,4 +1,4 @@
1
- Feature: Styleguide apiary.apib on docs.API_NAME.apiary.io
1
+ Feature: Styleguide apiary.apib on API_NAME.docs.apiary.io
2
2
 
3
3
  # This is integration testing you have to set APIARY_API_KEY
4
4
  @needs_apiary_api_key
data/lib/apiary/cli.rb CHANGED
@@ -8,7 +8,7 @@ require 'apiary/command/styleguide'
8
8
 
9
9
  module Apiary
10
10
  class CLI < Thor
11
- desc 'fetch', 'Fetch API Description Document from API_NAME.apiary.io'
11
+ desc 'fetch', 'Fetch API Description Document from API_NAME.docs.apiary.io'
12
12
  method_option :api_name, type: :string, required: true
13
13
  method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host', hide: true
14
14
  method_option :output, type: :string, banner: 'FILE', desc: 'Write API Description Document into specified file'
@@ -34,7 +34,7 @@ module Apiary
34
34
  cmd.execute
35
35
  end
36
36
 
37
- desc 'publish', 'Publish API Description Document on docs.API_NAME.apiary.io (API Description must exist on apiary.io)'
37
+ desc 'publish', 'Publish API Description Document on API_NAME.docs.apiary.io (API Description must exist on apiary.io)'
38
38
  method_option :message, type: :string, banner: 'COMMIT_MESSAGE', desc: 'Publish with custom commit message'
39
39
  method_option :path, type: :string, desc: 'Specify path to API Description Document. When given a directory, it will look for `apiary.apib` and `swagger.yaml` file'
40
40
  method_option :json, type: :boolean, desc: 'Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing'
@@ -32,7 +32,7 @@ module Apiary::Command
32
32
 
33
33
  def fetch_from_apiary
34
34
  unless @options.api_name
35
- abort 'Please provide an api-name option (subdomain part from your http://docs.<api-name>.apiary.io/)'
35
+ abort 'Please provide an api-name option (subdomain part from your https://<api-name>.docs.apiary.io/)'
36
36
  end
37
37
 
38
38
  unless @options.api_key
@@ -42,7 +42,7 @@ module Apiary::Command
42
42
 
43
43
  def publish_on_apiary
44
44
  unless @options.api_name
45
- abort 'Please provide an api-name option (subdomain part from your http://docs.<api-name>.apiary.io/)'
45
+ abort 'Please provide an api-name option (subdomain part from your https://<api-name>.docs.apiary.io/)'
46
46
  end
47
47
 
48
48
  unless @options.api_key
@@ -58,11 +58,8 @@ module Apiary::Command
58
58
 
59
59
  return if source.nil?
60
60
 
61
- begin
62
- JSON.parse(source)
63
- abort('Did you forget the --json flag?') unless @options.json
64
- rescue; end
65
61
  source = convert_from_json(source) if @options.json
62
+
66
63
  data = {
67
64
  code: source,
68
65
  messageToSave: @options.message,
@@ -22,7 +22,7 @@ module Apiary::Command
22
22
  @options.api_key ||= ENV['APIARY_API_KEY']
23
23
  @options.proxy ||= ENV['http_proxy']
24
24
  @options.api_host ||= 'api.apiary.io'
25
- @options.vk_url ||= 'https://voight-kampff-aws.apiary-services.com/production/validate'
25
+ @options.vk_url ||= 'https://voight-kampff.apiary-services.com'
26
26
  @options.headers ||= {
27
27
  content_type: :json,
28
28
  accept: :json,
@@ -1,3 +1,3 @@
1
1
  module Apiary
2
- VERSION = '0.11.1'.freeze
2
+ VERSION = '0.15.0'.freeze
3
3
  end
@@ -4,7 +4,7 @@ describe Apiary::Command::Fetch do
4
4
  it 'pass command without params' do
5
5
  opts = {}
6
6
  command = Apiary::Command::Fetch.new(opts)
7
- expect { command.fetch_from_apiary }.to raise_error('Please provide an api-name option (subdomain part from your http://docs.<api-name>.apiary.io/)')
7
+ expect { command.fetch_from_apiary }.to raise_error('Please provide an api-name option (subdomain part from your https://<api-name>.docs.apiary.io/)')
8
8
  end
9
9
 
10
10
  it 'pass command only with api_name', api_key: true do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiaryio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apiary Ltd.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-19 00:00:00.000000000 Z
11
+ date: 2021-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -28,44 +28,44 @@ dependencies:
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.0.0
33
+ version: 2.2.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 2.0.0
40
+ version: 2.2.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thor
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.19.1
47
+ version: 0.20.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.19.1
54
+ version: 0.20.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: json
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.8'
61
+ version: 2.3.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.8'
68
+ version: 2.3.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: launchy
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,42 +86,42 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2.0'
89
+ version: '3.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '2.0'
96
+ version: '3.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.12'
103
+ version: '2.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.12'
110
+ version: '2.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '10.0'
117
+ version: 12.3.3
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '10.0'
124
+ version: 12.3.3
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -200,19 +200,20 @@ executables:
200
200
  extensions: []
201
201
  extra_rdoc_files: []
202
202
  files:
203
+ - ".circleci/config.yml"
204
+ - ".github/workflows/release.yml"
205
+ - ".github/workflows/test.yml"
203
206
  - ".gitignore"
204
207
  - ".rspec"
205
208
  - ".rubocop_todo.yml"
206
- - ".travis.yml"
209
+ - CHANGELOG.md
207
210
  - Dockerfile
208
211
  - Gemfile
209
212
  - LICENSE
210
213
  - README.md
211
214
  - Rakefile
212
215
  - apiary.gemspec
213
- - appveyor.yml
214
216
  - bin/apiary
215
- - circle.yml
216
217
  - features/fetch.feature
217
218
  - features/preview.feature
218
219
  - features/publish.feature
@@ -255,11 +256,11 @@ files:
255
256
  - spec/spec_helper.rb
256
257
  - spec/support/aruba.rb
257
258
  - spec/support/webmock.rb
258
- homepage: http://apiary.io
259
+ homepage: https://apiary.io
259
260
  licenses:
260
261
  - MIT
261
262
  metadata: {}
262
- post_install_message:
263
+ post_install_message:
263
264
  rdoc_options: []
264
265
  require_paths:
265
266
  - lib
@@ -267,16 +268,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
267
268
  requirements:
268
269
  - - ">="
269
270
  - !ruby/object:Gem::Version
270
- version: 2.2.0
271
+ version: 2.3.0
271
272
  required_rubygems_version: !ruby/object:Gem::Requirement
272
273
  requirements:
273
274
  - - ">="
274
275
  - !ruby/object:Gem::Version
275
276
  version: '0'
276
277
  requirements: []
277
- rubyforge_project:
278
- rubygems_version: 2.4.8
279
- signing_key:
278
+ rubygems_version: 3.0.3
279
+ signing_key:
280
280
  specification_version: 4
281
281
  summary: Apiary.io CLI
282
282
  test_files:
data/.travis.yml DELETED
@@ -1,19 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- rvm:
4
- - "ruby-2.2.2"
5
- - "ruby-2.3.1"
6
- - "ruby-2.4.0"
7
- - "ruby-2.5.0"
8
- - "jruby-9.0.0.0"
9
-
10
- matrix:
11
- allow_failures:
12
- - rvm: rbx-2
13
- cache: bundler
14
- before_install:
15
- - gem update --system
16
- - gem update bundler
17
- script:
18
- - bundle exec rspec spec
19
- - bundle exec cucumber
data/appveyor.yml DELETED
@@ -1,32 +0,0 @@
1
- ---
2
- version: "{branch}-{build}"
3
-
4
- clone_depth: 10
5
-
6
- build: off
7
-
8
- install:
9
- - set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
10
- - gem install bundler -f
11
- - bundle config --local path vendor/bundle
12
- - bundle install
13
-
14
- before_test:
15
- - ruby --version
16
- - gem --version
17
- - bundler --version
18
-
19
- test_script:
20
- - bundle exec rspec spec
21
-
22
- artifacts:
23
- - path: pkg\*.gem
24
-
25
- cache:
26
- - vendor/bundle
27
-
28
- environment:
29
- matrix:
30
- - ruby_version: 22
31
- - ruby_version: 23
32
- - ruby_version: 24
data/circle.yml DELETED
@@ -1,16 +0,0 @@
1
- machine:
2
- environment:
3
- RUBY_VERSIONS: 2.2.2,2.3.1,2.4.0,2.5.0
4
-
5
- dependencies:
6
- override:
7
- - rvm get head
8
- - rvm install $RUBY_VERSIONS
9
- - rvm $RUBY_VERSIONS --verbose do gem install bundler
10
- - rvm $RUBY_VERSIONS --verbose do bundle install
11
-
12
- test:
13
- override:
14
- - rvm $RUBY_VERSIONS --verbose do bundle exec rubocop --config .rubocop_todo.yml
15
- - rvm $RUBY_VERSIONS --verbose do bundle exec rspec spec
16
- - rvm $RUBY_VERSIONS --verbose do bundle exec cucumber