coinbase 0.0.1 → 1.3.0

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.

Potentially problematic release.


This version of coinbase might be problematic. Click here for more details.

@@ -0,0 +1,191 @@
1
+ require 'fakeweb'
2
+ require 'coinbase'
3
+
4
+ describe Coinbase::Client do
5
+ BASE_URI = 'http://fake.com/api/v1' # switching to http (instead of https) seems to help FakeWeb
6
+
7
+ before :all do
8
+ @c = Coinbase::Client.new 'api key', 'api secret', {base_uri: BASE_URI}
9
+ end
10
+
11
+ # Auth and Errors
12
+
13
+ it "raise errors" do
14
+ fake :get, '/account/balance', {error: "some error"}
15
+ expect{ @c.balance }.to raise_error(Coinbase::Client::Error, 'some error')
16
+ fake :get, '/account/balance', {errors: ["some", "error"]}
17
+ expect{ @c.balance }.to raise_error(Coinbase::Client::Error, 'some, error')
18
+ end
19
+
20
+ # Account
21
+
22
+ it "should get balance" do
23
+ fake :get, '/account/balance', {amount: "50.00000000", currency: 'BTC'}
24
+ @c.balance.should == 50.to_money('BTC')
25
+ end
26
+
27
+ it "should get a receive address" do
28
+ fake :get, '/account/receive_address', {address: "muVu2JZo8PbewBHRp6bpqFvVD87qvqEHWA", callback_url: nil}
29
+ a = @c.receive_address
30
+ a.address.should == "muVu2JZo8PbewBHRp6bpqFvVD87qvqEHWA"
31
+ a.callback_url.should == nil
32
+ end
33
+
34
+ it "should generate new receive addresses" do
35
+ fake :post, '/account/generate_receive_address', {address: "mmxJyTdxHUJUDoptwLHAGxLEd1rAxDJ7EV", callback_url: "http://example.com/callback"}
36
+ a = @c.generate_receive_address
37
+ a.address.should == "mmxJyTdxHUJUDoptwLHAGxLEd1rAxDJ7EV"
38
+ a.callback_url.should == "http://example.com/callback"
39
+ end
40
+
41
+ # Buttons
42
+
43
+ it "should create a new button" do
44
+ response = {:success=>true, :button=>{:code=>"93865b9cae83706ae59220c013bc0afd", :type=>"buy_now", :style=>"custom_large", :text=>"Pay With Bitcoin", :name=>"Order 123", :description=>"Sample description", :custom=>"Order123", :price=>{:cents=>123, :currency_iso=>"BTC"}}}
45
+ fake :post, '/buttons', response
46
+ r = @c.create_button "Order 123", 1.23, "Sample description"
47
+ r.success?.should == true
48
+ r.button.name.should == "Order 123"
49
+ r.embed_html.should == %[<div class="coinbase-button" data-code="93865b9cae83706ae59220c013bc0afd"></div><script src="https://coinbase.com/assets/button.js" type="text/javascript"></script>]
50
+
51
+ r = @c.create_button "Order 123", 1.23, "Sample description", nil, button_mode: 'page'
52
+ r.success?.should == true
53
+ r.button.name.should == "Order 123"
54
+ r.embed_html.should == %[<a href="https://coinbase.com/checkouts/93865b9cae83706ae59220c013bc0afd" target="_blank"><img alt="Pay With Bitcoin" src="https://coinbase.com/assets/buttons/custom_large.png"></a>]
55
+
56
+ r = @c.create_button "Order 123", 1.23, "Sample description", nil, button_mode: 'iframe'
57
+ r.success?.should == true
58
+ r.button.name.should == "Order 123"
59
+ r.embed_html.should == %[<iframe src="https://coinbase.com/inline_payments/93865b9cae83706ae59220c013bc0afd" style="width:500px;height:160px;border:none;box-shadow:0 1px 3px rgba(0,0,0,0.25);overflow:hidden;" scrolling="no" allowtransparency="true" frameborder="0"></iframe>]
60
+ end
61
+
62
+ it "should create order for the button" do
63
+ response = {"success"=>true, "order"=>{"id"=>"UAHXEK24", "created_at"=>"2013-12-13T01:15:56-08:00", "status"=>"new", "total_btc"=>{"cents"=>123, "currency_iso"=>"BTC"}, "total_native"=>{"cents"=>123, "currency_iso"=>"BTC"}, "custom"=>"Order123", "receive_address"=>"1EWxf61QGAkQDNUDq6XynH2PdFRyZUm111", "button"=>{"type"=>"buy_now", "name"=>"Order 123", "description"=>"Sample description", "id"=>"93865b9cae83706ae59220c013bc0afd"}, "transaction"=>nil}}
64
+ fake :post, '/buttons/93865b9cae83706ae59220c013bc0afd/create_order', response
65
+ r = @c.create_order_for_button "93865b9cae83706ae59220c013bc0afd"
66
+ r.order.button.id.should == "93865b9cae83706ae59220c013bc0afd"
67
+ r.order.status.should == "new"
68
+ end
69
+
70
+ # Transactions
71
+
72
+ it "should get transaction list" do
73
+ response = {"current_user"=>{"id"=>"5011f33df8182b142400000e", "email"=>"user2@example.com", "name"=>"user2@example.com"}, "balance"=>{"amount"=>"50.00000000", "currency"=>"BTC"}, "total_count"=>2, "num_pages"=>1, "current_page"=>1, "transactions"=>[{"transaction"=>{"id"=>"5018f833f8182b129c00002f", "created_at"=>"2012-08-01T02:34:43-07:00", "amount"=>{"amount"=>"-1.10000000", "currency"=>"BTC"}, "request"=>true, "status"=>"pending", "sender"=>{"id"=>"5011f33df8182b142400000e", "name"=>"User Two", "email"=>"user2@example.com"}, "recipient"=>{"id"=>"5011f33df8182b142400000a", "name"=>"User One", "email"=>"user1@example.com"}}}, {"transaction"=>{"id"=>"5018f833f8182b129c00002e", "created_at"=>"2012-08-01T02:36:43-07:00", "hsh" => "9d6a7d1112c3db9de5315b421a5153d71413f5f752aff75bf504b77df4e646a3", "amount"=>{"amount"=>"-1.00000000", "currency"=>"BTC"}, "request"=>false, "status"=>"complete", "sender"=>{"id"=>"5011f33df8182b142400000e", "name"=>"User Two", "email"=>"user2@example.com"}, "recipient_address"=>"37muSN5ZrukVTvyVh3mT5Zc5ew9L9CBare"}}]}
74
+ fake :get, '/transactions', response
75
+ r = @c.transactions
76
+ r.transactions.first.transaction.id.should == '5018f833f8182b129c00002f'
77
+ r.transactions.last.transaction.hsh.should == '9d6a7d1112c3db9de5315b421a5153d71413f5f752aff75bf504b77df4e646a3'
78
+ end
79
+
80
+ it "should not fail if there are no transactions" do
81
+ response = {"current_user"=>{"id"=>"5011f33df8182b142400000e", "email"=>"user2@example.com", "name"=>"user2@example.com"}, "balance"=>{"amount"=>"0.00000000", "currency"=>"BTC"}, "total_count"=>0, "num_pages"=>0, "current_page"=>1}
82
+ fake :get, '/transactions', response
83
+ r = @c.transactions
84
+ r.transactions.should_not be_nil
85
+ end
86
+
87
+ it "should send money" do
88
+ response = {"success"=>true, "transaction"=>{"id"=>"501a1791f8182b2071000087", "created_at"=>"2012-08-01T23:00:49-07:00", "notes"=>"Sample transaction for you!", "amount"=>{"amount"=>"-1.23400000", "currency"=>"BTC"}, "request"=>false, "status"=>"pending", "sender"=>{"id"=>"5011f33df8182b142400000e", "name"=>"User Two", "email"=>"user2@example.com"}, "recipient"=>{"id"=>"5011f33df8182b142400000a", "name"=>"User One", "email"=>"user1@example.com"}}}
89
+ fake :post, '/transactions/send_money', response
90
+ r = @c.send_money "user1@example.com", 1.2345, "Sample transaction for you"
91
+ r.success.should == true
92
+ r.transaction.id.should == '501a1791f8182b2071000087'
93
+ end
94
+
95
+ it "should request money" do
96
+ response = {"success"=>true, "transaction"=>{"id"=>"501a3554f8182b2754000003", "created_at"=>"2012-08-02T01:07:48-07:00", "notes"=>"Sample request for you!", "amount"=>{"amount"=>"1.23400000", "currency"=>"BTC"}, "request"=>true, "status"=>"pending", "sender"=>{"id"=>"5011f33df8182b142400000a", "name"=>"User One", "email"=>"user1@example.com"}, "recipient"=>{"id"=>"5011f33df8182b142400000e", "name"=>"User Two", "email"=>"user2@example.com"}}}
97
+ fake :post, '/transactions/request_money', response
98
+ r = @c.request_money "user1@example.com", 1.2345, "Sample transaction for you"
99
+ r.success.should == true
100
+ r.transaction.id.should == '501a3554f8182b2754000003'
101
+ end
102
+
103
+ it "should resend requests" do
104
+ response = {"success"=>true}
105
+ fake :put, "/transactions/501a3554f8182b2754000003/resend_request", response
106
+ r = @c.resend_request '501a3554f8182b2754000003'
107
+ r.success.should == true
108
+ end
109
+
110
+ it "should cancel requests" do
111
+ response = {"success"=>true}
112
+ fake :delete, "/transactions/501a3554f8182b2754000003/cancel_request", response
113
+ r = @c.cancel_request '501a3554f8182b2754000003'
114
+ r.success.should == true
115
+ end
116
+
117
+ it "should resend requests" do
118
+ response = {"success"=>true}
119
+ fake :put, "/transactions/501a3554f8182b2754000003/complete_request", response
120
+ r = @c.complete_request '501a3554f8182b2754000003'
121
+ r.success.should == true
122
+ end
123
+
124
+ # Users
125
+
126
+ it "should let you create users" do
127
+ response = {"success"=>true, "user"=>{"id"=>"501a3d22f8182b2754000011", "name"=>"New User", "email"=>"newuser@example.com", "receive_address"=>"mpJKwdmJKYjiyfNo26eRp4j6qGwuUUnw9x"}}
128
+ fake :post, "/users", response
129
+ r = @c.create_user "newuser@example.com"
130
+ r.success.should == true
131
+ r.user.email.should == "newuser@example.com"
132
+ r.user.receive_address.should == "mpJKwdmJKYjiyfNo26eRp4j6qGwuUUnw9x"
133
+ end
134
+
135
+ # Prices
136
+
137
+ it "should let you get buy and sell prices" do
138
+ response = {"amount"=>"13.84", "currency"=>"USD"}
139
+ fake :get, "/prices/buy", response
140
+ r = @c.buy_price 1
141
+ r.to_f.should == 13.84
142
+
143
+ fake :get, "/prices/sell", response
144
+ r = @c.sell_price 1
145
+ r.to_f.should == 13.84
146
+ end
147
+
148
+ # Buys
149
+
150
+ it "should let you buy bitcoin" do
151
+ response = {"success"=>true, "transfer"=>{"_type"=>"AchDebit", "code"=>"6H7GYLXZ", "created_at"=>"2013-01-28T16:08:58-08:00", "fees"=>{"coinbase"=>{"cents"=>14, "currency_iso"=>"USD"}, "bank"=>{"cents"=>15, "currency_iso"=>"USD"}}, "status"=>"created", "payout_date"=>"2013-02-01T18:00:00-08:00", "btc"=>{"amount"=>"1.00000000", "currency"=>"BTC"}, "subtotal"=>{"amount"=>"13.55", "currency"=>"USD"}, "total"=>{"amount"=>"13.84", "currency"=>"USD"}}}
152
+ fake :post, "/buys", response
153
+ r = @c.buy! 1
154
+ r.success?.should == true
155
+ r.transfer.code.should == '6H7GYLXZ'
156
+ r.transfer.status.should == 'created'
157
+ r.transfer.btc.should == 1.to_money
158
+ end
159
+
160
+ # Sells
161
+
162
+ it "should let you sell bitcoin" do
163
+ response = {"success"=>true, "transfer"=>{"_type"=>"AchCredit", "code"=>"RD2OC8AL", "created_at"=>"2013-01-28T16:32:35-08:00", "fees"=>{"coinbase"=>{"cents"=>14, "currency_iso"=>"USD"}, "bank"=>{"cents"=>15, "currency_iso"=>"USD"}}, "status"=>"created", "payout_date"=>"2013-02-01T18:00:00-08:00", "btc"=>{"amount"=>"1.00000000", "currency"=>"BTC"}, "subtotal"=>{"amount"=>"13.50", "currency"=>"USD"}, "total"=>{"amount"=>"13.21", "currency"=>"USD"}}}
164
+ fake :post, "/sells", response
165
+ r = @c.sell! 1
166
+ r.success?.should == true
167
+ r.transfer.code.should == 'RD2OC8AL'
168
+ r.transfer.status.should == 'created'
169
+ r.transfer.btc.should == 1.to_money
170
+ end
171
+
172
+ # Transfers
173
+
174
+ it "should get recent transfers" do
175
+ response = {"transfers" => [{"transfer" => {"type" => "Buy", "code" => "QPCUCZHR", "created_at" => "2013-02-27T23:28:18-08:00", "fees" => {"coinbase" => {"cents" => 14, "currency_iso" => "USD"}, "bank" => {"cents" => 15, "currency_iso" => "USD"} }, "payout_date" => "2013-03-05T18:00:00-08:00", "transaction_id" => "5011f33df8182b142400000e", "status" => "Pending", "btc" => {"amount" => "1.00000000", "currency" => "BTC"}, "subtotal" => {"amount" => "13.55", "currency" => "USD"}, "total" => {"amount" => "13.84", "currency" => "USD"}, "description" => "Paid for with $13.84 from Test xxxxx3111."} } ], "total_count" => 1, "num_pages" => 1, "current_page" => 1 }
176
+ fake :get, "/transfers", response
177
+ r = @c.transfers
178
+ t = r.transfers.first.transfer
179
+ t.type.should == "Buy"
180
+ t.code.should == "QPCUCZHR"
181
+ t.status.should == "Pending"
182
+ t.btc.should == 1.to_money
183
+ end
184
+
185
+
186
+ private
187
+
188
+ def fake method, path, body
189
+ FakeWeb.register_uri(method, "#{BASE_URI}#{path}", body: body.to_json)
190
+ end
191
+ end
@@ -0,0 +1,163 @@
1
+ {
2
+ "AED": "United Arab Emirates Dirham",
3
+ "AFN": "Afghan Afghani",
4
+ "ALL": "Albanian Lek",
5
+ "AMD": "Armenian Dram",
6
+ "ANG": "Netherlands Antillean Guilder",
7
+ "AOA": "Angolan Kwanza",
8
+ "ARS": "Argentine Peso",
9
+ "AUD": "Australian Dollar",
10
+ "AWG": "Aruban Florin",
11
+ "AZN": "Azerbaijani Manat",
12
+ "BAM": "Bosnia-Herzegovina Convertible Mark",
13
+ "BBD": "Barbadian Dollar",
14
+ "BDT": "Bangladeshi Taka",
15
+ "BGN": "Bulgarian Lev",
16
+ "BHD": "Bahraini Dinar",
17
+ "BIF": "Burundian Franc",
18
+ "BMD": "Bermudan Dollar",
19
+ "BND": "Brunei Dollar",
20
+ "BOB": "Bolivian Boliviano",
21
+ "BRL": "Brazilian Real",
22
+ "BSD": "Bahamian Dollar",
23
+ "BTC": "Bitcoin",
24
+ "BTN": "Bhutanese Ngultrum",
25
+ "BWP": "Botswanan Pula",
26
+ "BYR": "Belarusian Ruble",
27
+ "BZD": "Belize Dollar",
28
+ "CAD": "Canadian Dollar",
29
+ "CDF": "Congolese Franc",
30
+ "CHF": "Swiss Franc",
31
+ "CLF": "Chilean Unit of Account (UF)",
32
+ "CLP": "Chilean Peso",
33
+ "CNY": "Chinese Yuan",
34
+ "COP": "Colombian Peso",
35
+ "CRC": "Costa Rican Colón",
36
+ "CUP": "Cuban Peso",
37
+ "CVE": "Cape Verdean Escudo",
38
+ "CZK": "Czech Republic Koruna",
39
+ "DJF": "Djiboutian Franc",
40
+ "DKK": "Danish Krone",
41
+ "DOP": "Dominican Peso",
42
+ "DZD": "Algerian Dinar",
43
+ "EEK": "Estonian Kroon",
44
+ "EGP": "Egyptian Pound",
45
+ "ETB": "Ethiopian Birr",
46
+ "EUR": "Euro",
47
+ "FJD": "Fijian Dollar",
48
+ "FKP": "Falkland Islands Pound",
49
+ "GBP": "British Pound Sterling",
50
+ "GEL": "Georgian Lari",
51
+ "GHS": "Ghanaian Cedi",
52
+ "GIP": "Gibraltar Pound",
53
+ "GMD": "Gambian Dalasi",
54
+ "GNF": "Guinean Franc",
55
+ "GTQ": "Guatemalan Quetzal",
56
+ "GYD": "Guyanaese Dollar",
57
+ "HKD": "Hong Kong Dollar",
58
+ "HNL": "Honduran Lempira",
59
+ "HRK": "Croatian Kuna",
60
+ "HTG": "Haitian Gourde",
61
+ "HUF": "Hungarian Forint",
62
+ "IDR": "Indonesian Rupiah",
63
+ "ILS": "Israeli New Sheqel",
64
+ "INR": "Indian Rupee",
65
+ "IQD": "Iraqi Dinar",
66
+ "IRR": "Iranian Rial",
67
+ "ISK": "Icelandic Króna",
68
+ "JEP": "Jersey Pound",
69
+ "JMD": "Jamaican Dollar",
70
+ "JOD": "Jordanian Dinar",
71
+ "JPY": "Japanese Yen",
72
+ "KES": "Kenyan Shilling",
73
+ "KGS": "Kyrgystani Som",
74
+ "KHR": "Cambodian Riel",
75
+ "KMF": "Comorian Franc",
76
+ "KPW": "North Korean Won",
77
+ "KRW": "South Korean Won",
78
+ "KWD": "Kuwaiti Dinar",
79
+ "KYD": "Cayman Islands Dollar",
80
+ "KZT": "Kazakhstani Tenge",
81
+ "LAK": "Laotian Kip",
82
+ "LBP": "Lebanese Pound",
83
+ "LKR": "Sri Lankan Rupee",
84
+ "LRD": "Liberian Dollar",
85
+ "LSL": "Lesotho Loti",
86
+ "LTL": "Lithuanian Litas",
87
+ "LVL": "Latvian Lats",
88
+ "LYD": "Libyan Dinar",
89
+ "MAD": "Moroccan Dirham",
90
+ "MDL": "Moldovan Leu",
91
+ "MGA": "Malagasy Ariary",
92
+ "MKD": "Macedonian Denar",
93
+ "MMK": "Myanma Kyat",
94
+ "MNT": "Mongolian Tugrik",
95
+ "MOP": "Macanese Pataca",
96
+ "MRO": "Mauritanian Ouguiya",
97
+ "MUR": "Mauritian Rupee",
98
+ "MVR": "Maldivian Rufiyaa",
99
+ "MWK": "Malawian Kwacha",
100
+ "MXN": "Mexican Peso",
101
+ "MYR": "Malaysian Ringgit",
102
+ "MZN": "Mozambican Metical",
103
+ "NAD": "Namibian Dollar",
104
+ "NGN": "Nigerian Naira",
105
+ "NIO": "Nicaraguan Córdoba",
106
+ "NOK": "Norwegian Krone",
107
+ "NPR": "Nepalese Rupee",
108
+ "NZD": "New Zealand Dollar",
109
+ "OMR": "Omani Rial",
110
+ "PAB": "Panamanian Balboa",
111
+ "PEN": "Peruvian Nuevo Sol",
112
+ "PGK": "Papua New Guinean Kina",
113
+ "PHP": "Philippine Peso",
114
+ "PKR": "Pakistani Rupee",
115
+ "PLN": "Polish Zloty",
116
+ "PYG": "Paraguayan Guarani",
117
+ "QAR": "Qatari Rial",
118
+ "RON": "Romanian Leu",
119
+ "RSD": "Serbian Dinar",
120
+ "RUB": "Russian Ruble",
121
+ "RWF": "Rwandan Franc",
122
+ "SAR": "Saudi Riyal",
123
+ "SBD": "Solomon Islands Dollar",
124
+ "SCR": "Seychellois Rupee",
125
+ "SDG": "Sudanese Pound",
126
+ "SEK": "Swedish Krona",
127
+ "SGD": "Singapore Dollar",
128
+ "SHP": "Saint Helena Pound",
129
+ "SLL": "Sierra Leonean Leone",
130
+ "SOS": "Somali Shilling",
131
+ "SRD": "Surinamese Dollar",
132
+ "STD": "São Tomé and Príncipe Dobra",
133
+ "SVC": "Salvadoran Colón",
134
+ "SYP": "Syrian Pound",
135
+ "SZL": "Swazi Lilangeni",
136
+ "THB": "Thai Baht",
137
+ "TJS": "Tajikistani Somoni",
138
+ "TMT": "Turkmenistani Manat",
139
+ "TND": "Tunisian Dinar",
140
+ "TOP": "Tongan Paʻanga",
141
+ "TRY": "Turkish Lira",
142
+ "TTD": "Trinidad and Tobago Dollar",
143
+ "TWD": "New Taiwan Dollar",
144
+ "TZS": "Tanzanian Shilling",
145
+ "UAH": "Ukrainian Hryvnia",
146
+ "UGX": "Ugandan Shilling",
147
+ "USD": "United States Dollar",
148
+ "UYU": "Uruguayan Peso",
149
+ "UZS": "Uzbekistan Som",
150
+ "VEF": "Venezuelan Bolívar",
151
+ "VND": "Vietnamese Dong",
152
+ "VUV": "Vanuatu Vatu",
153
+ "WST": "Samoan Tala",
154
+ "XAF": "CFA Franc BEAC",
155
+ "XCD": "East Caribbean Dollar",
156
+ "XDR": "Special Drawing Rights",
157
+ "XOF": "CFA Franc BCEAO",
158
+ "XPF": "CFP Franc",
159
+ "YER": "Yemeni Rial",
160
+ "ZAR": "South African Rand",
161
+ "ZMK": "Zambian Kwacha",
162
+ "ZWL": "Zimbabwean Dollar"
163
+ }
metadata CHANGED
@@ -1,205 +1,173 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coinbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.3.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
- - Yuga Cohler
8
+ - Brian Armstrong
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2024-04-19 00:00:00.000000000 Z
12
+ date: 2014-02-11 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- name: bigdecimal
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: dotenv
15
+ name: rspec
29
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
30
18
  requirements:
