1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Renamed to HTTParty which is way more fun and unique than boring old web.

This commit is contained in:
John Nunemaker 2008-07-28 10:49:53 -04:00
parent 99cd89d33d
commit 1d48da0313
13 changed files with 28 additions and 28 deletions

View file

@ -1,5 +1,5 @@
For more information on web, see http://web.rubyforge.org
For more information on httparty, see http://httparty.rubyforge.org
NOTE: Change this information in PostInstall.txt
You can also delete it if you don't want it.

View file

@ -1,4 +1,4 @@
= web
= httparty
* FIX (url)

View file

@ -1,10 +1,10 @@
require 'web/version'
require 'httparty/version'
AUTHOR = 'FIXME full name' # can also be an array of Authors
EMAIL = "FIXME email"
DESCRIPTION = "description of gem"
GEM_NAME = 'web' # what ppl will type to install your gem
RUBYFORGE_PROJECT = 'web' # The unix name for your project
AUTHOR = 'John Nunemaker' # can also be an array of Authors
EMAIL = "nunemaker@gmail.com"
DESCRIPTION = "Makes http fun again!"
GEM_NAME = 'httparty' # what ppl will type to install your gem
RUBYFORGE_PROJECT = 'httparty' # The unix name for your project
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
EXTRA_DEPENDENCIES = [
@ -34,8 +34,8 @@ end
REV = nil
# UNCOMMENT IF REQUIRED:
# REV = YAML.load(`svn info`)['Revision']
VERS = Web::VERSION::STRING + (REV ? ".#{REV}" : "")
RDOC_OPTS = ['--quiet', '--title', 'web documentation',
VERS = HTTParty::VERSION::STRING + (REV ? ".#{REV}" : "")
RDOC_OPTS = ['--quiet', '--title', 'httparty documentation',
"--opname", "index.html",
"--line-numbers",
"--main", "README",

View file

@ -1,10 +1,10 @@
dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require File.join(dir, 'web')
require File.join(dir, 'httparty')
require 'pp'
config = YAML::load(File.read(File.join(ENV['HOME'], '.delicious')))
class Delicious
include Web
include HTTParty
base_uri 'https://api.del.icio.us/v1'
format :xml

View file

@ -1,10 +1,10 @@
dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require File.join(dir, 'web')
require File.join(dir, 'httparty')
require 'pp'
config = YAML::load(File.read(File.join(ENV['HOME'], '.twitter')))
class Twitter
include Web
include HTTParty
base_uri 'twitter.com'
def initialize(user, pass)

View file

@ -8,10 +8,10 @@ require 'active_support'
$:.unshift(File.dirname(__FILE__)) unless
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
dir = File.expand_path(File.join(File.dirname(__FILE__), 'web'))
dir = File.expand_path(File.join(File.dirname(__FILE__), 'httparty'))
require dir + '/core_ext'
module Web
module HTTParty
def self.included(base)
base.extend ClassMethods
end

View file

@ -1,4 +1,4 @@
module Web
module HTTParty
module CoreExt
module HashConversions
def to_struct
@ -18,4 +18,4 @@ module Web
end
end
Hash.send :include, Web::CoreExt::HashConversions
Hash.send :include, HTTParty::CoreExt::HashConversions

View file

@ -1,4 +1,4 @@
module Web
module HTTParty
module VERSION #:nodoc:
MAJOR = 0
MINOR = 0

View file

@ -5,6 +5,6 @@ irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
libs = " -r irb/completion"
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
libs << " -r #{File.dirname(__FILE__) + '/../lib/web.rb'}"
puts "Loading web gem"
libs << " -r #{File.dirname(__FILE__) + '/../lib/httparty.rb'}"
puts "Loading httparty gem"
exec "#{irb} #{libs} --simple-prompt"

View file

@ -1,7 +1,7 @@
#!/usr/bin/env ruby
GEM_NAME = 'web' # what ppl will type to install your gem
RUBYFORGE_PROJECT = 'web'
GEM_NAME = 'httparty' # what ppl will type to install your gem
RUBYFORGE_PROJECT = 'httparty'
require 'rubygems'
begin
@ -17,7 +17,7 @@ require 'syntax/convertors/html'
require 'erb'
require File.dirname(__FILE__) + "/../lib/#{GEM_NAME}/version.rb"
version = Web::VERSION::STRING
version = HTTParty::VERSION::STRING
download = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
def rubyforge_project_id

View file

@ -1,16 +1,16 @@
require File.join(File.dirname(__FILE__), 'spec_helper')
class Foo
include Web
include HTTParty
base_uri 'api.foo.com/v1'
end
class FooWithHttps
include Web
include HTTParty
base_uri 'api.foo.com/v1:443'
end
describe Web do
describe HTTParty do
describe 'base_uri' do
it 'should allow getting' do

View file

@ -6,4 +6,4 @@ rescue LoadError
require 'spec'
end
require File.join(File.dirname(__FILE__), '..', 'lib', 'web')
require File.join(File.dirname(__FILE__), '..', 'lib', 'httparty')