packaging_rake_tasks 1.4.4 → 1.4.5

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 +4 -4
  2. data/VERSION +1 -1
  3. data/lib/tasks/check_osc.rake +8 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b943a8023340fa8fc516b6b66eef95e91088151b54cdb9df38b129ee428937e
4
- data.tar.gz: ca665c01f3327ddf661113f7fb510bbdc389a4e149cd5b47e393d788f7e6b62a
3
+ metadata.gz: bb6174fd47aa4dee70ab6613717c7ca78bb27f3429ccd186a18bc53413c73403
4
+ data.tar.gz: a59b3d266e8ab4847b31a971668d26d6a98ead7bd27ea253df0409070eb291ba
5
5
  SHA512:
6
- metadata.gz: cdd16f39be4409e1b53e6782ff32abc9f7813855cc25295080f5bc5a4d1e5c0ab6c31ca376269dcc73a506af39964bcb3916e1446d3e4d11170575ed0beb3fc9
7
- data.tar.gz: cf09eae2b1ec89e32d45ddecf6276f744af507ed39a39f4b015193e76cb718882cf27329a7617280bf8b57b04d0dd4a1f16a959ebf6f7dbea47ee9116d8cba22
6
+ metadata.gz: 2abdd2b5fd7782951bb4fe8751511f9d075f244155a430ef37dc7ad1006454296f92762df29de1656ae76a42169e295e360f8a463b791c6f61333acc74d09e08
7
+ data.tar.gz: cccd7435946231ed91c90c992ddc7366d759a726928197272e27e18c03d4650ed78ba6531f2a19789238f635e5a9195875596a5ce4fb2b9aa852c2ceb8398168
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.4
1
+ 1.4.5
@@ -29,9 +29,15 @@ namespace :check do
29
29
  obs_api = Packaging::Configuration.instance.obs_api
30
30
  command_to_set_osc = "osc -A #{obs_api}"
31
31
 
32
+ # the old config path
32
33
  osc_rc = File.expand_path("~/.oscrc")
33
- if !File.exists? osc_rc
34
- raise "missing ~/.oscrc file, please run:\n#{command_to_set_osc}"
34
+ if !File.exist?(osc_rc)
35
+ # try the new path
36
+ osc_rc = File.expand_path("~/.config/osc/oscrc")
37
+
38
+ if !File.exist?(osc_rc)
39
+ raise "missing osc configuration file, please run:\n#{command_to_set_osc}"
40
+ end
35
41
  end
36
42
 
37
43
  `grep -c '\[#{obs_api}\]' #{osc_rc}`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packaging_rake_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Reidinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-05 00:00:00.000000000 Z
11
+ date: 2018-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake