bitex 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e609b05c7de6d1459547097ca5176c6df58e3be4
4
+ data.tar.gz: 6b7e8c73402e5ac7d72f377936fe94cd33bdd2e4
5
+ SHA512:
6
+ metadata.gz: cdf51a779fd5e582c9291a905bf4fdd24fa5d1163497e8422291b99230697d7d16d72f8641ba5d4a7719247ff95a58d8f403c0698b7f31eb89140f7205e025d3
7
+ data.tar.gz: 2935b8b041a172be54909e83d795b5c7820c0ea8b7d247893c959fba05f01244d22e7232b0acb3d0731bfe1373434aac69342539f7e7efd0699a78851f931215
data/lib/bitex.rb CHANGED
@@ -1,12 +1,13 @@
1
+ require 'active_support'
1
2
  require 'active_support/core_ext'
2
3
  require 'json'
3
4
  require 'curl'
4
5
  require 'bigdecimal'
5
- require 'active_support'
6
6
  require 'bitex/match'
7
7
  Dir[File.expand_path("../bitex/*.rb", __FILE__)].each {|f| require f}
8
8
 
9
9
  module Bitex
10
10
  mattr_accessor :api_key
11
11
  mattr_accessor :sandbox
12
+ mattr_accessor :debug
12
13
  end
data/lib/bitex/api.rb CHANGED
@@ -7,6 +7,13 @@ module Bitex
7
7
  prefix = Bitex.sandbox ? 'sandbox.' : ''
8
8
 
9
9
  curl = Curl::Easy.new("https://#{prefix}bitex.la/api-v1/rest#{path}#{query}")
10
+
11
+ if Bitex.debug
12
+ curl.on_debug do |t,d|
13
+ puts "DEBUG SSL #{t}, #{d}"
14
+ end
15
+ end
16
+
10
17
  if verb == :POST
11
18
  fields = []
12
19
  unless files.empty?
data/lib/bitex/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bitex
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nubis
@@ -10,154 +9,137 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2015-02-26 00:00:00.000000000 Z
12
+ date: 2015-08-05 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: activesupport
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '0'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: curb
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - ">="
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - ">="
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: bundler
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ~>
46
+ - - "~>"
53
47
  - !ruby/object:Gem::Version
54
48
  version: '1.3'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ~>
53
+ - - "~>"
61
54
  - !ruby/object:Gem::Version
62
55
  version: '1.3'
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: rake
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ! '>='
60
+ - - ">="
69
61
  - !ruby/object:Gem::Version
70
62
  version: '0'
71
63
  type: :development
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ! '>='
67
+ - - ">="
77
68
  - !ruby/object:Gem::Version
78
69
  version: '0'
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: rspec
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
- - - ! '>='
74
+ - - ">="
85
75
  - !ruby/object:Gem::Version
86
76
  version: '0'
87
77
  type: :development
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
- - - ! '>='
81
+ - - ">="
93
82
  - !ruby/object:Gem::Version
94
83
  version: '0'
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: rspec-mocks
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
- - - ! '>='
88
+ - - ">="
101
89
  - !ruby/object:Gem::Version
102
90
  version: '0'
103
91
  type: :development
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
94
  requirements:
108
- - - ! '>='
95
+ - - ">="
109
96
  - !ruby/object:Gem::Version
110
97
  version: '0'
111
98
  - !ruby/object:Gem::Dependency
112
99
  name: timecop
113
100
  requirement: !ruby/object:Gem::Requirement
114
- none: false
115
101
  requirements:
116
- - - ! '>='
102
+ - - ">="
117
103
  - !ruby/object:Gem::Version
118
104
  version: '0'
119
105
  type: :development
120
106
  prerelease: false
121
107
  version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
108
  requirements:
124
- - - ! '>='
109
+ - - ">="
125
110
  - !ruby/object:Gem::Version
126
111
  version: '0'
127
112
  - !ruby/object:Gem::Dependency
128
113
  name: webmock
129
114
  requirement: !ruby/object:Gem::Requirement
130
- none: false
131
115
  requirements:
132
- - - ! '>='
116
+ - - ">="
133
117
  - !ruby/object:Gem::Version
134
118
  version: '0'
135
119
  type: :development
136
120
  prerelease: false
137
121
  version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
122
  requirements:
140
- - - ! '>='
123
+ - - ">="
141
124
  - !ruby/object:Gem::Version
142
125
  version: '0'
143
126
  - !ruby/object:Gem::Dependency
144
127
  name: shoulda-matchers
145
128
  requirement: !ruby/object:Gem::Requirement
146
- none: false
147
129
  requirements:
148
- - - ! '>='
130
+ - - ">="
149
131
  - !ruby/object:Gem::Version
150
132
  version: '0'
151
133
  type: :development
152
134
  prerelease: false
153
135
  version_requirements: !ruby/object:Gem::Requirement
154
- none: false
155
136
  requirements:
156
- - - ! '>='
137
+ - - ">="
157
138
  - !ruby/object:Gem::Version
158
139
  version: '0'
159
- description: ! "API client library for bitex.la. Fetch public market\n data
160
- and build trading robots"
140
+ description: |-
141
+ API client library for bitex.la. Fetch public market
142
+ data and build trading robots
161
143
  email:
162
144
  - nb@bitex.la
163
145
  - tr@bitex.la
@@ -165,8 +147,8 @@ executables: []
165
147
  extensions: []
166
148
  extra_rdoc_files: []
167
149
  files:
168
- - .gitignore
169
- - .rspec
150
+ - ".gitignore"
151
+ - ".rspec"
170
152
  - Gemfile
171
153
  - LICENSE.txt
172
154
  - README.md
@@ -242,27 +224,26 @@ files:
242
224
  homepage: http://bitex.la/developers
243
225
  licenses:
244
226
  - MIT
227
+ metadata: {}
245
228
  post_install_message:
246
229
  rdoc_options: []
247
230
  require_paths:
248
231
  - lib
249
232
  required_ruby_version: !ruby/object:Gem::Requirement
250
- none: false
251
233
  requirements:
252
- - - ! '>='
234
+ - - ">="
253
235
  - !ruby/object:Gem::Version
254
236
  version: 1.9.3
255
237
  required_rubygems_version: !ruby/object:Gem::Requirement
256
- none: false
257
238
  requirements:
258
- - - ! '>='
239
+ - - ">="
259
240
  - !ruby/object:Gem::Version
260
241
  version: '0'
261
242
  requirements: []
262
243
  rubyforge_project:
263
- rubygems_version: 1.8.23
244
+ rubygems_version: 2.4.5
264
245
  signing_key:
265
- specification_version: 3
246
+ specification_version: 4
266
247
  summary: API client library for bitex.la
267
248
  test_files:
268
249
  - spec/ask_spec.rb
@@ -314,4 +295,3 @@ test_files:
314
295
  - spec/transaction_spec.rb
315
296
  - spec/usd_deposit_spec.rb
316
297
  - spec/usd_withdrawal_spec.rb
317
- has_rdoc: