apirunner 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/apirunner.gemspec +1 -1
- data/lib/tasks/api.rake +20 -7
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.13
|
data/apirunner.gemspec
CHANGED
data/lib/tasks/api.rake
CHANGED
@@ -14,13 +14,26 @@ namespace :api do
|
|
14
14
|
end
|
15
15
|
desc "generates configuration and a skeleton for apirunner tests as well as excludes"
|
16
16
|
task :scaffold do
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
FileUtils.
|
21
|
-
|
22
|
-
Dir.glob("#{APIRUNNER_ROOT}/examples
|
23
|
-
|
17
|
+
TEST_EXAMPLES_PATH="test/api_runner"
|
18
|
+
CONFIG_EXAMPLE_PATH="config"
|
19
|
+
|
20
|
+
FileUtils.mkdir_p( TEST_EXAMPLES_PATH )
|
21
|
+
FileUtils.mkdir_p( CONFIG_EXAMPLE_PATH )
|
22
|
+
Dir.glob("#{APIRUNNER_ROOT}/examples/#{TEST_EXAMPLES_PATH}/*.yml").each do |file|
|
23
|
+
unless File.exists?("#{TEST_EXAMPLES_PATH}/#{File.basename(file)}")
|
24
|
+
FileUtils.cp(file, "#{TEST_EXAMPLES_PATH}")
|
25
|
+
puts "%-50s .... created" % "#{TEST_EXAMPLES_PATH}/#{File.basename(file)}"
|
26
|
+
else
|
27
|
+
puts "%-50s .... already exists" % "#{TEST_EXAMPLES_PATH}/#{File.basename(file)}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
Dir.glob("#{APIRUNNER_ROOT}/examples/#{CONFIG_EXAMPLE_PATH}/*.yml").each do |file|
|
31
|
+
unless File.exists?("#{CONFIG_EXAMPLE_PATH}/#{File.basename(file)}")
|
32
|
+
FileUtils.cp(file, "#{CONFIG_EXAMPLE_PATH}") unless File.exists?("#{CONFIG_EXAMPLE_PATH}/#{File.basename(file)}")
|
33
|
+
puts "%-50s .... created" % "#{CONFIG_EXAMPLE_PATH}/#{File.basename(file)}"
|
34
|
+
else
|
35
|
+
puts "%-50s .... already exists" % "#{CONFIG_EXAMPLE_PATH}/#{File.basename(file)}"
|
36
|
+
end
|
24
37
|
end
|
25
38
|
end
|
26
39
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 13
|
9
|
+
version: 0.0.13
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- moviepilot
|
@@ -245,7 +245,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
245
245
|
requirements:
|
246
246
|
- - ">="
|
247
247
|
- !ruby/object:Gem::Version
|
248
|
-
hash:
|
248
|
+
hash: -1927658004947656017
|
249
249
|
segments:
|
250
250
|
- 0
|
251
251
|
version: "0"
|