smqacloud 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smqacloud.rb +9 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92a3be6f9b6e73481351262f5fda7aa99fba172e
4
- data.tar.gz: 1f78ccbe9a78b1e3b62bf4c0a64972350334406e
3
+ metadata.gz: b3589e861e1602301882dfbc26f1ea328e4a3dc9
4
+ data.tar.gz: 2ccb6ad9fba5abe3ae5874af71357d0e13931d7e
5
5
  SHA512:
6
- metadata.gz: efebc9cee55b18f9b46bb53c08a0a12270167e45b6e0e464a4dbbd6cf08d83aee25130d395dc20db307b151c2322d61a6299789b6134bf091ef2f4056535cc9a
7
- data.tar.gz: 14ba8a52ed424fafb5b8153d0a85ecf9b6a8ef7422bd33b7fa072c9c9cd97cb86155776b43e2278425b4bcbff76322f8599ce6f4b2043bc450ef6ba0411dd730
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
- require_relative "#{path}"
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
- require_relative "#{path}"
112
+ req_all_scripts(path)
106
113
  dur1 = Time.now
107
114
  send($task_name)
108
115
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smqacloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ravi Trivedi