specs_for 0.2.1 → 0.3.1
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 +19 -0
- data/bin/specs_for +0 -1
- data/lib/specs_for/version.rb +3 -1
- metadata +1 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b1f0ffc2e168d03afb6c22dd7d97baa1ed42897f489dc42a94c035930696c204
|
|
4
|
+
data.tar.gz: 5b3bc0461602fcb93b206d41213820ffbd2357a9e2c51de24e997fe375f37f99
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92bcc8d52110a20b642b3f896827d08bc838f7d19dcac0206f45b6452c8417d7e630fc5479cee80cbec87b1ead761815054745e20579b200bb7b871d230e4aa1
|
|
7
|
+
data.tar.gz: a3bc97a285ddd2856da9bc31c6be50eac7845a0759f14d1004448d6491dcd428623383afcd25aa205cf33168298c51cc9a4185df140b6e7365de553e5a83cb82
|
data/README.md
CHANGED
|
@@ -18,6 +18,14 @@ executing:
|
|
|
18
18
|
gem install specs_for
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
If your environment uses a private gem proxy/cache and the newest published
|
|
22
|
+
version is not yet visible, install from a local built gem file:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
bundle exec rake build
|
|
26
|
+
gem install --local pkg/specs_for-<version>.gem --bindir bin
|
|
27
|
+
```
|
|
28
|
+
|
|
21
29
|
## Usage
|
|
22
30
|
|
|
23
31
|
### Command line
|
|
@@ -43,6 +51,17 @@ specs-for -s lib/my_class.rb
|
|
|
43
51
|
specs-for -n lib/my_class.rb
|
|
44
52
|
```
|
|
45
53
|
|
|
54
|
+
### Bundler context and standalone usage
|
|
55
|
+
|
|
56
|
+
`specs-for` is designed to run as a standalone CLI, independent of the current
|
|
57
|
+
project's Gemfile dependency constraints.
|
|
58
|
+
|
|
59
|
+
- Prefer: `specs-for ...`
|
|
60
|
+
- Avoid: `bundle exec specs-for ...` (this forces the current project's Bundler context)
|
|
61
|
+
|
|
62
|
+
When invoked with `bundle exec`, RubyGems resolution is controlled by that
|
|
63
|
+
project's bundle, which can cause version conflicts unrelated to `specs-for`.
|
|
64
|
+
|
|
46
65
|
### Path mapping
|
|
47
66
|
|
|
48
67
|
Source files are mapped to spec files by replacing the first `app/` or `lib/`
|
data/bin/specs_for
CHANGED
data/lib/specs_for/version.rb
CHANGED
|
@@ -4,7 +4,9 @@ class SpecsFor
|
|
|
4
4
|
RELEASES = [
|
|
5
5
|
["0.1.0", "2026-03-25", "Initial release"],
|
|
6
6
|
["0.2.0", "2026-05-06", "Add support for tags and improved file search"],
|
|
7
|
-
["0.2.1", "2026-05-06", "Replace specs-for with specs_for in the url"]
|
|
7
|
+
["0.2.1", "2026-05-06", "Replace specs-for with specs_for in the url"],
|
|
8
|
+
["0.3.0", "2026-05-06", "Make specs-for be independent of bundler"],
|
|
9
|
+
["0.3.1", "2026-05-06", "Update README.md with local install info"]
|
|
8
10
|
]
|
|
9
11
|
VERSION = RELEASES.last.first
|
|
10
12
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: specs_for
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alan Stebbens
|
|
@@ -9,20 +9,6 @@ bindir: bin
|
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
|
-
- !ruby/object:Gem::Dependency
|
|
13
|
-
name: bundler
|
|
14
|
-
requirement: !ruby/object:Gem::Requirement
|
|
15
|
-
requirements:
|
|
16
|
-
- - ">="
|
|
17
|
-
- !ruby/object:Gem::Version
|
|
18
|
-
version: 4.0.0
|
|
19
|
-
type: :runtime
|
|
20
|
-
prerelease: false
|
|
21
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
-
requirements:
|
|
23
|
-
- - ">="
|
|
24
|
-
- !ruby/object:Gem::Version
|
|
25
|
-
version: 4.0.0
|
|
26
12
|
- !ruby/object:Gem::Dependency
|
|
27
13
|
name: json
|
|
28
14
|
requirement: !ruby/object:Gem::Requirement
|