paxful_engine-rails 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d152498f075ac905b808122006bc8049bc7f9f1dc3557aa28bef97adf27829b3
|
|
4
|
+
data.tar.gz: 9ca59758c13c5228c5dc9a32b8e831df3281be2078679be82caf0d0627a198e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f800fec47aea83992830ab7c1ae70eff5fa14a4810daee4328479bc489b12d2b0e5d1e899d0359da2dc7dfbf8e73a8237c9771c06c1576cf765cbd3a3c3ef7c
|
|
7
|
+
data.tar.gz: 223f46864b93dce3fc966f9f15b12aa7a6e6aad550e62a1c104d5503313698f21a03eff66ebf1af3c3aba2b0e0d9ad4ac32abd5759420f4e4e8fe1f016f908d0
|
data/README.md
CHANGED
|
@@ -57,7 +57,6 @@ end
|
|
|
57
57
|
### Usage
|
|
58
58
|
|
|
59
59
|
Add this to your scheduler somewhere:
|
|
60
|
-
|
|
61
60
|
```
|
|
62
61
|
# sidekiq_cron.yml
|
|
63
62
|
refresh_paxful_order_book:
|
|
@@ -65,6 +64,10 @@ refresh_paxful_order_book:
|
|
|
65
64
|
class: "PaxfulEngine::SyncOrderBookJob"
|
|
66
65
|
```
|
|
67
66
|
|
|
67
|
+
From the host app:
|
|
68
|
+
- Check list of trades at `/paxful_engine/trades`.
|
|
69
|
+
- Details per trade at `/paxful_engine/trades/:id`.
|
|
70
|
+
|
|
68
71
|
### Development
|
|
69
72
|
|
|
70
73
|
```
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
<span class="font-weight-bold"> Found <%= pluralize(@trades.count, "trade") %></span>
|
|
2
|
+
<hr />
|
|
3
|
+
|
|
1
4
|
<div class="table-responsive">
|
|
2
5
|
<table class="table table-striped table-bordered">
|
|
3
6
|
<thead>
|
|
@@ -12,12 +15,20 @@
|
|
|
12
15
|
</tr>
|
|
13
16
|
</thead>
|
|
14
17
|
<tbody>
|
|
18
|
+
<% if @trades.empty? %>
|
|
19
|
+
<tr>
|
|
20
|
+
<td colspan="7"> No trades found </td>
|
|
21
|
+
</tr>
|
|
22
|
+
<% end %>
|
|
23
|
+
|
|
15
24
|
<% @trades.each do |trade| %>
|
|
16
25
|
<tr scope="row">
|
|
17
26
|
<td> <%= trade.created_at.strftime("%m/%d/%Y %I:%M%p") %> </td>
|
|
18
27
|
<td> <%= trade.trade_hash %> </td>
|
|
19
28
|
<td> <%= trade.offer_type.upcase %> </td>
|
|
20
|
-
<td>
|
|
29
|
+
<td>
|
|
30
|
+
<span class="<%= highlight_status(trade) %>"> <%= trade.status.upcase %> </span>
|
|
31
|
+
</td>
|
|
21
32
|
<td> <%= trade.seller %> </td>
|
|
22
33
|
<td> <%= trade.buyer %> </td>
|
|
23
34
|
<td> <%= link_to "Check trade details", paxful_engine.trade_path(trade) %> </td>
|
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
|
+
version: 0.3.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-
|
|
11
|
+
date: 2020-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gem_config
|