Skip to content

Commit

Permalink
Converted gem builder to Ore.
Browse files Browse the repository at this point in the history
  • Loading branch information
turboladen committed Feb 6, 2011
1 parent a74d568 commit 57c525e
Show file tree
Hide file tree
Showing 13 changed files with 134 additions and 110 deletions.
1 change: 1 addition & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--title "rtsp Documentation" --protected --private --readme README.rdoc - LICENSE.rdoc History.rdoc
12 changes: 9 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
require 'ore/specification'

source :rubygems

gemspec
gem 'sdp', '~> 0.2.0'

group :development do
gem "rspec", '~> 2.4.0'
gem "hoe-yard", :require => "hoe/yard"
gem 'yard', '~> 0.6.0'
gem 'rake', '~> 0.8.7'
gem 'ore-core', '~> 0.1.0'
gem 'jeweler', '~> 1.5.0'
gem 'ore-tasks', '~> 0.3.0'
gem "rspec", '~> 2.4.0'
gem 'yard', '~> 0.6.0'
gem 'infinity_test'
gem 'metric_fu'
gem 'code_statistics', '~> 0.2.13'
Expand Down
29 changes: 23 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
PATH
remote: .
specs:
rtsp (0.0.1.alpha)
sdp (~> 0.2.0)

GEM
remote: http://rubygems.org/
specs:
Expand Down Expand Up @@ -27,17 +33,20 @@ GEM
flog (2.5.0)
ruby_parser (~> 2.0)
sexp_processor (~> 3.0)
git (1.2.5)
haml (3.0.25)
hirb (0.3.6)
hoe (2.8.0)
hoe (2.9.1)
rake (>= 0.8.7)
hoe-yard (0.1.2)
yard (>= 0.2.3.1)
i18n (0.5.0)
infinity_test (1.0.2)
notifiers (>= 1.1.0)
watchr (>= 0.7)
json_pure (1.4.6)
jeweler (1.5.2)
bundler (~> 1.0.0)
git (>= 1.2.5)
rake
json_pure (1.5.1)
main (4.4.0)
arrayfields (>= 4.7.4)
fattr (>= 2.1.0)
Expand All @@ -53,9 +62,12 @@ GEM
reek (>= 1.2.6)
roodi (>= 2.1.0)
notifiers (1.1.0)
ore-core (0.1.1)
ore-tasks (0.3.0)
ore-core (~> 0.1.0)
parslet (1.0.1)
blankslate (~> 2.1.2.3)
rails_best_practices (0.6.5)
rails_best_practices (0.6.6)
activesupport
colored (~> 1.2)
erubis (~> 2.6.6)
Expand Down Expand Up @@ -95,10 +107,15 @@ PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.0.0)
code_statistics (~> 0.2.13)
hoe-yard
infinity_test
jeweler (~> 1.5.0)
metric_fu
ore-core (~> 0.1.0)
ore-tasks (~> 0.3.0)
rake (~> 0.8.7)
rspec (~> 2.4.0)
rtsp!
sdp (~> 0.2.0)
yard (~> 0.6.0)
4 changes: 4 additions & 0 deletions History.rdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
=== 0.0.1 / 2010-12-15

* Happy birthday!

4 changes: 0 additions & 4 deletions History.txt

This file was deleted.

20 changes: 20 additions & 0 deletions LICENSE.rdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2011 sloveless, mkirby

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 changes: 0 additions & 26 deletions Manifest.txt

This file was deleted.

23 changes: 3 additions & 20 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,6 @@ and generate the RDoc.

(The MIT License)

Copyright (c) 2010 FIX

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) 2010 Steve Loveless, Mike Kirby

See LICENSE.txt for details.
83 changes: 33 additions & 50 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,57 +1,40 @@
require 'rubygems' if RUBY_VERSION < "1.9.0"
require 'hoe'
require 'hoe/yard'
require 'yard'
require 'newgem/tasks'
require 'bundler/setup'
require File.expand_path(File.dirname(__FILE__)) + '/lib/rtsp'

