clickclient_scrap 0.1.7 → 0.1.8

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.
Files changed (3) hide show
  1. data/ChangeLog +3 -0
  2. data/lib/clickclient_scrap.rb +5 -4
  3. metadata +2 -2
data/ChangeLog CHANGED
@@ -0,0 +1,3 @@
1
+
2
+ 2009-12-16 0.1.8
3
+ * サイトの仕様変更により、成り行き注文ができなくなってた問題を修正。
@@ -349,9 +349,9 @@ module ClickClientScrap
349
349
  case type
350
350
  when ORDER_TYPE_MARKET_ORDER
351
351
  # 成り行き
352
- form["P002"] = unit.to_s # 取り引き数量
353
- form["P005.0"] = sell_or_buy == ClickClientScrap::FX::SELL ? "1" : "0" #売り/買い
354
- form["P007"] = options[:slippage].to_s if ( options && options[:slippage] != nil ) # スリッページ
352
+ form["P003"] = unit.to_s # 取り引き数量
353
+ form["P002.0"] = sell_or_buy == ClickClientScrap::FX::SELL ? "1" : "0" #売り/買い
354
+ form["P005"] = options[:slippage].to_s if ( options && options[:slippage] != nil ) # スリッページ
355
355
  when ORDER_TYPE_NORMAL
356
356
  # 指値
357
357
  form["P003"] = options[:rate].to_s # レート
@@ -603,7 +603,8 @@ module ClickClientScrap
603
603
  # ログアウトします。
604
604
  def logout
605
605
  @client.click( @links.find {|i|
606
- i.text == "\303\233\302\270\303\236\302\261\302\263\303\204"
606
+ i.text == "\303\233\302\270\303\236\302\261\302\263\303\204" \
607
+ || i.text == "ログアウト"
607
608
  })
608
609
  end
609
610
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clickclient_scrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaya Yamauchi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-12 00:00:00 +09:00
12
+ date: 2009-12-16 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency