bitstamp_client 0.3.0 → 0.3.1

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: 2d501f9bb377c160f05660dff38a8639a69c497a
4
- data.tar.gz: c131fed7dcdfc87df69a6f27b5b23010efd19b66
3
+ metadata.gz: fb60248b754280e2c8661c6418d01dc711b230d6
4
+ data.tar.gz: 7062fb2d28080243a378a53324d97d13161e3428
5
5
  SHA512:
6
- metadata.gz: 13b01b862633a79447373621f1b29c4aee2703be62b48dcf0ce8f5a8fbf18c57d5d3585194a1ff271109fa4be165d483d985917127caf16a9cbc501d2f5b0600
7
- data.tar.gz: 5f57adfee1904a73274fa97bd67ba83ded56380d5dfda6fff99b181f21319a326551d8bb63f9033d055cb342698402d4a274595363e2969bc1a7c8638971d4af
6
+ metadata.gz: 279053193e95a28b0bccb74b9207c4ffcb4cd0fdaaffe5473a659dd79e04a0b382839872335c2803923b93702980f95fc68d50940f2fcca7df3c8b36dafc1c0b
7
+ data.tar.gz: a48f05852b6428d202df59e3ee285180beb5637f4e6dc2af05eb66209b133e58898119fe281747ddc78933ee3c60325392ef95a83a2b905d76a64e193f2ef21e
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [0.3.1] - 2017-08-10
8
+ ### Added
9
+ - FactoryGirl factories
10
+
7
11
  ## [0.3.0] - 2017-08-10
8
12
  ### Changed
9
13
  - Use language of bitstamp regarding bid/ask
data/README.md CHANGED
@@ -40,6 +40,10 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
40
40
 
41
41
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
42
42
 
43
+ ## Factories
44
+
45
+ You may include FactoryGirl factories in the gem in your tests to easily build models in the gem by `require "bitstamp_client/factories"`
46
+
43
47
  ## Contributing
44
48
 
45
49
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/bitstamp_client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -39,4 +39,5 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "vcr", "~> 3.0"
40
40
  spec.add_development_dependency "webmock", "~> 2.3"
41
41
  spec.add_development_dependency "virtus-matchers", ">= 0.4.0"
42
+ spec.add_development_dependency "factory_girl"
42
43
  end
@@ -0,0 +1,26 @@
1
+ FactoryGirl.define do
2
+
3
+ factory :bitstamp_client_order_book, class: "BitstampClient::OrderBook" do
4
+ timestamp { Time.now.to_i }
5
+
6
+ bids do
7
+ [
8
+ FactoryGirl.build(:bitstamp_client_order),
9
+ FactoryGirl.build(:bitstamp_client_order),
10
+ ]
11
+ end
12
+
13
+ asks do
14
+ [
15
+ FactoryGirl.build(:bitstamp_client_order),
16
+ FactoryGirl.build(:bitstamp_client_order),
17
+ ]
18
+ end
19
+ end
20
+
21
+ factory :bitstamp_client_order, class: "BitstampClient::Order" do
22
+ rate { 2500 }
23
+ volume { 2 }
24
+ end
25
+
26
+ end
@@ -1,3 +1,3 @@
1
1
  module BitstampClient
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitstamp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.4.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: factory_girl
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
139
153
  description:
140
154
  email:
141
155
  - ramon.tayag@gmail.com
@@ -157,6 +171,7 @@ files:
157
171
  - bitstamp_client.gemspec
158
172
  - lib/bitstamp_client.rb
159
173
  - lib/bitstamp_client/client.rb
174
+ - lib/bitstamp_client/factories.rb
160
175
  - lib/bitstamp_client/models/base_model.rb
161
176
  - lib/bitstamp_client/models/exchange_rate.rb
162
177
  - lib/bitstamp_client/models/order.rb