ariadne_view_components 0.0.10-x64-mingw32 → 0.0.11-x64-mingw32

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: ee2c792edaa841a4da3128a4918c34cc21e9a562f022cebe197d42a9b862f8f9
4
- data.tar.gz: 23510dcc25450942503066fb86edcf9c5c3b5c594a1131239746c6de6e5604ff
3
+ metadata.gz: 64fddb91ee46ed8f97549a8f50539a7dfa2e76e43c332e73651a84bb9168d2d4
4
+ data.tar.gz: 75e8aea6da00338579ff61cbb0f80a736bda4e3b47f6502a560c7f6f7fcb2f5f
5
5
  SHA512:
6
- metadata.gz: d023efbf0f73b16e40e6a26f0e55bb86fb5f59c299e827194414dd6e1f9f6b3baa70f1f571fbc1eaef447ed58ac224c7c2de8c9702b4c74915fb628ad56af553
7
- data.tar.gz: 5b549f4680a58e3be895f51adfe6bd27d66f70be16737bd17b20dfea277de049a233ddc3d24d1594245671edc587eaabf2b38885d8fc35264424f0f8b0fc718c
6
+ metadata.gz: 7b46bb5e272512cb7bcb5317e0b810b8eb7b19e83c18f36357379a789d93c98b5fe3cb4d7b906fb411bbc5abe672c49283e7c1e0c4008062a32a1c91a501b611
7
+ data.tar.gz: 8748551565a884bd147315624618c17f16d9ca811f0f70fe2465cefc30ec9a47a9bbe32c5ae0de0980c59a777a5eb902ed61eeca97a15db2b9eb096b0801ef93
@@ -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: x64-mingw32
6
6
  authors:
7
7
  - Garen J. Torikian