btfy_client 0.4.0 → 0.5.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: 7df6f1b5e131c3b0a7d126ecb564b96ca94261beb6eb96e1d44947b2bf170ed5
4
- data.tar.gz: fe20ac93e789a28e037c484f1823ce2218fe22519704bfc33cef09911a58ecb7
3
+ metadata.gz: bdb20302106d84743fa1bd30d5b635770e75e85926aea2f561751893798d44db
4
+ data.tar.gz: 931dfefe497064f7104d31225a71e5e6615475d7745726ca8c320c2cba688c32
5
5
  SHA512:
6
- metadata.gz: 44bd380a62a15522c9a08b83aef32e5cfc592fb5bab981b433f9a09f9a51baf21e3f8011a9d5d6e6f5cbdaa0d7d49aafb3fad828330c405c79429498b7aff593
7
- data.tar.gz: 35a7dab01d17a7da404c051cbd3cee5c6dd2404b78b92e0771e71c0f6f1a341404b6bcc6aad7eeb9e96d5365e18379a4aa8c8854f9efc5cbbc97cc13f8a9c17e
6
+ metadata.gz: 6794e52f3c6bbda610f5c38958bfc90077a56ec62c530db2f67ed955312bc5b2ebb63eaed32ee0e0ca8af5db65f179a6518cf1c8d0983716bd2649085b48d09a
7
+ data.tar.gz: 73bf8938efe70bf93ac1a7495e00820df5213b97af3cdd33e258a7aec8b2c83d1cd8fa09b741dac000d1171ce8934003263c2ee88690e39362e756106bb5acfd
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.5.0] - 2020-09-06
8
+ ### Changed
9
+ - require `destination_url` when calling `create_link`
10
+
7
11
  ## [0.4.0] - 2020-09-06
8
12
  ### Changed
9
13
  - add `BaseRequest` for reuse
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- btfy_client (0.4.0)
4
+ btfy_client (0.5.0)
5
5
  api_client_base
6
+ dry-validation
6
7
  typhoeus
7
8
 
8
9
  GEM
@@ -33,6 +34,44 @@ GEM
33
34
  descendants_tracker (0.0.4)
34
35
  thread_safe (~> 0.3, >= 0.3.1)
35
36
  diff-lcs (1.4.4)
37
+ dry-configurable (0.11.6)
38
+ concurrent-ruby (~> 1.0)
39
+ dry-core (~> 0.4, >= 0.4.7)
40
+ dry-equalizer (~> 0.2)
41
+ dry-container (0.7.2)
42
+ concurrent-ruby (~> 1.0)
43
+ dry-configurable (~> 0.1, >= 0.1.3)
44
+ dry-core (0.4.9)
45
+ concurrent-ruby (~> 1.0)
46
+ dry-equalizer (0.3.0)
47
+ dry-inflector (0.2.0)
48
+ dry-initializer (3.0.3)
49
+ dry-logic (1.0.7)
50
+ concurrent-ruby (~> 1.0)
51
+ dry-core (~> 0.2)
52
+ dry-equalizer (~> 0.2)
53
+ dry-schema (1.5.4)
54
+ concurrent-ruby (~> 1.0)
55
+ dry-configurable (~> 0.8, >= 0.8.3)
56
+ dry-core (~> 0.4)
57
+ dry-equalizer (~> 0.2)
58
+ dry-initializer (~> 3.0)
59
+ dry-logic (~> 1.0)
60
+ dry-types (~> 1.4)
61
+ dry-types (1.4.0)
62
+ concurrent-ruby (~> 1.0)
63
+ dry-container (~> 0.3)
64
+ dry-core (~> 0.4, >= 0.4.4)
65
+ dry-equalizer (~> 0.3)
66
+ dry-inflector (~> 0.1, >= 0.1.2)
67
+ dry-logic (~> 1.0, >= 1.0.2)
68
+ dry-validation (1.5.6)
69
+ concurrent-ruby (~> 1.0)
70
+ dry-container (~> 0.7, >= 0.7.1)
71
+ dry-core (~> 0.4)
72
+ dry-equalizer (~> 0.2)
73
+ dry-initializer (~> 3.0)
74
+ dry-schema (~> 1.5, >= 1.5.2)
36
75
  equalizer (0.0.11)
37
76
  ethon (0.12.0)
38
77
  ffi (>= 1.3.0)
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_dependency "api_client_base"
29
29
  spec.add_dependency "typhoeus"
30
+ spec.add_dependency "dry-validation"
30
31
 
31
32
  spec.add_development_dependency "pry"
32
33
  spec.add_development_dependency "vcr", "~> 3.0"
@@ -1,5 +1,6 @@
1
1
  require "json"
2
2
  require "api_client_base"
3
+ require "dry-validation"
3
4
 
4
5
  require "btfy_client/version"
5
6
  require "btfy_client/client"
@@ -25,4 +26,8 @@ module BtfyClient
25
26
  has :api_token, classes: String
26
27
  end
27
28
 
29
+ CreateLinkRequestSchema = Dry::Schema.Params do
30
+ required(:destination_url).value(:string)
31
+ end
32
+
28
33
  end
@@ -1,3 +1,3 @@
1
1
  module BtfyClient
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: btfy_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Chavez
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: dry-validation
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: pry
43
57
  requirement: !ruby/object:Gem::Requirement