erbfmt 0.1.5-x86_64-linux-gnu → 0.2.1-x86_64-linux-gnu

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecbad509fa8d6598a14664b116425194ec983484c065ef02248ba0bfa459bfd4
4
- data.tar.gz: 23e7c49b8ec80d2e37e8489d50ff04f48821da0e73fa3f916f7288445439ff87
3
+ metadata.gz: 5c5b0745d72e70bf62b86944293dd2838fdffaf376f4bc391493e3112e653647
4
+ data.tar.gz: 6a07017d984c6454899004ad4e39d1fa2312a9a9c6cf8cb9949b85994d385e2c
5
5
  SHA512:
6
- metadata.gz: bafd3b14249ff539f726d6e64626881fcc8069c495a35d426236653bc60987ff5794094286f7f2cb45368fb26c129ec4453495bae9271b39083037004479c565
7
- data.tar.gz: e8dfd13eee49f3f5dc4acaa30d1af308bed62269641556fbd65430d8b376ed65eb0495d5f4f052e6663f33cae5342a2da1618feefad68fdf250bd72a7985f273
6
+ metadata.gz: edb33fc52a2912ebe5b6d160ddddfbd6f40493d4fe3900eae01b4597c967e8d6d5515e257cb3c50f6f3d52fc2566c9d290729c202df0f9048b2b00a40ae8cfa6
7
+ data.tar.gz: 6e3a243528fd6202097f7195d984c3c84442773495440065514673281ea1f81e9b07f81919c4b1a56c45d55c759be5aef9ed542f95ba6a2f3a10f3a12ea0220f
data/README.md CHANGED
@@ -1,37 +1,55 @@
1
1
  # erbfmt Ruby wrapper
2
2
 
3
- This gem is a thin launcher for the platform-specific erbfmt Rust binary.
3
+ This gem is a thin launcher for the erbfmt Rust binary.
4
4
 
5
- Initial releases are distributed as platform-specific `.gem` files attached to
6
- the [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:
16
+
17
+ ```ruby
18
+ group :development do
19
+ gem "erbfmt", require: false
20
+ end
21
+ ```
22
+
23
+ ## Global Installation
17
24
 
18
- If the erbfmt version you want is available on RubyGems.org, use Bundler:
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.1
29
+ erbfmt --version
23
30
  ```
24
31
 
25
- If the version is only available as a GitHub Release asset, download the
32
+ The global install is convenient for quick trials, but Bundler is preferred for
33
+ project use because it pins the formatter version.
34
+
35
+ RubyGems.org releases include platform-specific gems with the packaged Rust
36
+ binary and may include `erbfmt-0.2.1.gem` as a binary-free Bundler fallback for
37
+ multi-platform lockfiles. The fallback resolves dependency installation but
38
+ needs either a matching platform gem or `ERBFMT_BINARY` to run.
39
+
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
26
44
  matching release asset, unpack it into `vendor/gems`, and reference the
27
45
  unpacked path dependency:
28
46
 
29
47
  ```bash
30
48
  curl -L \
31
- -o erbfmt-0.1.5-x86_64-linux-gnu.gem \
32
- https://github.com/hinamimi/erbfmt/releases/download/v0.1.5/erbfmt-0.1.5-x86_64-linux-gnu.gem
49
+ -o erbfmt-0.2.1-x86_64-linux-gnu.gem \
50
+ https://github.com/hinamimi/erbfmt/releases/download/v0.2.1/erbfmt-0.2.1-x86_64-linux-gnu.gem
33
51
  mkdir -p vendor/gems
34
- gem unpack erbfmt-0.1.5-x86_64-linux-gnu.gem --target vendor/gems
52
+ gem unpack erbfmt-0.2.1-x86_64-linux-gnu.gem --target vendor/gems
35
53
  ```
36
54
 
37
55
  Add the unpacked gem to the project Gemfile:
@@ -39,7 +57,7 @@ Add the unpacked gem to the project Gemfile:
39
57
  ```ruby
40
58
  group :development do
41
59
  gem "erbfmt",
42
- path: "vendor/gems/erbfmt-0.1.5-x86_64-linux-gnu",
60
+ path: "vendor/gems/erbfmt-0.2.1-x86_64-linux-gnu",
43
61
  require: false
44
62
  end
45
63
  ```
@@ -80,8 +98,8 @@ The shared version check covers Cargo, this gem, the VSCode extension, and
80
98
  their lockfiles. Release versions are updated from the repository root:
81
99
 
82
100
  ```bash
83
- ruby scripts/version.rb set 0.1.5
84
- ruby scripts/version.rb verify 0.1.5
101
+ ruby scripts/version.rb set 0.2.1
102
+ ruby scripts/version.rb verify 0.2.1
85
103
  ```
86
104
 
87
105
  Build, install, and execute a local platform-specific gem in isolation:
data/erbfmt.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.version = erbfmt_version
17
17
  spec.authors = ["erbfmt contributors"]
18
18
  spec.summary = "Ruby wrapper for the erbfmt formatter and linter"
19
- spec.description = "A thin Ruby launcher for the platform-specific erbfmt Rust binary."
19
+ spec.description = "A thin Ruby launcher for the erbfmt Rust binary."
20
20
  spec.homepage = "https://github.com/hinamimi/erbfmt"
21
21
  spec.license = "MIT"
22
22
  spec.required_ruby_version = ">= 3.1"
@@ -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.1"
5
5
  end
data/libexec/erbfmt-bin CHANGED
Binary file
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.1
5
5
  platform: x86_64-linux-gnu
6
6
  authors:
7
7
  - erbfmt contributors
@@ -37,7 +37,7 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '13.2'
40
- description: A thin Ruby launcher for the platform-specific erbfmt Rust binary.
40
+ description: A thin Ruby launcher for the erbfmt Rust binary.
41
41
  executables:
42
42
  - erbfmt
43
43
  extensions: []