rspec_in_context 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test_and_publish.yml +73 -0
- data/.overcommit.yml +1 -1
- data/.rubocop-http---relaxed-ruby-style-rubocop-yml +11 -24
- data/.rubocop.yml +46 -4
- data/.ruby-version +1 -1
- data/README.md +2 -2
- data/lib/rspec_in_context/version.rb +1 -1
- data/rspec_in_context.gemspec +12 -10
- metadata +45 -33
- data/.circleci/config.yml +0 -81
- data/.circleci/setup-rubygems.sh +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35f493281fd575342fb7d7bf2c8d2f396e34ea4db19645eb273ef429fa8041f5
|
4
|
+
data.tar.gz: 21572e717ab9f0ebba78b8775e3e18bc1be8985c2c8b2f3abed798d9aa6ea37b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2b5ff94e3a48b19e91de9d19b3974605c59f6d3fc53668505f9fa6eab74015f076986abf0074914ad6360c1c9294bcd2989fef6e31827451da1f1852fff9e36
|
7
|
+
data.tar.gz: 73f5ef4703d47491bebbbdb15ec9f3f40c12da5c76eb7fb124232fca0c06d9c4a55a27d501b1425f2fa336319a5827a87a9dcd447301ada35abec0715fa2dbc8
|
@@ -0,0 +1,73 @@
|
|
1
|
+
name: Test and Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
test-2_5:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- name: Set up Ruby
|
15
|
+
uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: 2.5
|
18
|
+
- name: Install dependencies
|
19
|
+
run: bundle install
|
20
|
+
- name: Run linter
|
21
|
+
run: bundle exec rubocop
|
22
|
+
- name: Run tests
|
23
|
+
run: bundle exec rspec
|
24
|
+
test-2_6:
|
25
|
+
runs-on: ubuntu-latest
|
26
|
+
|
27
|
+
steps:
|
28
|
+
- uses: actions/checkout@v2
|
29
|
+
- name: Set up Ruby
|
30
|
+
uses: ruby/setup-ruby@v1
|
31
|
+
with:
|
32
|
+
ruby-version: 2.6
|
33
|
+
- name: Install dependencies
|
34
|
+
run: bundle install
|
35
|
+
- name: Run linter
|
36
|
+
run: bundle exec rubocop
|
37
|
+
- name: Run tests
|
38
|
+
run: bundle exec rspec
|
39
|
+
test-2_7:
|
40
|
+
runs-on: ubuntu-latest
|
41
|
+
|
42
|
+
steps:
|
43
|
+
- uses: actions/checkout@v2
|
44
|
+
- name: Set up Ruby
|
45
|
+
uses: ruby/setup-ruby@v1
|
46
|
+
with:
|
47
|
+
ruby-version: 2.7
|
48
|
+
- name: Install dependencies
|
49
|
+
run: bundle install
|
50
|
+
- name: Run linter
|
51
|
+
run: bundle exec rubocop
|
52
|
+
- name: Run tests
|
53
|
+
run: bundle exec rspec
|
54
|
+
release:
|
55
|
+
needs: [test-2_5, test-2_6, test-2_7]
|
56
|
+
runs-on: ubuntu-latest
|
57
|
+
|
58
|
+
steps:
|
59
|
+
- uses: actions/checkout@v2
|
60
|
+
- name: Set up Ruby
|
61
|
+
uses: ruby/setup-ruby@v1
|
62
|
+
with:
|
63
|
+
ruby-version: 2.7
|
64
|
+
- name: Install dependencies
|
65
|
+
run: bundle install
|
66
|
+
- name: Prepare credentials
|
67
|
+
env:
|
68
|
+
RUBYGEM_KEY: ${{ secrets.RUBYGEM_KEY }}
|
69
|
+
run: "echo -e \"---\\r\\n:rubygems_api_key: $RUBYGEM_KEY\" > ~/.gem/credentials && chmod 0600 ~/.gem/credentials"
|
70
|
+
- name: Setup username/email
|
71
|
+
run: "git config --global user.email zaratan@hey.com && git config --global user.name \"Denis <Zaratan> Pasin\""
|
72
|
+
- name: Publish
|
73
|
+
run: rake release
|
data/.overcommit.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Relaxed.Ruby.Style
|
2
|
-
## Version 2.
|
2
|
+
## Version 2.5
|
3
3
|
|
4
4
|
Style/Alias:
|
5
5
|
Enabled: false
|
@@ -65,6 +65,10 @@ Style/NegatedWhile:
|
|
65
65
|
Enabled: false
|
66
66
|
StyleGuide: https://relaxed.ruby.style/#stylenegatedwhile
|
67
67
|
|
68
|
+
Style/NumericPredicate:
|
69
|
+
Enabled: false
|
70
|
+
StyleGuide: https://relaxed.ruby.style/#stylenumericpredicate
|
71
|
+
|
68
72
|
Style/ParallelAssignment:
|
69
73
|
Enabled: false
|
70
74
|
StyleGuide: https://relaxed.ruby.style/#styleparallelassignment
|
@@ -121,6 +125,10 @@ Style/TrailingCommaInHashLiteral:
|
|
121
125
|
Enabled: false
|
122
126
|
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainhashliteral
|
123
127
|
|
128
|
+
Style/SymbolArray:
|
129
|
+
Enabled: false
|
130
|
+
StyleGuide: http://relaxed.ruby.style/#stylesymbolarray
|
131
|
+
|
124
132
|
Style/WhileUntilModifier:
|
125
133
|
Enabled: false
|
126
134
|
StyleGuide: https://relaxed.ruby.style/#stylewhileuntilmodifier
|
@@ -137,30 +145,9 @@ Lint/AssignmentInCondition:
|
|
137
145
|
Enabled: false
|
138
146
|
StyleGuide: https://relaxed.ruby.style/#lintassignmentincondition
|
139
147
|
|
140
|
-
|
141
|
-
Enabled: false
|
142
|
-
|
143
|
-
Metrics/BlockNesting:
|
144
|
-
Enabled: false
|
145
|
-
|
146
|
-
Metrics/ClassLength:
|
147
|
-
Enabled: false
|
148
|
-
|
149
|
-
Metrics/ModuleLength:
|
150
|
-
Enabled: false
|
151
|
-
|
152
|
-
Metrics/CyclomaticComplexity:
|
153
|
-
Enabled: false
|
154
|
-
|
155
|
-
Metrics/LineLength:
|
156
|
-
Enabled: false
|
157
|
-
|
158
|
-
Metrics/MethodLength:
|
159
|
-
Enabled: false
|
160
|
-
|
161
|
-
Metrics/ParameterLists:
|
148
|
+
Layout/LineLength:
|
162
149
|
Enabled: false
|
163
150
|
|
164
|
-
Metrics
|
151
|
+
Metrics:
|
165
152
|
Enabled: false
|
166
153
|
|
data/.rubocop.yml
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
inherit_from:
|
2
2
|
- http://relaxed.ruby.style/rubocop.yml
|
3
3
|
|
4
|
+
require:
|
5
|
+
- rubocop-performance
|
6
|
+
|
4
7
|
AllCops:
|
8
|
+
NewCops: enable
|
5
9
|
DisplayStyleGuide: true
|
6
10
|
DisplayCopNames: true
|
7
11
|
Exclude:
|
8
|
-
- 'db/schema.rb'
|
9
|
-
- 'vendor/**/*'
|
10
|
-
- 'config/environments/*.rb'
|
11
12
|
- 'bin/*'
|
12
13
|
|
13
14
|
Metrics/BlockLength:
|
@@ -17,5 +18,46 @@ Metrics/BlockLength:
|
|
17
18
|
- 'vendor/bundle'
|
18
19
|
- '*.gemspec'
|
19
20
|
|
20
|
-
Naming/
|
21
|
+
Naming/MethodParameterName:
|
21
22
|
Enabled: false
|
23
|
+
|
24
|
+
Layout/DotPosition:
|
25
|
+
Enabled: true
|
26
|
+
EnforcedStyle: trailing
|
27
|
+
|
28
|
+
Style/TrailingCommaInArrayLiteral:
|
29
|
+
Enabled: true
|
30
|
+
EnforcedStyleForMultiline: comma
|
31
|
+
|
32
|
+
Style/TrailingCommaInHashLiteral:
|
33
|
+
Enabled: true
|
34
|
+
EnforcedStyleForMultiline: comma
|
35
|
+
|
36
|
+
Layout/MultilineArrayLineBreaks:
|
37
|
+
Enabled: true
|
38
|
+
|
39
|
+
Layout/MultilineHashKeyLineBreaks:
|
40
|
+
Enabled: true
|
41
|
+
|
42
|
+
Layout/MultilineMethodArgumentLineBreaks:
|
43
|
+
Enabled: true
|
44
|
+
|
45
|
+
Layout/FirstArrayElementLineBreak:
|
46
|
+
Enabled: true
|
47
|
+
|
48
|
+
Layout/FirstHashElementLineBreak:
|
49
|
+
Enabled: true
|
50
|
+
|
51
|
+
Layout/FirstMethodArgumentLineBreak:
|
52
|
+
Enabled: true
|
53
|
+
|
54
|
+
Layout/MultilineAssignmentLayout:
|
55
|
+
Enabled: true
|
56
|
+
|
57
|
+
Layout/LineLength:
|
58
|
+
Enabled: true
|
59
|
+
Max: 120
|
60
|
+
AutoCorrect: true
|
61
|
+
Exclude:
|
62
|
+
- Gemfile
|
63
|
+
- Guardfile
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5.8
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# RspecInContext
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/rspec_in_context.svg)](https://badge.fury.io/rb/rspec_in_context)
|
4
|
-
[![Codacy Badge](https://
|
5
|
-
|
4
|
+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/6490834b08664dc898d0107c74a78357)](https://www.codacy.com/gh/zaratan/rspec_in_context/dashboard?utm_source=github.com&utm_medium=referral&utm_content=zaratan/rspec_in_context&utm_campaign=Badge_Grade)
|
5
|
+
![Test and Release badge](https://github.com/zaratan/rspec_in_context/workflows/Test%20and%20Release/badge.svg)
|
6
6
|
|
7
7
|
This gem is here to help you write better shared_examples in Rspec.
|
8
8
|
|
data/rspec_in_context.gemspec
CHANGED
@@ -15,28 +15,30 @@ Gem::Specification.new do |spec|
|
|
15
15
|
|
16
16
|
# Specify which files should be added to the gem when it is released.
|
17
17
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
|
-
spec.files =
|
19
|
-
|
20
|
-
|
18
|
+
spec.files =
|
19
|
+
Dir.chdir(File.expand_path(__dir__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
end
|
21
22
|
spec.bindir = "exe"
|
22
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
24
|
spec.require_paths = ["lib"]
|
24
|
-
spec.required_ruby_version = '>= 2.
|
25
|
+
spec.required_ruby_version = '>= 2.5.8'
|
25
26
|
spec.license = 'MIT'
|
26
27
|
|
27
28
|
spec.add_dependency "activesupport", "> 2.0"
|
28
29
|
spec.add_dependency "rspec", "> 3.0"
|
29
30
|
|
30
|
-
spec.add_development_dependency "bundler", "~> 1
|
31
|
-
spec.add_development_dependency "bundler-audit", "
|
31
|
+
spec.add_development_dependency "bundler", "~> 2.1"
|
32
|
+
spec.add_development_dependency "bundler-audit", "> 0.6.0"
|
32
33
|
spec.add_development_dependency "codacy-coverage", '~> 2.1.0'
|
33
34
|
spec.add_development_dependency "faker", "> 1.8"
|
34
35
|
spec.add_development_dependency "guard-rspec", "> 4.7"
|
35
|
-
spec.add_development_dependency "
|
36
|
-
spec.add_development_dependency "
|
37
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
36
|
+
spec.add_development_dependency "overcommit", '> 0.46'
|
37
|
+
spec.add_development_dependency "rake", "~> 12.0"
|
38
38
|
spec.add_development_dependency "rspec_junit_formatter", "~> 0.4.1"
|
39
39
|
spec.add_development_dependency "rubocop", "> 0.58"
|
40
|
+
spec.add_development_dependency "rubocop-performance"
|
40
41
|
spec.add_development_dependency "simplecov", "> 0.16"
|
41
|
-
spec.add_development_dependency "
|
42
|
+
spec.add_development_dependency "solargraph"
|
43
|
+
spec.add_development_dependency "yard"
|
42
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_in_context
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis <Zaratan> Pasin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -44,26 +44,26 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1
|
47
|
+
version: '2.1'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1
|
54
|
+
version: '2.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler-audit
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.6.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.6.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
@@ -108,32 +108,18 @@ dependencies:
|
|
108
108
|
- - ">"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '4.7'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: guard-rubocop
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '1.3'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '1.3'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: overcommit
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
128
114
|
requirements:
|
129
|
-
- - "
|
115
|
+
- - ">"
|
130
116
|
- !ruby/object:Gem::Version
|
131
117
|
version: '0.46'
|
132
118
|
type: :development
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
|
-
- - "
|
122
|
+
- - ">"
|
137
123
|
- !ruby/object:Gem::Version
|
138
124
|
version: '0.46'
|
139
125
|
- !ruby/object:Gem::Dependency
|
@@ -142,14 +128,14 @@ dependencies:
|
|
142
128
|
requirements:
|
143
129
|
- - "~>"
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
131
|
+
version: '12.0'
|
146
132
|
type: :development
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - "~>"
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
138
|
+
version: '12.0'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: rspec_junit_formatter
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,6 +164,20 @@ dependencies:
|
|
178
164
|
- - ">"
|
179
165
|
- !ruby/object:Gem::Version
|
180
166
|
version: '0.58'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rubocop-performance
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: simplecov
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,20 +192,34 @@ dependencies:
|
|
192
192
|
- - ">"
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0.16'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: solargraph
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
195
209
|
- !ruby/object:Gem::Dependency
|
196
210
|
name: yard
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
198
212
|
requirements:
|
199
|
-
- - "
|
213
|
+
- - ">="
|
200
214
|
- !ruby/object:Gem::Version
|
201
|
-
version: '0
|
215
|
+
version: '0'
|
202
216
|
type: :development
|
203
217
|
prerelease: false
|
204
218
|
version_requirements: !ruby/object:Gem::Requirement
|
205
219
|
requirements:
|
206
|
-
- - "
|
220
|
+
- - ">="
|
207
221
|
- !ruby/object:Gem::Version
|
208
|
-
version: '0
|
222
|
+
version: '0'
|
209
223
|
description:
|
210
224
|
email:
|
211
225
|
- denis@pasin.fr
|
@@ -213,8 +227,7 @@ executables: []
|
|
213
227
|
extensions: []
|
214
228
|
extra_rdoc_files: []
|
215
229
|
files:
|
216
|
-
- ".
|
217
|
-
- ".circleci/setup-rubygems.sh"
|
230
|
+
- ".github/workflows/test_and_publish.yml"
|
218
231
|
- ".gitignore"
|
219
232
|
- ".overcommit.yml"
|
220
233
|
- ".rspec"
|
@@ -245,15 +258,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
245
258
|
requirements:
|
246
259
|
- - ">="
|
247
260
|
- !ruby/object:Gem::Version
|
248
|
-
version: 2.
|
261
|
+
version: 2.5.8
|
249
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
250
263
|
requirements:
|
251
264
|
- - ">="
|
252
265
|
- !ruby/object:Gem::Version
|
253
266
|
version: '0'
|
254
267
|
requirements: []
|
255
|
-
|
256
|
-
rubygems_version: 2.7.8
|
268
|
+
rubygems_version: 3.1.2
|
257
269
|
signing_key:
|
258
270
|
specification_version: 4
|
259
271
|
summary: This gem is here to help DRYing your tests cases by giving a better "shared_examples".
|
data/.circleci/config.yml
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
# Ruby CircleCI 2.0 configuration file
|
2
|
-
#
|
3
|
-
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
|
4
|
-
#
|
5
|
-
version: 2
|
6
|
-
jobs:
|
7
|
-
build:
|
8
|
-
working_directory: ~/app
|
9
|
-
docker:
|
10
|
-
- image: circleci/ruby:2.5.3-node
|
11
|
-
environment:
|
12
|
-
|
13
|
-
steps:
|
14
|
-
- checkout
|
15
|
-
|
16
|
-
- run:
|
17
|
-
name: install dependencies
|
18
|
-
command: |
|
19
|
-
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
20
|
-
|
21
|
-
- run:
|
22
|
-
name: run linting
|
23
|
-
command: |
|
24
|
-
git config --global user.email $CIRCLE_USERNAME@none.com && \
|
25
|
-
git config --global user.name "$CIRCLE_USERNAME @$CIRCLE_PROJECT_REPONAME" && \
|
26
|
-
bundle exec overcommit --sign && \
|
27
|
-
bundle exec overcommit --run
|
28
|
-
# run tests!
|
29
|
-
- run:
|
30
|
-
name: run tests
|
31
|
-
command: |
|
32
|
-
mkdir /tmp/test-results
|
33
|
-
COVERAGE=true bundle exec rspec --format progress \
|
34
|
-
--format RspecJunitFormatter \
|
35
|
-
--out /tmp/test-results/rspec.xml \
|
36
|
-
--format progress
|
37
|
-
|
38
|
-
# collect reports
|
39
|
-
- store_test_results:
|
40
|
-
path: /tmp/test-results
|
41
|
-
- store_artifacts:
|
42
|
-
path: /tmp/test-results
|
43
|
-
destination: test-results
|
44
|
-
- store_artifacts:
|
45
|
-
path: ~/app/coverage
|
46
|
-
destination: coverage-results
|
47
|
-
deploy:
|
48
|
-
working_directory: ~/app
|
49
|
-
docker:
|
50
|
-
- image: circleci/ruby:2.5.3-node
|
51
|
-
environment:
|
52
|
-
|
53
|
-
steps:
|
54
|
-
- checkout
|
55
|
-
|
56
|
-
- run:
|
57
|
-
name: install dependencies
|
58
|
-
command: |
|
59
|
-
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
60
|
-
|
61
|
-
- run:
|
62
|
-
name: Setup Rubygems
|
63
|
-
command: bash .circleci/setup-rubygems.sh
|
64
|
-
|
65
|
-
- run:
|
66
|
-
name: Publish new version of the gem
|
67
|
-
command: |
|
68
|
-
git config --global user.email denis.pasin+circleci@gmail.com && \
|
69
|
-
git config --global user.name "Denis <CircleCI> Pasin" && \
|
70
|
-
rake release
|
71
|
-
workflows:
|
72
|
-
version: 2
|
73
|
-
build-and-deploy:
|
74
|
-
jobs:
|
75
|
-
- build
|
76
|
-
- deploy:
|
77
|
-
requires:
|
78
|
-
- build
|
79
|
-
filters:
|
80
|
-
branches:
|
81
|
-
only: master
|
data/.circleci/setup-rubygems.sh
DELETED