bones-extras 1.2.4 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ == 1.3.0 / 2010-10-17
2
+
3
+ 1 Major Change
4
+ * Deprecation of this package
5
+
1
6
  == 1.2.4 / 2010-06-02
2
7
 
3
8
  1 Bug Fix
data/README.txt CHANGED
@@ -1,30 +1,22 @@
1
1
  bones-extras
2
2
  by Tim Pease
3
- http://gemcutter.org/gems/bones-extras
3
+ http://rubygems.org/gems/bones-extras
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- The extras package for Mr Bones provides some handy Rake tasks for running
8
- Rcov code coverage on your tests, running Rspec tests, running the Zentest
9
- autotest package, and uploading gems and generated rdoc to RubyForge.
7
+ This package has been deprecated. All it will do now is install the following
8
+ Mr Bones plugins:
10
9
 
11
- == REQUIREMENTS:
12
-
13
- The extras package for Mr Bones provides some handy Rake tasks for running
14
- Rcov code coverage on your tests, running Rspec tests, running the Zentest
15
- autotest package, and uploading gems and generated rdoc to RubyForge. In order
16
- to use these Rake tasks, the corresponding gems will need to be installed on
17
- your system: rcov, rspec, zentest, and rubyforge.
18
-
19
- == INSTALL:
20
-
21
- sudo gem install bones-extras
10
+ bones-rcov
11
+ bones-rubyforge
12
+ bones-rspec
13
+ bones-zentest
22
14
 
23
15
  == LICENSE:
24
16
 
25
17
  (The MIT License)
26
18
 
27
- Copyright (c) 2009
19
+ Copyright (c) 2009-2010
28
20
 
29
21
  Permission is hereby granted, free of charge, to any person obtaining
30
22
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -13,10 +13,14 @@ Bones {
13
13
  authors 'Tim Pease'
14
14
  email 'tim.pease@gmail.com'
15
15
  url 'http://github.com/TwP/bones-extras'
16
- version '1.2.4'
16
+ version '1.3.0'
17
17
  ignore_file '.gitignore'
18
18
 
19
19
  depend_on 'bones'
20
+ depend_on 'bones-rcov'
21
+ depend_on 'bones-rubyforge'
22
+ depend_on 'bones-rspec'
23
+ depend_on 'bones-zentest'
20
24
 
21
25
  use_gmail
22
26
  }
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bones-extras
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 27
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
- - 2
8
- - 4
9
- version: 1.2.4
8
+ - 3
9
+ - 0
10
+ version: 1.3.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Tim Pease
@@ -14,41 +15,107 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-06-02 00:00:00 -06:00
18
+ date: 2010-10-17 00:00:00 -06:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: bones
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 19
27
30
  segments:
28
31
  - 3
29
- - 4
30
- - 3
31
- version: 3.4.3
32
+ - 5
33
+ - 0
34
+ version: 3.5.0
32
35
  type: :runtime
33
36
  version_requirements: *id001
34
37
  - !ruby/object:Gem::Dependency
35
- name: bones
38
+ name: bones-rcov
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ type: :runtime
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: bones-rubyforge
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ type: :runtime
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: bones-rspec
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 21
74
+ segments:
75
+ - 1
76
+ - 0
77
+ - 1
78
+ version: 1.0.1
79
+ type: :runtime
80
+ version_requirements: *id004
81
+ - !ruby/object:Gem::Dependency
82
+ name: bones-zentest
83
+ prerelease: false
84
+ requirement: &id005 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ hash: 3
90
+ segments:
91
+ - 0
92
+ version: "0"
93
+ type: :runtime
94
+ version_requirements: *id005
95
+ - !ruby/object:Gem::Dependency
96
+ name: bones
97
+ prerelease: false
98
+ requirement: &id006 !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ hash: 19
41
104
  segments:
42
105
  - 3
43
- - 4
44
- - 3
45
- version: 3.4.3
106
+ - 5
107
+ - 0
108
+ version: 3.5.0
46
109
  type: :development
