c21e 1.1.5 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/c21e/exe_file.rb +1 -1
- data/spec/c21e/exe_file_spec.rb +14 -24
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a609cbca3664556695e35b5b01d1601794cfb638b690a4350ab6036a6972fbe1
|
4
|
+
data.tar.gz: d34de32ab6a6353b46ee8e51a16ac2ac2e482b22124e6921f8b1c5f3a3627546
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f76c816ca1a5988b1c7165deadb3ce4824d731a5e3b44def59c6cf82341ac7e95598490e3cb3d14a154fbe3908bda60e8c74c42abfafaa123f153b978951bc8
|
7
|
+
data.tar.gz: f7169bc6736c5bcbd1ddae411198aeb5fede77872c794eb79a1c6f8621442da74251615b7fd7774b1ab498d967b1ac58ea84edfed7a415fb876706761b7bcdd5
|
data/README.md
CHANGED
data/lib/c21e/exe_file.rb
CHANGED
@@ -40,7 +40,7 @@ module C21e
|
|
40
40
|
# https://github.com/kolosek/residds/blob/master/vendor/bundle/ruby/2.0.0/gems/launchy-2.4.3/spec/tattle-host-os.yaml
|
41
41
|
case @props[:arch]
|
42
42
|
when /i\d86/ then '386'
|
43
|
-
when /x86_64/ then 'amd64'
|
43
|
+
when /x64|x86_64/ then 'amd64'
|
44
44
|
else @props[:arch]
|
45
45
|
end
|
46
46
|
end
|
data/spec/c21e/exe_file_spec.rb
CHANGED
@@ -3,30 +3,20 @@ require 'c21e/exe_file'
|
|
3
3
|
|
4
4
|
module C21e
|
5
5
|
describe ExeFile do
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
)
|
21
|
-
expect(exe_file.target_file).to eq 'test-darwin-amd64'
|
22
|
-
end
|
23
|
-
|
24
|
-
it 'generates a file name for windows' do
|
25
|
-
exe_file = ExeFile.new(
|
26
|
-
'test-{{.OS}}-{{.Arch}}{{.Ext}}',
|
27
|
-
os: 'mingw32', arch: 'i686'
|
28
|
-
)
|
29
|
-
expect(exe_file.target_file).to eq 'test-windows-386.exe'
|
6
|
+
[
|
7
|
+
# os arch os arch ext
|
8
|
+
['darwin8.10.3', 'amd64', 'darwin', 'amd64', ''],
|
9
|
+
['mingw32', 'i686', 'windows', '386', '.exe'],
|
10
|
+
['mingw32', 'x86_64', 'windows', 'amd64', '.exe'],
|
11
|
+
['mingw32', 'x64', 'windows', 'amd64', '.exe'],
|
12
|
+
].each do |os, arch, exe_os, exe_arch, exe_ext|
|
13
|
+
it "generates test-#{exe_os}-#{exe_arch}#{exe_ext} for #{os} #{arch}" do
|
14
|
+
exe_file = ExeFile.new(
|
15
|
+
'test-{{.OS}}-{{.Arch}}{{.Ext}}',
|
16
|
+
os: os, arch: arch
|
17
|
+
)
|
18
|
+
expect(exe_file.target_file).to eq "test-#{exe_os}-#{exe_arch}#{exe_ext}"
|
19
|
+
end
|
30
20
|
end
|
31
21
|
end
|
32
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: c21e
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aslak Hellesøy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -81,7 +81,11 @@ files:
|
|
81
81
|
homepage: https://github.com/cucumber/cucumber-expressions-ruby#readme
|
82
82
|
licenses:
|
83
83
|
- MIT
|
84
|
-
metadata:
|
84
|
+
metadata:
|
85
|
+
bug_tracker_uri: https://github.com/cucumber/cucumber/issues
|
86
|
+
documentation_uri: https://www.rubydoc.info/github/cucumber/c21e-ruby
|
87
|
+
mailing_list_uri: https://groups.google.com/forum/#!forum/cukes
|
88
|
+
source_code_uri: https://github.com/cucumber/cucumber/blob/master/c21e/ruby
|
85
89
|
post_install_message:
|
86
90
|
rdoc_options:
|
87
91
|
- "--charset=UTF-8"
|
@@ -102,7 +106,7 @@ rubyforge_project:
|
|
102
106
|
rubygems_version: 2.7.7
|
103
107
|
signing_key:
|
104
108
|
specification_version: 4
|
105
|
-
summary: c21e-1.1.
|
109
|
+
summary: c21e-1.1.8
|
106
110
|
test_files:
|
107
111
|
- spec/c21e/exe_file_spec.rb
|
108
112
|
- spec/capture_warnings.rb
|