bitsy_client 0.0.1 → 0.1.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: d5f471a52cc2def9700f5af26a26d0f60682da7a
4
- data.tar.gz: 8f88330bd152a3cd34afe63acfaf8328b3af6de1
3
+ metadata.gz: 0beb496f9e24d59031d1b6df6e7199fb830db352
4
+ data.tar.gz: 8e5b981ec27a069cf9df47d87994aaf62fa2e2a7
5
5
  SHA512:
6
- metadata.gz: d6d6b779b53bdbffeb2a051019d4fababebd79965f123ff5be57726123d7e3fa4c3057dcb7368ed9f16c1dfb6ca73d149d4dd4a8123fc2319c73d195af36188e
7
- data.tar.gz: 0ea5d345c1c1487a98314117c459af2831e6f952e5628d74bffd816949d3d46227693c1e0822a3d134b931f01738140823d3d62a20134ed530cce0b5208119d1
6
+ metadata.gz: dbb1b8c1d072173a4bcce2b688a0149ad3187479cb4b8fe0d7ba99176a86cebf6891186d2616c99af96428232df5f57bf7cac7251c78bac7b2da18480f51ca8b
7
+ data.tar.gz: b16a38140bef1630e6fe73b173664971c24add83f1342150103c1b26b2d6379be53553013c68c54967029c45eb6cde794c3cc19eee7e4d7b169fbe7750e21dab
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # v0.1.0
2
+
3
+ - Add `BitsyClient::Sync` to trigger a transaction sync manually
data/README.md CHANGED
@@ -36,6 +36,10 @@ Then you can call:
36
36
 
37
37
  BitsyClient::PaymentDepot.find(2)
38
38
 
39
+ When Bitsy is running in a non-production mode, you can trigger the transaction sync manually:
40
+
41
+ BitsyClient::Sync.create
42
+
39
43
  ## Testing
40
44
 
41
45
  bundle exec rspec spec
@@ -0,0 +1,5 @@
1
+ module BitsyClient
2
+ class Sync < ResourceBase
3
+
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module BitsyClient
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -0,0 +1,9 @@
1
+ module BitsyClient
2
+ describe Sync, vcr: {record: :once} do
3
+
4
+ it "triggers a sync in Bitsy" do
5
+ expect { described_class.create }.to_not raise_error
6
+ end
7
+
8
+ end
9
+ end
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:3000/v1/syncs.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"sync":{}}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: 'OK '
22
+ headers:
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ X-Ua-Compatible:
30
+ - chrome=1
31
+ Content-Type:
32
+ - text/html; charset=utf-8
33
+ Cache-Control:
34
+ - no-cache
35
+ X-Request-Id:
36
+ - b28c1825-1463-44a0-9233-e8d26c94c322
37
+ X-Runtime:
38
+ - '0.655866'
39
+ Server:
40
+ - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
41
+ Date:
42
+ - Sat, 22 Mar 2014 14:32:52 GMT
43
+ Content-Length:
44
+ - '0'
45
+ Connection:
46
+ - Keep-Alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: ''
50
+ http_version:
51
+ recorded_at: Sat, 22 Mar 2014 14:32:52 GMT
52
+ recorded_with: VCR 2.8.0
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.0.1
4
+ version: 0.1.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-20 00:00:00.000000000 Z
11
+ date: 2014-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -118,6 +118,7 @@ files:
118
118
  - ".envrc"
119
119
  - ".gitignore"
120
120
  - ".ruby-version"
121
+ - CHANGELOG.md
121
122
  - Gemfile
122
123
  - LICENSE.txt
123
124
  - README.md
@@ -127,11 +128,14 @@ files:
127
128
  - lib/bitsy_client/models.rb
128
129
  - lib/bitsy_client/models/payment_depot.rb
129
130
  - lib/bitsy_client/models/resource_base.rb
131
+ - lib/bitsy_client/models/sync.rb
130
132
  - lib/bitsy_client/version.rb
131
133
  - spec/bitsy_client/models/payment_depot_spec.rb
132
134
  - spec/bitsy_client/models/resource_base_spec.rb
135
+ - spec/bitsy_client/models/sync_spec.rb
133
136
  - spec/bitsy_client_spec.rb
134
137
  - spec/fixtures/vcr_cassettes/BitsyClient_PaymentDepot/communicates_with_Bitsy.yml
138
+ - spec/fixtures/vcr_cassettes/BitsyClient_Sync/triggers_a_sync_in_Bitsy.yml
135
139
  - spec/spec_helper.rb
136
140
  homepage: ''
137
141
  licenses:
@@ -160,6 +164,8 @@ summary: Interface with the Bitsy Bitcoin payment server
160
164
  test_files:
161
165
  - spec/bitsy_client/models/payment_depot_spec.rb
162
166
  - spec/bitsy_client/models/resource_base_spec.rb
167
+ - spec/bitsy_client/models/sync_spec.rb
163
168
  - spec/bitsy_client_spec.rb
164
169
  - spec/fixtures/vcr_cassettes/BitsyClient_PaymentDepot/communicates_with_Bitsy.yml
170
+ - spec/fixtures/vcr_cassettes/BitsyClient_Sync/triggers_a_sync_in_Bitsy.yml
165
171
  - spec/spec_helper.rb