cucumber-expressions 8.0.0 → 8.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edd65ea4b92b8499008e6e821a06707177e1f2c1284f34f53c278f484d16b1c3
4
- data.tar.gz: c24fc7d2c8ad31f90c46c65fcdeddf3f8ac9b1bf9be2933c5d5965fc513fb251
3
+ metadata.gz: f43d6db1e68a6734245502f957b9b3720324dfb02ad516833a1a30f75ff4b99e
4
+ data.tar.gz: a07a3b33a9b1df95874320b31747f0399d89d8b69719424f02e055780127097d
5
5
  SHA512:
6
- metadata.gz: ee2c5bd392bc5e4ae1246944c23098390259bb36563cec9d0fd3485030c2947d366f4e15508718dd83c940da91ce0fc0789f2f91328f3996d5b5e50218376e60
7
- data.tar.gz: 1ea553353102791bef111b07a399f21ef42c7e97c98dc20e1b01c9ef16894fbea70ac0cd755a08df9416b0f03a8b99a49a34216260a17a7b3eb6b362ed66ffea
6
+ metadata.gz: 0cb24cd5a00b8bf6b3745ddd082e9d30eea0ee357a1ae5ac43a6e8bd1c30a8ed81716f82fb8d399b458cdf70b62d69a020008c9f03d76cb61c3af0b391a03440
7
+ data.tar.gz: 44b5ef37fc02d49f9f467584500de1d91acc60c0e7ec54d3afd2cf90ff5f57fc668a83cfe0b44089c7429495677e0339c008c61616362f1356be247d8b962619
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'cucumber-expressions'
4
- s.version = '8.0.0'
4
+ s.version = '8.0.1'
5
5
  s.authors = ["Aslak Hellesøy"]
6
6
  s.description = 'Cucumber Expressions - a simpler alternative to Regular Expressions'
7
7
  s.summary = "cucumber-expressions-#{s.version}"
@@ -19,12 +19,11 @@ Gem::Specification.new do |s|
19
19
  'source_code_uri' => 'https://github.com/cucumber/cucumber/blob/master/cucumber-expressions/ruby',
20
20
  }
21
21
 
22
- s.add_development_dependency 'bundler'
23
- s.add_development_dependency 'rake', '~> 12.3'
24
- s.add_development_dependency 'rspec', '~> 3.7'
22
+ s.add_development_dependency 'rake', '~> 13.0', '>= 13.0.0'
23
+ s.add_development_dependency 'rspec', '~> 3.8', '>= 3.8.0'
25
24
 
26
25
  # For coverage reports
27
- s.add_development_dependency 'coveralls'
26
+ s.add_development_dependency 'coveralls', '~> 0.8', '>= 0.8.23'
28
27
 
29
28
  s.rubygems_version = ">= 1.6.1"
30
29
  s.files = `git ls-files`.split("\n").reject {|path| path =~ /\.gitignore$/ }
data/default.mk CHANGED
@@ -24,19 +24,27 @@ update-version:
24
24
  ifdef NEW_VERSION
25
25
  sed -i "s/\(s\.version *= *'\)[0-9]*\.[0-9]*\.[0-9]*\('\)/\1$(NEW_VERSION)\2/" $(GEMSPEC)
26
26
  else
27
- @echo -e "\033[0;NEW_VERSION is not defined. Can't update version :-(\033[0m"
27
+ @echo -e "\033[0;31mNEW_VERSION is not defined. Can't update version :-(\033[0m"
28
28
  exit 1
29
29
  endif
30
30
  .PHONY: update-version
31
31
 
32
32
  publish: .deps
33
+ ifneq (,$(GEMSPEC))
33
34
  gem build $(GEMSPEC)
34
- gem push $$(find . -name "*.gem")
35
+ gem push $$(find . -name "*$(NEW_VERSION).gem")
36
+ else
37
+ @echo "Not publishing because there is no gemspec"
38
+ endif
35
39
  .PHONY: publish
36
40
 
41
+ post-release:
42
+ @echo "No post-release needed for ruby"
43
+ .PHONY: post-release
44
+
37
45
  clean: clean-ruby
38
46
  .PHONY: clean
39
47
 
40
48
  clean-ruby:
41
- rm -f .deps .linked .tested Gemfile.lock
49
+ rm -f .deps .linked .tested Gemfile.lock *.gem
42
50
  .PHONY: clean-ruby
@@ -6,7 +6,10 @@ set -uf -o pipefail
6
6
  IFS=$'\n'
7
7
 
