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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +19 -0
- data/lib/bitsy_client/factories.rb +1 -0
- data/lib/bitsy_client/factories/payment_depot.rb +13 -0
- data/lib/bitsy_client/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9503854f1660b600ecd981c186608ab2470bfbd7
|
4
|
+
data.tar.gz: 73814245bec9196a17f6e8daaca58881db3c3606
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87cd40424e21f7028686f0456caa6d10eed2b3a0678459d1aa50dede2cb4ebdddc53bcebdd08362a8c2eba60d17d7599f43e96ee01b4dc2cb975ede44c7e71cf
|
7
|
+
data.tar.gz: a875efe80a3938164608c5b93b7da57b636b1f2f3ecefc9ca8827f39c8a0410c46e3deff894c7da571ae6b57816f6f8781852ac9affe9a61fa1fbf513931740b
|
data/CHANGELOG.md
CHANGED
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
|
data/lib/bitsy_client/version.rb
CHANGED
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.
|
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-
|
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
|