factory_bot_instrumentation 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/documentation.yml +1 -0
- data/.github/workflows/release.yml +1 -0
- data/.github/workflows/test.yml +2 -0
- data/CHANGELOG.md +10 -0
- data/Gemfile +17 -0
- data/Makefile +9 -0
- data/Rakefile +0 -4
- data/app/controllers/factory_bot/instrumentation/application_controller.rb +5 -0
- data/factory_bot_instrumentation.gemspec +0 -16
- data/gemfiles/rails_5.2.gemfile +15 -0
- data/lib/factory_bot/instrumentation/version.rb +1 -1
- metadata +2 -212
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b71c4ed3a9ed6cb1053a73c132a5da84f17f39ea9bd3caca361a190e5d00e988
|
4
|
+
data.tar.gz: f72ca36c607d3f301d7062520d55bed52c47eb33d522a444071f7149701c2ed4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1029988890892b3e2dbc67301793ddf227a70987f00bcc043ced996f2bb4c474fd506d588ca52d400750fc328f1ec8a501f0b39c8d3e1ec92be36f92f9cf6fef
|
7
|
+
data.tar.gz: 9769d814eea416af200fcb29a361d8f20e93a486397014d9e84f224713efdaa961a84cb1767c5f16cfd9bf5f2b34846cc77fa39de295fd1d56e0b6da79248f96
|
data/.github/workflows/test.yml
CHANGED
@@ -36,6 +36,7 @@ jobs:
|
|
36
36
|
uses: hausgold/actions/ci@master
|
37
37
|
with:
|
38
38
|
clone_token: '${{ secrets.CLONE_TOKEN }}'
|
39
|
+
settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
|
39
40
|
settings: '${{ github.repository }}'
|
40
41
|
target: ci/gem-test
|
41
42
|
|
@@ -56,6 +57,7 @@ jobs:
|
|
56
57
|
uses: hausgold/actions/ci@master
|
57
58
|
with:
|
58
59
|
clone_token: '${{ secrets.CLONE_TOKEN }}'
|
60
|
+
settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
|
59
61
|
settings: '${{ github.repository }}'
|
60
62
|
target: ci/noop
|
61
63
|
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
* TODO: Replace this bullet point with an actual description of a change.
|
4
4
|
|
5
|
+
### 1.1.2
|
6
|
+
|
7
|
+
* Moved the development dependencies from the gemspec to the Gemfile (#15)
|
8
|
+
* Added a fallback view path handling in case an Rails application cannot
|
9
|
+
find our engine templates correctly (#16)
|
10
|
+
|
11
|
+
### 1.1.1
|
12
|
+
|
13
|
+
* Removed double bundler/gem_tasks handling
|
14
|
+
|
5
15
|
### 1.1.0
|
6
16
|
|
7
17
|
* Added support for Gem release automation
|
data/Gemfile
CHANGED
@@ -6,3 +6,20 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
6
6
|
|
7
7
|
# Specify your gem's dependencies in grape-jwt-authentication.gemspec
|
8
8
|
gemspec
|
9
|
+
|
10
|
+
# Development dependencies
|
11
|
+
gem 'appraisal', '~> 2.4'
|
12
|
+
gem 'bundler', '~> 2.3'
|
13
|
+
gem 'countless', '~> 1.1'
|
14
|
+
gem 'factory_bot_rails', '~> 6.2'
|
15
|
+
gem 'guard-rspec', '~> 4.7'
|
16
|
+
gem 'railties', '>= 5.2'
|
17
|
+
gem 'rspec-rails', '~> 5.1'
|
18
|
+
gem 'rubocop', '~> 1.28'
|
19
|
+
gem 'rubocop-rails', '~> 2.14'
|
20
|
+
gem 'rubocop-rspec', '~> 2.10'
|
21
|
+
gem 'simplecov', '>= 0.22'
|
22
|
+
gem 'sqlite3', '~> 1.5'
|
23
|
+
gem 'timecop', '>= 0.9.6'
|
24
|
+
gem 'yard', '>= 0.9.28'
|
25
|
+
gem 'yard-activesupport-concern', '>= 0.0.1'
|
data/Makefile
CHANGED
@@ -16,11 +16,20 @@ VENDOR_DIR ?= vendor/bundle
|
|
16
16
|
GEMFILES_DIR ?= gemfiles
|
17
17
|
|
18
18
|
# Host binaries
|
19
|
+
AWK ?= awk
|
19
20
|
BASH ?= bash
|
20
21
|
COMPOSE ?= docker-compose
|
22
|
+
CP ?= cp
|
23
|
+
DOCKER ?= docker
|
24
|
+
EXPORT ?= export
|
25
|
+
FIND ?= find
|
26
|
+
GREP ?= grep
|
27
|
+
HEAD ?= head
|
21
28
|
ID ?= id
|
22
29
|
MKDIR ?= mkdir
|
23
30
|
RM ?= rm
|
31
|
+
SORT ?= sort
|
32
|
+
XARGS ?= xargs
|
24
33
|
|
25
34
|
# Container binaries
|
26
35
|
APPRAISAL ?= appraisal
|
data/Rakefile
CHANGED
@@ -11,10 +11,6 @@ require 'countless/rake_tasks'
|
|
11
11
|
APP_RAKEFILE = File.expand_path('spec/dummy/Rakefile', __dir__)
|
12
12
|
load 'rails/tasks/engine.rake'
|
13
13
|
|
14
|
-
Bundler::GemHelper.install_tasks
|
15
|
-
|
16
|
-
Dir[File.join(File.dirname(__FILE__), 'tasks/**/*.rake')].each { |f| load f }
|
17
|
-
|
18
14
|
desc 'Run all specs in spec directory (excluding plugin specs)'
|
19
15
|
RSpec::Core::RakeTask.new(spec: [
|
20
16
|
'db:drop', 'db:create', 'db:migrate', 'db:setup'
|
@@ -9,6 +9,11 @@ module FactoryBot
|
|
9
9
|
include ActionController::HttpAuthentication::Digest::ControllerMethods
|
10
10
|
include ActionController::HttpAuthentication::Token::ControllerMethods
|
11
11
|
|
12
|
+
# For some reason the Rails engine may not find its partial templates as
|
13
|
+
# it looks for wrong paths, so we add a fallback path to the view paths
|
14
|
+
base_path = Pathname.new(File.expand_path('../../../views', __dir__))
|
15
|
+
append_view_path base_path.join('factory_bot/instrumentation')
|
16
|
+
|
12
17
|
# Allow the users to implement additional instrumentation-wide before
|
13
18
|
# action logic, like authentication
|
14
19
|
before_action do |_controller|
|
@@ -36,20 +36,4 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_runtime_dependency 'factory_bot', '~> 6.2'
|
37
37
|
spec.add_runtime_dependency 'rails', '>= 5.2'
|
38
38
|
spec.add_runtime_dependency 'retries', '>= 0.0.5'
|
39
|
-
|
40
|
-
spec.add_development_dependency 'appraisal', '~> 2.4'
|
41
|
-
spec.add_development_dependency 'bundler', '~> 2.3'
|
42
|
-
spec.add_development_dependency 'countless', '~> 1.1'
|
43
|
-
spec.add_development_dependency 'factory_bot_rails', '~> 6.2'
|
44
|
-
spec.add_development_dependency 'guard-rspec', '~> 4.7'
|
45
|
-
spec.add_development_dependency 'railties', '>= 5.2'
|
46
|
-
spec.add_development_dependency 'rspec-rails', '~> 5.1'
|
47
|
-
spec.add_development_dependency 'rubocop', '~> 1.28'
|
48
|
-
spec.add_development_dependency 'rubocop-rails', '~> 2.14'
|
49
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 2.10'
|
50
|
-
spec.add_development_dependency 'simplecov', '>= 0.22'
|
51
|
-
spec.add_development_dependency 'sqlite3', '~> 1.5'
|
52
|
-
spec.add_development_dependency 'timecop', '>= 0.9.6'
|
53
|
-
spec.add_development_dependency 'yard', '>= 0.9.28'
|
54
|
-
spec.add_development_dependency 'yard-activesupport-concern', '>= 0.0.1'
|
55
39
|
end
|
data/gemfiles/rails_5.2.gemfile
CHANGED
@@ -2,6 +2,21 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
+
gem "appraisal", "~> 2.4"
|
6
|
+
gem "bundler", "~> 2.3"
|
7
|
+
gem "countless", "~> 1.1"
|
8
|
+
gem "factory_bot_rails", "~> 6.2"
|
9
|
+
gem "guard-rspec", "~> 4.7"
|
10
|
+
gem "railties", ">= 5.2"
|
11
|
+
gem "rspec-rails", "~> 5.1"
|
12
|
+
gem "rubocop", "~> 1.28"
|
13
|
+
gem "rubocop-rails", "~> 2.14"
|
14
|
+
gem "rubocop-rspec", "~> 2.10"
|
15
|
+
gem "simplecov", ">= 0.22"
|
16
|
+
gem "sqlite3", "~> 1.5"
|
17
|
+
gem "timecop", ">= 0.9.6"
|
18
|
+
gem "yard", ">= 0.9.28"
|
19
|
+
gem "yard-activesupport-concern", ">= 0.0.1"
|
5
20
|
gem "rails", "~> 5.2.0"
|
6
21
|
|
7
22
|
gemspec path: "../"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: factory_bot_instrumentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hermann Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: factory_bot
|
@@ -52,216 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.0.5
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: appraisal
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.4'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '2.4'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: bundler
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '2.3'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '2.3'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: countless
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1.1'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '1.1'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: factory_bot_rails
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '6.2'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '6.2'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: guard-rspec
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '4.7'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '4.7'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: railties
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '5.2'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '5.2'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rspec-rails
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '5.1'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '5.1'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: rubocop
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '1.28'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '1.28'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: rubocop-rails
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '2.14'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '2.14'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: rubocop-rspec
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "~>"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '2.10'
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - "~>"
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '2.10'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: simplecov
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - ">="
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: '0.22'
|
202
|
-
type: :development
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - ">="
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: '0.22'
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
name: sqlite3
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - "~>"
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: '1.5'
|
216
|
-
type: :development
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - "~>"
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: '1.5'
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: timecop
|
225
|
-
requirement: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - ">="
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: 0.9.6
|
230
|
-
type: :development
|
231
|
-
prerelease: false
|
232
|
-
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
requirements:
|
234
|
-
- - ">="
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
version: 0.9.6
|
237
|
-
- !ruby/object:Gem::Dependency
|
238
|
-
name: yard
|
239
|
-
requirement: !ruby/object:Gem::Requirement
|
240
|
-
requirements:
|
241
|
-
- - ">="
|
242
|
-
- !ruby/object:Gem::Version
|
243
|
-
version: 0.9.28
|
244
|
-
type: :development
|
245
|
-
prerelease: false
|
246
|
-
version_requirements: !ruby/object:Gem::Requirement
|
247
|
-
requirements:
|
248
|
-
- - ">="
|
249
|
-
- !ruby/object:Gem::Version
|
250
|
-
version: 0.9.28
|
251
|
-
- !ruby/object:Gem::Dependency
|
252
|
-
name: yard-activesupport-concern
|
253
|
-
requirement: !ruby/object:Gem::Requirement
|
254
|
-
requirements:
|
255
|
-
- - ">="
|
256
|
-
- !ruby/object:Gem::Version
|
257
|
-
version: 0.0.1
|
258
|
-
type: :development
|
259
|
-
prerelease: false
|
260
|
-
version_requirements: !ruby/object:Gem::Requirement
|
261
|
-
requirements:
|
262
|
-
- - ">="
|
263
|
-
- !ruby/object:Gem::Version
|
264
|
-
version: 0.0.1
|
265
55
|
description: Allow your testers to generate test data on demand
|
266
56
|
email:
|
267
57
|
- hermann.mayer92@gmail.com
|