Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove Hoe and use Bundler to dependency management

  • Loading branch information...
commit a007114ec351c75c891d16c154a989948434db5f 1 parent ec850ea
Diógenes Falcão authored
1  .gitignore
... ... @@ -1 +1,2 @@
1 1 pkg/*
  2 +Gemfile.lock
8 Gemfile
... ... @@ -0,0 +1,8 @@
  1 +source :rubygems
  2 +
  3 +gemspec
  4 +
  5 +group :development do
  6 + gem 'rake'
  7 + gem 'rspec'
  8 +end
20 Manifest.txt
... ... @@ -1,20 +0,0 @@
1   -History.txt
2   -Manifest.txt
3   -README.rdoc
4   -Rakefile
5   -TODO
6   -hubruby.gemspec
7   -lib/github/base.rb
8   -lib/github/finders.rb
9   -lib/github/models/repository.rb
10   -lib/github/models/user.rb
11   -lib/hubruby.rb
12   -script/console
13   -script/destroy
14   -script/generate
15   -spec/github/github_spec.rb
16   -spec/github/models/repository_spec.rb
17   -spec/github/models/user_spec.rb
18   -spec/spec.opts
19   -spec/spec_helper.rb
20   -tasks/rspec.rake
35 Rakefile
... ... @@ -1,25 +1,16 @@
1   -require 'rubygems'
2   -gem 'hoe', '>= 2.1.0'
3   -require 'hoe'
4   -require 'fileutils'
5   -require './lib/hubruby'
  1 +require 'rake/rdoctask'
  2 +require 'rspec/core/rake_task'
  3 +require 'bundler'
  4 +Bundler::GemHelper.install_tasks
6 5
7   -Hoe.plugin :newgem
8   -# Hoe.plugin :website
9   -# Hoe.plugin :cucumberfeatures
  6 +desc 'Run all RSpec tests'
  7 +RSpec::Core::RakeTask.new(:spec)
10 8
11   -# Generate all the Rake tasks
12   -# Run 'rake -T' to see list of generated tasks (from gem root directory)
13   -$hoe = Hoe.spec 'hubruby' do
14   - self.summary = 'A simple Ruby library to access the current GitHub API (v3)'
15   - self.developer 'Diógenes Falcão', 'diogenes {d-o-t} araujo {at} gmail.com'
16   - self.rubyforge_name = self.name
17   - self.extra_deps = [['httparty','= 0.6.1']]
18   - self.version = '0.1.0'
19   -end
20   -
21   -require 'newgem/tasks'
22   -Dir['tasks/**/*.rake'].each { |t| load t }
  9 +task :default => :spec
  10 +task :build => :spec
23 11
24   -# remove_task :default
25   -task :default => [:spec]
  12 +Rake::RDocTask.new do |rd|
  13 + rd.main = "README.rdoc"
  14 + rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
  15 + rd.rdoc_dir = 'doc'
  16 +end
0  TODO
No changes.
44 hubruby.gemspec
... ... @@ -1,39 +1,17 @@
1 1 # -*- encoding: utf-8 -*-
  2 +$:.push File.expand_path("../lib", __FILE__)
  3 +require 'hubruby'
2 4
3 5 Gem::Specification.new do |s|
4   - s.name = %q{hubruby}
5   - s.version = "0.1.0"
  6 + s.name = 'hubruby'
  7 + s.version = Hubruby::VERSION.dup
  8 + s.summary = 'A simple Ruby library for accessing the current GitHub API (v3)'
  9 + s.author = 'Diógenes Falcão'
  10 + s.email = 'diogenes.araujo@gmail.com'
  11 + s.extra_rdoc_files = ['README.rdoc']
  12 + s.has_rdoc = true