31
- - - '='
19
+ - - ~>
32
20
  - !ruby/object:Gem::Version
33
- version: 2.8.1
34
- type: :runtime
21
+ version: '2.12'
22
+ type: :development
35
23
  prerelease: false
36
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
37
26
  requirements:
38
- - - '='
27
+ - - ~>
39
28
  - !ruby/object:Gem::Version
40
- version: 2.8.1
29
+ version: '2.12'
41
30
  - !ruby/object:Gem::Dependency
42
- name: eth
31
+ name: fakeweb
43
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
44
34
  requirements:
45
- - - ">="
35
+ - - ~>
46
36
  - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
37
+ version: 1.3.0
38
+ type: :development
49
39
  prerelease: false
50
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
51
42
  requirements:
52
- - - ">="
43
+ - - ~>
53
44
  - !ruby/object:Gem::Version
54
- version: '0'
45
+ version: 1.3.0
55
46
  - !ruby/object:Gem::Dependency
56
- name: jimson
47
+ name: rake
57
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
58
50
  requirements:
59
- - - ">="
51
+ - - ! '>='
60
52
  - !ruby/object:Gem::Version
61
53
  version: '0'
62
- type: :runtime
54
+ type: :development
63
55
  prerelease: false
64
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
65
58
  requirements:
