specgen 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/specgen.rb +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17adde6ab5cd8b40edd055465c3955851798ff0c
4
- data.tar.gz: f7dd9ca1dfbcd642fd9883bdcf75e3dabe6c31f5
3
+ metadata.gz: ea87f38bac5065057851576c3cb3ac4b2da8eea4
4
+ data.tar.gz: 5f34fd11e9309a980aca027eb777adaf490a660f
5
5
  SHA512:
6
- metadata.gz: 16b9f952a28b2e2a124e2b7b6454fe3d331e30b824cd9abeb26d26ecbe7b210026c920f53a53f0d988a96d042d402b292578c90f70a17aa9e9a3b0256fafb6bc
7
- data.tar.gz: c078c1530c07205954c5f4afde6274721f812309f5e984e3cb071120e62b17a851394b24e205517e86a23002fa14b286a5baacb7317929992c2ba7736ea5d0b0
6
+ metadata.gz: 1276aa432cdd7bc4bc4c8dafb5165a261e1f5a19bb23a6cf6fa27f79df149f88c720047ab59699356c5be984fec12133aa5d2cadc25118b0982a6ac48697961a
7
+ data.tar.gz: 13917fb121a168a266fa62f35dc409d8f2a9562df285eef4af6e7c6bc0f672ebfe1605c5b3ee9fa8de272f4e02936a7052fc8d02c5d0ad19d7a45cf1d06a4ceb
data/lib/specgen.rb CHANGED
@@ -24,8 +24,10 @@ def get_specgen_path
24
24
  File.join(File.dirname(File.expand_path(__FILE__)), "specgen", "#{get_os}_amd64", "specgen#{get_ext}")
25
25
  end
26
26
 
27
- def specgen
27
+ def specgen_client_ruby(spec_file: "./spec.yaml", generate_path: ".")
28
28
  specgen_path = get_specgen_path
29
- puts "Path to specgen tool: #{specgen_path}"
30
- sh "#{specgen_path} client-ruby --spec-file ./spec.yaml --generate-path ."
29
+ commnd = "#{specgen_path} client-ruby --spec-file #{spec_file} --generate-path #{generate_path}"
30
+ puts "Executing specgen"
31
+ puts command
32
+ sh commnd
31
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specgen
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
  - Moda Operandi