metric_tools 0.0.10 → 0.0.11
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.
- data/README.md +0 -6
- data/doc/AWS.html +150 -0
- data/doc/{Pref/Skype.html → AWS/S3.html} +19 -25
- data/doc/Gemfile.html +16 -8
- data/doc/MetricTools.html +21 -9
- data/doc/MetricTools/IndexTree.html +197 -20
- data/doc/MetricTools/S3.html +47 -21
- data/doc/MetricTools/SpreadSheet.html +139 -22
- data/doc/MetricTools/Table.html +210 -48
- data/doc/Object.html +16 -27
- data/doc/Pref.html +18 -7
- data/doc/Pref/GoogleDocs.html +17 -7
- data/doc/Pref/S3.html +17 -7
- data/doc/README_md.html +170 -0
- data/doc/created.rid +24 -13
- data/doc/doc/created_rid.html +111 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/index.html +15 -7
- data/doc/js/darkfish.js +9 -7
- data/doc/js/search_index.js +1 -1
- data/doc/metric_tools_gemspec.html +132 -0
- data/doc/rdoc.css +52 -0
- data/doc/table_of_contents.html +48 -22
- data/metric_tools.gemspec +1 -2
- metadata +7 -21
- data/doc/MetricTools/Skype.html +0 -343
- data/lib/metric_tools/skype.rb +0 -68
- data/spec/skype_spec.rb +0 -39
data/doc/table_of_contents.html
CHANGED
@@ -27,16 +27,42 @@
|
|
27
27
|
<ul>
|
28
28
|
<li class="file">
|
29
29
|
<a href="Gemfile.html">Gemfile</a>
|
30
|
+
</li>
|
31
|
+
<li class="file">
|
32
|
+
<a href="README_md.html">README</a>
|
33
|
+
|
34
|
+
<img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
|
35
|
+
<ul class="initially-hidden">
|
36
|
+
<li><a href="README_md.html#label-metric_tools">metric_tools</a>
|
37
|
+
<li><a href="README_md.html#label-Install">Install</a>
|
38
|
+
<li><a href="README_md.html#label-Usage">Usage</a>
|
39
|
+
<li><a href="README_md.html#label-SpreadSheet">SpreadSheet</a>
|
40
|
+
<li><a href="README_md.html#label-S3">S3</a>
|
41
|
+
<li><a href="README_md.html#label-Skype">Skype</a>
|
42
|
+
<li><a href="README_md.html#label-Version+Info">Version Info</a>
|
43
|
+
</ul>
|
30
44
|
</li>
|
31
45
|
<li class="file">
|
32
46
|
<a href="config/my_pref.html">my_pref</a>
|
33
47
|
</li>
|
48
|
+
<li class="file">
|
49
|
+
<a href="doc/created_rid.html">created.rid</a>
|
50
|
+
</li>
|
51
|
+
<li class="file">
|
52
|
+
<a href="metric_tools_gemspec.html">metric_tools.gemspec</a>
|
53
|
+
</li>
|
34
54
|
|
35
55
|
</ul>
|
36
56
|
|
37
57
|
<h2 id="classes">Classes/Modules</h2>
|
38
58
|
<ul>
|
39
59
|
<li class="module">
|
60
|
+
<a href="AWS.html">AWS</a>
|
61
|
+
</li>
|
62
|
+
<li class="module">
|
63
|
+
<a href="AWS/S3.html">AWS::S3</a>
|
64
|
+
</li>
|
65
|
+
<li class="module">
|
40
66
|
<a href="MetricTools.html">MetricTools</a>
|
41
67
|
</li>
|
42
68
|
<li class="class">
|
@@ -44,15 +70,15 @@
|
|
44
70
|
</li>
|
45
71
|
<li class="class">
|
46
72
|
<a href="MetricTools/S3.html">MetricTools::S3</a>
|
47
|
-
</li>
|
48
|
-
<li class="class">
|
49
|
-
<a href="MetricTools/Skype.html">MetricTools::Skype</a>
|
50
73
|
</li>
|
51
74
|
<li class="class">
|
52
75
|
<a href="MetricTools/SpreadSheet.html">MetricTools::SpreadSheet</a>
|
53
76
|
</li>
|
54
77
|
<li class="class">
|
55
78
|
<a href="MetricTools/Table.html">MetricTools::Table</a>
|
79
|
+
</li>
|
80
|
+
<li class="class">
|
81
|
+
<a href="Object.html">Object</a>
|
56
82
|
</li>
|
57
83
|
<li class="module">
|
58
84
|
<a href="Pref.html">Pref</a>
|
@@ -63,12 +89,6 @@
|
|
63
89
|
<li class="module">
|
64
90
|
<a href="Pref/S3.html">Pref::S3</a>
|
65
91
|
</li>
|
66
|
-
<li class="module">
|
67
|
-
<a href="Pref/Skype.html">Pref::Skype</a>
|
68
|
-
</li>
|
69
|
-
<li class="class">
|
70
|
-
<a href="Object.html">Object</a>
|
71
|
-
</li>
|
72
92
|
|
73
93
|
</ul>
|
74
94
|
|
@@ -87,44 +107,38 @@
|
|
87
107
|
|
88
108
|
<li class="method"><a href="MetricTools/Table.html#method-c-create_with_array">::create_with_array — MetricTools::Table</a>
|
89
109
|
|
90
|
-
<li class="method"><a href="MetricTools/Skype.html#method-c-current_chat_id">::current_chat_id — MetricTools::Skype</a>
|
91
|
-
|
92
|
-
<li class="method"><a href="MetricTools/Skype.html#method-c-current_chat_name">::current_chat_name — MetricTools::Skype</a>
|
93
|
-
|
94
110
|
<li class="method"><a href="MetricTools/SpreadSheet.html#method-c-current_worksheet_title">::current_worksheet_title — MetricTools::SpreadSheet</a>
|
95
111
|
|
96
112
|
<li class="method"><a href="MetricTools/S3.html#method-c-download">::download — MetricTools::S3</a>
|
97
113
|
|
98
114
|
<li class="method"><a href="MetricTools/S3.html#method-c-fetch_all">::fetch_all — MetricTools::S3</a>
|
99
115
|
|
100
|
-
<li class="method"><a href="MetricTools/
|
116
|
+
<li class="method"><a href="MetricTools/SpreadSheet.html#method-c-height">::height — MetricTools::SpreadSheet</a>
|
101
117
|
|
102
118
|
<li class="method"><a href="MetricTools/SpreadSheet.html#method-c-login">::login — MetricTools::SpreadSheet</a>
|
103
119
|
|
104
|
-
<li class="method"><a href="MetricTools/
|
120
|
+
<li class="method"><a href="MetricTools/S3.html#method-c-login">::login — MetricTools::S3</a>
|
105
121
|
|
106
122
|
<li class="method"><a href="MetricTools/S3.html#method-c-login-3F">::login? — MetricTools::S3</a>
|
107
123
|
|
108
|
-
<li class="method"><a href="MetricTools/
|
124
|
+
<li class="method"><a href="MetricTools/SpreadSheet.html#method-c-login-3F">::login? — MetricTools::SpreadSheet</a>
|
109
125
|
|
110
126
|
<li class="method"><a href="MetricTools/SpreadSheet.html#method-c-logout">::logout — MetricTools::SpreadSheet</a>
|
111
127
|
|
112
|
-
<li class="method"><a href="MetricTools/Skype.html#method-c-logout">::logout — MetricTools::Skype</a>
|
113
|
-
|
114
128
|
<li class="method"><a href="MetricTools/IndexTree.html#method-c-new">::new — MetricTools::IndexTree</a>
|
115
129
|
|
116
130
|
<li class="method"><a href="MetricTools/Table.html#method-c-new">::new — MetricTools::Table</a>
|
117
131
|
|
118
|
-
<li class="method"><a href="MetricTools/Skype.html#method-c-post">::post — MetricTools::Skype</a>
|
119
|
-
|
120
132
|
<li class="method"><a href="MetricTools/SpreadSheet.html#method-c-save">::save — MetricTools::SpreadSheet</a>
|
121
133
|
|
122
134
|
<li class="method"><a href="MetricTools/SpreadSheet.html#method-c-set_value_table">::set_value_table — MetricTools::SpreadSheet</a>
|
123
135
|
|
124
|
-
<li class="method"><a href="MetricTools/
|
136
|
+
<li class="method"><a href="MetricTools/SpreadSheet.html#method-c-width">::width — MetricTools::SpreadSheet</a>
|
125
137
|
|
126
138
|
<li class="method"><a href="MetricTools/IndexTree.html#method-i-5B-5D">#[] — MetricTools::IndexTree</a>
|
127
139
|
|
140
|
+
<li class="method"><a href="MetricTools/Table.html#method-i-5B-5D">#[] — MetricTools::Table</a>
|
141
|
+
|
128
142
|
<li class="method"><a href="MetricTools/IndexTree.html#method-i-5B-5D-3D">#[]= — MetricTools::IndexTree</a>
|
129
143
|
|
130
144
|
<li class="method"><a href="MetricTools/Table.html#method-i-5B-5D-3D">#[]= — MetricTools::Table</a>
|
@@ -133,6 +147,12 @@
|
|
133
147
|
|
134
148
|
<li class="method"><a href="MetricTools/Table.html#method-i-build">#build — MetricTools::Table</a>
|
135
149
|
|
150
|
+
<li class="method"><a href="MetricTools/IndexTree.html#method-i-build_with_hash">#build_with_hash — MetricTools::IndexTree</a>
|
151
|
+
|
152
|
+
<li class="method"><a href="MetricTools/IndexTree.html#method-i-build_with_json">#build_with_json — MetricTools::IndexTree</a>
|
153
|
+
|
154
|
+
<li class="method"><a href="MetricTools/IndexTree.html#method-i-clear">#clear — MetricTools::IndexTree</a>
|
155
|
+
|
136
156
|
<li class="method"><a href="MetricTools/Table.html#method-i-collect">#collect — MetricTools::Table</a>
|
137
157
|
|
138
158
|
<li class="method"><a href="MetricTools/Table.html#method-i-cols">#cols — MetricTools::Table</a>
|
@@ -141,6 +161,8 @@
|
|
141
161
|
|
142
162
|
<li class="method"><a href="MetricTools/Table.html#method-i-each_with_index">#each_with_index — MetricTools::Table</a>
|
143
163
|
|
164
|
+
<li class="method"><a href="MetricTools/Table.html#method-i-header">#header — MetricTools::Table</a>
|
165
|
+
|
144
166
|
<li class="method"><a href="MetricTools/Table.html#method-i-height">#height — MetricTools::Table</a>
|
145
167
|
|
146
168
|
<li class="method"><a href="MetricTools/Table.html#method-i-output_csv_file">#output_csv_file — MetricTools::Table</a>
|
@@ -161,6 +183,10 @@
|
|
161
183
|
|
162
184
|
<li class="method"><a href="MetricTools/Table.html#method-i-to_a">#to_a — MetricTools::Table</a>
|
163
185
|
|
186
|
+
<li class="method"><a href="MetricTools/IndexTree.html#method-i-to_json">#to_json — MetricTools::IndexTree</a>
|
187
|
+
|
188
|
+
<li class="method"><a href="MetricTools/Table.html#method-i-to_obj">#to_obj — MetricTools::Table</a>
|
189
|
+
|
164
190
|
<li class="method"><a href="MetricTools/IndexTree.html#method-i-to_s">#to_s — MetricTools::IndexTree</a>
|
165
191
|
|
166
192
|
<li class="method"><a href="MetricTools/Table.html#method-i-width">#width — MetricTools::Table</a>
|
@@ -170,7 +196,7 @@
|
|
170
196
|
|
171
197
|
<footer id="validator-badges">
|
172
198
|
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
173
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a>
|
199
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
|
174
200
|
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
175
201
|
</footer>
|
176
202
|
|
data/metric_tools.gemspec
CHANGED
@@ -3,7 +3,7 @@ require 'bundler'
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'metric_tools'
|
6
|
-
s.version = '0.0.
|
6
|
+
s.version = '0.0.11'
|
7
7
|
s.date = '2010-04-28'
|
8
8
|
s.summary = "Utilities for analyzing metrics"
|
9
9
|
s.description = "Utilities for analyzing metrics"
|
@@ -16,5 +16,4 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.add_dependency('google_drive', '~>0')
|
17
17
|
s.add_dependency('hirb', '~>0')
|
18
18
|
s.add_dependency('aws-s3', '~>0')
|
19
|
-
s.add_dependency('rb-skypemac', '~>0')
|
20
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metric_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -59,22 +59,6 @@ dependencies:
|
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rb-skypemac
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :runtime
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
62
|
description: Utilities for analyzing metrics
|
79
63
|
email: masaori@pankaku.com
|
80
64
|
executables: []
|
@@ -87,20 +71,23 @@ files:
|
|
87
71
|
- Gemfile
|
88
72
|
- README.md
|
89
73
|
- config/pref.rb
|
74
|
+
- doc/AWS.html
|
75
|
+
- doc/AWS/S3.html
|
90
76
|
- doc/Gemfile.html
|
91
77
|
- doc/MetricTools.html
|
92
78
|
- doc/MetricTools/IndexTree.html
|
93
79
|
- doc/MetricTools/S3.html
|
94
|
-
- doc/MetricTools/Skype.html
|
95
80
|
- doc/MetricTools/SpreadSheet.html
|
96
81
|
- doc/MetricTools/Table.html
|
97
82
|
- doc/Object.html
|
98
83
|
- doc/Pref.html
|
99
84
|
- doc/Pref/GoogleDocs.html
|
100
85
|
- doc/Pref/S3.html
|
101
|
-
- doc/
|
86
|
+
- doc/README_md.html
|
102
87
|
- doc/created.rid
|
88
|
+
- doc/doc/created_rid.html
|
103
89
|
- doc/images/add.png
|
90
|
+
- doc/images/arrow_up.png
|
104
91
|
- doc/images/brick.png
|
105
92
|
- doc/images/brick_link.png
|
106
93
|
- doc/images/bug.png
|
@@ -131,18 +118,17 @@ files:
|
|
131
118
|
- doc/js/search.js
|
132
119
|
- doc/js/search_index.js
|
133
120
|
- doc/js/searcher.js
|
121
|
+
- doc/metric_tools_gemspec.html
|
134
122
|
- doc/rdoc.css
|
135
123
|
- doc/table_of_contents.html
|
136
124
|
- lib/metric_tools.rb
|
137
125
|
- lib/metric_tools/index_tree.rb
|
138
126
|
- lib/metric_tools/s3.rb
|
139
|
-
- lib/metric_tools/skype.rb
|
140
127
|
- lib/metric_tools/spread_sheet.rb
|
141
128
|
- lib/metric_tools/table.rb
|
142
129
|
- metric_tools.gemspec
|
143
130
|
- spec/index_tree_spec.rb
|
144
131
|
- spec/s3_spec.rb
|
145
|
-
- spec/skype_spec.rb
|
146
132
|
- spec/spread_sheet_spec.rb
|
147
133
|
- spec/table_spec.rb
|
148
134
|
homepage: https://github.com/masaori/metric_tools
|
data/doc/MetricTools/Skype.html
DELETED
@@ -1,343 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
-
|
7
|
-
<title>class MetricTools::Skype - RDoc Documentation</title>
|
8
|
-
|
9
|
-
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
-
|
11
|
-
<script type="text/javascript">
|
12
|
-
var rdoc_rel_prefix = "../";
|
13
|
-
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
-
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
-
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
-
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
-
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
-
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
-
|
22
|
-
|
23
|
-
<body id="top" class="class">
|
24
|
-
<nav id="metadata">
|
25
|
-
<nav id="home-section" class="section">
|
26
|
-
<h3 class="section-header">
|
27
|
-
<a href="../index.html">Home</a>
|
28
|
-
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
-
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
-
</h3>
|
31
|
-
</nav>
|
32
|
-
|
33
|
-
|
34
|
-
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
-
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<h3 class="section-header">
|
37
|
-
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</h3>
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
45
|
-
|
46
|
-
<div id="file-metadata">
|
47
|
-
<nav id="file-list-section" class="section">
|
48
|
-
<h3 class="section-header">Defined In</h3>
|
49
|
-
<ul>
|
50
|
-
<li>lib/metric_tools/skype.rb
|
51
|
-
</ul>
|
52
|
-
</nav>
|
53
|
-
|
54
|
-
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<div id="class-metadata">
|
58
|
-
|
59
|
-
<nav id="parent-class-section" class="section">
|
60
|
-
<h3 class="section-header">Parent</h3>
|
61
|
-
|
62
|
-
<p class="link"><a href="../Object.html">Object</a>
|
63
|
-
|
64
|
-
</nav>
|
65
|
-
|
66
|
-
|
67
|
-
<!-- Method Quickref -->
|
68
|
-
<nav id="method-list-section" class="section">
|
69
|
-
<h3 class="section-header">Methods</h3>
|
70
|
-
|
71
|
-
<ul class="link-list">
|
72
|
-
|
73
|
-
<li><a href="#method-c-current_chat_id">::current_chat_id</a>
|
74
|
-
|
75
|
-
<li><a href="#method-c-current_chat_name">::current_chat_name</a>
|
76
|
-
|
77
|
-
<li><a href="#method-c-login_chat">::login_chat</a>
|
78
|
-
|
79
|
-
<li><a href="#method-c-logout">::logout</a>
|
80
|
-
|
81
|
-
<li><a href="#method-c-post">::post</a>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
</nav>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
<div id="project-metadata">
|
89
|
-
<nav id="fileindex-section" class="section project-section">
|
90
|
-
<h3 class="section-header">Pages</h3>
|
91
|
-
|
92
|
-
<ul>
|
93
|
-
|
94
|
-
<li class="file"><a href="../Gemfile.html">Gemfile</a>
|
95
|
-
|
96
|
-
<li class="file"><a href="../config/my_pref.html">my_pref</a>
|
97
|
-
|
98
|
-
</ul>
|
99
|
-
</nav>
|
100
|
-
|
101
|
-
<nav id="classindex-section" class="section project-section">
|
102
|
-
<h3 class="section-header">Class and Module Index</h3>
|
103
|
-
|
104
|
-
<ul class="link-list">
|
105
|
-
|
106
|
-
<li><a href="../MetricTools.html">MetricTools</a>
|
107
|
-
|
108
|
-
<li><a href="../MetricTools/IndexTree.html">MetricTools::IndexTree</a>
|
109
|
-
|
110
|
-
<li><a href="../MetricTools/S3.html">MetricTools::S3</a>
|
111
|
-
|
112
|
-
<li><a href="../MetricTools/Skype.html">MetricTools::Skype</a>
|
113
|
-
|
114
|
-
<li><a href="../MetricTools/SpreadSheet.html">MetricTools::SpreadSheet</a>
|
115
|
-
|
116
|
-
<li><a href="../MetricTools/Table.html">MetricTools::Table</a>
|
117
|
-
|
118
|
-
<li><a href="../Pref.html">Pref</a>
|
119
|
-
|
120
|
-
<li><a href="../Pref/GoogleDocs.html">Pref::GoogleDocs</a>
|
121
|
-
|
122
|
-
<li><a href="../Pref/S3.html">Pref::S3</a>
|
123
|
-
|
124
|
-
<li><a href="../Pref/Skype.html">Pref::Skype</a>
|
125
|
-
|
126
|
-
<li><a href="../Object.html">Object</a>
|
127
|
-
|
128
|
-
</ul>
|
129
|
-
</nav>
|
130
|
-
|
131
|
-
</div>
|
132
|
-
</nav>
|
133
|
-
|
134
|
-
<div id="documentation">
|
135
|
-
<h1 class="class">class MetricTools::Skype</h1>
|
136
|
-
|
137
|
-
<div id="description" class="description">
|
138
|
-
|
139
|
-
<p>Skypeのチャットにメッセージをpostするクラスです。 使用するMac上で<a href="Skype.html">Skype</a> for
|
140
|
-
Mac OSXが起動していて、 対象のチャットルームに発言できるアカウントでログインされている必要があります。</p>
|
141
|
-
|
142
|
-
</div><!-- description -->
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
<!-- Methods -->
|
157
|
-
|
158
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
159
|
-
<h3 class="section-header">Public Class Methods</h3>
|
160
|
-
|
161
|
-
|
162
|
-
<div id="method-c-current_chat_id" class="method-detail ">
|
163
|
-
|
164
|
-
<div class="method-heading">
|
165
|
-
<span class="method-name">current_chat_id</span><span
|
166
|
-
class="method-args">()</span>
|
167
|
-
<span class="method-click-advice">click to toggle source</span>
|
168
|
-
</div>
|
169
|
-
|
170
|
-
|
171
|
-
<div class="method-description">
|
172
|
-
|
173
|
-
<p>現在のチャットルームのidを返します</p>
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
<div class="method-source-code" id="current_chat_id-source">
|
178
|
-
<pre><span class="ruby-comment"># File lib/metric_tools/skype.rb, line 44</span>
|
179
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">current_chat_id</span>
|
180
|
-
<span class="ruby-ivar">@chat_id</span>
|
181
|
-
<span class="ruby-keyword">end</span></pre>
|
182
|
-
</div><!-- current_chat_id-source -->
|
183
|
-
|
184
|
-
</div>
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
</div><!-- current_chat_id-method -->
|
190
|
-
|
191
|
-
|
192
|
-
<div id="method-c-current_chat_name" class="method-detail ">
|
193
|
-
|
194
|
-
<div class="method-heading">
|
195
|
-
<span class="method-name">current_chat_name</span><span
|
196
|
-
class="method-args">()</span>
|
197
|
-
<span class="method-click-advice">click to toggle source</span>
|
198
|
-
</div>
|
199
|
-
|
200
|
-
|
201
|
-
<div class="method-description">
|
202
|
-
|
203
|
-
<p>現在のチャットルームの表示名を返します</p>
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
<div class="method-source-code" id="current_chat_name-source">
|
208
|
-
<pre><span class="ruby-comment"># File lib/metric_tools/skype.rb, line 51</span>
|
209
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">current_chat_name</span>
|
210
|
-
<span class="ruby-ivar">@chat_name</span>
|
211
|
-
<span class="ruby-keyword">end</span></pre>
|
212
|
-
</div><!-- current_chat_name-source -->
|
213
|
-
|
214
|
-
</div>
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
</div><!-- current_chat_name-method -->
|
220
|
-
|
221
|
-
|
222
|
-
<div id="method-c-login_chat" class="method-detail ">
|
223
|
-
|
224
|
-
<div class="method-heading">
|
225
|
-
<span class="method-name">login_chat</span><span
|
226
|
-
class="method-args">(name)</span>
|
227
|
-
<span class="method-click-advice">click to toggle source</span>
|
228
|
-
</div>
|
229
|
-
|
230
|
-
|
231
|
-
<div class="method-description">
|
232
|
-
|
233
|
-
<p>nameで指定したチャットルームに発言出来る状態にします。</p>
|
234
|
-
|
235
|
-
<pre>login_chat("[GREE] パンカク連絡チャット")</pre>
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
<div class="method-source-code" id="login_chat-source">
|
240
|
-
<pre><span class="ruby-comment"># File lib/metric_tools/skype.rb, line 18</span>
|
241
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">login_chat</span>(<span class="ruby-identifier">name</span>)
|
242
|
-
<span class="ruby-identifier">chats</span> = <span class="ruby-constant">SkypeMac</span><span class="ruby-operator">::</span><span class="ruby-constant">Skype</span>.<span class="ruby-identifier">send_</span>(<span class="ruby-value">:command</span> =<span class="ruby-operator">></span> <span class="ruby-string">'SEARCH RECENTCHATS'</span>)
|
243
|
-
<span class="ruby-identifier">chats</span> = <span class="ruby-identifier">chats</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-string">"CHATS "</span>,<span class="ruby-string">""</span>).<span class="ruby-identifier">split</span>(<span class="ruby-regexp">%r,/</span>)
|
244
|
-
|
245
|
-
<span class="ruby-keyword">for</span> <span class="ruby-identifier">id</span> <span class="ruby-keyword">in</span> <span class="ruby-identifier">chats</span>
|
246
|
-
<span class="ruby-identifier">chat_info</span> = <span class="ruby-constant">SkypeMac</span><span class="ruby-operator">::</span><span class="ruby-constant">Skype</span>.<span class="ruby-identifier">send_</span>(<span class="ruby-value">:command</span> =<span class="ruby-operator">></span> <span class="ruby-string">'GET CHAT %s FRIENDLYNAME'</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">id</span>).<span class="ruby-identifier">split</span>(<span class="ruby-string">' '</span>)
|
247
|
-
<span class="ruby-identifier">friendly_name</span> = <span class="ruby-identifier">chat_info</span>[<span class="ruby-value">3</span>]
|
248
|
-
|
249
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">friendly_name</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">name</span>)
|
250
|
-
<span class="ruby-ivar">@chat_id</span> = <span class="ruby-identifier">chat_info</span>[<span class="ruby-value">1</span>]
|
251
|
-
<span class="ruby-ivar">@chat_name</span> = <span class="ruby-identifier">friendly_name</span>
|
252
|
-
<span class="ruby-keyword">end</span>
|
253
|
-
<span class="ruby-keyword">end</span>
|
254
|
-
|
255
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-node">"not existing chat room : #{name}"</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@chat_id</span>.<span class="ruby-identifier">nil?</span>
|
256
|
-
<span class="ruby-ivar">@chat_id</span>
|
257
|
-
<span class="ruby-keyword">end</span></pre>
|
258
|
-
</div><!-- login_chat-source -->
|
259
|
-
|
260
|
-
</div>
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
</div><!-- login_chat-method -->
|
266
|
-
|
267
|
-
|
268
|
-
<div id="method-c-logout" class="method-detail ">
|
269
|
-
|
270
|
-
<div class="method-heading">
|
271
|
-
<span class="method-name">logout</span><span
|
272
|
-
class="method-args">()</span>
|
273
|
-
<span class="method-click-advice">click to toggle source</span>
|
274
|
-
</div>
|
275
|
-
|
276
|
-
|
277
|
-
<div class="method-description">
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
<div class="method-source-code" id="logout-source">
|
284
|
-
<pre><span class="ruby-comment"># File lib/metric_tools/skype.rb, line 36</span>
|
285
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">logout</span>
|
286
|
-
<span class="ruby-ivar">@chat_id</span> = <span class="ruby-keyword">nil</span>
|
287
|
-
<span class="ruby-ivar">@chat_name</span> = <span class="ruby-keyword">nil</span>
|
288
|
-
<span class="ruby-keyword">end</span></pre>
|
289
|
-
</div><!-- logout-source -->
|
290
|
-
|
291
|
-
</div>
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
</div><!-- logout-method -->
|
297
|
-
|
298
|
-
|
299
|
-
<div id="method-c-post" class="method-detail ">
|
300
|
-
|
301
|
-
<div class="method-heading">
|
302
|
-
<span class="method-name">post</span><span
|
303
|
-
class="method-args">(message)</span>
|
304
|
-
<span class="method-click-advice">click to toggle source</span>
|
305
|
-
</div>
|
306
|
-
|
307
|
-
|
308
|
-
<div class="method-description">
|
309
|
-
|
310
|
-
<p>現在のチャットルームに発言します</p>
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
<div class="method-source-code" id="post-source">
|
315
|
-
<pre><span class="ruby-comment"># File lib/metric_tools/skype.rb, line 58</span>
|
316
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">post</span>(<span class="ruby-identifier">message</span>)
|
317
|
-
<span class="ruby-keyword">return</span> <span class="ruby-identifier">puts</span> <span class="ruby-string">'please login before.'</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">current_chat_id</span>.<span class="ruby-identifier">nil?</span>
|
318
|
-
|
319
|
-
<span class="ruby-constant">SkypeMac</span><span class="ruby-operator">::</span><span class="ruby-constant">Skype</span>.<span class="ruby-identifier">send_</span>(<span class="ruby-value">:command</span> =<span class="ruby-operator">></span> <span class="ruby-node">"CHATMESSAGE #{current_chat_id} #{message}"</span>);
|
320
|
-
<span class="ruby-keyword">end</span></pre>
|
321
|
-
</div><!-- post-source -->
|
322
|
-
|
323
|
-
</div>
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
</div><!-- post-method -->
|
329
|
-
|
330
|
-
|
331
|
-
</section><!-- public-class-method-details -->
|
332
|
-
|
333
|
-
</section><!-- 5Buntitled-5D -->
|
334
|
-
|
335
|
-
</div><!-- documentation -->
|
336
|
-
|
337
|
-
|
338
|
-
<footer id="validator-badges">
|
339
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
340
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
341
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
342
|
-
</footer>
|
343
|
-
|