btce 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/btce.rb +1 -17
- metadata +19 -3
data/lib/btce.rb
CHANGED
@@ -33,29 +33,13 @@
|
|
33
33
|
# POSSIBILITY OF SUCH DAMAGE.
|
34
34
|
|
35
35
|
require 'json'
|
36
|
+
require 'monkey-patch'
|
36
37
|
require 'net/http'
|
37
38
|
require 'net/https'
|
38
39
|
require 'openssl'
|
39
40
|
require 'uri'
|
40
41
|
require 'yaml'
|
41
42
|
|
42
|
-
class String
|
43
|
-
def camelcase_to_snakecase
|
44
|
-
self.gsub(/::/, '/')
|
45
|
-
.gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2')
|
46
|
-
.gsub(/([a-z\d])([A-Z])/,'\1_\2')
|
47
|
-
.tr("-", "_")
|
48
|
-
.downcase
|
49
|
-
end
|
50
|
-
|
51
|
-
def valid_json?
|
52
|
-
JSON.parse self
|
53
|
-
return true
|
54
|
-
rescue JSON::ParserError
|
55
|
-
return false
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
43
|
module Btce
|
60
44
|
class API
|
61
45
|
BTCE_DOMAIN = "btc-e.com"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: btce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
13
|
-
dependencies:
|
12
|
+
date: 2013-04-09 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: monkey-patch
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
14
30
|
description: A simple library to interface with the API for btc-e.com in Ruby.
|
15
31
|
email: cgore@cgore.com
|
16
32
|
executables: []
|