jnunemaker-httparty 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/History CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.4.1 2009-03-29
2
+ * 1 minor fix
3
+ * gem 'jnunemaker-crack' instead of gem 'crack'
4
+
1
5
  == 0.4.0 2009-03-29
2
6
  * 1 minor change
3
7
  * Switched xml and json parsing to crack (same code as before just moved to gem for easier reuse in other projects)
data/httparty.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{httparty}
5
- s.version = "0.4.0"
5
+ s.version = "0.4.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Nunemaker"]
@@ -11,8 +11,8 @@ Gem::Specification.new do |s|
11
11
  s.description = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
12
12
  s.email = %q{nunemaker@gmail.com}
13
13
  s.executables = ["httparty"]
14
- s.extra_rdoc_files = ["bin/httparty", "lib/core_extensions.rb", "lib/httparty/cookie_hash.rb", "lib/httparty/exceptions.rb", "lib/httparty/module_inheritable_attributes.rb", "lib/httparty/parsers/json.rb", "lib/httparty/parsers/xml.rb", "lib/httparty/parsers.rb", "lib/httparty/request.rb", "lib/httparty/response.rb", "lib/httparty/version.rb", "lib/httparty.rb", "README"]
15
- s.files = ["bin/httparty", "cucumber.yml", "examples/aaws.rb", "examples/basic.rb", "examples/delicious.rb", "examples/google.rb", "examples/rubyurl.rb", "examples/twitter.rb", "examples/whoismyrep.rb", "features/basic_authentication.feature", "features/command_line.feature", "features/deals_with_http_error_codes.feature", "features/handles_multiple_formats.feature", "features/steps/env.rb", "features/steps/httparty_response_steps.rb", "features/steps/httparty_steps.rb", "features/steps/mongrel_helper.rb", "features/steps/remote_service_steps.rb", "features/supports_redirection.feature", "History", "httparty.gemspec", "lib/core_extensions.rb", "lib/httparty/cookie_hash.rb", "lib/httparty/exceptions.rb", "lib/httparty/module_inheritable_attributes.rb", "lib/httparty/parsers/json.rb", "lib/httparty/parsers/xml.rb", "lib/httparty/parsers.rb", "lib/httparty/request.rb", "lib/httparty/response.rb", "lib/httparty/version.rb", "lib/httparty.rb", "Manifest", "MIT-LICENSE", "Rakefile", "README", "setup.rb", "spec/fixtures/delicious.xml", "spec/fixtures/empty.xml", "spec/fixtures/google.html", "spec/fixtures/twitter.json", "spec/fixtures/twitter.xml", "spec/fixtures/undefined_method_add_node_for_nil.xml", "spec/hash_spec.rb", "spec/httparty/cookie_hash_spec.rb", "spec/httparty/parsers/json_spec.rb", "spec/httparty/parsers/xml_spec.rb", "spec/httparty/request_spec.rb", "spec/httparty/response_spec.rb", "spec/httparty_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/string_spec.rb", "website/css/common.css", "website/index.html"]
14
+ s.extra_rdoc_files = ["bin/httparty", "lib/httparty/cookie_hash.rb", "lib/httparty/core_extensions.rb", "lib/httparty/exceptions.rb", "lib/httparty/module_inheritable_attributes.rb", "lib/httparty/request.rb", "lib/httparty/response.rb", "lib/httparty/version.rb", "lib/httparty.rb", "README"]
15
+ s.files = ["bin/httparty", "cucumber.yml", "examples/aaws.rb", "examples/basic.rb", "examples/delicious.rb", "examples/google.rb", "examples/rubyurl.rb", "examples/twitter.rb", "examples/whoismyrep.rb", "features/basic_authentication.feature", "features/command_line.feature", "features/deals_with_http_error_codes.feature", "features/handles_multiple_formats.feature", "features/steps/env.rb", "features/steps/httparty_response_steps.rb", "features/steps/httparty_steps.rb", "features/steps/mongrel_helper.rb", "features/steps/remote_service_steps.rb", "features/supports_redirection.feature", "History", "httparty.gemspec", "lib/httparty/cookie_hash.rb", "lib/httparty/core_extensions.rb", "lib/httparty/exceptions.rb", "lib/httparty/module_inheritable_attributes.rb", "lib/httparty/request.rb", "lib/httparty/response.rb", "lib/httparty/version.rb", "lib/httparty.rb", "Manifest", "MIT-LICENSE", "Rakefile", "README", "setup.rb", "spec/fixtures/delicious.xml", "spec/fixtures/empty.xml", "spec/fixtures/google.html", "spec/fixtures/twitter.json", "spec/fixtures/twitter.xml", "spec/fixtures/undefined_method_add_node_for_nil.xml", "spec/hash_spec.rb", "spec/httparty/cookie_hash_spec.rb", "spec/httparty/request_spec.rb", "spec/httparty/response_spec.rb", "spec/httparty_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/string_spec.rb", "website/css/common.css", "website/index.html"]
16
16
  s.has_rdoc = true
