gltail 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.1.2 / 2008-03-04
2
+
3
+ * Handle rubygems versions > 0.x
4
+
1
5
  == 0.1.1 / 2008-02-17
2
6
 
3
7
  * Correctly sort Total and Average Blocks
data/lib/gl_tail.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  module GlTail
8
- VERSION = '0.1.1'
8
+ VERSION = '0.1.2'
9
9
  end
10
10
 
11
11
  begin
@@ -17,7 +17,7 @@ end
17
17
 
18
18
  gem_version = Gem::RubyGemsVersion.split('.')
19
19
 
20
- if gem_version[1].to_i < 9 || (gem_version[1].to_i >= 9 && gem_version[2].to_i < 2)
20
+ if gem_version[0].to_i == 0 && gem_version[1].to_i < 9 || (gem_version[0].to_i == 0 && gem_version[1].to_i >= 9 && gem_version[2].to_i < 2)
21
21
  puts "rubygems too old to build ruby-opengl. Please update."
22
22
  puts "Ubuntu:"
23
23
  puts " sudo gem update --system"
@@ -34,7 +34,7 @@ class Element
34
34
  @last_time = 0
35
35
  @step = 0, @updates = 0
36
36
  @active = false
37
- @color = color
37
+ @color = color || [1.0, 1.0, 1.0, 1.0]
38
38
  @type = (@block.activity_type == "blobs" ? :blobs : :bars)
39
39
  @bar_color ||= @color.dup
40
40
 
@@ -15,7 +15,7 @@ class RailsParser < Parser
15
15
 
16
16
  add_activity(:block => 'sites', :name => host, :size => ms.to_f) # Size of activity based on request time.
17
17
  add_activity(:block => 'urls', :name => HttpHelper.generalize_url(url), :size => ms.to_f)
18
- add_activity(:block => 'slow requests', :name => url, :size => ms.to_f)
18
+ add_activity(:block => 'slow requests', :name => HttpHelper.generalize_url(url), :size => ms.to_f)
19
19
  add_activity(:block => 'content', :name => 'page')
20
20
 
21
21
  # Events to pop up
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gltail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ""
6
6
  authors:
7
7
  - Erlend Simonsen
@@ -29,7 +29,7 @@ cert_chain:
29
29
  /UfNqVgtDGy57Xw9DBNRbUm92FVILwpudQs3SX1z2Gik08RrKReELwpRciY=
30
30
  -----END CERTIFICATE-----
31
31
 
32
- date: 2008-02-17 00:00:00 +01:00
32
+ date: 2008-03-04 00:00:00 +01:00
33
33
  default_executable:
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
Binary file