forked from turboladen/rtsp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a74d568
commit 57c525e
Showing
13 changed files
with
134 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
=== 0.0.1 / 2010-12-15 | ||
|
||
* Happy birthday! | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class RTSP | ||
# rtsp version | ||
VERSION = "0.0.1.alpha" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |