errand 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ Makefile
2
+ test.png
3
+ test.rrd
4
+ mkmf.log
5
+ pkg
6
+ *~
7
+ *.gem
8
+ *.o
9
+ *.so
10
+ errand.gemspec
@@ -0,0 +1 @@
1
+ 1.9.3-p0
@@ -0,0 +1,4 @@
1
+ 0.7.4 - 2013/02/22
2
+ - Chore: switched from using system package manager RRDtool to librrd-ruby
3
+ - Chore: remove use of Jeweler
4
+
data/Gemfile CHANGED
@@ -2,6 +2,4 @@
2
2
 
3
3
  source :rubygems
4
4
 
5
- group :development do
6
- gem "jeweler"
7
- end
5
+ gemspec
@@ -1,15 +1,30 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ errand (0.7.4)
5
+ librrd (= 1.0.3)
6
+
1
7
  GEM
2
8
  remote: http://rubygems.org/
3
9
  specs:
4
- git (1.2.5)
5
- jeweler (1.6.0)
6
- bundler (~> 1.0.0)
7
- git (>= 1.2.5)
8
- rake
10
+ colorize (0.5.8)
11
+ diff-lcs (1.1.3)
12
+ librrd (1.0.3)
9
13
  rake (0.8.7)
14
+ rspec (2.9.0)
15
+ rspec-core (~> 2.9.0)
16
+ rspec-expectations (~> 2.9.0)
17
+ rspec-mocks (~> 2.9.0)
18
+ rspec-core (2.9.0)
19
+ rspec-expectations (2.9.0)
20
+ diff-lcs (~> 1.1.3)
21
+ rspec-mocks (2.9.0)
10
22
 
11
23
  PLATFORMS
12
24
  ruby
13
25
 
14
26
  DEPENDENCIES
15
- jeweler
27
+ colorize
28
+ errand!
29
+ rake
30
+ rspec
data/Rakefile CHANGED
@@ -1,28 +1,80 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'rubygems'
4
+ require 'bundler/setup'
5
+ require 'colorize'
6
+ require 'pathname'
7
+ $: << Pathname.new(__FILE__).parent.join('lib').expand_path.to_s
8
+ require 'errand/version'
9
+ require 'rspec/core/rake_task'
4
10
 
5
- begin
6
- require 'jeweler'
7
- Jeweler::Tasks.new do |gemspec|
8
- gemspec.name = "errand"
9
- gemspec.summary = "Ruby language binding for RRD tool version 1.2+"
10
- gemspec.description = "Errand provides Ruby bindings for RRD functions (via librrd), and a concise DSL for interacting with RRDs."
11
- gemspec.email = "lindsay@holmwood.id.au"
12
- gemspec.homepage = "http://auxesis.github.com/errand"
13
- gemspec.authors = ["Lindsay Holmwood"]
11
+ RSpec::Core::RakeTask.new(:spec)
12
+
13
+ desc "build gem"
14
+ task :build => :verify do
15
+ build_output = `gem build errand.gemspec`
16
+ puts build_output
17
+
18
+ gem_filename = build_output[/File: (.*)/,1]
19
+ pkg_path = "pkg"
20
+ FileUtils.mkdir_p(pkg_path)
21
+ FileUtils.mv(gem_filename, pkg_path)
22
+
23
+ puts "Gem built in #{pkg_path}/#{gem_filename}".green
24
+ end
25
+
26
+ desc "push gem"
27
+ task :push do
28
+ filenames = Dir.glob("pkg/*.gem")
29
+ filenames_with_times = filenames.map do |filename|
30
+ [filename, File.mtime(filename)]
14
31
  end
15
- rescue LoadError
16
- puts "Jeweler not available. Install it with: gem install jeweler"
32
+
33
+ newest = filenames_with_times.sort_by { |tuple| tuple.last }.last
34
+ newest_filename = newest.first
35
+
36
+ command = "gem push #{newest_filename}"
37
+ system(command)
17
38
  end
18
39
 
