qrpm 0.4.1 → 0.5.0

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: 3633ba7ca0cd037be1c840e3257ed755f48c09dd6083d331c0821d0ba0180afb
4
+ data.tar.gz: 48b54060b7f32a1abfaa27425584dbafd14252c35899a32ce7e9c6540344e850
5
5
  SHA512:
6
- metadata.gz: 854708afcd1367185177f937af752547996939ed81a96238b65d997c587452ab9008e5d6cd7bb0607570089fa0af22eb09e78f86b2c80245db3154175f86257f
7
- data.tar.gz: d45577a909d6b13b1ed38f6ce11f3cc76be6052112c464f3bb2bff6b2aef98f404e6e3dc09e281c489790718612d01518fdaf500234377db240b974b115c34cc
6
+ metadata.gz: b2430dbe14cb6fbefa17b4f80df057399726d7422a9deeeb5daaeb59103d96db716aaee6fe1fab6ae5a8ebef864480a76d1ba8f46eac4127a47194c2763424ec
7
+ data.tar.gz: fbc211446dc687b0e7829a8862bfe4741f299686097b10ad8dcd1813fd0a5ed000008cf8d344d9d4935b2f7cd3211a2237e7bc87d73af8553a0a7a9e10e87ae5
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/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.0"
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.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen