djin 0.2.0 → 0.3.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/lib/djin/cli.rb +12 -0
- data/lib/djin/interpreter.rb +1 -1
- data/lib/djin/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33934f255ebae5d8738c8f0152d1684eb1ece014c275f596d0e9aeea59c1caac
|
|
4
|
+
data.tar.gz: 89103ce2b41819ddac02c95b4441eb959ea1d03cd92996deb80012a67c098cc9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c0c492492dfd58153ae3ff0ee093b09e1c1e5587d6ed8e68b1e9ab4a5dc7aedee7b3c461262731145307cd095750eec01754094265447a8159e6f8a8dc9842f
|
|
7
|
+
data.tar.gz: 0edeedbd0c7f12e7a09e178847923ace1068ccf5c76db43ac61fe7f8fec65332a805a14b0531d967230fe38e94436a4f25e7119e5c759a08f158a483ef76bc87
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
djin (0.
|
|
4
|
+
djin (0.3.0)
|
|
5
5
|
dry-cli (~> 0.5.0)
|
|
6
6
|
dry-struct (~> 1.3.0)
|
|
7
7
|
dry-validation (~> 1.5.0)
|
|
@@ -73,7 +73,7 @@ GEM
|
|
|
73
73
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
74
74
|
rspec-support (~> 3.9.0)
|
|
75
75
|
rspec-support (3.9.2)
|
|
76
|
-
vseries (0.1.
|
|
76
|
+
vseries (0.1.1)
|
|
77
77
|
|
|
78
78
|
PLATFORMS
|
|
79
79
|
ruby
|
data/README.md
CHANGED
|
@@ -25,7 +25,7 @@ If you use Rbenv you can install djin only once and create a alias in your .basr
|
|
|
25
25
|
To use djin first you need to create a djin.yml file:
|
|
26
26
|
|
|
27
27
|
```yaml
|
|
28
|
-
djin_version: '0.
|
|
28
|
+
djin_version: '0.3.0'
|
|
29
29
|
|
|
30
30
|
# With a docker image
|
|
31
31
|
script:
|
|
@@ -50,7 +50,7 @@ You can also set task dependencies with depends_on option:
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
```yaml
|
|
53
|
-
djin_version: '0.
|
|
53
|
+
djin_version: '0.3.0'
|
|
54
54
|
|
|
55
55
|
_default_run_options: &default_run_options
|
|
56
56
|
options: "--rm"
|
data/lib/djin/cli.rb
CHANGED
|
@@ -15,7 +15,19 @@ module Djin
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
register task.name, command
|
|
18
|
+
|
|
19
|
+
|
|
18
20
|
end
|
|
19
21
|
end
|
|
22
|
+
|
|
23
|
+
class Version < Dry::CLI::Command
|
|
24
|
+
desc "Prints Djin Version"
|
|
25
|
+
|
|
26
|
+
def call(*)
|
|
27
|
+
puts Djin::VERSION
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
register '--version', Version, aliases: ['-v']
|
|
20
32
|
end
|
|
21
33
|
end
|
data/lib/djin/interpreter.rb
CHANGED
|
@@ -21,7 +21,7 @@ module Djin
|
|
|
21
21
|
tasks_params.map do |task_name, options|
|
|
22
22
|
result = contract.call(options)
|
|
23
23
|
|
|
24
|
-
raise InvalidSyntaxError, result.errors.to_h if result.failure?
|
|
24
|
+
raise InvalidSyntaxError, { task_name.to_sym => result.errors.to_h } if result.failure?
|
|
25
25
|
|
|
26
26
|
command, build_command = build_commands(options, task_name: task_name)
|
|
27
27
|
|
data/lib/djin/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: djin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carlos Atkinson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-struct
|
|
@@ -134,6 +134,7 @@ files:
|
|
|
134
134
|
- ".gitignore"
|
|
135
135
|
- ".rspec"
|
|
136
136
|
- ".travis.yml"
|
|
137
|
+
- CHANGELOG.md
|
|
137
138
|
- Dockerfile
|
|
138
139
|
- Gemfile
|
|
139
140
|
- Gemfile.lock
|