libyui-rake 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/VERSION +1 -1
  3. data/lib/libyui/tasks.rb +6 -4
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9e8fe29a4b100f31df0b6f9a2950746d03a6f740
4
- data.tar.gz: 16331622f1cb0dac65a98e1a62c96dd97ce0edd0
2
+ SHA256:
3
+ metadata.gz: bfd487b8d38d720d8672ac927f21d88fe993bb02203d5ef6ff947d38fbcd858c
4
+ data.tar.gz: 8a2f9afc1ff23145911f296c59becf01e9853424db16f57a68fb57e30a0a59fc
5
5
  SHA512:
6
- metadata.gz: 753299688b8276029f3dfb4925a30809d364dfe2ef90799d578cfbdd42d1e3122d2a21ce453e045a58999dbaf7328160d6b8063d2ae9c4394f6a06edc96137b7
7
- data.tar.gz: dbcba568a57e73c0c9ef6942dffa4fd04f70be104c1b91192a75b5a0552f234966c949f770163a4be4cd43bc501d0c1d458709dda8b2f3f0c03e09521c8590e0
6
+ metadata.gz: 809a3d31e42ad30ad9adc8c3f5622ddffee199935af5c2c14134b2541a09ec6c45bae22609e6da74710810efeef9357a9154c1bcaa078d031f0793460475e9cf
7
+ data.tar.gz: 424038a3efceb79db79eea031a933b7eb54a2279c32f113e624fb66574e6565b21e2ea247e99e3a6465fdf268296a300b3ed2d50fac891902f7f4e543b935b53
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
data/lib/libyui/tasks.rb CHANGED
@@ -55,19 +55,21 @@ module Libyui
55
55
  def cmake_value(s, key)
56
56
  e_key = Regexp.escape(key)
57
57
  m = /SET\s*\(\s*#{e_key}\s+"([^"]*)"\s*\)/.match(s)
58
- m[1]
58
+ m ? m[1] : nil
59
59
  end
60
60
 
61
- # Returns the CMake version from version file
61
+ # Returns the CMake version from the version file.
62
+ # VERSION_TWEAK is optional.
62
63
  #
63
64
  # @param [String] Version file (VERSION_CMAKE by default)
64
- # @return [String] like "1.2.3"
65
+ # @return [String] like "1.2.3" or "1.2.3.4"
65
66
  # @see VERSION_CMAKE
66
67
  def cmake_version(file = nil)
67
68
  f = File.read(file || VERSION_CMAKE)
68
69
  [cmake_value(f, "VERSION_MAJOR"),
69
70
  cmake_value(f, "VERSION_MINOR"),
70
- cmake_value(f, "VERSION_PATCH")].join(".")
71
+ cmake_value(f, "VERSION_PATCH"),
72
+ cmake_value(f, "VERSION_TWEAK")].compact.join(".")
71
73
  end
72
74
  end
73
75
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libyui-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - YaST team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-15 00:00:00.000000000 Z
11
+ date: 2018-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -68,7 +68,7 @@ files:
68
68
  - lib/libyui/tasks.rb
69
69
  - lib/tasks/test.rake
70
70
  - lib/tasks/version.rake
71
- homepage: http://github.org/openSUSE/libyui-rake
71
+ homepage: https://github.com/openSUSE/libyui-rake
72
72
  licenses:
73
73
  - LGPL-2.1
74
74
  metadata: {}
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.4.5.2
91
+ rubygems_version: 2.7.3
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Rake tasks providing basic work-flow for libyui development