19
- begin
20
- require 'spec/rake/spectask'
40
+ desc "clean up various generated files"
41
+ task :clean do
42
+ [ "webrat.log", "pkg/", "_site/"].each do |filename|
43
+ puts "Removing #{filename}"
44
+ FileUtils.rm_rf(filename)
45
+ end
46
+ end
47
+
48
+ namespace :verify do
49
+ task :changelog do
50
+ changelog_filename = "CHANGELOG.md"
51
+ version = Errand::VERSION
21
52
 
22
- Spec::Rake::SpecTask.new do |t|
23
- t.spec_opts = ["--options", "spec/spec.opts"]
53
+ if not File.exists?(changelog_filename)
54
+ puts "#{changelog_filename} doesn't exist.".red
55
+ exit 1
56
+ end
57
+
58
+ if not system("grep ^#{version} #{changelog_filename} >/dev/null 2>&1")
59
+ puts "#{changelog_filename} doesn't have an entry for the version you are about to build.".red
60
+ exit 1
61
+ end
24
62
  end
25
- rescue LoadError
26
- puts "RSpec not available. Install it with: gem install rspec"
63
+
64
+ task :uncommitted do
65
+ uncommitted = `git ls-files -m`.split("\n")
66
+ if uncommitted.size > 0
67
+ puts "The following files are uncommitted:".red
68
+ uncommitted.each do |filename|
69
+ puts " - #{filename}".red
70
+ end
71
+ exit 1
72
+ end
73
+ end
74
+
75
+ task :all => [ :changelog, :uncommitted ]
27
76
  end
28
77
 
78
+ task :verify => 'verify:all'
79
+
80
+ task :default => :spec
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ class Errand
4
+ VERSION = "0.7.4"
5
+ end
metadata CHANGED
@@ -1,83 +1,105 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: errand
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 7
8
- - 3
9
- version: 0.7.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.4
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Lindsay Holmwood
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-05-11 00:00:00 +10:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: jeweler
12
+ date: 2013-02-22 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: librrd
16
+ requirement: &10134780 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.3
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *10134780
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &10145700 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *10145700
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &10144440 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
22
44
  type: :development
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
30
- requirement: *id001
31
45
  prerelease: false
32
- description: Errand provides Ruby bindings for RRD functions (via librrd), and a concise DSL for interacting with RRDs.
33
- email: lindsay@holmwood.id.au
46
+ version_requirements: *10144440
47
+ - !ruby/object:Gem::Dependency
48
+ name: colorize
49
+ requirement: &10160900 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *10160900
58
+ description: Errand provides Ruby bindings for RRD functions (via librrd), and a concise
59
+ DSL for interacting with RRDs.
60
+ email:
61
+ - lindsay@holmwood.id.au
34
62
  executables: []
35
-
36
63
  extensions: []
37
-
38
- extra_rdoc_files:
39
- - README.md
40
- files:
64
+ extra_rdoc_files: []
65
+ files:
41
66
  - .cvsignore
67
+ - .gitignore
68
+ - .ruby-version
42
69
  - AUTHORS
70
+ - CHANGELOG.md
43
71
  - Gemfile
44
72
  - Gemfile.lock
45
73
  - README.md
46
74
  - Rakefile
47
75
  - VERSION
48
76
  - lib/errand.rb
77
+ - lib/errand/version.rb
49
78
  - spec/errand_spec.rb
50
79
  - spec/spec.opts
51
80
  - test/test_rrdtool.rb
52
- has_rdoc: true
53
81
  homepage: http://auxesis.github.com/errand
54
82
  licenses: []
55
-
56
83
  post_install_message:
57
84
  rdoc_options: []
58
-
59
- require_paths:
85
+ require_paths:
60
86
  - lib
61
- required_ruby_version: !ruby/object:Gem::Requirement
62
- requirements:
63
- - - ">="
64
- - !ruby/object:Gem::Version
65
- segments:
66
- - 0
67
- version: "0"
68
- required_rubygems_version: !ruby/object:Gem::Requirement
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- segments:
73
- - 0
74
- version: "0"
87
+ required_ruby_version: !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: 1.8.7
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: 1.3.6
75
99
  requirements: []
76
-
77
100
  rubyforge_project:
78
- rubygems_version: 1.3.6
101
+ rubygems_version: 1.8.11
79
102
  signing_key:
80
103
  specification_version: 3
81
104
  summary: Ruby language binding for RRD tool version 1.2+
82
105
  test_files: []
83
-