librrd 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,6 +1,18 @@
1
1
  ChangeLog
2
2
  =========
3
3
 
4
+ # 1.0.1
5
+ * Mac OS X changes to build with rrdtool from Homebrew. (aia)
6
+ * Unbreak test setup for ruby 1.9.2.
7
+ * Force a cleanup before running the tests to avoid errors
8
+ with incompatible ruby versions.
9
+
10
+ # 1.0.0
11
+ * Moved test.rb to test/unit tests.
12
+ * Update development instructions. (auxesis)
13
+ * Alias RRD to LibRRD Ruby users aren't confused about gem/library
14
+ naming conventions. (auxesis)
15
+
4
16
  # 0.2.0
5
17
  * Add RRDtool 1.2 bindings.
6
18
  * Fix build on OpenBSD.
data/README.md CHANGED
@@ -15,8 +15,10 @@ The following systems, RRDtool versions and Ruby versions have been tested.
15
15
 
16
16
  * Ubuntu 10.04 LTS (RRDtool 1.3.8)
17
17
  * Ruby 1.9.2p0, 1.8.7p302
18
- * Rubinius 1.1.0
18
+ * Rubinius 1.1.0, 2.0.0pre
19
19
  * ruby-enterpriseedition 1.8.7 2010.02
20
+ * Ubuntu 11.04 (RRDtool 1.4.3)
21
+ * Ruby 1.9.2p180, Ruby 1.8.7p334
20
22
  * CentOS 5.5 (RRDtool 1.2.27)
21
23
  * ruby-enterpriseedition 1.8.6 20090610
22
24
  * OpenBSD 4.8 (RRDtool 1.2.30)
@@ -33,8 +35,7 @@ Make sure you have the development package of `librrd` installed.
33
35
 
34
36
  Build the C extension:
35
37
 
36
- ruby ext/librrd/extconf.rb
37
- make
38
+ rake build_rrd
38
39
 
39
40
  Run the tests:
40
41
 
data/Rakefile CHANGED
@@ -49,9 +49,9 @@ end
49
49
  task :default => :test
50
50
 
51
51
  require 'rake/testtask'
52
- task :test => :build_rrd
52
+ task :test => [:clean, :build_rrd]
53
53
  Rake::TestTask.new(:test) do |test|
54
- test.libs << 'lib' << 'test'
54
+ test.libs << '.' << 'lib' << 'test'
55
55
  test.pattern = 'test/**/test_*.rb'
56
56
  test.verbose = false
57
57
  end
@@ -67,6 +67,11 @@ end
67
67
  #
68
68
  #############################################################################
69
69
 
70
+ desc "Cleanup compiled stuff"
71
+ task :clean do
72
+ sh 'rm -f *.so *.o Makefile mkmf.log'
73
+ sh 'cd ext/librrd/ && rm -f *.so *.o Makefile mkmf.log'
74
+ end
70
75
 
71
76
 
72
77
  #############################################################################
@@ -75,7 +80,7 @@ end
75
80
  #
76
81
  #############################################################################
77
82
 
78
- desc "Update gemspec, build gem, commit with 'Release x.x.x', create tag, push to github and gemcutter"
83
+ desc "Update gemspec, build gem, commit with 'Release #{version}', create tag, push to github and gemcutter"
79
84
  task :release => :build do
80
85
  unless `git branch` =~ /^\* master$/
81
86
  puts "You must be on the master branch to release!"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -6,6 +6,9 @@ when /openbsd/i
6
6
  $LDFLAGS += ' -L/usr/X11R6/lib'
7
7
  find_library('z', nil)
8
8
  find_library('freetype', nil)
9
+ when /darwin/i
10
+ puts "Mac OS X"
11
+ $INCFLAGS += ' -I/usr/local/include'
9
12
  end
10
13
 
11
14
  dir_config("rrd")
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
7
7
  ## If your rubyforge_project name is different, then edit it and comment out
8
8
  ## the sub! line in the Rakefile
9
9
  s.name = 'librrd'
10
- s.version = '1.0.0'
11
- s.date = '2011-01-15'
10
+ s.version = '1.0.1'
11
+ s.date = '2011-11-24'
12
12
 
13
13
  s.summary = "Ruby bindings for librrd"
14
14
  s.description = "Ruby bindings for librrd. Extracted from the RRDtool source."
@@ -15,6 +15,9 @@ class TestLibRRD < Test::Unit::TestCase
15
15
  end
16
16
 
17
17
  def test_rrd_methods_defined
18
- assert(%w(fetch dump graph update).all? {|m| LibRRD.methods.include?(m) })
18
+ assert(LibRRD.respond_to?(:fetch))
19
+ assert(LibRRD.respond_to?(:dump))
20
+ assert(LibRRD.respond_to?(:graph))
21
+ assert(LibRRD.respond_to?(:update))
19
22
  end
20
23
  end
@@ -6,7 +6,7 @@ class TestRRD < Test::Unit::TestCase
6
6
  def setup
7
7
  @rrd_file = 'test.rrd'
8
8
  @png_file = "#{File.basename(@rrd_file, '.rrd')}.png"
9
- @start_time = Time.parse('2011-01-15').to_i
9
+ @start_time = 1295046000
10
10
  @end_time = @start_time + 300 * 300
11
11
  end
12
12
 
@@ -65,11 +65,11 @@ class TestRRD < Test::Unit::TestCase
65
65
  if RRD.respond_to?(:xport)
66
66
  assert_nothing_raised do
67
67
  fstart, fend, step, col, legend, data = RRD.xport(
68
- "--start", start_time.to_s,
69
- "--end", (start_time + 300 * 300).to_s,
68
+ "--start", @start_time.to_s,
69
+ "--end", (@start_time + 300 * 300).to_s,
70
70
  "--step", 10.to_s,
71
- "DEF:A=#{rrd}:a:AVERAGE",
72
- "DEF:B=#{rrd}:b:AVERAGE",
71
+ "DEF:A=#{@rrd_file}:a:AVERAGE",
72
+ "DEF:B=#{@rrd_file}:b:AVERAGE",
73
73
  "XPORT:A:a",
74
74
  "XPORT:B:b"
75
75
  )
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librrd
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bernd Ahlers
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-15 00:00:00 +01:00
19
- default_executable:
18
+ date: 2011-11-24 00:00:00 Z
20
19
  dependencies: []
21
20
 
22
21
  description: Ruby bindings for librrd. Extracted from the RRDtool source.
@@ -47,7 +46,6 @@ files:
47
46
  - librrd.gemspec
48
47
  - test/test_librrd.rb
49
48
  - test/test_rrd.rb
50
- has_rdoc: true
51
49
  homepage: http://github.com/bernd/librrd-ruby
52
50
  licenses: []
53
51
 
@@ -78,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
76
  requirements: []
79
77
 
80
78
  rubyforge_project:
81
- rubygems_version: 1.4.2
79
+ rubygems_version: 1.8.10
82
80
  signing_key:
83
81
  specification_version: 2
84
82
  summary: Ruby bindings for librrd