Skip to content

Commit 57c525e

Browse files
committed
Converted gem builder to Ore.
1 parent a74d568 commit 57c525e

File tree

13 files changed

+134
-110
lines changed

13 files changed

+134
-110
lines changed

.yardopts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--title "rtsp Documentation" --protected --private --readme README.rdoc - LICENSE.rdoc History.rdoc

Gemfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
require 'ore/specification'
2+
13
source :rubygems
24

5+
gemspec
36
gem 'sdp', '~> 0.2.0'
47

58
group :development do
6-
gem "rspec", '~> 2.4.0'
7-
gem "hoe-yard", :require => "hoe/yard"
8-
gem 'yard', '~> 0.6.0'
9+
gem 'rake', '~> 0.8.7'
10+
gem 'ore-core', '~> 0.1.0'
11+
gem 'jeweler', '~> 1.5.0'
12+
gem 'ore-tasks', '~> 0.3.0'
13+
gem "rspec", '~> 2.4.0'
14+
gem 'yard', '~> 0.6.0'
915
gem 'infinity_test'
1016
gem 'metric_fu'
1117
gem 'code_statistics', '~> 0.2.13'

Gemfile.lock

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
PATH
2+
remote: .
3+
specs:
4+
rtsp (0.0.1.alpha)
5+
sdp (~> 0.2.0)
6+
17
GEM
28
remote: http://rubygems.org/
39
specs:
@@ -27,17 +33,20 @@ GEM
2733
flog (2.5.0)
2834
ruby_parser (~> 2.0)
2935
sexp_processor (~> 3.0)
36+
git (1.2.5)
3037
haml (3.0.25)
3138
hirb (0.3.6)
32-
hoe (2.8.0)
39+
hoe (2.9.1)
3340
rake (>= 0.8.7)
34-
hoe-yard (0.1.2)
35-
yard (>= 0.2.3.1)
3641
i18n (0.5.0)
3742
infinity_test (1.0.2)
3843
notifiers (>= 1.1.0)
3944
watchr (>= 0.7)
40-
json_pure (1.4.6)
45+
jeweler (1.5.2)
46+
bundler (~> 1.0.0)
47+
git (>= 1.2.5)
48+
rake
49+
json_pure (1.5.1)
4150
main (4.4.0)
4251
arrayfields (>= 4.7.4)
4352
fattr (>= 2.1.0)
@@ -53,9 +62,12 @@ GEM
5362
reek (>= 1.2.6)
5463
roodi (>= 2.1.0)
5564
notifiers (1.1.0)
65+
ore-core (0.1.1)
66+
ore-tasks (0.3.0)
67+
ore-core (~> 0.1.0)
5668
parslet (1.0.1)
5769
blankslate (~> 2.1.2.3)
58-
rails_best_practices (0.6.5)
70+
rails_best_practices (0.6.6)
5971
activesupport
6072
colored (~> 1.2)
6173
erubis (~> 2.6.6)
@@ -95,10 +107,15 @@ PLATFORMS
95107
ruby
96108

97109
DEPENDENCIES
110+
bundler (~> 1.0.0)
98111
code_statistics (~> 0.2.13)
99-
hoe-yard
100112
infinity_test
113+
jeweler (~> 1.5.0)
101114
metric_fu
115+
ore-core (~> 0.1.0)
116+
ore-tasks (~> 0.3.0)
117+
rake (~> 0.8.7)
102118
rspec (~> 2.4.0)
119+
rtsp!
103120
sdp (~> 0.2.0)
104121
yard (~> 0.6.0)

History.rdoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
=== 0.0.1 / 2010-12-15
2+
3+
* Happy birthday!
4+

History.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

LICENSE.rdoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2011 sloveless, mkirby
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Manifest.txt

Lines changed: 0 additions & 26 deletions
This file was deleted.

README.rdoc

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,6 @@ and generate the RDoc.
5252

5353
(The MIT License)
5454

55-
Copyright (c) 2010 FIX
56-
57-
Permission is hereby granted, free of charge, to any person obtaining
58-
a copy of this software and associated documentation files (the
59-
'Software'), to deal in the Software without restriction, including
60-
without limitation the rights to use, copy, modify, merge, publish,
61-
distribute, sublicense, and/or sell copies of the Software, and to
62-
permit persons to whom the Software is furnished to do so, subject to
63-
the following conditions:
64-
65-
The above copyright notice and this permission notice shall be
66-
included in all copies or substantial portions of the Software.
67-
68-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
69-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
70-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
71-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
72-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
73-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
74-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
55+
Copyright (c) 2010 Steve Loveless, Mike Kirby
56+
57+
See LICENSE.txt for details.

Rakefile

Lines changed: 33 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,40 @@
11
require 'rubygems' if RUBY_VERSION < "1.9.0"
2-
require 'hoe'
3-
require 'hoe/yard'
4-
require 'yard'
5-
require 'newgem/tasks'
6-
require 'bundler/setup'
7-
require File.expand_path(File.dirname(__FILE__)) + '/lib/rtsp'
82

