-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use Bundler for gem; require guess_html_encoding for Ruby 1.9.2
- Loading branch information
Showing
14 changed files
with
86 additions
and
147 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 |
---|---|---|
@@ -1,23 +1,7 @@ | ||
pkg/* | ||
======= | ||
## MAC OS | ||
.DS_Store | ||
|
||
## TEXTMATE | ||
*.tmproj | ||
tmtags | ||
|
||
## EMACS | ||
*~ | ||
\#* | ||
.\#* | ||
|
||
## VIM | ||
*.swp | ||
|
||
## PROJECT::GENERAL | ||
coverage | ||
rdoc | ||
pkg | ||
|
||
## PROJECT::SPECIFIC | ||
.gem | ||
.bundle | ||
Gemfile.lock | ||
pkg/* | ||
.idea | ||
.rvmrc |
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 @@ | ||
source "http://rubygems.org" | ||
|
||
# Specify your gem's dependencies in ruby-readability.gemspec | ||
gemspec |
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,45 +1,6 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
require "bundler/gem_tasks" | ||
require 'rspec/core/rake_task' | ||
|
||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
gem.name = "ruby-readability" | ||
gem.summary = %Q{Port of arc90's readability project to ruby} | ||
gem.description = %Q{Port of arc90's readability project to ruby} | ||
gem.email = "andrew@iterationlabs.com" | ||
gem.homepage = "http://github.com/iterationlabs/ruby-readability" | ||
gem.authors = ["Andrew Cantino", "starrhorne", "libc", "Kyle Maxwell"] | ||
gem.add_development_dependency "rspec", ">= 1.2.9" | ||
gem.add_dependency 'nokogiri', '>= 1.4.2' | ||
end | ||
Jeweler::GemcutterTasks.new | ||
rescue LoadError | ||
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" | ||
end | ||
|
||
require 'spec/rake/spectask' | ||
Spec::Rake::SpecTask.new(:spec) do |spec| | ||
spec.libs << 'lib' << 'spec' | ||
spec.spec_files = FileList['spec/**/*_spec.rb'] | ||
end | ||
|
||
Spec::Rake::SpecTask.new(:rcov) do |spec| | ||
spec.libs << 'lib' << 'spec' | ||
spec.pattern = 'spec/**/*_spec.rb' | ||
spec.rcov = true | ||
end | ||
|
||
task :spec => :check_dependencies | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec | ||
|
||
require 'rake/rdoctask' | ||
Rake::RDocTask.new do |rdoc| | ||
version = File.exist?('VERSION') ? File.read('VERSION') : "" | ||
|
||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = "ruby-readability #{version}" | ||
rdoc.rdoc_files.include('README*') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
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
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 @@ | ||
require 'readability' |
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,64 +1,23 @@ | ||
# Generated by jeweler | ||
# DO NOT EDIT THIS FILE DIRECTLY | ||
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' | ||
# -*- encoding: utf-8 -*- | ||
$:.push File.expand_path("../lib", __FILE__) | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{ruby-readability} | ||
s.version = "0.2.4" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Andrew Cantino", "starrhorne", "libc", "Kyle Maxwell"] | ||
s.date = %q{2011-06-09} | ||
s.default_executable = %q{readability} | ||
s.name = "ruby-readability" | ||
s.version = '0.2.5' | ||
s.authors = ["Andrew Cantino", "starrhorne", "libc", "Kyle Maxwell"] | ||
s.email = ["andrew@iterationlabs.com"] | ||
s.homepage = "http://github.com/iterationlabs/ruby-readability" | ||
s.summary = %q{Port of arc90's readability project to ruby} | ||
s.description = %q{Port of arc90's readability project to ruby} | ||
s.email = %q{andrew@iterationlabs.com} | ||
s.executables = ["readability"] | ||
s.extra_rdoc_files = [ | ||
"README" | ||
] | ||
s.files = [ | ||
".document", | ||
"README", | ||
"Rakefile", | ||
"VERSION", | ||
"bin/readability", | ||
"lib/readability.rb", | ||
"ruby-readability.gemspec", | ||
"spec/fixtures/cant_read.html", | ||
"spec/fixtures/sample.html", | ||
"spec/fixtures/samples/blogpost_with_links-fragments.rb", | ||
"spec/fixtures/samples/blogpost_with_links.html", | ||
"spec/fixtures/samples/channel4-1-fragments.rb", | ||
"spec/fixtures/samples/channel4-1.html", | ||
"spec/fixtures/samples/foxnews-india1-fragments.rb", | ||
"spec/fixtures/samples/foxnews-india1.html", | ||
"spec/fixtures/samples/globemail-ottawa-cuts-fragments.rb", | ||
"spec/fixtures/samples/globemail-ottawa-cuts.html", | ||
"spec/fixtures/should_not_truncate.txt", | ||
"spec/readability_spec.rb", | ||
"spec/spec.opts", | ||
"spec/spec_helper.rb" | ||
] | ||
s.homepage = %q{http://github.com/iterationlabs/ruby-readability} | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = %q{1.3.7} | ||
s.summary = %q{Port of arc90's readability project to ruby} | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 3 | ||
s.rubyforge_project = "ruby-readability" | ||
|
||
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then | ||
s.add_development_dependency(%q<rspec>, [">= 1.2.9"]) | ||
s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.2"]) | ||
else | ||
s.add_dependency(%q<rspec>, [">= 1.2.9"]) | ||
s.add_dependency(%q<nokogiri>, [">= 1.4.2"]) | ||
end | ||
else | ||
s.add_dependency(%q<rspec>, [">= 1.2.9"]) | ||
s.add_dependency(%q<nokogiri>, [">= 1.4.2"]) | ||
end | ||
end | ||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } | ||
s.require_paths = ["lib"] | ||
|
||
s.add_development_dependency "rspec", ">= 2.6" | ||
s.add_dependency 'nokogiri', '>= 1.4.2' | ||
s.add_dependency 'guess_html_encoding', '> 0.0.0' | ||
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# encoding: UTF-8 | ||
# This sample originally from http://softarhive.net | ||
|
||
$required_fragments = [ | ||
|
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
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,10 +1,9 @@ | ||
$LOAD_PATH.unshift(File.dirname(__FILE__)) | ||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | ||
#$LOAD_PATH.unshift(File.dirname(__FILE__)) | ||
#$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | ||
require 'rubygems' | ||
require 'readability' | ||
require 'spec' | ||
require 'spec/autorun' | ||
|
||
Spec::Runner.configure do |config| | ||
#require 'spec' | ||
#require 'spec/autorun' | ||
|
||
RSpec.configure do |c| | ||
end |