66
- - - ">="
59
+ - - ! '>='
67
60
  - !ruby/object:Gem::Version
68
61
  version: '0'
69
62
  - !ruby/object:Gem::Dependency
70
- name: money-tree
63
+ name: httparty
71
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
72
66
  requirements:
73
- - - ">="
67
+ - - ! '>='
74
68
  - !ruby/object:Gem::Version
75
- version: '0'
69
+ version: 0.8.3
76
70
  type: :runtime
77
71
  prerelease: false
78
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
79
74
  requirements:
80
- - - ">="
75
+ - - ! '>='
81
76
  - !ruby/object:Gem::Version
82
- version: '0'
77
+ version: 0.8.3
83
78
  - !ruby/object:Gem::Dependency
84
- name: securerandom
79
+ name: multi_json
85
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
86
82
  requirements:
87
- - - ">="
83
+ - - ! '>='
88
84
  - !ruby/object:Gem::Version
89
- version: '0'
85
+ version: 1.3.4
90
86
  type: :runtime
91
87
  prerelease: false
92
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
93
90
  requirements:
94
- - - ">="
91
+ - - ! '>='
95
92
  - !ruby/object:Gem::Version
96
- version: '0'
93
+ version: 1.3.4
97
94
  - !ruby/object:Gem::Dependency