47
- version_requirements: *id002
110
+ version_requirements: *id006
48
111
  description: |-
49
- The extras package for Mr Bones provides some handy Rake tasks for running
50
- Rcov code coverage on your tests, running Rspec tests, running the Zentest
51
- autotest package, and uploading gems and generated rdoc to RubyForge.
112
+ This package has been deprecated. All it will do now is install the following
113
+ Mr Bones plugins:
114
+
115
+ bones-rcov
116
+ bones-rubyforge
117
+ bones-rspec
118
+ bones-zentest
52
119
  email: tim.pease@gmail.com
53
120
  executables: []
54
121
 
@@ -61,10 +128,6 @@ files:
61
128
  - History.txt
62
129
  - README.txt
63
130
  - Rakefile
64
- - lib/bones/plugins/rcov.rb
65
- - lib/bones/plugins/rubyforge.rb
66
- - lib/bones/plugins/spec.rb
67
- - lib/bones/plugins/zentest.rb
68
131
  has_rdoc: true
69
132
  homepage: http://github.com/TwP/bones-extras
70
133
  licenses: []
@@ -76,25 +139,29 @@ rdoc_options:
76
139
  require_paths:
77
140
  - lib
78
141
  required_ruby_version: !ruby/object:Gem::Requirement
142
+ none: false
79
143
  requirements:
80
144
  - - ">="
81
145
  - !ruby/object:Gem::Version
146
+ hash: 3
82
147
  segments:
83
148
  - 0
84
149
  version: "0"
85
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
+ none: false
86
152
  requirements:
87
153
  - - ">="
88
154
  - !ruby/object:Gem::Version
155
+ hash: 3
89
156
  segments:
90
157
  - 0
91
158
  version: "0"
92
159
  requirements: []
93
160
 
94
161
  rubyforge_project: bones-extras
95
- rubygems_version: 1.3.6
162
+ rubygems_version: 1.3.7
96
163
  signing_key:
97
164
  specification_version: 3
98
- summary: The extras package for Mr Bones provides some handy Rake tasks for running Rcov code coverage on your tests, running Rspec tests, running the Zentest autotest package, and uploading gems and generated rdoc to RubyForge
165
+ summary: This package has been deprecated
99
166
  test_files: []
100
167
 
