xe_client 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +37 -0
- data/CHANGELOG.md +4 -0
- data/lib/xe_client/schemas/convert_from_request_schema.rb +8 -4
- data/lib/xe_client/version.rb +1 -1
- data/xe_client.gemspec +1 -1
- metadata +12 -6
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d57a5857429d30d7aa2ab687b7a5d4fc467e18ee1ab10ebf415c914d27f149a9
|
4
|
+
data.tar.gz: d0cb8810a53660ac5a45d55d14be341aa8a0876ce6dff1381521a8b9f21af367
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a0a14eee2432daca0c88c9e404453f22c738b6ff6a08d5e44218c349b6536d9fbdf04dbf9ac42a00c65b2a5ba91dd2eaf41bc6a782a9931b08d9f5607da75d
|
7
|
+
data.tar.gz: 9868ff4f6350dfed96c509be481595ef17867a9eaa8db0d63399d46a7da3a23610acbc3b069f60afbb2d08470deeb6e895f07666ca032be6ba27be306a95fd5d
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ master ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ master ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
test:
|
18
|
+
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
strategy:
|
21
|
+
matrix:
|
22
|
+
ruby-version: ['2.6', '2.7']
|
23
|
+
|
24
|
+
steps:
|
25
|
+
- uses: actions/checkout@v2
|
26
|
+
- name: Set up Ruby
|
27
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
28
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
29
|
+
# uses: ruby/setup-ruby@v1
|
30
|
+
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
31
|
+
with:
|
32
|
+
ruby-version: ${{ matrix.ruby-version }}
|
33
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
34
|
+
- name: Setup spec config
|
35
|
+
run: cp spec/config.yml{.sample,}
|
36
|
+
- name: Run tests
|
37
|
+
run: bundle exec rspec
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
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
|
|
5
|
+
## [1.1.0] - 2021-06-15
|
6
|
+
### Added
|
7
|
+
- Update `dry-validation` to 1.x
|
8
|
+
|
5
9
|
## [1.0.1] - 2020-06-30
|
6
10
|
### Fixed
|
7
11
|
- `#historic_rate_period`: Do not blow up if no rates
|
@@ -1,7 +1,11 @@
|
|
1
1
|
module MyGem
|
2
|
-
ConvertFromRequestSchema
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
class ConvertFromRequestSchema < Dry::Validation::Contract
|
3
|
+
|
4
|
+
params do
|
5
|
+
required(:account_id).filled(:str?)
|
6
|
+
required(:api_key).filled(:str?)
|
7
|
+
required(:host).filled(:str?)
|
8
|
+
end
|
9
|
+
|
6
10
|
end
|
7
11
|
end
|
data/lib/xe_client/version.rb
CHANGED
data/xe_client.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_dependency "virtus", "~> 1.0"
|
32
32
|
spec.add_dependency "httparty"
|
33
33
|
spec.add_dependency "api_client_base", "~> 1.9"
|
34
|
-
spec.add_dependency "dry-validation", "
|
34
|
+
spec.add_dependency "dry-validation", "~> 1.0", "< 2"
|
35
35
|
spec.add_dependency "typhoeus", "~> 1.0"
|
36
36
|
|
37
37
|
spec.add_development_dependency "bundler", "~> 2.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xe_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon Tayag
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -84,16 +84,22 @@ dependencies:
|
|
84
84
|
name: dry-validation
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '1.0'
|
90
|
+
- - "<"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '2'
|
90
93
|
type: :runtime
|
91
94
|
prerelease: false
|
92
95
|
version_requirements: !ruby/object:Gem::Requirement
|
93
96
|
requirements:
|
94
|
-
- - "
|
97
|
+
- - "~>"
|
95
98
|
- !ruby/object:Gem::Version
|
96
99
|
version: '1.0'
|
100
|
+
- - "<"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '2'
|
97
103
|
- !ruby/object:Gem::Dependency
|
98
104
|
name: typhoeus
|
99
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,9 +206,9 @@ extensions: []
|
|
200
206
|
extra_rdoc_files: []
|
201
207
|
files:
|
202
208
|
- ".envrc"
|
209
|
+
- ".github/workflows/ruby.yml"
|
203
210
|
- ".gitignore"
|
204
211
|
- ".rspec"
|
205
|
-
- ".travis.yml"
|
206
212
|
- CHANGELOG.md
|
207
213
|
- CODE_OF_CONDUCT.md
|
208
214
|
- Gemfile
|
@@ -246,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
252
|
- !ruby/object:Gem::Version
|
247
253
|
version: '0'
|
248
254
|
requirements: []
|
249
|
-
rubygems_version: 3.
|
255
|
+
rubygems_version: 3.1.6
|
250
256
|
signing_key:
|
251
257
|
specification_version: 4
|
252
258
|
summary: Ruby wrapper for XE's REST API
|