qrpm 0.4.1 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qrpm/compiler.rb +1 -1
- data/lib/qrpm/qrpm.rb +1 -1
- data/lib/qrpm/rpm.rb +1 -1
- data/lib/qrpm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edf34f7ca5df2324db07479247d78763e601168362b440423c6cc15fb2a89d09
|
4
|
+
data.tar.gz: fbbaeb191365f313fdcb7ab0c8fc0c095d4a281c14eacb9397e046f547b80f0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aab56faa2180c5dcb853687a8111314ae194c4732aa56630588e44067c60cfc28a0052e67f3fa30d6d5149be735077780e20eb6b1aaf936f2461fb6634e46fe0
|
7
|
+
data.tar.gz: 330aac5777211f3bca7402d60b6c57ecf2159621a601ef0b802e1cc8deaf2127587bdd5582305cfd0b13118c0e03b87ec0e0718960afac71ebd53406e03dbf4c
|
data/lib/qrpm/compiler.rb
CHANGED
@@ -64,7 +64,7 @@ module Qrpm
|
|
64
64
|
|
65
65
|
# Compile and add dictionary to the AST. This allows command line
|
66
66
|
# assignments to override spec file values
|
67
|
-
dict.each { |k,v|
|
67
|
+
dict.each { |k,v| ValueNode.new(ast, k.to_s, Fragment::Fragment.parse(v)) }
|
68
68
|
|
69
69
|
# Add defaults
|
70
70
|
DEFAULTS.each { |k,v|
|
data/lib/qrpm/qrpm.rb
CHANGED
@@ -23,7 +23,7 @@ module Qrpm
|
|
23
23
|
def srcdir() @dict["srcdir"] end
|
24
24
|
|
25
25
|
def initialize(defs, deps)
|
26
|
-
constrain defs, String => Node
|
26
|
+
constrain defs, { String => Node }
|
27
27
|
@defs, @deps = defs, deps
|
28
28
|
@vars, @dirs, @files = {}, {}, {}
|
29
29
|
@defs.values.map(&:traverse).flatten.each { |object|
|
data/lib/qrpm/rpm.rb
CHANGED
@@ -80,7 +80,7 @@ module Qrpm
|
|
80
80
|
|
81
81
|
def initialize(srcdir, fields, nodes, template: QRPM_ERB_FILE)
|
82
82
|
constrain srcdir, String
|
83
|
-
constrain fields, String => Node
|
83
|
+
constrain fields, { String => Node }
|
84
84
|
constrain nodes, [FileNode]
|
85
85
|
@fields, @nodes = fields, nodes
|
86
86
|
@srcdir = srcdir
|
data/lib/qrpm/version.rb
CHANGED