ez_http 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +4 -4
  2. data/doc/file.README.html +88 -0
  3. data/ez_http.gemspec +2 -5
  4. metadata +4 -36
data/README.md CHANGED
@@ -8,11 +8,11 @@ A helper wrapper around net/http, supports http/https(with/without certificate),
8
8
 
9
9
  ## Installation
10
10
 
11
- Add the following line to your "Gemfile"
12
- gem "ez_http"
13
- then execute bundle install
11
+ Add the following line to your "Gemfile"
12
+ gem "ez_http"
13
+ then execute bundle install
14
14
 
15
- See here for more details:
15
+ See here for more details:
16
16
  RubyGem: [http://rubygems.org/gems/ez_http](http://rubygems.org/gems/ez_htt "EZHttp RubyGem Page")
17
17
 
18
18
  ## Author
@@ -0,0 +1,88 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>
7
+ File: README
8
+
9
+ &mdash; Documentation by YARD 0.7.5
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="_index.html" title="Index">Index</a> &raquo;
37
+ <span class="title">File: README</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a id="class_list_link" href="#">Class List</a>
46
+
47
+ <a id="method_list_link" href="#">Method List</a>
48
+
49
+ <a id="file_list_link" href="#">File List</a>
50
+
51
+ </div>
52
+ <div class="clear"></div>
53
+ </div>
54
+
55
+ <iframe id="search_frame"></iframe>
56
+
57
+ <div id="content"><div id='filecontents'><h1>EZHttp</h1>
58
+
59
+ <p>A helper wrapper around net/http, supports http/https(with/without certificate), post/get requests, one method call does everything.</p>
60
+
61
+ <h2>How to use it</h2>
62
+
63
+ <pre class="code ruby"><code><span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='const'>EZHttp</span><span class='period'>.</span><span class='const'>Send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>https://www.example.com:83/api</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>post</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>key1</span><span class='tstring_end'>&quot;</span></span><span class='op'>=&gt;</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>value1</span><span class='tstring_end'>&quot;</span></span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>application/json</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
64
+ <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span>
65
+ </code></pre>
66
+
67
+ <h2>Installation</h2>
68
+
69
+ <p>Add the following line to your &quot;Gemfile&quot;
70
+ gem &quot;ez_http&quot;
71
+ then execute bundle install</p>
72
+
73
+ <p>See here for more details:
74
+ RubyGem: <a href="http://rubygems.org/gems/ez_htt" title="EZHttp RubyGem Page">http://rubygems.org/gems/ez_http</a></p>
75
+
76
+ <h2>Author</h2>
77
+
78
+ <p>Tianyu Huang</p>
79
+ </div></div>
80
+
81
+ <div id="footer">
82
+ Generated on Sat Mar 31 14:47:49 2012 by
83
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
84
+ 0.7.5 (ruby-1.9.3).
85
+ </div>
86
+
87
+ </body>
88
+ </html>
data/ez_http.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ez_http'
3
- s.version = '1.0.0'
3
+ s.version = '1.0.1'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.date = '2012-03-30'
6
6
  s.summary = "Make http/https request easier"
@@ -11,8 +11,5 @@ Gem::Specification.new do |s|
11
11
  s.homepage = 'http://rubygems.org/gems/ez_http'
12
12
  s.extra_rdoc_files = ["doc/index.html"]
13
13
 
14
- s.required_rubygems_version = ">= 1.3.6"
15
- s.add_development_dependency "openssl"
16
- s.add_development_dependency "net/http"
17
- s.add_development_dependency "uri"
14
+ #s.required_rubygems_version = ">= 1.3.6"
18
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ez_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,40 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-03-30 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: openssl
16
- requirement: &75435180 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :development
23
- prerelease: false
24
- version_requirements: *75435180
25
- - !ruby/object:Gem::Dependency
26
- name: net/http
27
- requirement: &75434950 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
- type: :development
34
- prerelease: false
35
- version_requirements: *75434950
36
- - !ruby/object:Gem::Dependency
37
- name: uri
38
- requirement: &75434740 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
- type: :development
45
- prerelease: false
46
- version_requirements: *75434740
13
+ dependencies: []
47
14
  description: A helper wrapper around net/http, supports http/https(with/without certificate),
48
15
  post/get requests, one method call does everything.
49
16
  email: tianhsky@yahoo.com
@@ -60,6 +27,7 @@ files:
60
27
  - doc/css/common.css
61
28
  - doc/css/full_list.css
62
29
  - doc/css/style.css
30
+ - doc/file.README.html
63
31
  - doc/file_list.html
64
32
  - doc/frames.html
65
33
  - doc/index.html
@@ -87,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
55
  requirements:
88
56
  - - ! '>='
89
57
  - !ruby/object:Gem::Version
90
- version: 1.3.6
58
+ version: '0'
91
59
  requirements: []
92
60
  rubyforge_project:
93
61
  rubygems_version: 1.8.17