bullet_train-roles 1.11.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -4
- data/Rakefile +0 -2
- data/bullet_train-roles.gemspec +1 -1
- data/lib/bullet_train/roles/version.rb +1 -1
- metadata +16 -17
- data/.circleci/config.yml +0 -188
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f786eb16508c63bf78779eba27ce0083cd965321066611fa2c8f8d0b2a2213b1
|
4
|
+
data.tar.gz: 74d606b2e3ff871ff27433582c47c33f07207f8b5c6f1dd755eefb96105d267f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8be712107628ab149c7378ef9de0751fca13cbfe62138269c5c8c8ab0206d0bb6429a75ef4acb0dc343ab3356edf0cd9459af2b3abf158b7229ed7b963e76b28
|
7
|
+
data.tar.gz: 290915ae8523aafb994d08de08fefd86b572c39932019f6fa926112e3865155fd767c19b32df8d22269841602e201bdb7bf46887552448acb16d0d39e7e3980d
|
data/Gemfile.lock
CHANGED
@@ -9,7 +9,7 @@ GIT
|
|
9
9
|
PATH
|
10
10
|
remote: .
|
11
11
|
specs:
|
12
|
-
bullet_train-roles (1.
|
12
|
+
bullet_train-roles (1.12.0)
|
13
13
|
active_hash
|
14
14
|
activesupport
|
15
15
|
cancancan
|
@@ -90,6 +90,7 @@ GEM
|
|
90
90
|
concurrent-ruby (1.2.2)
|
91
91
|
crass (1.0.6)
|
92
92
|
date (3.3.3)
|
93
|
+
docile (1.4.1)
|
93
94
|
erubi (1.12.0)
|
94
95
|
factory_bot (6.2.1)
|
95
96
|
activesupport (>= 5.0.0)
|
@@ -100,8 +101,6 @@ GEM
|
|
100
101
|
activesupport (>= 5.0)
|
101
102
|
i18n (1.12.0)
|
102
103
|
concurrent-ruby (~> 1.0)
|
103
|
-
knapsack_pro (3.1.3)
|
104
|
-
rake
|
105
104
|
loofah (2.19.1)
|
106
105
|
crass (~> 1.0.2)
|
107
106
|
nokogiri (>= 1.5.9)
|
@@ -188,6 +187,12 @@ GEM
|
|
188
187
|
rubocop (>= 1.7.0, < 2.0)
|
189
188
|
rubocop-ast (>= 0.4.0)
|
190
189
|
ruby-progressbar (1.13.0)
|
190
|
+
simplecov (0.22.0)
|
191
|
+
docile (~> 1.1)
|
192
|
+
simplecov-html (~> 0.11)
|
193
|
+
simplecov_json_formatter (~> 0.1)
|
194
|
+
simplecov-html (0.13.1)
|
195
|
+
simplecov_json_formatter (0.1.4)
|
191
196
|
standard (1.5.0)
|
192
197
|
rubocop (= 1.23.0)
|
193
198
|
rubocop-performance (= 1.12.0)
|
@@ -214,12 +219,12 @@ DEPENDENCIES
|
|
214
219
|
bullet_train-roles!
|
215
220
|
byebug (~> 11.1.0)
|
216
221
|
factory_bot_rails (~> 6.2.0)
|
217
|
-
knapsack_pro (~> 3.1.0)
|
218
222
|
minitest (~> 5.0)
|
219
223
|
minitest-reporters
|
220
224
|
pg (~> 1.3)
|
221
225
|
rails (~> 7.0.0)
|
222
226
|
rake (~> 13.0)
|
227
|
+
simplecov
|
223
228
|
standard (~> 1.5.0)
|
224
229
|
|
225
230
|
BUNDLED WITH
|
data/Rakefile
CHANGED
data/bullet_train-roles.gemspec
CHANGED
@@ -28,12 +28,12 @@ Gem::Specification.new do |spec|
|
|
28
28
|
|
29
29
|
spec.add_development_dependency "byebug", "~> 11.1.0"
|
30
30
|
spec.add_development_dependency "factory_bot_rails", "~> 6.2.0"
|
31
|
-
spec.add_development_dependency "knapsack_pro", "~> 3.1.0"
|
32
31
|
spec.add_development_dependency "minitest", "~> 5.0"
|
33
32
|
spec.add_development_dependency "pg", "~> 1.3"
|
34
33
|
spec.add_development_dependency "rails", "~> 7.0.0"
|
35
34
|
spec.add_development_dependency "rake", "~> 13.0"
|
36
35
|
spec.add_development_dependency "standard", "~> 1.5.0"
|
36
|
+
spec.add_development_dependency "simplecov"
|
37
37
|
|
38
38
|
spec.add_runtime_dependency "active_hash"
|
39
39
|
spec.add_runtime_dependency "activesupport"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-roles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Prabin Poudel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: byebug
|
@@ -39,20 +39,6 @@ dependencies:
|
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 6.2.0
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: knapsack_pro
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - "~>"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: 3.1.0
|
49
|
-
type: :development
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - "~>"
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: 3.1.0
|
56
42
|
- !ruby/object:Gem::Dependency
|
57
43
|
name: minitest
|
58
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,6 +109,20 @@ dependencies:
|
|
123
109
|
- - "~>"
|
124
110
|
- !ruby/object:Gem::Version
|
125
111
|
version: 1.5.0
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: simplecov
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: active_hash
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,7 +172,6 @@ executables: []
|
|
172
172
|
extensions: []
|
173
173
|
extra_rdoc_files: []
|
174
174
|
files:
|
175
|
-
- ".circleci/config.yml"
|
176
175
|
- ".gitignore"
|
177
176
|
- CHANGELOG.md
|
178
177
|
- CODE_OF_CONDUCT.md
|
data/.circleci/config.yml
DELETED
@@ -1,188 +0,0 @@
|
|
1
|
-
version: 2.1
|
2
|
-
orbs:
|
3
|
-
ruby: circleci/ruby@0.1.2
|
4
|
-
browser-tools: circleci/browser-tools@1.1
|
5
|
-
aliases:
|
6
|
-
- &restore_bundler_cache
|
7
|
-
name: Restore Bundler cache
|
8
|
-
keys:
|
9
|
-
- gem-cache-v1-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
|
10
|
-
- gem-cache-v1-{{ .Branch }}-
|
11
|
-
- gem-cache-v1-
|
12
|
-
- &restore_yarn_cache
|
13
|
-
name: Restore Yarn cache
|
14
|
-
keys:
|
15
|
-
- yarn-packages-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
16
|
-
- yarn-packages-v1-{{ .Branch }}-
|
17
|
-
- yarn-packages-
|
18
|
-
- &save_bundle_cache
|
19
|
-
name: Save Bundle cache
|
20
|
-
key: gem-cache-v1-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
|
21
|
-
paths:
|
22
|
-
- vendor/bundle
|
23
|
-
- &save_yarn_cache
|
24
|
-
name: Save Yarn cache
|
25
|
-
key: yarn-packages-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
26
|
-
paths:
|
27
|
-
- node_modules
|
28
|
-
- &ruby_node_browsers_docker_image
|
29
|
-
- image: cimg/ruby:3.2.2-browsers
|
30
|
-
environment:
|
31
|
-
PGHOST: localhost
|
32
|
-
PGUSER: untitled_application
|
33
|
-
RAILS_ENV: test
|
34
|
-
- &postgres_docker_image
|
35
|
-
- image: circleci/postgres
|
36
|
-
environment:
|
37
|
-
POSTGRES_HOST_AUTH_METHOD: trust
|
38
|
-
POSTGRES_DB: untitled_application_test
|
39
|
-
POSTGRES_USER: untitled_application
|
40
|
-
- &wait_for_docker
|
41
|
-
# We run this because the DB might not be available for a while due to a race condition.
|
42
|
-
run: dockerize -wait tcp://localhost:5432 -timeout 1m
|
43
|
-
jobs:
|
44
|
-
'Local Minitest':
|
45
|
-
docker:
|
46
|
-
- <<: *ruby_node_browsers_docker_image
|
47
|
-
- <<: *postgres_docker_image
|
48
|
-
- image: circleci/redis
|
49
|
-
executor: ruby/default
|
50
|
-
steps:
|
51
|
-
- browser-tools/install-browser-tools
|
52
|
-
- checkout
|
53
|
-
|
54
|
-
# Install dependencies
|
55
|
-
- run: "bundle install"
|
56
|
-
- run: "bundle clean --force"
|
57
|
-
- run: "yarn install"
|
58
|
-
- *wait_for_docker
|
59
|
-
- run:
|
60
|
-
name: Run unit tests
|
61
|
-
command: bundle exec rails test
|
62
|
-
|
63
|
-
'Local Standard Ruby':
|
64
|
-
docker:
|
65
|
-
- <<: *ruby_node_browsers_docker_image
|
66
|
-
steps:
|
67
|
-
- checkout
|
68
|
-
|
69
|
-
# TODO Figure out how to make these work for `tmp/starter`
|
70
|
-
# # Restore dependency caches
|
71
|
-
# - restore_cache: *restore_bundler_cache
|
72
|
-
# - restore_cache: *restore_yarn_cache
|
73
|
-
|
74
|
-
# Install dependencies
|
75
|
-
- ruby/bundle-install
|
76
|
-
- run: bundle clean --force
|
77
|
-
- run: yarn install
|
78
|
-
|
79
|
-
# # Save dependency caches
|
80
|
-
# # We only do this as part of this job, because it's time consuming and we don't want it to slow down test runners.
|
81
|
-
# - save_cache: *save_bundle_cache
|
82
|
-
# - save_cache: *save_yarn_cache
|
83
|
-
|
84
|
-
- run:
|
85
|
-
name: Check Standard Ruby
|
86
|
-
command: bundle exec standardrb
|
87
|
-
|
88
|
-
'Starter Repo Minitest':
|
89
|
-
docker:
|
90
|
-
- <<: *ruby_node_browsers_docker_image
|
91
|
-
- <<: *postgres_docker_image
|
92
|
-
- image: circleci/redis
|
93
|
-
executor: ruby/default
|
94
|
-
parallelism: 16
|
95
|
-
steps:
|
96
|
-
- browser-tools/install-browser-tools
|
97
|
-
- checkout
|
98
|
-
- run: "git clone https://github.com/bullet-train-co/bullet_train.git tmp/starter"
|
99
|
-
|
100
|
-
- run:
|
101
|
-
name: Link starter repository to the Ruby gem being tested.
|
102
|
-
command: "grep -v 'gem \"bullet_train-roles\"' tmp/starter/Gemfile > tmp/starter/Gemfile.tmp && mv tmp/starter/Gemfile.tmp tmp/starter/Gemfile && echo 'gem \"bullet_train-roles\", path: \"../..\"' >> tmp/starter/Gemfile"
|
103
|
-
|
104
|
-
# TODO Figure out how to make these work for `tmp/starter`
|
105
|
-
# - restore_cache: *restore_bundler_cache
|
106
|
-
# - restore_cache: *restore_yarn_cache
|
107
|
-
|
108
|
-
# Install dependencies
|
109
|
-
- run: "cd tmp/starter && bundle install"
|
110
|
-
- run: "cd tmp/starter && bundle clean --force"
|
111
|
-
- run: "cd tmp/starter && bundle exec rake bt:link"
|
112
|
-
- run: "cd tmp/starter && yarn install"
|
113
|
-
- run: "cd tmp/starter && yarn build"
|
114
|
-
- run: "cd tmp/starter && yarn build:css"
|
115
|
-
|
116
|
-
- *wait_for_docker
|
117
|
-
|
118
|
-
- run:
|
119
|
-
name: Run tests with Knapsack Pro
|
120
|
-
command: |
|
121
|
-
cd tmp/starter
|
122
|
-
export RAILS_ENV=test
|
123
|
-
bundle exec rails "knapsack_pro:queue:minitest[--verbose]"
|
124
|
-
environment:
|
125
|
-
KNAPSACK_PRO_CI_NODE_TOTAL: 16
|
126
|
-
|
127
|
-
# If you don't want to use Knapsack Pro, then use this configuration:
|
128
|
-
#
|
129
|
-
# - run:
|
130
|
-
# name: Run unit tests
|
131
|
-
# command: bundle exec rails test
|
132
|
-
# - run:
|
133
|
-
# name: Run system tests
|
134
|
-
# command: bundle exec rails test:system
|
135
|
-
#
|
136
|
-
# If you want to gather test results in CircleCI when not running tests in parallel,
|
137
|
-
# include `minitest-ci` in your Gemfile and uncomment the following step.
|
138
|
-
# You can access the test results via the "Tests" tab within each build in CircleCI.
|
139
|
-
#
|
140
|
-
# - store_test_results:
|
141
|
-
# path: test/reports
|
142
|
-
|
143
|
-
'Starter Repo Minitest for Super Scaffolding':
|
144
|
-
docker:
|
145
|
-
- <<: *ruby_node_browsers_docker_image
|
146
|
-
- <<: *postgres_docker_image
|
147
|
-
- image: circleci/redis
|
148
|
-
executor: ruby/default
|
149
|
-
steps:
|
150
|
-
- browser-tools/install-browser-tools
|
151
|
-
- checkout
|
152
|
-
- run: "git clone https://github.com/bullet-train-co/bullet_train.git tmp/starter"
|
153
|
-
|
154
|
-
- run:
|
155
|
-
name: Link starter repository to the Ruby gem being tested.
|
156
|
-
command: "grep -v 'gem \"bullet_train-roles\"' tmp/starter/Gemfile > tmp/starter/Gemfile.tmp && mv tmp/starter/Gemfile.tmp tmp/starter/Gemfile && echo 'gem \"bullet_train-roles\", path: \"../..\"' >> tmp/starter/Gemfile"
|
157
|
-
|
158
|
-
# TODO Figure out how to make these work for `tmp/starter`
|
159
|
-
# # Restore dependency caches
|
160
|
-
# - restore_cache: *restore_bundler_cache
|
161
|
-
# - restore_cache: *restore_yarn_cache
|
162
|
-
|
163
|
-
# Install dependencies
|
164
|
-
- run: "cd tmp/starter && bundle install"
|
165
|
-
- run: "cd tmp/starter && bundle clean --force"
|
166
|
-
- run: "cd tmp/starter && bundle exec rake bt:link"
|
167
|
-
- run: "cd tmp/starter && yarn install"
|
168
|
-
- run: "cd tmp/starter && yarn build"
|
169
|
-
- run: "cd tmp/starter && yarn build:css"
|
170
|
-
|
171
|
-
- *wait_for_docker
|
172
|
-
|
173
|
-
- run:
|
174
|
-
name: 'Setup Super Scaffolding System Test'
|
175
|
-
command: "cd tmp/starter && bundle exec test/bin/setup-super-scaffolding-system-test"
|
176
|
-
- run:
|
177
|
-
name: 'Run Super Scaffolding Test'
|
178
|
-
command: "cd tmp/starter && bundle exec rails test test/system/super_scaffolding/super_scaffolding_test.rb"
|
179
|
-
|
180
|
-
workflows:
|
181
|
-
version: 2
|
182
|
-
build:
|
183
|
-
jobs:
|
184
|
-
- 'Local Minitest'
|
185
|
-
- 'Local Standard Ruby'
|
186
|
-
- 'Starter Repo Minitest'
|
187
|
-
# TODO Get this passing.
|
188
|
-
# - 'Starter Repo Minitest for Super Scaffolding'
|