@@ -1,99 +0,0 @@
1
-
2
- module Bones::Plugins::Rcov
3
- include ::Bones::Helpers
4
- extend self
5
-
6
- def initialize_rcov
7
- require 'rcov'
8
- require 'rcov/rcovtask'
9
- have?(:rcov) { true }
10
-
11
- ::Bones.config {
12
- desc 'Configuration settings for the Rcov code coverage tool.'
13
- rcov {
14
- dir 'coverage', :desc => <<-__
15
- Code coverage metrics will be written to this directory.
16
- __
17
-
18
- opts %w[--sort coverage -T], :desc => <<-__
19
- An array of command line options that will be passed to the rcov
20
- command when running your tests. See the Rcov help documentation
21
- either online or from the command line by running 'rcov --help'.
22
- __
23
-
24
- threshold 90.0, :desc => <<-__
25
- The threshold value (in percent) for coverage. If the actual
26
- coverage is not greater than or equal to this value, the verify task
27
- will raise an exception.
28
- __
29
-
30
- threshold_exact false, :desc => <<-__
31
- Require the threshold to be met exactly. By default this option is
32
- set to false.
33
- __
34
- }
35
- }
36
- rescue LoadError
37
- have?(:rcov) { false }
38
- end
39
-
40
- def post_load
41
- return unless have? :rcov
42
- config = ::Bones.config
43
- config.exclude << "^#{Regexp.escape(config.rcov.dir)}/"
44
- end
45
-
46
- def define_tasks
47
- return unless have? :rcov
48
- config = ::Bones.config
49
-
50
- if have? :test
51
- namespace :test do
52
- desc 'Run rcov on the unit tests'
53
- Rcov::RcovTask.new do |t|
54
- t.output_dir = config.rcov.dir
55
- t.rcov_opts = config.rcov.opts
56
- t.ruby_opts = config.ruby_opts.dup.concat(config.test.opts)
57
-
58
- t.test_files =
59
- if test(?f, config.test.file) then [config.test.file]
60
- else config.test.files.to_a end
61
-
62
- t.libs = config.libs unless config.libs.empty?
63
- end
64
-
65
- task :clobber_rcov do
66
- rm_r config.rcov.dir rescue nil
67
- end
68
- end
69
- task :clobber => 'test:clobber_rcov'
70
- end
71
-
72
- if have? :spec
73
- require 'spec/rake/verify_rcov'
74
- namespace :spec do
75
- desc 'Run all specs with Rcov'
76
- Spec::Rake::SpecTask.new(:rcov) do |t|
77
- t.ruby_opts = config.ruby_opts
78
- t.spec_opts = config.spec.opts
79
- t.spec_files = config.spec.files
80
- t.libs += config.libs
81
- t.rcov = true
82
- t.rcov_dir = config.rcov.dir
83
- t.rcov_opts.concat(config.rcov.opts)
84
- end
85
-
86
- RCov::VerifyTask.new(:verify) do |t|
87
- t.threshold = config.rcov.threshold
88
- t.index_html = File.join(config.rcov.dir, 'index.html')
89
- t.require_exact_threshold = config.rcov.threshold_exact
90
- end
91
-
92
- task :verify => :rcov
93
- remove_desc_for_task %w(spec:clobber_rcov)
94
- end
95
- task :clobber => 'spec:clobber_rcov'
96
- end
97
- end
98
-
99
- end # module Bones::Plugins::Rcov
@@ -1,87 +0,0 @@
1
-
2
- module Bones::Plugins::Rubyforge
3
- include ::Bones::Helpers
4
- extend self
5
-
6
- def initialize_rubyforge
7
- require 'rubyforge'
8
- require 'rake/contrib/sshpublisher'
9
- have?(:rubyforge) { true }
10
-
11
- ::Bones.config {
12
- desc 'Configuration settings for RubyForge publishing.'
13
- rubyforge {
14
- name nil, :desc => <<-__
15
- The RubyForge project name where your code will be published. If not
16
- supplied, the RubyForge name will default to the base 'name' of your
17
- gem. The RubyForge name is used when your gem name differs from the
18
- registered project name; for example if you release multiple gems
19
- under the same project.
20
- __
21
- }
22
-
23
- rdoc {
24
- remote_dir nil, :desc => <<-__
25
- This is the remote directory to use when publishing RDoc HTML
26
- documentation to your RubyForge project page. If not specified, this
27
- defaults to the root of the project page.
28
- __
29
- }
30
- }
31
- rescue LoadError
32
- have?(:rubyforge) { false }
33
- end
34
-
35
- def post_load
36
- return unless have? :rubyforge
37
- config = ::Bones.config
38
- config.rubyforge.name ||= config.name
39
- end
40
-
41
- def define_tasks
42
- return unless have? :rubyforge
43
- config = ::Bones.config
44
-
45
- namespace :rubyforge do
46
- desc 'Package gem and upload to RubyForge'
47
- task :release => ['gem:clobber_package', 'gem:package'] do |t|
48
- v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z'
49
- abort "Versions don't match #{v} vs #{config.version}" if v != config.version
50
- pkg = "pkg/#{config.gem._spec.full_name}"
51
-
52
- rf = RubyForge.new
53
- rf.configure rescue nil
54
- puts 'Logging in'
55
- rf.login
56
-
57
- c = rf.userconfig
58
- c['release_notes'] = config.description if config.description
59
- c['release_changes'] = config.changes if config.changes
60
- c['preformatted'] = true
61
-
62
- files = Dir.glob("#{pkg}*.*")
63
-
64
- puts "Releasing #{config.name} v. #{config.version}"
65
- rf.add_release config.rubyforge.name, config.name, config.version, *files
66
- end
67
-
68
- desc 'Publish RDoc to RubyForge'
69
- task :doc_release => %w(doc:clobber_rdoc doc:rdoc) do
70
- rubyforge_config = YAML.load(
71
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
72
- )
73
-
74
- host = "#{rubyforge_config['username']}@rubyforge.org"
75
- remote_dir = "/var/www/gforge-projects/#{config.rubyforge.name}/"
76
- remote_dir << config.rdoc.remote_dir if config.rdoc.remote_dir
77
- local_dir = config.rdoc.dir
78
-
79
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
80
- end
81
- end
82
-
83
- end
84
-
85
- end # module Bones::Plugins::Rubyforge
86
-
87
- # EOF
@@ -1,63 +0,0 @@
1
-
2
- module Bones::Plugins::Spec
3
- include ::Bones::Helpers
4
- extend self
5
-
6
- def initialize_spec
7
- require 'spec/rake/spectask'
8
- have?(:spec) { true }
9
-
10
- ::Bones.config {
11
- desc 'Configuration settings for the RSpec test framework.'
12
- spec {
13
- files FileList['spec/**/*_spec.rb'], :desc => <<-__
14
- The list of spec files to run. This defaults to all the ruby fines
15
- in the 'spec' directory that end with '_spec.rb' as their filename.
16
- __
17
-
18
- opts [], :desc => <<-__
19
- An array of command line options that will be passed to the spec
20
- command when running your tests. See the RSpec help documentation
21
- either online or from the command line by running 'spec --help'.
22
- __
23
- }
24
- }
25
- rescue LoadError
26
- have?(:spec) { false }
27
- end
28
-
29
- def post_load
30
- return unless have? :spec
31
- config = ::Bones.config
32
- have?(:spec) { !config.spec.files.to_a.empty? }
33
- end
34
-
35
- def define_tasks
36
- return unless have? :spec
37
- config = ::Bones.config
38
-
39
- namespace :spec do
40
- desc 'Run all specs with basic output'
41
- Spec::Rake::SpecTask.new(:run) do |t|
42
- t.ruby_opts = config.ruby_opts
43
- t.spec_opts = config.spec.opts
44
- t.spec_files = config.spec.files
45
- t.libs += config.libs
46
- end
47
-
48
- desc 'Run all specs with text output'
49
- Spec::Rake::SpecTask.new(:specdoc) do |t|
50
- t.ruby_opts = config.ruby_opts
51
- t.spec_opts = config.spec.opts + ['--format', 'specdoc']
52
- t.spec_files = config.spec.files
53
- t.libs += config.libs
54
- end
55
- end # namespace :spec
56
-
57
- desc 'Alias to spec:run'
58
- task :spec => 'spec:run'
59
- end
60
-
61
- end # module Bones::Plugins::Spec
62
-
63
- # EOF
@@ -1,43 +0,0 @@
1
-
2
- module Bones::Plugins::Zentest
3
- include ::Bones::Helpers
4
- extend self
5
-
6
- def post_load
7
- require 'zentest'
8
- have?(:zentest) { true }
9
- rescue LoadError
10
- have?(:zentest) { false }
11
- end
12
-
13
- def define_tasks
14
- return unless have? :zentest
15
-
16
- if have? :test
17
- require 'autotest'
18
- namespace :test do
19
- task :autotest do
20
- load '.autotest' if test(?f, '.autotest')
21
- Autotest.run
22
- end
23
- end
24
-
25
- desc 'Run the autotest loop'
26
- task :autotest => 'test:autotest'
27
- end
28
-
29
- if have? :spec
30
- require 'autotest/rspec'
31
- namespace :spec do
32
- task :autotest do
33
- load '.autotest' if test(?f, '.autotest')
34
- Autotest::Rspec.run
35
- end
36
- end
37
-
38
- desc 'Run the autotest loop'
39
- task :autotest => 'spec:autotest'
40
- end
41
- end
42
-
43
- end # module Bones::Plugins::Zentest