paxful_client 1.1.0 → 1.2.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: 38ab6d383bb5df7875b7e9301fed592bc332a536461bf128af75a339086445f3
4
- data.tar.gz: 1c89ae163afef3ab90731be0a1ce06f46216fa91e2db3176d066b7c810cdd3b4
3
+ metadata.gz: 445e56c7910f8f51f1029e5f0af8513452c6824ecfc974972abb780f124587ab
4
+ data.tar.gz: e49d1a66ebe40915efe9e832876b63d646597a53d7272dbddc64b70fe13c4772
5
5
  SHA512:
6
- metadata.gz: fe68507b218e42ea75f6134e9b2eed42c738cefa8db6cdd29122a8ad378fe9988f41d60f78af2a6e5a59af4b7cc4ada499506800e60a7cfb356a2792d128e8bd
7
- data.tar.gz: 202eca3adca90808417edce33f964be8a8dd26f295622161f8cfb488fb0df3c70347338d021ebdc1ba5774839b4976460366154f4f4ec313444ea16a0c59818b
6
+ metadata.gz: 9a75f633fcd0778ac1ba08d9915412e085c5499862f8430c100548673b942ae1659e08bf3c229846ee6c594e878c9f521b0dc8a256da4f88935b391af9d8f5aa
7
+ data.tar.gz: 6967c3a4737520d0e04328144c8422fe4e072bf12617b9bc8ae01fe3b60009c6c6cc166ce96c798ae394ba26f4f1af3878497f9ad57df348e662935a33c61865
@@ -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
+ ## [1.2.0] - 2020-12-15
8
+ ### Changed
9
+ - Only consider success for `get_completed_trades` if it meets certain criteria
10
+
7
11
  ## [1.1.0] - 2020-11-25
8
12
  ### Added
9
13
  - Add support for passing in `page` for completed trades
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paxful_client (1.1.0)
4
+ paxful_client (1.2.0)
5
5
  activesupport
6
6
  api_client_base
7
7
  dry-validation (~> 0.13)
@@ -10,12 +10,12 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (6.0.3.4)
13
+ activesupport (6.1.0)
14
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
- i18n (>= 0.7, < 2)
16
- minitest (~> 5.1)
17
- tzinfo (~> 1.1)
18
- zeitwerk (~> 2.2, >= 2.2.2)
15
+ i18n (>= 1.6, < 2)
16
+ minitest (>= 5.1)
17
+ tzinfo (~> 2.0)
18
+ zeitwerk (~> 2.3)
19
19
  addressable (2.7.0)
20
20
  public_suffix (>= 2.0.2, < 5.0)
21
21
  api_client_base (1.9.0)
@@ -42,7 +42,7 @@ GEM
42
42
  dry-container (0.7.2)
43
43
  concurrent-ruby (~> 1.0)
44
44
  dry-configurable (~> 0.1, >= 0.1.3)
45
- dry-core (0.4.10)
45
+ dry-core (0.5.0)
46
46
  concurrent-ruby (~> 1.0)
47
47
  dry-equalizer (0.3.0)
48
48
  dry-inflector (0.2.0)
@@ -97,8 +97,8 @@ GEM
97
97
  thread_safe (0.3.6)
98
98
  typhoeus (1.4.0)
99
99
  ethon (>= 0.9.0)
100
- tzinfo (1.2.8)
101
- thread_safe (~> 0.1)
100
+ tzinfo (2.0.3)
101
+ concurrent-ruby (~> 1.0)
102
102
  vcr (3.0.3)
103
103
  virtus (1.0.5)
104
104
  axiom-types (~> 0.1)
@@ -109,7 +109,7 @@ GEM
109
109
  addressable (>= 2.3.6)
110
110
  crack (>= 0.3.2)
111
111
  hashdiff
112
- zeitwerk (2.4.1)
112
+ zeitwerk (2.4.2)
113
113
 
114
114
  PLATFORMS
115
115
  ruby
@@ -22,5 +22,15 @@ module PaxfulClient
22
22
  order_book
23
23
  end
24
24
 
25
+ def default_success
26
+ code == 200 && present_parsed_body?
27
+ end
28
+
29
+ def present_parsed_body?
30
+ !parsed_body.nil? &&
31
+ !parsed_body["data"].nil? &&
32
+ !parsed_body["data"]["trades"].nil?
33
+ end
34
+
25
35
  end
26
36
  end
@@ -1,3 +1,3 @@
1
1
  module PaxfulClient
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paxful_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Chavez
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-25 00:00:00.000000000 Z
11
+ date: 2020-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api_client_base
@@ -150,7 +150,7 @@ metadata:
150
150
  homepage_uri: https://github.com/MarkFChavez/paxful_client-ruby
151
151
  source_code_uri: https://github.com/MarkFChavez/paxful_client-ruby
152
152
  changelog_uri: https://github.com/MarkFChavez/paxful_client-ruby
153
- post_install_message:
153
+ post_install_message:
154
154
  rdoc_options: []
155
155
  require_paths:
156
156
  - lib
@@ -165,9 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubyforge_project:
169
- rubygems_version: 2.7.6
170
- signing_key:
168
+ rubygems_version: 3.0.3
169
+ signing_key:
171
170
  specification_version: 4
172
171
  summary: API wrapper for Paxful
173
172
  test_files: []