ariadne_view_components 0.0.10-aarch64-linux → 0.0.11-aarch64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84f14ae76a994cb2077b922b01b77211591afcbb366f4023999ba4ee9de27a03
4
- data.tar.gz: 741d146c5d74716cff53ec415013a2c4fca08314b4e3a8ab540a5a7d61c1efdd
3
+ metadata.gz: 6b4d793607752e6a489e3cc53097305398f61cfe46d48cc101a5a486c498d9d5
4
+ data.tar.gz: dcb2c1b9bdc0c6e8c2677b4d430c2e500a1ffb5ab5445efe1287b459e50430eb
5
5
  SHA512:
6
- metadata.gz: 8844df53e97ca76e4f455941be08df944bf485d66e5d160af2d0e37fd296e4f4ee46b34d3c32ef45e2c4e4f4bc486153c9d721a2bac0f1d8db19cf4d4659324a
7
- data.tar.gz: 4c34f9664e7e3ca50460d92f5a1a650eecdb03398ce066d002b8fe36a0dbcd8c6d33edda6939e685c3c2c1478fec0aae52ead4b010a3d41b3775dc08fdaa032d
6
+ metadata.gz: 8589f3ab96c244c736a5409f32c6e057b41ac6dc243c1f259c3385e128731768e0c3112a92d83f480a7712cfab413b7a729595d4f9e0620ff7735159fb7f76d8
7
+ data.tar.gz: b918a26d1cc0882721b9848b45ae42007cc36b3d2fb8efce6caca5cdc7cd8f8baa3eadd21de372dadc3c873d5fea358ab23dc6d86d958184ed5ca39ddf396737
@@ -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: aarch64-linux
6
6
  authors:
7
7
  - Garen J. Torikian