use_packs 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +0 -6
- metadata +1 -2
- data/lib/use_packs/spring_command.rb +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e12528c58342f14ac6b85143222c121a415baf025dbce4bf46349b60c5a1a726
|
4
|
+
data.tar.gz: e59faa92e2e6eab2e0967cd46cba1ba7bb1aade8957f55a40656571ea3431bbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31f76e50ac922c3968066db9f7744922cb36f8fce69ace812d7b98b6af5488257c3efa5b9a12190854d88959a2b7ad6573c97847a3c364c5e4adc29740eb39c5
|
7
|
+
data.tar.gz: 2b3fce71ffb916a7c40392e8bbdcb2533819c3825245f0e29f1fa910e42cd5a2dc8fda16c8ddf4d5c6a6d69af22ef87176d7c5de5a715613b79b600664ea7d58
|
data/README.md
CHANGED
@@ -43,12 +43,6 @@ If no pack name is passed in, this will list out violations across all packs.
|
|
43
43
|
|
44
44
|
This can be used to quickly modify a `package.yml` file and add a dependency. It also cleans up the list of dependencies to sort the list and remove redundant entries.
|
45
45
|
|
46
|
-
### Setting up Spring
|
47
|
-
|
48
|
-
[Spring](https://github.com/rails/spring) is a preloader for Rails. Although `use_packs` itself does not use `Rails`, this can help speed up running commands like `bin/packs` by caching the bundle.
|
49
|
-
Firstly, spring needs to know about the `bin/packs` command when spring is loading. To do that, add `require 'use_packs/spring_command'` to `config/spring.rb` in your application.
|
50
|
-
Secondly, to enable Spring, first run `bin/spring binstub packs` which will "springify" the generated binstub.
|
51
|
-
|
52
46
|
### Releasing
|
53
47
|
Releases happen automatically through github actions once a version update is committed to `main`.
|
54
48
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: use_packs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gusto Engineers
|
@@ -319,7 +319,6 @@ files:
|
|
319
319
|
- lib/use_packs/private/packwerk_wrapper.rb
|
320
320
|
- lib/use_packs/private/packwerk_wrapper/offenses_aggregator_formatter.rb
|
321
321
|
- lib/use_packs/rubocop_post_processor.rb
|
322
|
-
- lib/use_packs/spring_command.rb
|
323
322
|
- lib/use_packs/user_event_logger.rb
|
324
323
|
homepage: https://github.com/rubyatscale/use_packs
|
325
324
|
licenses:
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'spring/commands'
|
5
|
-
|
6
|
-
module UsePacks
|
7
|
-
class SpringCommand
|
8
|
-
def env(*)
|
9
|
-
# Packwerk needs to run in a test environment, which has a set of autoload paths that are
|
10
|
-
# often a superset of the dev/prod paths (for example, test/support/helpers)
|
11
|
-
'test'
|
12
|
-
end
|
13
|
-
|
14
|
-
def exec_name
|
15
|
-
'packs'
|
16
|
-
end
|
17
|
-
|
18
|
-
def gem_name
|
19
|
-
'use_packs'
|
20
|
-
end
|
21
|
-
|
22
|
-
def call
|
23
|
-
load(Gem.bin_path(gem_name, exec_name))
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
Spring.register_command('packs', SpringCommand.new)
|
28
|
-
end
|