api_test_gem 0.2.4 → 0.2.5
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.
- data/VERSION +1 -1
- data/api_test_gem.gemspec +1 -1
- data/lib/api_test_gem.rb +0 -4
- data/spec/api_test_gem_spec.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.5
|
data/api_test_gem.gemspec
CHANGED
data/lib/api_test_gem.rb
CHANGED
|
@@ -4,10 +4,7 @@ def api_test(*args)
|
|
|
4
4
|
puts "richtiger Aufruf via: 'api_test [controller] [action]'"
|
|
5
5
|
else
|
|
6
6
|
#route_yml=File.expand_path((File.dirname(__FILE__)).chomp('.')+ 'apitest_config.yml')
|
|
7
|
-
#route_yml=File.expand_path("../projects/ave/tavex2/rails/api_test_config.yml")
|
|
8
|
-
#for usage
|
|
9
7
|
route_yml=File.expand_path("#{Dir.pwd}/api_test_config.yml")
|
|
10
|
-
puts route_yml
|
|
11
8
|
#arg_con=ARGV[0].split('/')
|
|
12
9
|
arg_con=args[0].split('/')
|
|
13
10
|
if File.exist?(route_yml)
|
|
@@ -46,7 +43,6 @@ def api_test(*args)
|
|
|
46
43
|
|
|
47
44
|
@result={:result=>`#{for_exec}`, :curl=>"#{for_exec}"}
|
|
48
45
|
result=@result[:result]
|
|
49
|
-
puts result
|
|
50
46
|
if result.include?("No route matches")
|
|
51
47
|
#puts "#{ARGV[0]} #{ARGV[1]} no route for given parameter"
|
|
52
48
|
puts "#{args[0]} #{args[1]} no route for given parameter"
|
data/spec/api_test_gem_spec.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: api_test_gem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 29
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.2.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Jaqueline Wilde
|