metric_tools 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +29 -1
- data/config/pref.rb +27 -0
- metadata +3 -1
data/README.md
CHANGED
@@ -8,6 +8,34 @@
|
|
8
8
|
|
9
9
|
gem install metric_tools
|
10
10
|
|
11
|
+
##Usage
|
12
|
+
|
13
|
+
require 'metric_tools'
|
14
|
+
include MetricTools
|
15
|
+
|
16
|
+
### SpreadSheet
|
17
|
+
|
18
|
+
SpreadSheet.login('masaori+test@pankaku.com', 'fugafuga', 'A6Dkfndoh9+jdnf29df016f') #login google docs spreadsheet
|
19
|
+
SpreadSheet.change_worksheet_by_title(sheet_title) #specify worksheet
|
20
|
+
|
21
|
+
SpreadSheet[0, 1] = 'HogeHoge'
|
22
|
+
|
23
|
+
SpreadSheet.save #call "save" lastly
|
24
|
+
|
25
|
+
### S3
|
26
|
+
|
27
|
+
S3.login('Access_Key', 'secret_key~~', 'bucket-name!')
|
28
|
+
S3.fetch_all('logs/retention_rate', 'User/masaori/Desktop/') #fetch all files in specified s3 directory
|
29
|
+
|
30
|
+
# You can give a condition.
|
31
|
+
S3.fetch_all('logs/retention_rate, 'User/masaori/Desktop/') {|f| f.name.include? ".rb" } #Download all ".rb" files
|
32
|
+
|
33
|
+
### Skype
|
34
|
+
|
35
|
+
#! You need to launch Skype app on your OSX.
|
36
|
+
Skype.login_chat("[パンカク] DeluxeCafeの部屋")
|
37
|
+
Skype.post("テストです。")
|
38
|
+
|
11
39
|
|
12
40
|
##Version Info
|
13
|
-
- 0.0.
|
41
|
+
- 0.0.1 (2013/2/12 released)
|
data/config/pref.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
module Pref
|
4
|
+
#For test (required if you need to pass RSpec)
|
5
|
+
module GoogleDocs
|
6
|
+
TEST_MAIL = ''
|
7
|
+
TEST_PASSWORD = ''
|
8
|
+
ANOTHER_MAIL = ''
|
9
|
+
ANOTHER_PASSWORD = ''
|
10
|
+
TEST_KEY = ''
|
11
|
+
end
|
12
|
+
|
13
|
+
#For test (required if you need to pass RSpec)
|
14
|
+
module S3
|
15
|
+
TEST_ACCESS_KEY = ''
|
16
|
+
TEST_SECRET_KEY = ''
|
17
|
+
TEST_BUCKET_NAME = ''
|
18
|
+
TEST_LOCAL_DIRECTORY = ''
|
19
|
+
TEST_FILE_KEY = ''
|
20
|
+
TEST_DIR_KEY = ''
|
21
|
+
end
|
22
|
+
|
23
|
+
#For test (required if you need to pass RSpec)
|
24
|
+
module Skype
|
25
|
+
TEST_CHAT_ROOM = ''
|
26
|
+
end
|
27
|
+
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.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -26,6 +26,7 @@ files:
|
|
26
26
|
- Gemfile
|
27
27
|
- Gemfile.lock
|
28
28
|
- README.md
|
29
|
+
- config/pref.rb
|
29
30
|
homepage: http://google.com/
|
30
31
|
licenses: []
|
31
32
|
post_install_message:
|
@@ -51,3 +52,4 @@ signing_key:
|
|
51
52
|
specification_version: 3
|
52
53
|
summary: Utilities for analyzing metrics
|
53
54
|
test_files: []
|
55
|
+
has_rdoc:
|