c21e 1.1.5 → 1.1.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 075300005367b7ac110378b4e4a91f8212c44c7a1fe633f246e565ddb343cf34
4
- data.tar.gz: 2f9056a6b7e82285902b0e46afd129a1e83485ba42f1a5c207aed75c4b7c5fa2
3
+ metadata.gz: a609cbca3664556695e35b5b01d1601794cfb638b690a4350ab6036a6972fbe1
4
+ data.tar.gz: d34de32ab6a6353b46ee8e51a16ac2ac2e482b22124e6921f8b1c5f3a3627546
5
5
  SHA512:
6
- metadata.gz: d4221803219ba04c908e7e593a1eaa5c38d460cc1cc72b2a98fe05b20f2fd79f23fe391e7c2d67dd34405a3e2cb9e228d1219bb5befbfcf33b377d8ccb2fffc3
7
- data.tar.gz: e1ab6d48acaaffe37298cd5b78d5cb804bd629e5b7b7c24e70613f064f36306580f9426e30980acef2d02005dbc144ec6fb76f0281ec7c037713cd465dd3d69e
6
+ metadata.gz: 0f76c816ca1a5988b1c7165deadb3ce4824d731a5e3b44def59c6cf82341ac7e95598490e3cb3d14a154fbe3908bda60e8c74c42abfafaa123f153b978951bc8
7
+ data.tar.gz: f7169bc6736c5bcbd1ddae411198aeb5fede77872c794eb79a1c6f8621442da74251615b7fd7774b1ab498d967b1ac58ea84edfed7a415fb876706761b7bcdd5
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
1
  # C21e for Ruby
2
2
 
3
3
  [![Build Status](https://travis-ci.org/cucumber/c21e-ruby.svg?branch=master)](https://travis-ci.org/cucumber/c21e-ruby)
4
+
5
+ [Overview](https://github.com/cucumber/cucumber/tree/master/c21e)
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
@@ -3,30 +3,20 @@ require 'c21e/exe_file'
3
3
 
4
4
  module C21e
5
5
  describe ExeFile do
6
- it 'detects macos' do
7
- exe_file = ExeFile.new(
8
- '',
9
- os: 'darwin8.10.3', arch: 'amd64'
10
- )
11
- expect(exe_file.os).to eq 'darwin'
12
- expect(exe_file.arch).to eq 'amd64'
13
- expect(exe_file.ext).to be_empty
14
- end
15
-
16
- it 'generates a file name for macos' do
17
- exe_file = ExeFile.new(
18
- 'test-{{.OS}}-{{.Arch}}{{.Ext}}',
19
- os: 'darwin8.10.3', arch: 'amd64'
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.5
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-09-24 00:00:00.000000000 Z
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.5
109
+ summary: c21e-1.1.8
106
110
  test_files:
107
111
  - spec/c21e/exe_file_spec.rb
108
112
  - spec/capture_warnings.rb