paxful_engine-rails 0.6.0 → 0.7.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: 0a8eb298ea0c209e4536008d41eaea8d8f8290ebe238bf4c4788d2fcb79dc81a
4
- data.tar.gz: d1875e3a006fed12babdc0c60d1bd88601de09358067def092511f2853beb7a1
3
+ metadata.gz: e1b07c79152a0e9d297bd7bd4e6895f3e594cd4b308028a4bc0a67ffe685075f
4
+ data.tar.gz: 880e805c345090fccc40d0555f4b07254d8375977693ff2f1228ffe79795e190
5
5
  SHA512:
6
- metadata.gz: 4300ebed063c0ea02f589c79014dcab945eb0b626b307a375c5c7579661f6824ebdd9f4dea60b6bd457342018e9bd2ca0ccdb90a7a3d0410971c2e29b18d2ab5
7
- data.tar.gz: ed060a7c6d0ef44422186eb219bba05ba8c2abd605d3511205caea16add0b7c5ba9bc9c9da76e1b280cdde969f791bbe3b0cbfb8cf37b25d46230aec761e4929
6
+ metadata.gz: 5a8cafa05d39f5b146b5220032498c67cda837844653a47f5c649eca38e0011b01a8098b822d62b02cda45fb8c517e06c01e54a17a3177b96de04e8063dfc383
7
+ data.tar.gz: 1faf67ac478fc2b17a0b257be6486c3389749c867cc003de0ba37aff4abee9f08a4cc2dabb7fee60b9d48adce9336777b45c78391dae1cf41488fe08a468e56d
@@ -2,7 +2,7 @@ module PaxfulEngine
2
2
  class TradesController < ApplicationController
3
3
 
4
4
  def index
5
- @trades = Trade.all
5
+ @trades = Trade.order("completed_at DESC, created_at DESC")
6
6
  end
7
7
 
8
8
  def show
@@ -6,6 +6,7 @@
6
6
  <thead>
7
7
  <tr>
8
8
  <th scope="col">Created</th>
9
+ <th scope="col">Completed</th>
9
10
  <th scope="col">Trade hash</th>
10
11
  <th scope="col">Type</th>
11
12
  <th scope="col">Status</th>
@@ -24,6 +25,7 @@
24
25
  <% @trades.each do |trade| %>
25
26
  <tr scope="row">
26
27
  <td> <%= trade.created_at.strftime("%m/%d/%Y %I:%M%p") %> </td>
28
+ <td> <%= trade.completed_at&.strftime("%m/%d/%Y %I:%M%p") || "-" %> </td>
27
29
  <td> <%= trade.trade_hash %> </td>
28
30
  <td> <%= trade.offer_type.upcase %> </td>
29
31
  <td>
@@ -1,3 +1,3 @@
1
1
  module PaxfulEngine
2
- VERSION = '0.6.0'
2
+ VERSION = '0.7.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.6.0
4
+ version: 0.7.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-11-04 00:00:00.000000000 Z
11
+ date: 2020-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_config