juce-cli 0.1.0
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 +7 -0
- data/bin/juce +6 -0
- data/lib/juce/cli.rb +28 -0
- metadata +47 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 9f6206ea9771ee994e7addaebfe64877839464e1664c51b1e2399ba9411e7f94
|
|
4
|
+
data.tar.gz: 3c148afcb5cae73abc762e3cc24a2c10f2e01c3188e7c23f16b544108ea11429
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 2f4efbb20b6ff53727b9985985e838d3bebb02e10c1e1e3999f104ff12a0d4a994997b339f02c4add0511ff86dccb3d940ab1b58f1d96890e131617e723ae162
|
|
7
|
+
data.tar.gz: bab48657a3350fa706275078f76c6507beca6ff74f25d38e2a76af52acec2da4a656001863521c024d71704c2f0431c4d4249b816a1226303aede08ec1a5579a
|
data/bin/juce
ADDED
data/lib/juce/cli.rb
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require "shellwords"
|
|
2
|
+
|
|
3
|
+
module Juce
|
|
4
|
+
class CLI
|
|
5
|
+
def self.run(argv)
|
|
6
|
+
# Normalize CLASSPATH (Windows ; → :)
|
|
7
|
+
classpath = ENV["CLASSPATH"].to_s.gsub(";", ":")
|
|
8
|
+
class_paths = classpath.split(":").reject(&:empty?)
|
|
9
|
+
|
|
10
|
+
# Build EDN for -Sdeps
|
|
11
|
+
paths_edn = class_paths.map { |cp| %("#{cp}") }.join(" ")
|
|
12
|
+
|
|
13
|
+
deps_edn = %(
|
|
14
|
+
{:deps {io.github.tmkw/juce {:mvn/version "0.2.2"}}
|
|
15
|
+
:paths [#{paths_edn}]}
|
|
16
|
+
).strip
|
|
17
|
+
|
|
18
|
+
# Build command line
|
|
19
|
+
cmd = "clojure -Sdeps '#{deps_edn}' -M -m juce.cli #{argv.shelljoin}"
|
|
20
|
+
|
|
21
|
+
# puts cmd # for debug
|
|
22
|
+
|
|
23
|
+
# Execute
|
|
24
|
+
system(cmd)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
metadata
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: juce-cli
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Takanobu Maekawa
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-01-04 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: A Ruby-based CLI wrapper for the juce Clojure template engine.
|
|
14
|
+
email:
|
|
15
|
+
executables:
|
|
16
|
+
- juce
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- bin/juce
|
|
21
|
+
- lib/juce/cli.rb
|
|
22
|
+
homepage: https://github.com/tmkw/juce-cli
|
|
23
|
+
licenses:
|
|
24
|
+
- BSD-2-Clause
|
|
25
|
+
metadata:
|
|
26
|
+
homepage_uri: https://github.com/tmkw/juce-cli
|
|
27
|
+
post_install_message:
|
|
28
|
+
rdoc_options: []
|
|
29
|
+
require_paths:
|
|
30
|
+
- lib
|
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: 3.3.4
|
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
requirements:
|
|
42
|
+
- Clojure 1.12.4 or higher
|
|
43
|
+
rubygems_version: 3.5.16
|
|
44
|
+
signing_key:
|
|
45
|
+
specification_version: 4
|
|
46
|
+
summary: Command-line interface for the juce template engine
|
|
47
|
+
test_files: []
|