erbfmt 0.1.5 → 0.2.0
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 +32 -19
- data/lib/erbfmt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b0deba8372df8716b8ff08a1e01fa3f0d7ac13f17b94a0015dd3119bfa096f3
|
|
4
|
+
data.tar.gz: 8842df95feb9c5eb27c6dae623562a43a4898467433acc77f5dbf58e1f37f24e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 468f33439db856ef9d25fd40519494e8c86364e244a5f20ccc2c9414137c930bbd2f9605040c2f7c66040300fd4aba02d4c359911d00a2fad754d04f5077ca26
|
|
7
|
+
data.tar.gz: 6f24df9e128f89b2794ff0b4e0415e2b95cc5ee97bf82fa633837a77daec867871fa9a6047b6c2109c238605dd6a6aa04dfcc8fb2a79b6acc8a5344b05a1d2e2
|
data/README.md
CHANGED
|
@@ -2,41 +2,54 @@
|
|
|
2
2
|
|
|
3
3
|
This gem is a thin launcher for the erbfmt Rust binary.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
on glibc Linux x64:
|
|
5
|
+
## Installing from a Gemfile
|
|
6
|
+
|
|
7
|
+
For Rails projects, use Bundler so the formatter version is pinned for every
|
|
8
|
+
developer and CI job:
|
|
10
9
|
|
|
11
10
|
```bash
|
|
12
|
-
|
|
13
|
-
erbfmt --version
|
|
11
|
+
bundle add erbfmt --group development --require false
|
|
12
|
+
bundle exec erbfmt --version
|
|
14
13
|
```
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
Or write the dependency manually:
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
```ruby
|
|
18
|
+
group :development do
|
|
19
|
+
gem "erbfmt", require: false
|
|
20
|
+
end
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Global Installation
|
|
24
|
+
|
|
25
|
+
For a global local command, install erbfmt directly from RubyGems.org:
|
|
19
26
|
|
|
20
27
|
```bash
|
|
21
|
-
|
|
22
|
-
|
|
28
|
+
gem install erbfmt -v 0.2.0
|
|
29
|
+
erbfmt --version
|
|
23
30
|
```
|
|
24
31
|
|
|
32
|
+
The global install is convenient for quick trials, but Bundler is preferred for
|
|
33
|
+
project use because it pins the formatter version.
|
|
34
|
+
|
|
25
35
|
RubyGems.org releases include platform-specific gems with the packaged Rust
|
|
26
|
-
binary and may include `erbfmt-0.
|
|
36
|
+
binary and may include `erbfmt-0.2.0.gem` as a binary-free Bundler fallback for
|
|
27
37
|
multi-platform lockfiles. The fallback resolves dependency installation but
|
|
28
38
|
needs either a matching platform gem or `ERBFMT_BINARY` to run.
|
|
29
39
|
|
|
30
|
-
|
|
40
|
+
## GitHub Release Fallback
|
|
41
|
+
|
|
42
|
+
If you need an offline install or a version only available as a GitHub Release
|
|
43
|
+
asset, download the
|
|
31
44
|
matching release asset, unpack it into `vendor/gems`, and reference the
|
|
32
45
|
unpacked path dependency:
|
|
33
46
|
|
|
34
47
|
```bash
|
|
35
48
|
curl -L \
|
|
36
|
-
-o erbfmt-0.
|
|
37
|
-
https://github.com/hinamimi/erbfmt/releases/download/v0.
|
|
49
|
+
-o erbfmt-0.2.0-x86_64-linux-gnu.gem \
|
|
50
|
+
https://github.com/hinamimi/erbfmt/releases/download/v0.2.0/erbfmt-0.2.0-x86_64-linux-gnu.gem
|
|
38
51
|
mkdir -p vendor/gems
|
|
39
|
-
gem unpack erbfmt-0.
|
|
52
|
+
gem unpack erbfmt-0.2.0-x86_64-linux-gnu.gem --target vendor/gems
|
|
40
53
|
```
|
|
41
54
|
|
|
42
55
|
Add the unpacked gem to the project Gemfile:
|
|
@@ -44,7 +57,7 @@ Add the unpacked gem to the project Gemfile:
|
|
|
44
57
|
```ruby
|
|
45
58
|
group :development do
|
|
46
59
|
gem "erbfmt",
|
|
47
|
-
path: "vendor/gems/erbfmt-0.
|
|
60
|
+
path: "vendor/gems/erbfmt-0.2.0-x86_64-linux-gnu",
|
|
48
61
|
require: false
|
|
49
62
|
end
|
|
50
63
|
```
|
|
@@ -85,8 +98,8 @@ The shared version check covers Cargo, this gem, the VSCode extension, and
|
|
|
85
98
|
their lockfiles. Release versions are updated from the repository root:
|
|
86
99
|
|
|
87
100
|
```bash
|
|
88
|
-
ruby scripts/version.rb set 0.
|
|
89
|
-
ruby scripts/version.rb verify 0.
|
|
101
|
+
ruby scripts/version.rb set 0.2.0
|
|
102
|
+
ruby scripts/version.rb verify 0.2.0
|
|
90
103
|
```
|
|
91
104
|
|
|
92
105
|
Build, install, and execute a local platform-specific gem in isolation:
|
data/lib/erbfmt/version.rb
CHANGED