dji 0.3.2 → 0.3.3

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
  SHA1:
3
- metadata.gz: 919676ca97950c192bc933c1806eb9924aed7e9a
4
- data.tar.gz: 36121e2a6310c6fc55f3e5d48091d333a48cbbf5
3
+ metadata.gz: a45fe6db55a056b60b82fb1a8eb395ae82bb9841
4
+ data.tar.gz: a885ab19d9994b807ea7cf6bfa5db8fa286a8b79
5
5
  SHA512:
6
- metadata.gz: f9c3fd7d76acce4a18bff48c3358c1b6dc261e52505bb7224b45f1f31c7bdd6915d3872ddf821b2c0b065741e255ac9591f05acd923f70b792ad35ed3c52dae0
7
- data.tar.gz: 8470995e09f30a231453e823139eec851edc65dd19447b266a6efc1c54e8ed6fafd9729f4c7922f0c6933187b06da5100df6f5fb5973fdd232052066e0e9b7fb
6
+ metadata.gz: b7f2fab5ad4d46d504874b042102eceb0c5a2502e7d9631be1146e1ae774869444fe242707bf5a3d8e496c1f23aa38b9d6dd5e0ccef17b7d37bf8374eb403998
7
+ data.tar.gz: 726745c89e6e990476be0dd75c71709ab022d81567a20dac65d2257bb3cb779e94e6d4d0412e1942baf510850c21c4d05348ebf1f081243fb735c1f5e5f3e46e
data/README.md CHANGED
@@ -32,10 +32,11 @@ $ dji track [options]
32
32
 
33
33
  OPTIONS:
34
34
 
35
- -o, --order ORDER_NUMBER # Your order number
36
- -p, --phone PHONE_TAIL # Last 4 digits of your phone number
37
- -r, --repeat INTERVAL # Optional: Repat every INTERVAL seconds
38
- --publish # Optional: Publish your order details to http://dji-track.herokuapp.com/orders
35
+ -o, --order ORDER_NUMBER # Your order number
36
+ -p, --phone PHONE_TAIL # Last 4 digits of your phone number
37
+ -r, --repeat INTERVAL # Optional: Repat every INTERVAL seconds
38
+ --publish # Optional: Publish your order details to http://dji-track.herokuapp.com/orders
39
+ -u, --dji_username USERNAME # Optional: Your DJI Forum username
39
40
  ```
40
41
 
41
42
  #### Example: Track an order
@@ -82,28 +83,30 @@ If you want this to repeat automatically at an interval, specify the option for
82
83
 
83
84
  #### Example: Track an order, every 5 minutes, and publish details for others to see
84
85
 
85
- $ dji track -o 123456789012 -p 1234 -r 300 --publish
86
+ $ dji track -o 123456789012 -p 1234 -r 300 --publish -u dronenerd
86
87
 
87
88
  ORDER TRACKING AS OF 2016-10-27 01:12:27 -0700
88
89
  ------------------------------------------------------
89
- Order Number : 123456789012
90
- Total : USD $1,398.00
91
- Payment Status : Pay Confirmed
92
- Shipping Status : Pending
93
- Shipping Company : Tba
94
- Tracking Number :
90
+ DJI Forum Username : dronenerd
91
+ Order Number : 123456789012
92
+ Total : USD $1,398.00
93
+ Payment Status : Pay Confirmed
94
+ Shipping Status : Pending
95
+ Shipping Company : Tba
96
+ Tracking Number :
95
97
 
96
98
  You have successfully published your latest order status.
97
99
  See order statuses reported by others at http://dji-track.herokuapp.com/orders
98
100
 
99
101
  ORDER TRACKING AS OF 2016-10-27 01:17:28 -0700
100
102
  ------------------------------------------------------
101
- Order Number : 123456789012
102
- Total : USD $1,398.00
103
- Payment Status : Pay Confirmed
104
- Shipping Status : Pending
105
- Shipping Company : Tba
106
- Tracking Number :
103
+ DJI Forum Username : dronenerd
104
+ Order Number : 123456789012
105
+ Total : USD $1,398.00
106
+ Payment Status : Pay Confirmed
107
+ Shipping Status : Pending
108
+ Shipping Company : Tba
109
+ Tracking Number :
107
110
 
108
111
  You have successfully published your latest order status.
109
112
  See order statuses reported by others at http://dji-track.herokuapp.com/orders
@@ -95,7 +95,8 @@ module DJI
95
95
  params = {
96
96
  format: :json,
97
97
  order: {
98
- order_id: data[:order_number],
98
+ merchant: 'DJI',
99
+ order_id: data[:order_number],
99
100
  payment_status: data[:payment_status],
100
101
  payment_total: data[:total],
101
102
  shipping_status: data[:shipping_status],
data/lib/dji/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DJI
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Elliott