kraken_client 0.2.0 → 0.2.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: b4d025a1f7aa2a6ac3f3b0bfdeade0b26065271f
4
- data.tar.gz: 79938704d94dee6f0f9cf9830dc8e3db56306221
3
+ metadata.gz: 6c0722625142a5605b133bd8560f6bb389b6361a
4
+ data.tar.gz: 6aea9708f5bb302103b0d452f6d05b29cbe9b624
5
5
  SHA512:
6
- metadata.gz: 59142b5a9894ce4d9381c295e71fb7765ea1d2be615919b4d4b6c6953d7577be0b5174d99528f8814776b83f3347f38737b5a626200efbdb1351613dbd591293
7
- data.tar.gz: 8080b9ba1d3033ec28bd4a7b81fb4ad9c5585d57c656ccfd7ca9895fe30a11e3720920bdafaf4c29625c135c5173c018a1df9a68abcd93b3c0cb469026ad7b6f
6
+ metadata.gz: 3b1d4b66ef681b34b152759c71461a37b0f281bfe994250282047c41b2bcca110461e9025d9efe2229c9cdf2463fdeb6926b49084b971f0a73615cb28ae3db45
7
+ data.tar.gz: 2b0f26da3d9926e92d094fa07226dbd6bfa1f8e378e311d31990c894d215c21bfee44a82a81f399fdda2eafadfdbd363c71989c04490f07f773ab9251cb0aa10
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  /pkg/
2
+ /coverage/
data/.travis.yml ADDED
@@ -0,0 +1,15 @@
1
+ language: ruby
2
+ sudo: false
3
+ cache: bundler
4
+ script: 'bundle exec rake test:coverage --trace'
5
+ before_install:
6
+ - gem install bundler
7
+ rvm:
8
+ - 1.9.3
9
+ - 2.0
10
+ - 2.1
11
+ - 2.2
12
+ - ruby-head
13
+ - jruby
14
+ - jruby-head
15
+ - rbx-2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kraken_client (0.1.1)
4
+ kraken_client (0.2.1)
5
5
  activesupport
6
6
  addressable
7
7
  hashie
@@ -17,8 +17,11 @@ GEM
17
17
  thread_safe (~> 0.3, >= 0.3.4)
18
18
  tzinfo (~> 1.1)
19
19
  addressable (2.3.8)
20
+ codeclimate-test-reporter (0.4.7)
21
+ simplecov (>= 0.7.1, < 1.0.0)
20
22
  coderay (1.1.0)
21
23
  crack (0.3.1)
24
+ docile (1.1.5)
22
25
  hashie (3.4.2)
23
26
  httparty (0.13.5)
24
27
  json (~> 1.8)
@@ -34,6 +37,11 @@ GEM
34
37
  method_source (~> 0.8.1)
35
38
  slop (~> 3.4)
36
39
  rake (10.4.2)
40
+ simplecov (0.10.0)
41
+ docile (~> 1.1.0)
42
+ json (~> 1.8)
43
+ simplecov-html (~> 0.10.0)
44
+ simplecov-html (0.10.0)
37
45
  slop (3.6.0)
38
46
  spectus (2.2.0)
39
47
  matchi (~> 0.0)
@@ -51,11 +59,13 @@ PLATFORMS
51
59
  DEPENDENCIES
52
60
  addressable
53
61
  bundler (~> 1.3)
62
+ codeclimate-test-reporter
54
63
  hashie
55
64
  httparty
56
65
  kraken_client!
57
66
  pry
58
67
  rake
68
+ simplecov
59
69
  spectus
60
70
  vcr
61
71
  webmock
data/Rakefile CHANGED
@@ -1 +1,17 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new do |t|
5
+ t.pattern = File.join 'test', '**', 'test_*.rb'
6
+ t.verbose = true
7
+ t.warning = true
8
+ end
9
+
10
+ namespace :test do
11
+ task :coverage do
12
+ ENV['COVERAGE'] = 'true'
13
+ Rake::Task['test'].invoke
14
+ end
15
+ end
16
+
17
+ task default: :test
data/kraken_rb.gemspec CHANGED
@@ -24,6 +24,8 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency 'pry'
25
25
  spec.add_development_dependency 'webmock'
26
26
  spec.add_development_dependency 'vcr'
27
+ spec.add_development_dependency 'simplecov'
28
+ spec.add_development_dependency 'codeclimate-test-reporter'
27
29
 
28
30
  spec.add_dependency 'httparty'
29
31
  spec.add_dependency 'hashie'
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module KrakenClient
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/readme.md CHANGED
@@ -1,5 +1,7 @@
1
-
2
1
  # **KrakenClient**
