clickclient 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,4 +1,8 @@
1
+
2
+ == 0.0.2 2008-03-30
3
+
4
+ * WebサービスのURL変更に対応。
5
+
1
6
  == 0.0.1 2007-12-15
2
7
 
3
- * 1 major enhancement:
4
- * Initial release
8
+ * Initial release
@@ -9,7 +9,7 @@ require 'date'
9
9
  #
10
10
  #=== クリック証券アクセスクライアント
11
11
  #
12
- #*Version*:: 0.0.1
12
+ #*Version*:: 0.0.2
13
13
  #*License*:: Ruby ライセンスに準拠
14
14
  #
15
15
  #クリック証券Webサービスを利用するためのクライアントライブラリです。以下の機能を提供します。
@@ -44,7 +44,7 @@ module ClickClient
44
44
  class Client
45
45
 
46
46
  # ホスト名
47
- DEFAULT_HOST_NAME = "https://sec-sso.gmo.jp"
47
+ DEFAULT_HOST_NAME = "https://sec-sso.click-sec.com"
48
48
 
49
49
  #
50
50
  #===コンストラクタ
@@ -2,7 +2,7 @@ module Clickclient #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/test/alltests.rb CHANGED
@@ -2,5 +2,5 @@ require File.dirname(__FILE__) + '/test_helper.rb'
2
2
 
3
3
  #以下のコマンドで実行します。
4
4
  # ruby alltests.rb <CLICK証券のユーザー名> <CLICK証券のパスワード>
5
- require "clicklient_basetest"
6
- require "clicklient_fxtest"
5
+ require "test_base"
6
+ require "connect_test_fx"
@@ -80,13 +80,21 @@ class ClickClient_FxTest < RUNIT::TestCase
80
80
  now = DateTime.now
81
81
 
82
82
  # 範囲指定のみ
83
- list = fx.list_execution_results now - 100, now
83
+ begin
84
+ list = fx.list_execution_results now - 100, now
85
+ rescue
86
+ puts $! # 約定履歴がないとエラーになるので
87
+ end
84
88
  list.each {|execution_result|
85
89
  assert_valid_execution_result( execution_result )
86
90
  }
87
91
 
88
92
  # 範囲指定、種別、通貨ペアコードを指定
89
- list = fx.list_execution_results now - 100, now, ClickClient::FX::TRADE_TYPE_SETTLEMENT, ClickClient::FX::ZARJPY
93
+ begin
94
+ list = fx.list_execution_results now - 100, now, ClickClient::FX::TRADE_TYPE_SETTLEMENT, ClickClient::FX::ZARJPY
95
+ rescue
96
+ puts $! # 約定履歴がないとエラーになるので
97
+ end
90
98
  list.each {|execution_result|
91
99
  assert_valid_execution_result( execution_result )
92
100
  }
metadata CHANGED
@@ -1,33 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4
3
- specification_version: 1
4
2
  name: clickclient
5
3
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2007-12-15 00:00:00 +09:00
8
- summary: CLICK Securities Web Service Client For Ruby.
9
- require_paths:
10
- - lib
11
- email: masaya.yamauchi@gmail.com
12
- homepage: http://clickclient.rubyforge.org
13
- rubyforge_project: clickclient
14
- description: CLICK Securities Web Service Client For Ruby.
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
25
- platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
4
+ version: 0.0.2
5
+ platform: ""
29
6
  authors:
30
7
  - masaya yamauchi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-03-30 00:00:00 +09:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: httpclient
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.1.2
23
+ version:
24
+ description: CLICK Securities Web Service Client For Ruby.
25
+ email: masaya.yamauchi@gmail.com
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files:
31
+ - History.txt
32
+ - License.txt
33
+ - README.txt
31
34
  files:
32
35
  - History.txt
33
36
  - License.txt
@@ -41,29 +44,33 @@ files:
41
44
  - test/connect_test_fx.rb
42
45
  - test/test_base.rb
43
46
  - example/example_use_localserver.rb
44
- test_files:
45
- - test/test_helper.rb
46
- - test/test_base.rb
47
+ has_rdoc: true
48
+ homepage: http://clickclient.rubyforge.org
49
+ post_install_message:
47
50
  rdoc_options:
48
51
  - --main
49
52
  - README.txt
50
- extra_rdoc_files:
51
- - History.txt
52
- - License.txt
53
- - README.txt
54
- executables: []
55
-
56
- extensions: []
57
-
53
+ require_paths:
54
+ - lib
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: "0"
60
+ version:
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
66
+ version:
58
67
  requirements: []
59
68
 
60
- dependencies:
61
- - !ruby/object:Gem::Dependency
62
- name: httpclient
63
- version_requirement:
64
- version_requirements: !ruby/object:Gem::Version::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: 2.1.2
69
- version:
69
+ rubyforge_project: clickclient
70
+ rubygems_version: 0.9.5
71
+ signing_key:
72
+ specification_version: 2
73
+ summary: CLICK Securities Web Service Client For Ruby.
74
+ test_files:
75
+ - test/test_base.rb
76
+ - test/test_helper.rb