Hoe.plugin :newgem
Hoe.plugin :yard
Hoe.plugin :cucumberfeatures
Hoe.plugins.delete :rubyforge
begin
require 'bundler'
rescue LoadError => e
STDERR.puts e.message
STDERR.puts "Run `gem install bundler` to install Bundler."
exit e.status_code
end

# Gets the description from the README file
def get_descr_from_readme
paragraph_count = 0
begin
Bundler.setup(:development)
rescue Bundler::BundlerError => e
STDERR.puts e.message
STDERR.puts "Run `bundle install` to install missing gems."
exit e.status_code
end

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

return paragraph if paragraph_count == 2
end
end
require 'ore/specification'
require 'jeweler'
Jeweler::Tasks.new(Ore::Specification.new)

require 'ore/tasks'
Ore::Tasks.new

# The main Gemspec definition
Hoe.spec 'rtsp' do
self.summary = 'Library to allow RTSP streaming from RTSP-enabled devices.'
self.developer('Steve Loveless & Mike Kirby', '[email protected], [email protected]')
self.post_install_message = File.readlines 'PostInstall.txt'
self.version = RTSP::VERSION
self.url = RTSP::WWW
self.description = get_descr_from_readme
self.readme_file = 'README.rdoc'
self.history_file = 'History.txt'
self.rspec_options += ['--color', '--format', 'documentation']
self.extra_deps += [
['sdp', '~>0.2.0']
]
self.extra_dev_deps += [
['rspec', ">=2.0.1"],
['yard', '>=0.6.4'],
['cucumber'],
['hoe-yard', '>=0.1.2']
]

self.test_globs = 'spec/*.rb'

# Extra Yard options
self.yard_title = "#{self.name} Documentation (#{self.version})"
self.yard_opts += ['--output-dir', 'doc']
self.yard_opts += ['--private']
self.yard_opts += ['--protected']
self.yard_opts += ['--verbose']
self.yard_opts += ['--files',
[self.history_file, 'Manifest.txt', self.readme_file]
]
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.ruby_opts = "-w"
t.rspec_opts = ['--format', 'documentation', '--color']
end
task :default => :spec

require 'yard'
YARD::Rake::YardocTask.new

# Load all extra rake tasks
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].each { |ext| load ext }

21 changes: 21 additions & 0 deletions gemspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: rtsp
summary: "Library to allow RTSP streaming from RTSP-enabled devices."
description: "This library intends to follow the RTSP RFC document (2326) to allow for working
with RTSP servers. At this point, it's up to you to parse the data from a play
call, but we'll get there. ...eventually.
For more information
RTSP: http://www.ietf.org/rfc/rfc2326.txt"
license: MIT
authors: Steve Loveless, Mike Kirby
email: [email protected], [email protected]
homepage: http://rubygems.org/gems/rtsp
has_yard: true

dependencies:
sdp: ~> 0.2.0

development_dependencies:
bundler: ~> 1.0.0
yard: ~> 0.6.0
1 change: 0 additions & 1 deletion lib/rtsp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# This base module simply defines properties about the library. See child
# classes/modules for the meat.
module RTSP
VERSION = '0.0.1.alpha'
WWW = 'http://github.com/turboladen/rtsp'
LIBRARY_ROOT = File.dirname(__FILE__)
PROJECT_ROOT = Pathname.new(LIBRARY_ROOT).parent
Expand Down
4 changes: 4 additions & 0 deletions lib/rtsp/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class RTSP
# rtsp version
VERSION = "0.0.1.alpha"
end
16 changes: 16 additions & 0 deletions rtsp.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- encoding: utf-8 -*-

begin
Ore::Specification.new do |gemspec|
gemspec.test_files = Dir.glob("spec/**/*.rb")
gemspec.post_install_message = File.readlines('PostInstall.txt')
end
rescue NameError
begin
require 'ore/specification'
retry
rescue LoadError
STDERR.puts "The 'rtsp.gemspec' file requires Ore."
STDERR.puts "Run `gem install ore-core` to install Ore."
end
end

0 comments on commit 57c525e

Please sign in to comment.