9-
Hoe.plugin :newgem
10-
Hoe.plugin :yard
11-
Hoe.plugin :cucumberfeatures
12-
Hoe.plugins.delete :rubyforge
3+
begin
4+
require 'bundler'
5+
rescue LoadError => e
6+
STDERR.puts e.message
7+
STDERR.puts "Run `gem install bundler` to install Bundler."
8+
exit e.status_code
9+
end
1310

14-
# Gets the description from the README file
15-
def get_descr_from_readme
16-
paragraph_count = 0
11+
begin
12+
Bundler.setup(:development)
13+
rescue Bundler::BundlerError => e
14+
STDERR.puts e.message
15+
STDERR.puts "Run `bundle install` to install missing gems."
16+
exit e.status_code
17+
end
1718

18-
File.readlines('README.rdoc', '').each do |paragraph|
19-
paragraph_count += 1
19+
require 'rake'
2020

21-
return paragraph if paragraph_count == 2
22-
end
23-
end
21+
require 'ore/specification'
22+
require 'jeweler'
23+
Jeweler::Tasks.new(Ore::Specification.new)
24+
25+
require 'ore/tasks'
26+
Ore::Tasks.new
2427

25-
# The main Gemspec definition
26-
Hoe.spec 'rtsp' do
27-
self.summary = 'Library to allow RTSP streaming from RTSP-enabled devices.'
28-
self.developer('Steve Loveless & Mike Kirby', '[email protected], [email protected]')
29-
self.post_install_message = File.readlines 'PostInstall.txt'
30-
self.version = RTSP::VERSION
31-
self.url = RTSP::WWW
32-
self.description = get_descr_from_readme
33-
self.readme_file = 'README.rdoc'
34-
self.history_file = 'History.txt'
35-
self.rspec_options += ['--color', '--format', 'documentation']
36-
self.extra_deps += [
37-
['sdp', '~>0.2.0']
38-
]
39-
self.extra_dev_deps += [
40-
['rspec', ">=2.0.1"],
41-
['yard', '>=0.6.4'],
42-
['cucumber'],
43-
['hoe-yard', '>=0.1.2']
44-
]
45-
46-
self.test_globs = 'spec/*.rb'
47-
48-
# Extra Yard options
49-
self.yard_title = "#{self.name} Documentation (#{self.version})"
50-
self.yard_opts += ['--output-dir', 'doc']
51-
self.yard_opts += ['--private']
52-
self.yard_opts += ['--protected']
53-
self.yard_opts += ['--verbose']
54-
self.yard_opts += ['--files',
55-
[self.history_file, 'Manifest.txt', self.readme_file]
56-
]
28+
require 'rspec/core/rake_task'
29+
RSpec::Core::RakeTask.new(:spec) do |t|
30+
t.ruby_opts = "-w"
31+
t.rspec_opts = ['--format', 'documentation', '--color']
5732
end
33+
task :default => :spec
34+
35+
require 'yard'
36+
YARD::Rake::YardocTask.new
37+
38+
# Load all extra rake tasks
39+
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].each { |ext| load ext }
40+

gemspec.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: rtsp
2+
summary: "Library to allow RTSP streaming from RTSP-enabled devices."
3+
description: "This library intends to follow the RTSP RFC document (2326) to allow for working
4+
with RTSP servers. At this point, it's up to you to parse the data from a play
5+
call, but we'll get there. ...eventually.
6+
7+
For more information
8+
9+
RTSP: http://www.ietf.org/rfc/rfc2326.txt"
10+
license: MIT
11+
authors: Steve Loveless, Mike Kirby
12+
13+
homepage: http://rubygems.org/gems/rtsp
14+
has_yard: true
15+
16+
dependencies:
17+
sdp: ~> 0.2.0
18+
19+
development_dependencies:
20+
bundler: ~> 1.0.0
21+
yard: ~> 0.6.0

lib/rtsp.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# This base module simply defines properties about the library. See child
44
# classes/modules for the meat.
55
module RTSP
6-
VERSION = '0.0.1.alpha'
76
WWW = 'http://github.com/turboladen/rtsp'
87
LIBRARY_ROOT = File.dirname(__FILE__)
98
PROJECT_ROOT = Pathname.new(LIBRARY_ROOT).parent

lib/rtsp/version.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class RTSP
2+
# rtsp version
3+
VERSION = "0.0.1.alpha"
4+
end

rtsp.gemspec

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- encoding: utf-8 -*-
2+
3+
begin
4+
Ore::Specification.new do |gemspec|
5+
gemspec.test_files = Dir.glob("spec/**/*.rb")
6+
gemspec.post_install_message = File.readlines('PostInstall.txt')
7+
end
8+
rescue NameError
9+
begin
10+
require 'ore/specification'
11+
retry
12+
rescue LoadError
13+
STDERR.puts "The 'rtsp.gemspec' file requires Ore."
14+
STDERR.puts "Run `gem install ore-core` to install Ore."
15+
end
16+
end

0 commit comments

Comments
 (0)