bitstamp_client 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +4 -0
- data/bitstamp_client.gemspec +1 -0
- data/lib/bitstamp_client/factories.rb +26 -0
- data/lib/bitstamp_client/version.rb +1 -1
- metadata +16 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb60248b754280e2c8661c6418d01dc711b230d6
|
4
|
+
data.tar.gz: 7062fb2d28080243a378a53324d97d13161e3428
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 279053193e95a28b0bccb74b9207c4ffcb4cd0fdaaffe5473a659dd79e04a0b382839872335c2803923b93702980f95fc68d50940f2fcca7df3c8b36dafc1c0b
|
7
|
+
data.tar.gz: a48f05852b6428d202df59e3ee285180beb5637f4e6dc2af05eb66209b133e58898119fe281747ddc78933ee3c60325392ef95a83a2b905d76a64e193f2ef21e
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
data/bitstamp_client.gemspec
CHANGED
@@ -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
|
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.
|
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
|