ariadne_view_components 0.0.10-arm64-darwin → 0.0.11-arm64-darwin

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: 8c54cc27d22dd88112a48468767db0a06caaae53c58971cdfa654b99def62646
4
- data.tar.gz: d773ff3d3e5924e3569c73579e0bdd3ac1dcd27b53518807c26880a0d0f756ab
3
+ metadata.gz: 221b666752a4d825f30cc8d908e3ba2c402f3cafc5e7f4f9e5485999b6dd63c6
4
+ data.tar.gz: 9444d73fbdebc217dd84727d5cf8f58122101e44f5f01000298604c95711d403
5
5
  SHA512:
6
- metadata.gz: 7781ed87472e76fc63c7e8d77e16bdd9ddb56e441b89ef6c0bfeadb6442b53d71c21c8674462002a790f5bdc22b7d0aa561c53ae79287d2f206895aaf1be0bc5
7
- data.tar.gz: 531483d14eb2b7177a0827dd012196ce60b1f61128c87978d1407858e79c31cffe1d64c7ab36363ed07e05acb12a2b9867487a9ff1614768628710a0bb4f7f49
6
+ metadata.gz: 239080dd4c2f980243fb1cadeb6587812c905a00eee1259d2404d9e06c2d0fb7e468ceda224831926e5d19fe0493e370de699ed5e3483bf29b63e9adb2fd2290
7
+ data.tar.gz: 5b5df91d8a43170b09cd839978a6f4837d6ecc70a158d3383666aa0eec4380c795016b83b0280b7ff01dc2388bea41e49e525553dca3543e71c8a446b22ad996
@@ -20,7 +20,7 @@ module Ariadne
20
20
  end
21
21
 
22
22
  def executable(
23
- exe_path: File.expand_path(File.join(__dir__, "..", "..", "exe"))
23
+ exe_path: File.expand_path(File.join(__dir__, "..", "..", "..", "exe"))
24
24
  )
25
25
  if Ariadne::ViewComponents::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match(p) }
26
26
  raise UnsupportedPlatformException, <<~MESSAGE
@@ -62,9 +62,9 @@ module Ariadne
62
62
  def compile_command(debug: false, **kwargs)
63
63
  [
64
64
  executable(**kwargs),
65
- "-i", relative_path("app/assets/stylesheets/ariadne_view_components.css"),
66
- "-o", relative_path("app/assets/builds/ariadne_view_components.css"),
67
- "-c", relative_path("tailwind.config.js"),
65
+ "-i", local_path("app/assets/stylesheets/ariadne_view_components.css"),
66
+ "-o", local_path("app/assets/builds/ariadne_view_components.css"),
67
+ "-c", local_path("tailwind.config.js"),
68
68
  ].tap do |command|
69
69
  command << "--minify" unless debug
70
70
  end
@@ -77,12 +77,9 @@ module Ariadne
77
77
  end
78
78
  end
79
79
 
80
- def relative_path(path)
81
- if defined?(Rails)
82
- Rails.root.join(path).to_s
83
- else
84
- path
85
- end
80
+ def local_path(path)
81
+ root = File.expand_path(File.join(__dir__, "..", "..", ".."))
82
+ File.join(root, path)
86
83
  end
87
84
  end
88
85
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ariadne
4
4
  module ViewComponents
5
- VERSION = "0.0.10"
5
+ VERSION = "0.0.11"
6
6
  end
7
7
  end
data/tailwind.config.js CHANGED
@@ -9,16 +9,17 @@ const CLASS_MAPPINGS = '(?:\\S+|:\\"[\\S-]+\\"): \\"([\\S -]+)\\"'
9
9
  const CLASS_CONSTANT = '[A-Z_]+ = \\"([\\S -]+)\\"'
10
10
  const CLASS_RB_REGEX = new RegExp(`(?:${CLASS_MAPPINGS}|${CLASS_CONSTANT})'`, 'g')
11
11
 
12
+ const resolve = require('path').resolve
12
13
  module.exports = {
13
14
  prefix: 'ariadne-',
14
15
  content: {
15
16
  files: [
16
- './public/*.html',
17
- './app/assets/javascripts/**/*.js',
18
- './app/components/**/*.erb',
19
- './app/components/**/*.rb',
20
- './app/lib/ariadne',
21
- './static/classes.yml'
17
+ resolve(__dirname, 'public/*.html'),
18
+ resolve(__dirname, 'app/assets/javascripts/**/*.js'),
19
+ resolve(__dirname, 'app/components/**/*.erb'),
20
+ resolve(__dirname, 'app/components/**/*.rb'),
21
+ resolve(__dirname, 'app/lib/ariadne'),
22
+ resolve(__dirname, 'static/classes.yml')
22
23
  ],
23
24
  extract: {
24
25
  yml: content => {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ariadne_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Garen J. Torikian