quicktravel_client 4.3.2 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/release.yml +59 -0
- data/.github/workflows/ruby.yml +19 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +3 -0
- data/README.md +23 -4
- data/gemfiles/{rails6.gemfile → rails60.gemfile} +0 -0
- data/gemfiles/rails61.gemfile +8 -0
- data/lib/quick_travel/version.rb +1 -1
- data/quicktravel_client.gemspec +2 -1
- metadata +10 -8
- data/.travis.yml +0 -16
- data/gemfiles/rails5.gemfile +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e129c681ca2ddcb9dd7e16bec7c20abf68d521e97772a014084eafff9012d59a
|
4
|
+
data.tar.gz: 4b2616b1833da92d728e068855ef45d079dee130917d069dc0392fca3c4cf29a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7583c89610fb8f7b5807446638dd0eac84773fc7007be819f6ef410121eca3a00bf6dba6db78373ea067804ae73fe39afa3951c15a9d9456ff7865167735367c
|
7
|
+
data.tar.gz: 5ca4f5155bf9130c355c9a11620af95914e84276d382eff6f80b97a28fa98000ec055afc18c0f35ebbee6d9bec5f0a9a8ea9d0148c8a708b15b7e59644f60a13
|
@@ -0,0 +1,59 @@
|
|
1
|
+
name: Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- "v*"
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
build:
|
10
|
+
name: Build
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- name: Checkout
|
14
|
+
uses: actions/checkout@v2
|
15
|
+
- uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
bundler-cache: true
|
18
|
+
- run: bundle exec rake
|
19
|
+
|
20
|
+
release:
|
21
|
+
needs: build
|
22
|
+
name: Release
|
23
|
+
runs-on: ubuntu-latest
|
24
|
+
steps:
|
25
|
+
- name: Checkout
|
26
|
+
uses: actions/checkout@v2
|
27
|
+
|
28
|
+
- name: Generate Changelog
|
29
|
+
run: |
|
30
|
+
# Get version from github ref (remove 'refs/tags/' and prefix 'v')
|
31
|
+
version="${GITHUB_REF#refs/tags/v}"
|
32
|
+
npx changelog-parser CHANGELOG.md | jq -cr ".versions | .[] | select(.version == \"$version\") | .body" > ${{ github.workflow }}-CHANGELOG.txt
|
33
|
+
|
34
|
+
- name: Release
|
35
|
+
uses: softprops/action-gh-release@v1
|
36
|
+
with:
|
37
|
+
body_path: ${{ github.workflow }}-CHANGELOG.txt
|
38
|
+
env:
|
39
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
40
|
+
|
41
|
+
publish:
|
42
|
+
needs: [build, release]
|
43
|
+
name: Publish
|
44
|
+
runs-on: ubuntu-latest
|
45
|
+
|
46
|
+
steps:
|
47
|
+
- uses: actions/checkout@v2
|
48
|
+
- uses: ruby/setup-ruby@v1
|
49
|
+
|
50
|
+
- name: Publish to RubyGems
|
51
|
+
run: |
|
52
|
+
mkdir -p $HOME/.gem
|
53
|
+
touch $HOME/.gem/credentials
|
54
|
+
chmod 0600 $HOME/.gem/credentials
|
55
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
56
|
+
gem build *.gemspec
|
57
|
+
gem push *.gem
|
58
|
+
env:
|
59
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
name: Build and Test
|
2
|
+
on: [push, pull_request]
|
3
|
+
jobs:
|
4
|
+
test:
|
5
|
+
strategy:
|
6
|
+
fail-fast: false
|
7
|
+
matrix:
|
8
|
+
gemfile: [rails60, rails61]
|
9
|
+
ruby: ["2.6", "2.7", "3.0"]
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
env:
|
12
|
+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: ${{ matrix.ruby }}
|
18
|
+
bundler-cache: true
|
19
|
+
- run: bundle exec rake
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.0
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
|
5
5
|
|
6
|
+
## 4.4.0
|
7
|
+
- [TT-8615] Update to build with github actions / ruby 3.0 / rails 6.1
|
8
|
+
|
6
9
|
## [4.3.2]
|
7
10
|
### Fixed
|
8
11
|
- [TT-8511] Revert party lookup via the API endpoint
|
data/README.md
CHANGED
@@ -1,10 +1,8 @@
|
|
1
|
-
QuickTravel
|
2
|
-
===========
|
1
|
+
# QuickTravel
|
3
2
|
|
4
3
|
[![Gem Version](https://badge.fury.io/rb/quicktravel_client.svg)](http://badge.fury.io/rb/quicktravel_client)
|
5
|
-
[![Build Status](https://
|
4
|
+
[![Build Status](https://github.com/sealink/quicktravel_client/workflows/Build%20and%20Test/badge.svg?branch=master)](https://github.com/sealink/quicktravel_client/actions)
|
6
5
|
[![Coverage Status](https://coveralls.io/repos/sealink/quicktravel_client/badge.svg)](https://coveralls.io/r/sealink/quicktravel_client)
|
7
|
-
[![Dependency Status](https://gemnasium.com/sealink/quicktravel_client.svg)](https://gemnasium.com/sealink/quicktravel_client)
|
8
6
|
[![Code Climate](https://codeclimate.com/github/sealink/quicktravel_client/badges/gpa.svg)](https://codeclimate.com/github/sealink/quicktravel_client)
|
9
7
|
|
10
8
|
# DESCRIPTION
|
@@ -14,17 +12,38 @@ Gives models that are integrated with the QuickTravel API
|
|
14
12
|
# INSTALLATION
|
15
13
|
|
16
14
|
Add to your Gemfile:
|
15
|
+
|
16
|
+
```
|
17
17
|
gem 'quicktravel_client'
|
18
|
+
```
|
18
19
|
|
19
20
|
# REGENERATE CASSETTES
|
20
21
|
|
21
22
|
In QuickTravel:
|
23
|
+
```
|
22
24
|
mysql quicktravel_test < ../quicktravel_test/bootstrap.sql
|
23
25
|
TIMECOP=1 WEBMOCK=0 QUICKTRAVEL_CONFIG_DIR=spec/support/config RAILS_ENV=test bundle exec rails s -p8080
|
26
|
+
```
|
24
27
|
|
25
28
|
In Payment Service: (if needing to generate checkout cassettes):
|
29
|
+
```
|
26
30
|
bundle exec puma -Ilib -p7000
|
31
|
+
```
|
27
32
|
|
28
33
|
In QuickTravel Client:
|
34
|
+
```
|
29
35
|
rm spec/support/cassettes/ -rf
|
30
36
|
QT_KEYS=a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2,1b0a9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d4c3b2a1f0e9d8c7b6a5f4e3d2c1b0a bundle exec rspec
|
37
|
+
```
|
38
|
+
|
39
|
+
# RELEASE
|
40
|
+
|
41
|
+
To publish a new version of this gem the following steps must be taken.
|
42
|
+
|
43
|
+
* Update the version in the following files
|
44
|
+
```
|
45
|
+
CHANGELOG.md
|
46
|
+
lib/quick_travel/version.rb
|
47
|
+
````
|
48
|
+
* Create a tag using the format v0.1.0
|
49
|
+
* Follow build progress in GitHub actions
|
File without changes
|
data/lib/quick_travel/version.rb
CHANGED
data/quicktravel_client.gemspec
CHANGED
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
17
|
spec.require_paths = ['lib']
|
18
|
+
spec.required_ruby_version = '>= 2.6'
|
18
19
|
|
19
20
|
spec.add_dependency 'httparty', '>= 0.18.1'
|
20
21
|
spec.add_dependency 'activesupport', '>= 5.0.0'
|
@@ -34,5 +35,5 @@ Gem::Specification.new do |spec|
|
|
34
35
|
spec.add_development_dependency 'vcr'
|
35
36
|
spec.add_development_dependency 'webmock'
|
36
37
|
spec.add_development_dependency 'rubocop'
|
37
|
-
spec.add_development_dependency '
|
38
|
+
spec.add_development_dependency 'pry'
|
38
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quicktravel_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Noack
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-01-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -251,7 +251,7 @@ dependencies:
|
|
251
251
|
- !ruby/object:Gem::Version
|
252
252
|
version: '0'
|
253
253
|
- !ruby/object:Gem::Dependency
|
254
|
-
name:
|
254
|
+
name: pry
|
255
255
|
requirement: !ruby/object:Gem::Requirement
|
256
256
|
requirements:
|
257
257
|
- - ">="
|
@@ -270,11 +270,13 @@ executables: []
|
|
270
270
|
extensions: []
|
271
271
|
extra_rdoc_files: []
|
272
272
|
files:
|
273
|
+
- ".github/dependabot.yml"
|
274
|
+
- ".github/workflows/release.yml"
|
275
|
+
- ".github/workflows/ruby.yml"
|
273
276
|
- ".gitignore"
|
274
277
|
- ".rspec"
|
275
278
|
- ".rubocop.yml"
|
276
279
|
- ".ruby-version"
|
277
|
-
- ".travis.yml"
|
278
280
|
- CHANGELOG.md
|
279
281
|
- Gemfile
|
280
282
|
- LICENSE
|
@@ -282,8 +284,8 @@ files:
|
|
282
284
|
- Rakefile
|
283
285
|
- examples/example_config.rb
|
284
286
|
- examples/login_example.rb
|
285
|
-
- gemfiles/
|
286
|
-
- gemfiles/
|
287
|
+
- gemfiles/rails60.gemfile
|
288
|
+
- gemfiles/rails61.gemfile
|
287
289
|
- lib/extensions.rb
|
288
290
|
- lib/quick_travel.rb
|
289
291
|
- lib/quick_travel/accommodation.rb
|
@@ -450,14 +452,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
450
452
|
requirements:
|
451
453
|
- - ">="
|
452
454
|
- !ruby/object:Gem::Version
|
453
|
-
version: '
|
455
|
+
version: '2.6'
|
454
456
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
455
457
|
requirements:
|
456
458
|
- - ">="
|
457
459
|
- !ruby/object:Gem::Version
|
458
460
|
version: '0'
|
459
461
|
requirements: []
|
460
|
-
rubygems_version: 3.
|
462
|
+
rubygems_version: 3.2.3
|
461
463
|
signing_key:
|
462
464
|
specification_version: 4
|
463
465
|
summary: Booking process using QuickTravel API
|
data/.travis.yml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.5
|
4
|
-
- 2.6
|
5
|
-
- 2.7
|
6
|
-
before_install:
|
7
|
-
- gem install bundler
|
8
|
-
script: bundle && bundle exec rspec spec
|
9
|
-
gemfile:
|
10
|
-
- gemfiles/rails5.gemfile
|
11
|
-
- gemfiles/rails6.gemfile
|
12
|
-
notifications:
|
13
|
-
email:
|
14
|
-
- support@travellink.com.au
|
15
|
-
sudo: false
|
16
|
-
cache: bundler
|