8
8
  gemspec=$(find . -type f -maxdepth 1 -name "*.gemspec")
9
- add_dependency_lines=$(cat ${gemspec} | grep "s.add_dependency '[^']*', '")
9
+ if [ "${gemspec}" = "" ]; then
10
+ exit 0
11
+ fi
12
+ add_dependency_lines=$(cat ${gemspec} | grep "s.add_[a-z_]*dependency '[^']*'")
10
13
  if [ $? -ne 0 ]; then
11
14
  # No add_dependency_lines found - nothing to do
12
15
  exit 0
@@ -16,8 +19,14 @@ set -e
16
19
 
17
20
  gems=$(echo "${add_dependency_lines}" | tr -s ' ' | cut -d ' ' -f3 | cut -d"'" -f 2)
18
21
  while read -r gem; do
19
- gem_line=$(gem list "${gem}" --remote --all --no-prerelease | grep "${gem}")
20
- latest_version=$(echo "${gem_line}" | cut -d'(' -f2 | cut -d',' -f1)
21
- cat "${gemspec}" | sed "s/s.add_dependency '${gem}', .*/s.add_dependency '${gem}', '~> ${latest_version}'/" > ${gemspec}.tmp
22
+ echo "upgrading ${gem}"
23
+ if [ "${gem}" = "bundler" ]; then
24
+ cat "${gemspec}" | sed "s/\(s.add_[a-z_]*dependency\) '${gem}'.*/\1 '${gem}', '>= 1.16.2'/" > ${gemspec}.tmp
25
+ else
26
+ gem_line=$(gem list "${gem}" --remote --all --no-prerelease | grep "^${gem}\s")
27
+ latest_patch_version=$(echo "${gem_line}" | cut -d'(' -f2 | cut -d',' -f1 | cut -d' ' -f1)
28
+ latest_minor_version=$(echo "${latest_patch_version}" | cut -d. -f1,2)
29
+ cat "${gemspec}" | sed "s/\(s.add_[a-z_]*dependency\) '${gem}'.*/\1 '${gem}', '~> ${latest_minor_version}', '>= ${latest_patch_version}'/" > ${gemspec}.tmp
30
+ fi
22
31
  mv ${gemspec}.tmp ${gemspec}
23
32
  done <<< "${gems}"
metadata CHANGED
@@ -1,71 +1,75 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-expressions
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0
4
+ version: 8.0.1
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: 2019-08-11 00:00:00.000000000 Z
11
+ date: 2019-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: '12.3'
19
+ version: '13.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 13.0.0
34
23
  type: :development
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
38
27
  - - "~>"
39
28
  - !ruby/object:Gem::Version
40
- version: '12.3'
29
+ version: '13.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 13.0.0
41
33
  - !ruby/object:Gem::Dependency
42
34
  name: rspec
43
35
  requirement: !ruby/object:Gem::Requirement
44
36
  requirements:
45
37
  - - "~>"
46
38
  - !ruby/object:Gem::Version
47
- version: '3.7'
39
+ version: '3.8'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 3.8.0
48
43
  type: :development
49
44
  prerelease: false
50
45
  version_requirements: !ruby/object:Gem::Requirement
51
46
  requirements:
52
47
  - - "~>"
53
48
  - !ruby/object:Gem::Version
54
- version: '3.7'
49
+ version: '3.8'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 3.8.0
55
53
  - !ruby/object:Gem::Dependency
56
54
  name: coveralls
57
55
  requirement: !ruby/object:Gem::Requirement
58
56
  requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0.8'
59
60
  - - ">="
60
61
  - !ruby/object:Gem::Version
61
- version: '0'
62
+ version: 0.8.23
62
63
  type: :development
63
64
  prerelease: false
64
65
  version_requirements: !ruby/object:Gem::Requirement
65
66
  requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.8'
66
70
  - - ">="
67
71
  - !ruby/object:Gem::Version
68
- version: '0'
72
+ version: 0.8.23
69
73
  description: Cucumber Expressions - a simpler alternative to Regular Expressions
70
74
  email: cukes@googlegroups.com
71
75
  executables: []
@@ -140,7 +144,7 @@ rubyforge_project:
140
144
  rubygems_version: 2.7.6.2
141
145
  signing_key:
142
146
  specification_version: 4
143
- summary: cucumber-expressions-8.0.0
147
+ summary: cucumber-expressions-8.0.1
144
148
  test_files:
145
149
  - spec/capture_warnings.rb
146
150
  - spec/coverage.rb