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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fab5e5d4640520e6634f4eff9ab3d9b41b193c21ac0914417775c5741b5afbd9
4
- data.tar.gz: 454b5d050829e15be95cb8483c14e7b78da738bd58b54d655b545ee11b9c3d27
3
+ metadata.gz: d57a5857429d30d7aa2ab687b7a5d4fc467e18ee1ab10ebf415c914d27f149a9
4
+ data.tar.gz: d0cb8810a53660ac5a45d55d14be341aa8a0876ce6dff1381521a8b9f21af367
5
5
  SHA512:
6
- metadata.gz: 47ead7f552682955ab536bf0a2313cb6c97dad01780688a0734fddb84abd4c24481076eff1f954a178f365d6918c25d027bb83061bba82f5ca89ea65392dbd9b
7
- data.tar.gz: d5ddbc02483c32d1ed6531fcb7382deb7e9d1d394f06386abb7a51ca76eb9e6a7808830335c48ea140954d3bce9a0db95924fe67b9628844b6bb483547c2424f
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 = Dry::Validation.Schema do
3
- required(:account_id).filled(:str?)
4
- required(:api_key).filled(:str?)
5
- required(:host).filled(:str?)
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
@@ -1,3 +1,3 @@
1
1
  module XEClient
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
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", "< 1.0"
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.1
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: 2020-06-30 00:00:00.000000000 Z
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.0.8
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
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.6.3
5
- before_install: gem install bundler:2.0
6
- before_script:
7
- - cp spec/config.yml{.sample,}