apirunner 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/apirunner.gemspec +1 -1
  3. data/lib/tasks/api.rake +20 -7
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.12
1
+ 0.0.13
data/apirunner.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{apirunner}
8
- s.version = "0.0.12"
8
+ s.version = "0.0.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["moviepilot"]
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
- FileUtils.mkdir_p( "test/api_runner" )
18
- FileUtils.mkdir_p( "config" )
19
- FileUtils.cp_r( "#{APIRUNNER_ROOT}/examples/config", ".")
20
- FileUtils.cp_r( "#{APIRUNNER_ROOT}/examples/test", ".")
21
- puts "created the following files:"
22
- Dir.glob("#{APIRUNNER_ROOT}/examples/**/*").each do |file|
23
- puts "\t#{file.gsub(/.*examples\//, '')}"
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
- - 12
9
- version: 0.0.12
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: 897002952482873353
248
+ hash: -1927658004947656017
249
249
  segments:
250
250
  - 0
251
251
  version: "0"