gems-status 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module GemsStatusMetadata
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/lib/lockfile_gems.rb CHANGED
@@ -30,7 +30,7 @@ class LockfileGems < GemsCommand
30
30
  end
31
31
 
32
32
  def execute
33
- Utils.log_error "DEBUG: reading #{@filename}"
33
+ Utils.log_debug "DEBUG: reading #{@filename}"
34
34
  file_data = get_data
35
35
  if file_data.empty?
36
36
  return
data/lib/obs_gems.rb CHANGED
@@ -35,10 +35,10 @@ class OBSGems < GemsCommand
35
35
  package = linkinfo[0]["package"]
36
36
  if linkinfo[0]["rev"] then
37
37
  rev = linkinfo[0]["rev"]
38
- Utils.log_error "DEBUG: Revision in link: #{rev}."
38
+ Utils.log_debug "DEBUG: Revision in link: #{rev}."
39
39
  package = package + "?rev=" + rev
40
40
  end
41
- Utils.log_error "DEBUG: follow link to project: #{repo} package: #{package}"
41
+ Utils.log_debug "DEBUG: follow link to project: #{repo} package: #{package}"
42
42
  parse_rpm_data(repo, package)
43
43
  end
44
44
 
@@ -61,7 +61,7 @@ class OBSGems < GemsCommand
61
61
  end
62
62
  data = XmlSimple.xml_in(response)
63
63
  if data["linkinfo"] then
64
- Utils.log_error "DEBUG: #{data["name"]} is a link."
64
+ Utils.log_debug "DEBUG: #{data["name"]} is a link."
65
65
  if data["entry"].length != 1
66
66
  Utils.log_error "ERROR: when parsing the link for #{project} : #{package}. There are more entries than expected. That may be a patched link and the result may not be correct"
67
67
  end
@@ -11,7 +11,7 @@ class RubyGemsGems_GemSimple < GemSimple
11
11
  return @md5
12
12
  end
13
13
  gem_uri = "#{@gems_url}/#{@name}-#{@version}.gem"
14
- Utils.log_error "DEBUG: download and md5 for #{@name} from #{gem_uri}"
14
+ Utils.log_debug "DEBUG: download and md5 for #{@name} from #{gem_uri}"
15
15
  begin
16
16
  source = open(gem_uri)
17
17
  @md5 = Digest::MD5.hexdigest(source.read)
data/lib/utils.rb CHANGED
@@ -25,4 +25,8 @@ class Utils
25
25
  $stderr.puts msg
26
26
  end
27
27
 
28
+ def Utils.log_debug(msg)
29
+ $stderr.puts msg
30
+ end
31
+
28
32
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gems-status
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jordi Massaguer Pla