2
+ [![Gem Version](https://badge.fury.io/rb/kraken_client.svg)](http://badge.fury.io/rb/kraken_client)
3
+ [![Code Climate](https://codeclimate.com/github/shideneyu/kraken_client/badges/gpa.svg)](https://codeclimate.com/github/shideneyu/kraken_client)
4
+ [![Test Coverage](https://codeclimate.com/github/shideneyu/kraken_client/badges/coverage.svg)](https://codeclimate.com/github/shideneyu/kraken_client/coverage)
3
5
 
4
6
  `KrakenClient` is a **Ruby** wrapper of the Kraken API. Kraken is a market exchange site serving those trading with Crypto-Currencies, such as **Bitcoin**.
5
7
 
@@ -0,0 +1,3 @@
1
+ require 'simplecov'
2
+
3
+ SimpleCov.start
@@ -0,0 +1,22 @@
1
+ require "codeclimate-test-reporter"
2
+ CodeClimate::TestReporter.start
3
+
4
+ require_relative File.join 'support', 'coverage'
5
+ require_relative File.join '..', 'lib', 'kraken_client'
6
+ require 'spectus'
7
+ require 'vcr'
8
+ require 'webmock'
9
+
10
+ include WebMock::API
11
+
12
+ VCR.configure do |config|
13
+ config.cassette_library_dir = "fixtures/vcr_cassettes"
14
+ config.hook_into :webmock # or :fakeweb
15
+ config.ignore_hosts 'codeclimate.com'
16
+ end
17
+
18
+ # Testing Private Endpoints
19
+ KrakenClient.configure do |config|
20
+ config.api_key = ENV['KRAKEN_API_KEY'] || 'COMPUTED'
21
+ config.api_secret = ENV['KRAKEN_API_SECRET'] ||'COMPUTED'
22
+ end
@@ -1,20 +1,4 @@
1
- require_relative File.join '..', '..', 'lib', 'kraken_client'
2
- require 'spectus'
3
- require 'vcr'
4
- require 'webmock'
5
-
6
- include WebMock::API
7
-
8
- VCR.configure do |config|
9
- config.cassette_library_dir = "fixtures/vcr_cassettes"
10
- config.hook_into :webmock # or :fakeweb
11
- end
12
-
13
- # Testing Private Endpoints
14
- KrakenClient.configure do |config|
15
- config.api_key = ENV['KRAKEN_API_KEY'] || 'COMPUTED'
16
- config.api_secret = ENV['KRAKEN_API_SECRET'] ||'COMPUTED'
17
- end
1
+ require_relative 'test_helper'
18
2
 
19
3
  kraken = KrakenClient.load
20
4
  client = kraken.private
@@ -1,16 +1,5 @@
1
- require_relative File.join '..', '..', 'lib', 'kraken_client'
2
- require 'spectus'
3
- require 'vcr'
4
- require 'webmock'
1
+ require_relative 'test_helper'
5
2
 
6
- include WebMock::API
7
-
8
- VCR.configure do |config|
9
- config.cassette_library_dir = "fixtures/vcr_cassettes"
10
- config.hook_into :webmock # or :fakeweb
11
- end
12
-
13
- # Testing Public Endpoints
14
3
  kraken = KrakenClient.load
15
4
  client = kraken.public
16
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kraken_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sidney SISSAOUI
@@ -94,6 +94,34 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: codeclimate-test-reporter
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: httparty
99
127
  requirement: !ruby/object:Gem::Requirement
@@ -158,6 +186,7 @@ extensions: []
158
186
  extra_rdoc_files: []
159
187
  files:
160
188
  - ".gitignore"
189
+ - ".travis.yml"
161
190
  - Gemfile
162
191
  - Gemfile.lock
163
192
  - LICENSE.md
@@ -198,8 +227,10 @@ files:
198
227
  - lib/kraken_client/requests/post.rb
199
228
  - lib/version.rb
200
229
  - readme.md
201
- - spec/requests/private_spec.rb
202
- - spec/requests/public_spec.rb
230
+ - test/support/coverage.rb
231
+ - test/test_helper.rb
232
+ - test/test_private.rb
233
+ - test/test_public.rb
203
234
  homepage: https://www.kraken.com/help/api
204
235
  licenses:
205
236
  - MIT
@@ -225,5 +256,7 @@ signing_key:
225
256
  specification_version: 4
226
257
  summary: "'Wrapper for Kraken Exchange API'"
227
258
  test_files:
228
- - spec/requests/private_spec.rb
229
- - spec/requests/public_spec.rb
259
+ - test/support/coverage.rb
260
+ - test/test_helper.rb
261
+ - test/test_private.rb
262
+ - test/test_public.rb