98
- name: pry
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: rake
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'
125
- - !ruby/object:Gem::Dependency
126
- name: rspec
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: rubocop
95
+ name: money
141
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
142
98
  requirements:
143
99
  - - '='
144
100
  - !ruby/object:Gem::Version
145
- version: 1.63.1
146
- type: :development
101
+ version: 5.1.1
102
+ type: :runtime
147
103
  prerelease: false
148
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
149
106
  requirements:
150
107
  - - '='
151
108
  - !ruby/object:Gem::Version
152
- version: 1.63.1
109
+ version: 5.1.1
153
110
  - !ruby/object:Gem::Dependency
154
- name: yard
111
+ name: hashie
155
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
156
114
  requirements:
157
- - - '='
115
+ - - ! '>='
158
116
  - !ruby/object:Gem::Version
159
- version: 0.9.36
160
- type: :development
117
+ version: 1.2.0
118
+ type: :runtime
161
119
  prerelease: false
162
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
163
122
  requirements:
164
- - - '='
123
+ - - ! '>='
165
124
  - !ruby/object:Gem::Version
166
- version: 0.9.36
167
- description: Coinbase Ruby SDK for accessing Coinbase Platform APIs
168
- email: yuga.cohler@coinbase.com
125
+ version: 1.2.0
126
+ description: ! '["Wrapper for the Coinbase Oauth2 API"]'
127
+ email:
128
+ - ''
169
129
  executables: []
