klenod 0.0.4 → 0.0.5
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 +4 -4
- data/README.md +4 -2
- data/exe/klenod +3 -2
- data/lib/klenod/cli/application.rb +34 -0
- data/lib/klenod/cli.rb +3 -0
- data/lib/klenod/version.rb +1 -1
- data/lib/klenod.rb +1 -0
- metadata +21 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e3812472352e82fae1cab30961e220290391bcf4a400d684b229228ea81d3db
|
|
4
|
+
data.tar.gz: f79d3c9b90c97fec11a822aa621b0856bd816fbb84c605b8af65ecc1c85f1559
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ec89df1d4fc20afd76164e5b353142caea11228c44eed5fc6cfc576d582e4fde26beba108fb119448ffd3192435ba1368f260a6b736d021131a3ab74c918477
|
|
7
|
+
data.tar.gz: 54b3960a6f4544874a8262865de69f7f16a56005963ff5ed1c896b5071450a6fdc2a24f169984f8856b9b50e4b1684de6383805418824631967319a0e6d6adfb
|
data/README.md
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
[Klenod](https://github.com/aalin/klenod).
|
|
5
5
|
|
|
6
6
|
It depends on [klenod-build](https://github.com/aalin/klenod/tree/main/gems/klenod-build),
|
|
7
|
-
|
|
7
|
+
[klenod-runtime](https://github.com/aalin/klenod/tree/main/gems/klenod-runtime),
|
|
8
|
+
and [klenod-test](https://github.com/aalin/klenod/tree/main/gems/klenod-test).
|
|
8
9
|
|
|
9
10
|
Use this gem when you want the complete Klenod API and development tooling:
|
|
10
11
|
|
|
@@ -18,4 +19,5 @@ on `klenod-runtime` instead.
|
|
|
18
19
|
Web applications can add `klenod-rack` separately when they want Rack-compatible
|
|
19
20
|
helpers for serving bundle assets.
|
|
20
21
|
|
|
21
|
-
The `klenod` executable
|
|
22
|
+
The `klenod` executable also lives here. It provides the `build`, `graph`, and
|
|
23
|
+
`test` commands without making `klenod-build` depend on the test runner.
|
data/exe/klenod
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "klenod/build/cli"
|
|
4
|
+
require "klenod/test/cli"
|
|
5
|
+
|
|
6
|
+
module Klenod
|
|
7
|
+
module CLI
|
|
8
|
+
class Application < Samovar::Command
|
|
9
|
+
self.description = "Build, test, and develop Klenod applications."
|
|
10
|
+
|
|
11
|
+
options do
|
|
12
|
+
option "-h/--help", "Print this help."
|
|
13
|
+
option "-v/--version", "Print the Klenod version."
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
nested :command, {
|
|
17
|
+
"build" => Klenod::Build::CLI::Build,
|
|
18
|
+
"coverage" => Klenod::Test::CLI::CoverageCommand,
|
|
19
|
+
"graph" => Klenod::Build::CLI::Graph,
|
|
20
|
+
"test" => Klenod::Test::CLI::Command
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
def call
|
|
24
|
+
if @options[:version]
|
|
25
|
+
output.puts Klenod::Build::VERSION
|
|
26
|
+
elsif @options[:help] || !@command
|
|
27
|
+
print_usage
|
|
28
|
+
else
|
|
29
|
+
@command.call
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
data/lib/klenod/cli.rb
ADDED
data/lib/klenod/version.rb
CHANGED
data/lib/klenod.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: klenod
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrés Alin
|
|
@@ -15,28 +15,42 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.0.
|
|
18
|
+
version: 0.0.5
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.0.
|
|
25
|
+
version: 0.0.5
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: klenod-runtime
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0.0.
|
|
32
|
+
version: 0.0.5
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.0.
|
|
39
|
+
version: 0.0.5
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: klenod-test
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - '='
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 0.0.5
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - '='
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: 0.0.5
|
|
40
54
|
description: Umbrella package for Klenod.
|
|
41
55
|
email:
|
|
42
56
|
- andreas.alin@gmail.com
|
|
@@ -48,6 +62,8 @@ files:
|
|
|
48
62
|
- README.md
|
|
49
63
|
- exe/klenod
|
|
50
64
|
- lib/klenod.rb
|
|
65
|
+
- lib/klenod/cli.rb
|
|
66
|
+
- lib/klenod/cli/application.rb
|
|
51
67
|
- lib/klenod/version.rb
|
|
52
68
|
homepage: https://github.com/aalin/klenod
|
|
53
69
|
licenses:
|