forked from xmpp4r/xmpp4r
-
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.
Merge pull request xmpp4r#1 from coderhs/master
Merging the BOSH service updates
- Loading branch information
Showing
8 changed files
with
262 additions
and
77 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 |
---|---|---|
|
@@ -4,4 +4,4 @@ coverage/* | |
rdoc/* | ||
tools/*.png | ||
*~ | ||
*# | ||
*# |
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,7 +1,7 @@ | ||
require 'rake' | ||
require "rake/clean" | ||
require 'rake/testtask' | ||
require 'rake/rdoctask' | ||
require 'rdoc/task' | ||
|
||
$:.unshift 'lib' | ||
require "xmpp4r" | ||
|
@@ -10,18 +10,18 @@ require "xmpp4r" | |
# OPTIONS | ||
############################################################################## | ||
|
||
PKG_NAME = 'xmpp4r' | ||
PKG_NAME = 'mad-p-xmpp4r' | ||
PKG_VERSION = Jabber::XMPP4R_VERSION | ||
AUTHORS = ['Lucas Nussbaum', 'Stephan Maka', 'Glenn Rempe'] | ||
EMAIL = "[email protected]" | ||
HOMEPAGE = "http://home.gna.org/xmpp4r/" | ||
SUMMARY = "XMPP4R is an XMPP/Jabber library for Ruby." | ||
AUTHORS = ['Lucas Nussbaum', 'Stephan Maka', 'Glenn Rempe', 'Kaoru Maeda'] | ||
EMAIL = "[email protected]" | ||
HOMEPAGE = "https://github.com/mad-p/xmpp4r" | ||
SUMMARY = "This is a fork from XMPP4R (https://github.com/ln/xmpp4r), fixing BOSH" | ||
|
||
# These are the common rdoc options that are shared between generation of | ||
# rdoc files using BOTH 'rake rdoc' and the installation by users of a | ||
# RubyGem version which builds rdoc's along with its installation. Any | ||
# rdoc options that are ONLY for developers running 'rake rdoc' should be | ||
# added in the 'Rake::RDocTask' block below. | ||
# added in the 'RDoc::Task' block below. | ||
RDOC_OPTIONS = [ | ||
"--quiet", | ||
"--title", SUMMARY, | ||
|
@@ -35,7 +35,7 @@ RDOC_OPTIONS = [ | |
RDOC_FILES = (%w( README.rdoc README_ruby19.txt CHANGELOG LICENSE COPYING )).sort | ||
|
||
# The full file list used for rdocs, tarballs, gems, and for generating the xmpp4r.gemspec. | ||
PKG_FILES = (%w( Rakefile setup.rb xmpp4r.gemspec ) + RDOC_FILES + Dir["{lib,test,data,tools}/**/*"]).sort | ||
PKG_FILES = (%w( Rakefile setup.rb mad-p-xmpp4r.gemspec ) + RDOC_FILES + Dir["{lib,test,data,tools}/**/*"]).sort | ||
|
||
############################################################################## | ||
# DEFAULT TASK | ||
|
@@ -61,7 +61,7 @@ end | |
|
||
# RDOC | ||
####### | ||
Rake::RDocTask.new do |rd| | ||
RDoc::Task.new do |rd| | ||
|
||
# which dir should rdoc files be installed in? | ||
rd.rdoc_dir = 'rdoc' | ||
|
@@ -134,7 +134,7 @@ end | |
CLEAN.include ["*.gem", "pkg", "rdoc", "coverage", "tools/*.png"] | ||
|
||
begin | ||
require 'rake/gempackagetask' | ||
require 'rubygems/package_task' | ||
|
||
spec = Gem::Specification.new do |s| | ||
s.name = PKG_NAME | ||
|
@@ -156,7 +156,7 @@ begin | |
s.required_ruby_version = ">= 1.8.4" | ||
end | ||
|
||
Rake::GemPackageTask.new(spec) do |pkg| | ||
Gem::PackageTask.new(spec) do |pkg| | ||
pkg.gem_spec = spec | ||
pkg.need_tar = true | ||
pkg.need_zip = true | ||
|
@@ -182,14 +182,14 @@ begin | |
# Thanks to the Merb project for this code. | ||
desc "Update Github Gemspec" | ||
task :update_gemspec do | ||
skip_fields = %w(new_platform original_platform date) | ||
skip_fields = %w(new_platform original_platform date cache_dir cache_file loaded) | ||
|
||
result = "# WARNING : RAKE AUTO-GENERATED FILE. DO NOT MANUALLY EDIT!\n" | ||
result << "# RUN : 'rake gem:update_gemspec'\n\n" | ||
result << "Gem::Specification.new do |s|\n" | ||
spec.instance_variables.sort.each do |ivar| | ||
value = spec.instance_variable_get(ivar) | ||
name = ivar.split("@").last | ||
name = ivar.to_s.split("@").last | ||
next if skip_fields.include?(name) || value.nil? || value == "" || (value.respond_to?(:empty?) && value.empty?) | ||
if name == "dependencies" | ||
value.each do |d| | ||
|
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
Oops, something went wrong.