170
130
  extensions: []
171
131
  extra_rdoc_files: []
172
132
  files:
133
+ - .gitignore
134
+ - .travis.yml
135
+ - Gemfile
136
+ - LICENSE.txt
137
+ - README.md
138
+ - Rakefile
139
+ - coinbase.gemspec
173
140
  - lib/coinbase.rb
174
- - lib/coinbase/address.rb
175
- - lib/coinbase/asset.rb
176
- - lib/coinbase/balance_map.rb
177
- - lib/coinbase/constants.rb
178
- - lib/coinbase/network.rb
179
- - lib/coinbase/transfer.rb
180
- - lib/coinbase/wallet.rb
181
- homepage: https://github.com/coinbase/coinbase-sdk-ruby
182
- licenses:
183
- - Apache-2.0
184
- metadata:
185
- rubygems_mfa_required: 'true'
141
+ - lib/coinbase/ca-coinbase.crt
142
+ - lib/coinbase/client.rb
143
+ - lib/coinbase/money.rb
144
+ - lib/coinbase/version.rb
145
+ - spec/client_spec.rb
146
+ - supported_currencies.json
147
+ homepage: https://coinbase.com/api/doc
148
+ licenses: []
186
149
  post_install_message:
187
150
  rdoc_options: []
188
151
  require_paths:
