btrade 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/btrade.rb +2 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f748ad6a5904fdc4793ba65e73ab2792a7a0dc71
4
- data.tar.gz: df6f578c0229dbe6efdba951853d80ec1c090b9e
3
+ metadata.gz: c40cdccedf6f62810985542cc59fd68d170fb66a
4
+ data.tar.gz: ba73cd5f82522d4f26694ac384b21eea5ed831aa
5
5
  SHA512:
6
- metadata.gz: 60283f1214c143dfd0583bcabcfd00d6defa54b99922257e1645687dd531c7af70231be6713cd9727972f1bbccb378ae6b72653f093b3601e1df903ea0f3627c
7
- data.tar.gz: 8737116feb0fa770d929c99ffdc4b72b3dcfff159e50b45380c50ff850e4c43cc3ae1b1f15a4c49db88d03bf2685193554029aff5f546c6206bac69207c264bf
6
+ metadata.gz: 5c2c3d6bee233f08dfe4ba68cf8b93a5b3e02e74c8e91cbfd386b6973a3a192c66b140a6c121abd554393bee52a1f55c2b8be04a778a5d7b52a1d488f5708878
7
+ data.tar.gz: b2e69d74719fce147944a3701c2ffa27009b155621984ce228ec4b1ae904505f3aaa0a385d0944ee985bb566bfd2542873040912edc2976fc4e4a7738865a59c
@@ -19,10 +19,8 @@ module Btrade
19
19
  @@consumer = OAuth::Consumer.new(consumer_key[:token], consumer_key[:secret], {:site => "https://etws.etrade.com", :http_method => :get})
20
20
  end
21
21
 
22
- def self.get_auth_url
23
- token = @@consumer.get_request_token()
24
-
25
- "https://us.etrade.com/e/t/etws/authorize?key=#{escape(@@consumer.key)}5&token=#{token.token}"
22
+ def self.get_auth_url(request_token)
23
+ "https://us.etrade.com/e/t/etws/authorize?key=#{escape(@@consumer.key)}5&token=#{request_token.token}"
26
24
  end
27
25
 
28
26
  def self.get_request_token
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: btrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Adamson