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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -19
  3. data/lib/erbfmt/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bfbd53427027ba63e702a93e31c01562777fbbaff0c046bf2ea392caf08e68c
4
- data.tar.gz: 02ac7f93b86e6e69700a3d168fd828cb7449c48fae63c2130e03f2f7e5e34168
3
+ metadata.gz: 4b0deba8372df8716b8ff08a1e01fa3f0d7ac13f17b94a0015dd3119bfa096f3
4
+ data.tar.gz: 8842df95feb9c5eb27c6dae623562a43a4898467433acc77f5dbf58e1f37f24e
5
5
  SHA512:
6
- metadata.gz: 9fdf7f9b1f21b1a924a213069f311479e30b12c5a8461bea46e96933acee8a16458e17ec54f5c59f75bbea986f9ffc8879686efec91d175bf31c8ff44b998983
7
- data.tar.gz: d56ca2bb5b1fb3adc9e43f8657122ec3c00916b5809d59ab9df8dfa4571500a3121d731150f05c790a0ff056e0fc78c44affb6c3b5e05aeb486955e3b2b186ac
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
- Initial releases are distributed as `.gem` files attached to the
6
- [erbfmt GitHub Release](https://github.com/hinamimi/erbfmt/releases/tag/v0.1.5).
7
- Newer releases may also be published to RubyGems.org. To install a downloaded
8
- release gem directly, choose the file matching the local platform. For example,
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
- gem install --local ./erbfmt-0.1.5-x86_64-linux-gnu.gem
13
- erbfmt --version
11
+ bundle add erbfmt --group development --require false
12
+ bundle exec erbfmt --version
14
13
  ```
15
14
 
16
- ## Installing from a Gemfile
15
+ Or write the dependency manually:
17
16
 
18
- If the erbfmt version you want is available on RubyGems.org, use Bundler:
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
- bundle add erbfmt --group development --require false
22
- bundle exec erbfmt --version
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.1.5.gem` as a binary-free Bundler fallback for
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
- If the version is only available as a GitHub Release asset, download the
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.1.5-x86_64-linux-gnu.gem \
37
- https://github.com/hinamimi/erbfmt/releases/download/v0.1.5/erbfmt-0.1.5-x86_64-linux-gnu.gem
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.1.5-x86_64-linux-gnu.gem --target vendor/gems
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.1.5-x86_64-linux-gnu",
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.1.5
89
- ruby scripts/version.rb verify 0.1.5
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:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Erbfmt
4
- VERSION = "0.1.5"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erbfmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - erbfmt contributors