bitsy_client 0.2.0 → 0.3.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
  SHA1:
3
- metadata.gz: 61d20a3eca1ed2f85ed4714f22db979f6dcb97d3
4
- data.tar.gz: 60de3044e08da1a9ea71ed13f11f58e9038c19f0
3
+ metadata.gz: 9503854f1660b600ecd981c186608ab2470bfbd7
4
+ data.tar.gz: 73814245bec9196a17f6e8daaca58881db3c3606
5
5
  SHA512:
6
- metadata.gz: 8560717239117d62d2617a42b5e17e79bf05e2dabd6fe19f5ede7c22130092c99773b5acf17fa6d24502f29840ac5c4a924c061777b37740fff1a3658e40cde4
7
- data.tar.gz: 4da53faf2c0fbe5d4b58b30c3a674657fcbb432418f4ef6f461658b4bd216f241e6933096e558e257b533b6ff9b934df1262230cde311c8f4576f1d5b9992dba
6
+ metadata.gz: 87cd40424e21f7028686f0456caa6d10eed2b3a0678459d1aa50dede2cb4ebdddc53bcebdd08362a8c2eba60d17d7599f43e96ee01b4dc2cb975ede44c7e71cf
7
+ data.tar.gz: a875efe80a3938164608c5b93b7da57b636b1f2f3ecefc9ca8827f39c8a0410c46e3deff894c7da571ae6b57816f6f8781852ac9affe9a61fa1fbf513931740b
@@ -1,3 +1,7 @@
1
+ # v0.3.0
2
+
3
+ - Add `bitsy_payment_depot factory`
4
+
1
5
  # v0.2.0
2
6
 
3
7
  - Add `BitsyClient.truncate` to trigger truncation on Bitsy (see [this](https://github.com/ramontayag/bitsy/issues/6))
data/README.md CHANGED
@@ -46,6 +46,25 @@ When Bitsy is running in a non-production mode, you can trigger the transaction
46
46
 
47
47
  If you delete the vcr cassettes, then when you run the specs it will attempt to connect to a Bitsy server at `http://localhost:3000`. If that does not start it will complain. Remember to start the Bitcoin daemon for Bitsy too.
48
48
 
49
+ ## Factories
50
+
51
+ You may include factories in your project. In the `spec_helper` or `test_helper`:
52
+
53
+ require "bitsy_client/factories"
54
+
55
+ You have access to the `bitsy_payment_depot` factory. You can use it this way:
56
+
57
+ ```
58
+ FactoryGirl.define do
59
+
60
+ factory :order do
61
+ product
62
+ association :payment_depot, factory: :bitsy_payment_depot
63
+ end
64
+
65
+ end
66
+ ```
67
+
49
68
  ## Contributing
50
69
 
51
70
  1. Fork it
@@ -0,0 +1 @@
1
+ Dir[File.expand_path("../factories/**/*.rb", __FILE__)].each {|f| require f}
@@ -0,0 +1,13 @@
1
+ FactoryGirl.define do
2
+
3
+ factory :bitsy_payment_depot, class: BitsyClient::PaymentDepot do
4
+ min_payment 0.5
5
+ initial_tax_rate 0.5
6
+ added_tax_rate 0.1
7
+ owner_address "owner address"
8
+ address "depot address"
9
+ tax_address "tax address"
10
+ sequence(:uuid) {|n| n}
11
+ end
12
+
13
+ end
@@ -1,3 +1,3 @@
1
1
  module BitsyClient
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitsy_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2014-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -125,6 +125,8 @@ files:
125
125
  - Rakefile
126
126
  - bitsy_client.gemspec
127
127
  - lib/bitsy_client.rb
128
+ - lib/bitsy_client/factories.rb
129
+ - lib/bitsy_client/factories/payment_depot.rb
128
130
  - lib/bitsy_client/models.rb
129
131
  - lib/bitsy_client/models/payment_depot.rb
130
132
  - lib/bitsy_client/models/resource_base.rb