unageanu-clickclient_scrap 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/jiji_plugin.rb +6 -3
  2. metadata +1 -1
@@ -20,7 +20,7 @@ class ClickSecuritiesPlugin
20
20
  def input_infos
21
21
  [ Input.new( :user, "Please input a user name of CLICK Securities.", false, nil ),
22
22
  Input.new( :password, "Please input a password of CLICK Securities.", true, nil ),
23
- Input.new( :proxy, "Please input a proxy. example: https://example.com:80 (default: nil )", false, nil ) ]
23
+ Input.new( :proxy, "Please input a proxy. example: http://example.com:80 (default: nil )", false, nil ) ]
24
24
  end
25
25
 
26
26
  #プラグインを初期化します。
@@ -113,8 +113,11 @@ class ClickSecuritiesPluginSession
113
113
  end
114
114
  def session
115
115
  begin
116
- @client ||= ClickClientScrap::Client.new(
117
- @props.key?(:proxy) ? @props[:proxy] : nil )
116
+ proxy = nil
117
+ if @props.key?(:proxy) && @props[:proxy] != nil && @props[:proxy].length > 0
118
+ proxy = @props[:proxy]
119
+ end
120
+ @client ||= ClickClientScrap::Client.new( proxy )
118
121
  @session ||= @client.fx_session( @props[:user], @props[:password] )
119
122
  rescue
120
123
  @logger.error $!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unageanu-clickclient_scrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaya Yamauchi