ride_the_streetcar 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aad963b2cccd682cb67cf84a2f04095ab7570a745a2d39df3a3eeb932e4b8c7d
4
- data.tar.gz: d07c479535b6efb196f0c2d3e04591ab5d7c1d186fc3274d581826e00df28529
3
+ metadata.gz: 45a655d6716d66ef06ac9445109b9415f381850f4334710b280394732fce55a4
4
+ data.tar.gz: a233dfbb68db3f62aa7f0acf482f4886011927f30133367ee85cf393268c7278
5
5
  SHA512:
6
- metadata.gz: bb2ee1f86d6d87da0ecedb3b1dfe27b8974d1a58fe4dfab26a6ea60252336b7f3570853201d5250e92c13b0299928532ae10ba2f89380e895a0e6f5d2b7a8dc2
7
- data.tar.gz: c2ba62ceab209a82c78f91118e86210587dd9f38038b61cd9d9270eebff9a26fdb7278dab64fd9cf52416d8af1680c156c589e59ab66f5305a1876f14fe7f64f
6
+ metadata.gz: b3b073db3567398cc752a1e663190d6bf6c4c3e19da2e49692feee84d8deb8e8ace99ee1e8231a133d76f3af97dbd95bc401d9ecef44df5b5b72217803aed045
7
+ data.tar.gz: 53c969f4334639f07281631519db8e2c344b8635cca91f72ea41dfc1670b0389e2ac5778decd4803f70ae310898b3b896e70c99179934d1dbdad600566d6b49b
data/CHANGELOG.md CHANGED
@@ -2,9 +2,13 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.2.1] - 2026-07-15
6
+
7
+ - Fix: `apply` args attribute should be spelled `arguments`
8
+
5
9
  ## [0.2.0] - 2026-07-15
6
10
 
7
- Add `dsl` shortcut, `dispatch_event` and `navigate`
11
+ - Add `dsl` shortcut, `dispatch_event` and `navigate`
8
12
 
9
13
  ## [0.1.0] - 2025-10-13
10
14
 
data/README.md CHANGED
@@ -1,26 +1,11 @@
1
1
  # Ride The Streetcar 🚋
2
- ## Ruby Backend (by the ❤️ Heartml project)
2
+ ## Ruby Backend (by the 💞 Heartml project)
3
3
 
4
4
  This is the Ruby server-side component of Ride The Streetcar. You will also need to install the [JavaScript frontend](https://codeberg.org/heartml/streetcar-elements). ([Looking for a JavaScript backend instead?](https://codeberg.org/heartml/ride-the-streetcar-js))
5
5
 
6
- ----
7
-
8
- > [!NOTE]
9
- > A work in progress! Docs coming upon release!
10
-
11
- ## Installation
12
-
13
6
  Requires Ruby 3.2 or later.
14
7
 
15
- Install the gem and add to the application's Gemfile by executing:
16
-
17
- ```bash
18
- bundle add ride_the_streetcar
19
- ```
20
-
21
- ## Usage
22
-
23
- TODO: Write usage instructions here
8
+ [Read installation & usage documentation on the website here.](https://www.heartml.dev/docs/ride-the-streetcar)
24
9
 
25
10
  ## Development
26
11
 
@@ -30,12 +15,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
30
15
 
31
16
  ## Contributing
32
17
 
33
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ride_the_streetcar. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/ride_the_streetcar/blob/main/CODE_OF_CONDUCT.md).
18
+ Bug reports and pull requests are welcome on Codeberg at https://codeberg.org/heartml/ride_the_streetcar. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://codeberg.org/heartml/ride_the_streetcar/src/branch/main/CODE_OF_CONDUCT.md).
34
19
 
35
20
  ## License
36
21
 
37
22
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
38
-
39
- ## Code of Conduct
40
-
41
- Everyone interacting in the RideTheStreetcar project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/ride_the_streetcar/blob/main/CODE_OF_CONDUCT.md).
@@ -9,7 +9,7 @@ module RideTheStreetcar
9
9
 
10
10
  def template
11
11
  attributes = { method: @method_chain }
12
- attributes[:args] = @args.to_json unless @args.empty?
12
+ attributes[:arguments] = @args.to_json unless @args.empty?
13
13
 
14
14
  html -> { <<~HTML
15
15
  <sc-apply #{html_attributes attributes}></sc-apply>
@@ -12,7 +12,7 @@ module RideTheStreetcar
12
12
  @selectors = if selectors.respond_to?(:to_dom_selector)
13
13
  selectors.to_dom_selector
14
14
  elsif selectors.is_a?(Symbol)
15
- selectors.to_s.tr("_", "-")
15
+ normalize_name(selectors)
16
16
  else
17
17
  selectors.to_s
18
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RideTheStreetcar
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ride_the_streetcar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared White
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-07-16 00:00:00.000000000 Z
10
+ date: 2026-08-05 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: streamlined