17
17
  s.homepage = %q{http://httparty.rubyforge.org}
18
18
  s.post_install_message = %q{When you HTTParty, you must party hard!}
@@ -21,20 +21,4 @@ Gem::Specification.new do |s|
21
21
  s.rubyforge_project = %q{httparty}
22
22
  s.rubygems_version = %q{1.3.1}
23
23
  s.summary = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
24
-
25
- if s.respond_to? :specification_version then
26
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
27
- s.specification_version = 2
28
-
29
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
30
- s.add_runtime_dependency(%q<jnunemaker-crack>, [">= 0.1.0"])
31
- s.add_development_dependency(%q<echoe>, [">= 0"])
32
- else
33
- s.add_dependency(%q<jnunemaker-crack>, [">= 0.1.0"])
34
- s.add_dependency(%q<echoe>, [">= 0"])
35
- end
36
- else
37
- s.add_dependency(%q<jnunemaker-crack>, [">= 0.1.0"])
38
- s.add_dependency(%q<echoe>, [">= 0"])
39
- end
40
24
  end
@@ -0,0 +1,25 @@
1
+ class BlankSlate #:nodoc:
2
+ instance_methods.each { |m| undef_method m unless m =~ /^__/ }
3
+ end
4
+
5
+ # 1.8.6 has mistyping of transitive in if statement
6
+ require "rexml/document"
7
+ module REXML #:nodoc:
8
+ class Document < Element #:nodoc:
9
+ def write( output=$stdout, indent=-1, transitive=false, ie_hack=false )
10
+ if xml_decl.encoding != "UTF-8" && !output.kind_of?(Output)
11
+ output = Output.new( output, xml_decl.encoding )
12
+ end
13
+ formatter = if indent > -1
14
+ if transitive
15
+ REXML::Formatters::Transitive.new( indent, ie_hack )
16
+ else
17
+ REXML::Formatters::Pretty.new( indent, ie_hack )
18
+ end
19
+ else
20
+ REXML::Formatters::Default.new( ie_hack )
21
+ end
22
+ formatter.write( self, output )
23
+ end
24
+ end
25
+ end
@@ -1,3 +1,3 @@
1
1
  module HTTParty #:nodoc:
2
- Version = '0.4.0'
2
+ Version = '0.4.1'
3
3
  end
data/lib/httparty.rb CHANGED
@@ -4,7 +4,7 @@ require 'net/http'
4
4
  require 'net/https'
5
5
  require 'httparty/module_inheritable_attributes'
6
6
  require 'rubygems'
7
- gem 'crack'
7
+ gem 'jnunemaker-crack'
8
8
  require 'crack'
9
9
 
10
10
  module HTTParty
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jnunemaker-httparty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -11,27 +11,8 @@ cert_chain: []
11
11
 
12
12
  date: 2009-03-29 00:00:00 -07:00
13
13
  default_executable: httparty
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: jnunemaker-crack
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 0.1.0
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: echoe
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
34
- version:
14
+ dependencies: []
15
+
35
16
  description: Makes http fun! Also, makes consuming restful web services dead easy.
36
17
  email: nunemaker@gmail.com
37
18
  executables:
@@ -40,13 +21,10 @@ extensions: []
40
21
 
41
22
  extra_rdoc_files:
42
23
  - bin/httparty
43
- - lib/core_extensions.rb
44
24
  - lib/httparty/cookie_hash.rb
25
+ - lib/httparty/core_extensions.rb
45
26
  - lib/httparty/exceptions.rb
46
27
  - lib/httparty/module_inheritable_attributes.rb
47
- - lib/httparty/parsers/json.rb
48
- - lib/httparty/parsers/xml.rb
49
- - lib/httparty/parsers.rb
50
28
  - lib/httparty/request.rb
51
29
  - lib/httparty/response.rb
52
30
  - lib/httparty/version.rb
@@ -74,13 +52,10 @@ files:
74
52
  - features/supports_redirection.feature
75
53
  - History
76
54
  - httparty.gemspec
77
- - lib/core_extensions.rb
78
55
  - lib/httparty/cookie_hash.rb
56
+ - lib/httparty/core_extensions.rb
79
57
  - lib/httparty/exceptions.rb
80
58
  - lib/httparty/module_inheritable_attributes.rb
81
- - lib/httparty/parsers/json.rb
82
- - lib/httparty/parsers/xml.rb
83
- - lib/httparty/parsers.rb
84
59
  - lib/httparty/request.rb
85
60
  - lib/httparty/response.rb
86
61
  - lib/httparty/version.rb
@@ -98,8 +73,6 @@ files:
98
73
  - spec/fixtures/undefined_method_add_node_for_nil.xml
99
74
  - spec/hash_spec.rb
100
75
  - spec/httparty/cookie_hash_spec.rb
101
- - spec/httparty/parsers/json_spec.rb
102
- - spec/httparty/parsers/xml_spec.rb
103
76
  - spec/httparty/request_spec.rb
104
77
  - spec/httparty/response_spec.rb
105
78
  - spec/httparty_spec.rb