ariadne_view_components 0.0.10-x86_64-linux → 0.0.11-x86_64-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: 89c11228a2273ae09933eac5ce3773ac6a924bdb5d69138e42108c96bfd0e8a6
4
- data.tar.gz: cb67c2e3b6b4aa086ea90c5d9b9c260cb7a29baf9a22750c26e0b71882a9d070
3
+ metadata.gz: 7d6648ca56ca1a03beff508b772d9030384b00050b81a384991f3c723862ce48
4
+ data.tar.gz: 732c0139691e187acc9367f2792d9e3f4054e6092f17aaeebc198f4a17ef93f5
5
5
  SHA512:
6
- metadata.gz: 7e058773801d5ee5e205221a5f3102c16587cf1c031ed0d82265562ab814f052471f2e2e6e9223db060443f5944a049cb3a73bc3ba4f53d7f12df1c366e4d7ff
7
- data.tar.gz: 0167af0469565fc1e12e077997e3f2aea0d778010997f1e3b0266b5575fe5b82ad06042faf622013bf41bf67544024174588eb8999b66323e811324126f0f954
6
+ metadata.gz: 31b45f7de836718f13253f2668d79cb94d60780554f0f02b705907a01c129493d72934596e75789d8d1c1d0c696c2edf64ab2a211aabd6f1906c96b5c023aade
7
+ data.tar.gz: f442f4f2059e7e62aebcb3d68d0096d98165f14b65cbe9753d8f9e25c0c86c938e081d331bee93c86715a10ec1d05574aeda68bb145bcd2cf9f23b8b1c47b2a2
@@ -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: x86_64-linux
6
6
  authors:
7
7
  - Garen J. Torikian