189
152
  - lib
190
153
  required_ruby_version: !ruby/object:Gem::Requirement
154
+ none: false
191
155
  requirements:
192
- - - ">="
156
+ - - ! '>='
193
157
  - !ruby/object:Gem::Version
194
- version: 2.7.0
158
+ version: '0'
195
159
  required_rubygems_version: !ruby/object:Gem::Requirement
160
+ none: false
196
161
  requirements:
197
- - - ">="
162
+ - - ! '>='
198
163
  - !ruby/object:Gem::Version
199
164
  version: '0'
200
165
  requirements: []
201
- rubygems_version: 3.1.6
166
+ rubyforge_project:
167
+ rubygems_version: 1.8.23
202
168
  signing_key:
203
- specification_version: 4
204
- summary: Coinbase Ruby SDK
205
- test_files: []
169
+ specification_version: 3
170
+ summary: ! '["Wrapper for the Coinbase Oauth2 API"]'
171
+ test_files:
172
+ - spec/client_spec.rb
173
+ has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA256:
3
- metadata.gz: fd20c87743ea6c8d95575db35841ffd10b1dc87376d9d1e2e08803998b8322e8
4
- data.tar.gz: 475ac4213ae2e15c5ea5002441302faa908524ccb067e7a0ce99194d15c5b049
5
- SHA512:
6
- metadata.gz: 94fadca140def76fb428a824eca188f3eaa77388963f59ec04d70adfc1c1ccf2002c8af791bfc84bb7d83b07753b83fc755cec3af149e6c4549d51c594490ba6
7
- data.tar.gz: 8d04ee71428ee01611445c71f7642a205493e4a12f365826726132fc5fc783015e7aaa7e98e3813da924c914336bc51592198b6e0b3cc77b4e7e0d2226fdc655