smqacloud 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/lib/smqacloud.rb +9 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3589e861e1602301882dfbc26f1ea328e4a3dc9
|
4
|
+
data.tar.gz: 2ccb6ad9fba5abe3ae5874af71357d0e13931d7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8163a0fb4534ff8df0b77877800aee0cd27366b5163bd9af65f5c3b965103f7db90ee829132f4448c1aa70b74942f67c1bc58e798e71f6637957a34a99fd0aa
|
7
|
+
data.tar.gz: baa6c93853f921ec882407a235a76a62f43d62f8613acfbb028709284303c3e88350c7cb37d6420eed82b7094a4f72707c9182e623c2ae27ab965266e4a54a06
|
data/lib/smqacloud.rb
CHANGED
@@ -11,6 +11,13 @@ require 'smapisatqacloud'
|
|
11
11
|
# = "your token id"
|
12
12
|
# $add_variable = Hash.new
|
13
13
|
|
14
|
+
def self.req_all_scripts(path)
|
15
|
+
Dir.log("#{path}/**/*.rb") do |req_all|
|
16
|
+
require_relative req_all
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
|
14
21
|
def self.playlist(playlistID)
|
15
22
|
$add_variable = Hash.new
|
16
23
|
taskhash = Qacloud.GetFirstTask(playlistID)
|
@@ -42,7 +49,7 @@ $add_variable = Hash.new
|
|
42
49
|
else
|
43
50
|
path = $env["path"]
|
44
51
|
end
|
45
|
-
|
52
|
+
req_all_scripts(path)
|
46
53
|
dur1 = Time.now
|
47
54
|
send($task_name)
|
48
55
|
|
@@ -102,7 +109,7 @@ $add_variable = Hash.new
|
|
102
109
|
else
|
103
110
|
path = $env["path"]
|
104
111
|
end
|
105
|
-
|
112
|
+
req_all_scripts(path)
|
106
113
|
dur1 = Time.now
|
107
114
|
send($task_name)
|
108
115
|
|