6 13
7   - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8   - s.authors = ["Di\303\263genes Falc\303\243o"]
9   - s.date = %q{2011-07-31}
10   - s.description = %q{A simple Ruby library for accessing the current GitHub API (v2).}
11   - s.email = ["diogenes {d-o-t} araujo {at} gmail.com"]
12   - s.extra_rdoc_files = ["History.txt", "Manifest.txt"]
13   - s.files = ["History.txt", "Manifest.txt", "README.rdoc", "Rakefile", "TODO", "hubruby.gemspec", "lib/github/base.rb", "lib/github/finders.rb", "lib/github/models/repository.rb", "lib/github/models/user.rb", "lib/hubruby.rb", "script/console", "script/destroy", "script/generate", "spec/github/github_spec.rb", "spec/github/models/repository_spec.rb", "spec/github/models/user_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/rspec.rake"]
14   - s.homepage = %q{http://github.com/diogenes/hubruby}
15   - s.rdoc_options = ["--main", "README.rdoc"]
16   - s.require_paths = ["lib"]
17   - s.rubyforge_project = %q{hubruby}
18   - s.rubygems_version = %q{1.3.7}
19   - s.summary = %q{A simple Ruby library for accessing the current GitHub API (v2).}
  14 + s.files = Dir['lib/**/*.rb'] + Dir['spec/**/*.*']
20 15
21   - if s.respond_to? :specification_version then
22   - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23   - s.specification_version = 3
24   -
25   - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26   - s.add_runtime_dependency(%q<httparty>, ["= 0.6.1"])
27   - s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
28   - s.add_development_dependency(%q<hoe>, [">= 2.6.2"])
29   - else
30   - s.add_dependency(%q<httparty>, ["= 0.6.1"])
31   - s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
32   - s.add_dependency(%q<hoe>, [">= 2.6.2"])
33   - end
34   - else
35   - s.add_dependency(%q<httparty>, ["= 0.6.1"])
36   - s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
37   - s.add_dependency(%q<hoe>, [">= 2.6.2"])
38   - end
  16 + s.add_dependency('httparty', '>= 0.6.1')
39 17 end
10 script/console
... ... @@ -1,10 +0,0 @@
1   -#!/usr/bin/env ruby
2   -# File: script/console
3   -irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4   -
5   -libs = " -r irb/completion"
6   -# Perhaps use a console_lib to store any extra methods I may want available in the cosole
7   -# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8   -libs << " -r #{File.dirname(__FILE__) + '/../lib/hubruby.rb'}"
9   -puts "Loading hubruby gem"
10   -exec "#{irb} #{libs} --simple-prompt"
14 script/destroy
... ... @@ -1,14 +0,0 @@
1   -#!/usr/bin/env ruby
2   -APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3   -
4   -begin
5   - require 'rubigen'
6   -rescue LoadError
7   - require 'rubygems'
8   - require 'rubigen'
9   -end
10   -require 'rubigen/scripts/destroy'
11   -
12   -ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13   -RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14   -RubiGen::Scripts::Destroy.new.run(ARGV)
14 script/generate
... ... @@ -1,14 +0,0 @@
1   -#!/usr/bin/env ruby
2   -APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3   -
4   -begin
5   - require 'rubigen'
6   -rescue LoadError
7   - require 'rubygems'
8   - require 'rubigen'
9   -end
10   -require 'rubigen/scripts/generate'
11   -
12   -ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13   -RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14   -RubiGen::Scripts::Generate.new.run(ARGV)
9 spec/spec_helper.rb
... ... @@ -1,10 +1 @@
1   -begin
2   - require 'spec'
3   -rescue LoadError
4   - require 'rubygems' unless ENV['NO_RUBYGEMS']
5   - gem 'rspec'
6   - require 'spec'
7   -end
8   -
9   -$:.unshift(File.dirname(__FILE__) + '/../lib')
10 1 require 'hubruby'
21 tasks/rspec.rake
... ... @@ -1,21 +0,0 @@
1   -begin
2   - require 'spec'
3   -rescue LoadError
4   - require 'rubygems' unless ENV['NO_RUBYGEMS']
5   - require 'spec'
6   -end
7   -begin
8   - require 'spec/rake/spectask'
9   -rescue LoadError
10   - puts <<-EOS
11   -To use rspec for testing you must install rspec gem:
12   - gem install rspec
13   -EOS
14   - exit(0)
15   -end
16   -
17   -desc "Run the specs under spec/models"
18   -Spec::Rake::SpecTask.new do |t|
19   - t.spec_opts = ['--options', "spec/spec.opts"]
20   - t.spec_files = FileList['spec/**/*_spec.rb']
21   -end

0 comments on commit a007114

Please sign in to comment.
Something went wrong with that request. Please try again.