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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63a6edf353c6d30720575fc0b3fd61bc375ed6745ae205ff8a8bca821aea66cf
4
- data.tar.gz: 15adccd7d88bd17d368332d1b4b04b1f703ffcb12a0f6b628cbdee067e5b5db7
3
+ metadata.gz: edf34f7ca5df2324db07479247d78763e601168362b440423c6cc15fb2a89d09
4
+ data.tar.gz: fbbaeb191365f313fdcb7ab0c8fc0c095d4a281c14eacb9397e046f547b80f0b
5
5
  SHA512:
6
- metadata.gz: 854708afcd1367185177f937af752547996939ed81a96238b65d997c587452ab9008e5d6cd7bb0607570089fa0af22eb09e78f86b2c80245db3154175f86257f
7
- data.tar.gz: d45577a909d6b13b1ed38f6ce11f3cc76be6052112c464f3bb2bff6b2aef98f404e6e3dc09e281c489790718612d01518fdaf500234377db240b974b115c34cc
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| [k, ValueNode.new(ast, k.to_s, Fragment::Fragment.parse(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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Qrpm
4
- VERSION = "0.4.1"
4
+ VERSION = "0.5.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qrpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen