pwinty 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +11 -5
- data/lib/pwinty/order.rb +1 -0
- data/lib/pwinty/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 260bae82e1caee65209ccc72105cf00385c2afe9bcf0701568cd12011ddee479
|
4
|
+
data.tar.gz: 582082f110e4e0ea9641d8f2d9473299dfa11b306c9ada5a251c303ae5240573
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edd12bb4626ac12583f0eb8e86a1a0bc5aefdc6f0b9b24106681aa6265a00d5e173c978920496900e743252f8ba81fc6ddaeb6360de6ad032650a533e5ded39a
|
7
|
+
data.tar.gz: ee0413598550dc1f44f57123f55d51e8b5bf387d58d94249abc2cf83e189804ea5e98f40c84c81ca0cb3af6fc43872ba43c0db8211d216e58729949a8d665e8f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -188,8 +188,7 @@ order.shippingInfo.shipments[0]
|
|
188
188
|
``` ruby
|
189
189
|
orders = Pwinty::Order.list
|
190
190
|
```
|
191
|
-
**N.B -
|
192
|
-
So you can only get the latest 100 results at this moment.**
|
191
|
+
**N.B - This will get all of your orders - this can take some time. By default, it will request the orders from Pwinty in batches of 50; so 500 orders will take 10 requests to complete.**
|
193
192
|
|
194
193
|
Will return an array of `Pwinty::Order` objects.
|
195
194
|
|
@@ -204,13 +203,20 @@ Will return an integer of the number of orders you have.
|
|
204
203
|
|
205
204
|
## Development
|
206
205
|
|
207
|
-
After checking out the repo, run `bundle` to install dependencies.
|
208
|
-
|
206
|
+
After checking out the repo, run `bundle` to install dependencies.
|
207
|
+
|
208
|
+
Then, run `rake` to run the tests.
|
209
|
+
|
210
|
+
You can also run `bin/console` for an interactive
|
209
211
|
prompt that will allow you to experiment.
|
210
212
|
|
211
|
-
The tests use VCRs to mock the responses from Pwinty's API.
|
213
|
+
The tests use VCRs to mock the responses from Pwinty's API. See the
|
214
|
+
spec/vcrs directory for some example responses from the Pwinty API
|
215
|
+
which are used in the existing tests.
|
212
216
|
|
213
217
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
218
|
+
|
219
|
+
#### For project owners only:
|
214
220
|
To release a new version, update the version number in `version.rb`, and then
|
215
221
|
run `bundle exec rake release`, which will create a git tag for the version,
|
216
222
|
push git commits and tags, and push the `.gem` file to
|
data/lib/pwinty/order.rb
CHANGED
@@ -17,6 +17,7 @@ module Pwinty
|
|
17
17
|
attribute :stateOrCounty, Types::String.optional
|
18
18
|
attribute :status, Types::String
|
19
19
|
attribute :payment, Types::String
|
20
|
+
attribute? :packingSlipUrl, Types::String.optional
|
20
21
|
attribute :paymentUrl, Types::String.optional
|
21
22
|
attribute :price, Types::Integer
|
22
23
|
attribute :shippingInfo, Pwinty::ShippingInfo
|
data/lib/pwinty/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pwinty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Harvey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|