specgen 0.0.1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 17adde6ab5cd8b40edd055465c3955851798ff0c
4
+ data.tar.gz: f7dd9ca1dfbcd642fd9883bdcf75e3dabe6c31f5
5
+ SHA512:
6
+ metadata.gz: 16b9f952a28b2e2a124e2b7b6454fe3d331e30b824cd9abeb26d26ecbe7b210026c920f53a53f0d988a96d042d402b292578c90f70a17aa9e9a3b0256fafb6bc
7
+ data.tar.gz: c078c1530c07205954c5f4afde6274721f812309f5e984e3cb071120e62b17a851394b24e205517e86a23002fa14b286a5baacb7317929992c2ba7736ea5d0b0
Binary file
Binary file
data/lib/specgen.rb ADDED
@@ -0,0 +1,31 @@
1
+ require 'os'
2
+
3
+ def get_os
4
+ if OS.mac? then
5
+ return "darwin"
6
+ end
7
+ if OS.posix? then
8
+ return "linux"
9
+ end
10
+ if OS.windows? then
11
+ return "windows"
12
+ end
13
+ end
14
+
15
+ def get_ext
16
+ if OS.windows? then
17
+ return ".exe"
18
+ else
19
+ return ""
20
+ end
21
+ end
22
+
23
+ def get_specgen_path
24
+ File.join(File.dirname(File.expand_path(__FILE__)), "specgen", "#{get_os}_amd64", "specgen#{get_ext}")
25
+ end
26
+
27
+ def specgen
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 ."
31
+ end
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: specgen
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Moda Operandi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-02-23 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/specgen.rb
20
+ - lib/specgen/darwin_amd64/specgen
21
+ - lib/specgen/linux_amd64/specgen
22
+ - lib/specgen/windows_amd64/specgen.exe
23
+ homepage:
24
+ licenses: []
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubyforge_project:
42
+ rubygems_version: 2.5.2.3
43
+ signing_key:
44
+ specification_version: 4
45
+ summary: Spec gem tool
46
+ test_files: []