kirana 0.1.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/kirana/class_map.rb +4 -4
  4. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79f8c5ba3f3c22944d9e3bb4d733dc1a47a62690470f54b2267019ee07aa2cce
4
- data.tar.gz: f583f47dc0d47c2c343d5c4c60fc06a9cc6c1a842a18ef76e1a6b7c012fe1091
3
+ metadata.gz: c565dd017a24c66b0470fd1c8ea151bb53a3be38d6d80f0e588b12308fe167f3
4
+ data.tar.gz: 72207afe89b73938a5b26702ad547f94e2d51eb875da5847b9f49b3fc8a2c54c
5
5
  SHA512:
6
- metadata.gz: 174e7e59321c8d817d665a49737ce77f287d753345537ce8a344dea84185fd6befe022046923adda099d1e30e26a67f4b80a73e58ae45bcec32a0d1b86c35929
7
- data.tar.gz: 5d9c2db3ad1523647332be28aaf4cdd3ea9883ad4eb91f592adbca92169bf633c1c31221c9e35ff9c896a8b90b7a4b1a030df15849c1c89b85d02ff2fdc1409c
6
+ metadata.gz: d377424ccdd9ea894903d6c656a026552f5eaaa9e9c56aea2e6ed82a5d106d59ed13164d41811926c5ca035b53917c7fb7f26641c25381438ecfd11211e28d93
7
+ data.tar.gz: fce20caabdfd55e95444de5589d3f446ff42d068ce0a1323d95412520ddfdf3f147196a0cfc83ef47ba268a8787002eae3dba3eaf295fe58260bee18b9af1c00
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # kirana (Ruby)
2
2
 
3
3
  Kirana for Rails templates (D-069): the `kirana` view helper, which reads the class map
4
- `kirana build` and `kirana dev` write and merges named styles the way `sx` does.
4
+ `kirana-style build` and `kirana-style dev` write and merges named styles the way `sx` does.
5
5
 
6
6
  ```erb
7
7
  <div class="<%= kirana :card, active && "card.active" %>">…</div>
@@ -4,7 +4,7 @@ require "json"
4
4
 
5
5
  module Kirana
6
6
  # A class map (D-069): the class string of every handle a server app's style modules export, by
7
- # name, as `kirana build` and `kirana dev` write it. `classes` merges named handles the way `sx`
7
+ # name, as `kirana-style build` and `kirana-style dev` write it. `classes` merges named handles the way `sx`
8
8
  # merges them, later ones winning.
9
9
  class ClassMap
10
10
  # A name the class map does not list.
@@ -18,9 +18,9 @@ module Kirana
18
18
  @merge = Merge.new(map.fetch("prefix", "k"), families.fetch("four", 0), families.fetch("two", 0))
19
19
  end
20
20
 
21
- # Reads the class map `kirana build` or `kirana dev` wrote.
21
+ # Reads the class map `kirana-style build` or `kirana-style dev` wrote.
22
22
  def self.from_file(path)
23
- raise Errno::ENOENT, "kirana: no class map at #{path}; run `kirana dev` or `kirana build` first" unless File.file?(path)
23
+ raise Errno::ENOENT, "kirana: no class map at #{path}; run `kirana-style dev` or `kirana-style build` first" unless File.file?(path)
24
24
 
25
25
  new(JSON.parse(File.read(path)))
26
26
  end
@@ -48,7 +48,7 @@ module Kirana
48
48
  @classes_path || "public/kirana/classes.json"
49
49
  end
50
50
 
51
- # The class map at `classes_path`, read again when the file changes (`kirana dev` rewrites it).
51
+ # The class map at `classes_path`, read again when the file changes (`kirana-style dev` rewrites it).
52
52
  def class_map
53
53
  stamp = File.file?(classes_path) && File.mtime(classes_path)
54
54
  @class_map = nil unless @stamp == stamp && @path == classes_path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kirana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Kirana authors
@@ -26,6 +26,7 @@ metadata:
26
26
  rubygems_mfa_required: 'true'
27
27
  source_code_uri: https://github.com/kirana-style/kirana/tree/main/packages/kirana/helpers/ruby
28
28
  bug_tracker_uri: https://github.com/kirana-style/kirana/issues
29
+ changelog_uri: https://github.com/kirana-style/kirana/blob/main/CHANGELOG.md
29
30
  rdoc_options: []
30
31
  require_paths:
31
32
  - lib