paxful_engine-rails 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: 5d0136e4cda23c6c143faae28ab072a0e1b4155028c311eaefff14903e57c3b4
4
- data.tar.gz: 710183c97ffc4a867acad7830fd2e30fe23346a1fdffd742b59cbd3e8ca2f2a8
3
+ metadata.gz: fb90688726d3d85a6c9f1b0e243955f3977f11483d41886b0ccf43b15dcc4b6e
4
+ data.tar.gz: 16de8f670bfdb81d21d3bc0b0e1ff94bb4f7ca0811c0d91d3b714b6ceb0f73d0
5
5
  SHA512:
6
- metadata.gz: a6983fb6ae6147222663f9a279dece25d68099d9a1c661faeacdec7e1ae00a895b3510e1e0a06b98186402bc9fc2107bccbdcf3a94ebd6f2bfbc88d2f4590167
7
- data.tar.gz: fd1e259ac766bd185ac68af6188e64a20e95557b704b9177977f9b34fd72731ff6591b81ab1d5f2c98b55a87740488d9bb0ebd4b7b205414fe8dfb4d6addcdd1
6
+ metadata.gz: b64b219d335b96a57d8419730947f12e1723f9a88e70d9019f9c4f6d763e94406e87d571fef4be875242d0440459322d4d7e14a2db3be481470ef3e8b0b606c1
7
+ data.tar.gz: 914858b8aeb7cc2d15260d8e62d2971aff81cda741bc176c69fc62c6c184d21bb38093c68d6544134054651e64b0324988b1f5bf76144a8758b5aec776cf6dd7
@@ -17,5 +17,17 @@ module PaxfulEngine
17
17
  presence: true
18
18
  )
19
19
 
20
+ def successful?
21
+ status.downcase == "successful"
22
+ end
23
+
24
+ def buy?
25
+ offer_type.downcase == "buy"
26
+ end
27
+
28
+ def sell?
29
+ offer_type.downcase == "sell"
30
+ end
31
+
20
32
  end
21
33
  end
@@ -1,3 +1,3 @@
1
1
  module PaxfulEngine
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paxful_engine-rails
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
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-27 00:00:00.000000000 Z
11
+ date: 2020-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_config
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.5'
83
+ - !ruby/object:Gem::Dependency
84
+ name: factory_bot
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: pry
85
99
  requirement: !ruby/object:Gem::Requirement