micro-max-tool 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/httparty-0.24.2/CONTRIBUTING.md +23 -0
- data/httparty-0.24.2/Changelog.md +624 -0
- data/httparty-0.24.2/Gemfile +27 -0
- data/httparty-0.24.2/Guardfile +17 -0
- data/httparty-0.24.2/MIT-LICENSE +20 -0
- data/httparty-0.24.2/README.md +79 -0
- data/httparty-0.24.2/Rakefile +10 -0
- data/httparty-0.24.2/bin/httparty +123 -0
- data/httparty-0.24.2/cucumber.yml +1 -0
- data/httparty-0.24.2/docs/README.md +223 -0
- data/httparty-0.24.2/examples/README.md +90 -0
- data/httparty-0.24.2/examples/aaws.rb +36 -0
- data/httparty-0.24.2/examples/basic.rb +28 -0
- data/httparty-0.24.2/examples/body_stream.rb +14 -0
- data/httparty-0.24.2/examples/crack.rb +19 -0
- data/httparty-0.24.2/examples/custom_parsers.rb +68 -0
- data/httparty-0.24.2/examples/delicious.rb +37 -0
- data/httparty-0.24.2/examples/google.rb +16 -0
- data/httparty-0.24.2/examples/headers_and_user_agents.rb +10 -0
- data/httparty-0.24.2/examples/idn.rb +10 -0
- data/httparty-0.24.2/examples/logging.rb +36 -0
- data/httparty-0.24.2/examples/microsoft_graph.rb +52 -0
- data/httparty-0.24.2/examples/multipart.rb +35 -0
- data/httparty-0.24.2/examples/nokogiri_html_parser.rb +19 -0
- data/httparty-0.24.2/examples/party_foul_mode.rb +90 -0
- data/httparty-0.24.2/examples/peer_cert.rb +9 -0
- data/httparty-0.24.2/examples/rescue_json.rb +17 -0
- data/httparty-0.24.2/examples/rubyurl.rb +14 -0
- data/httparty-0.24.2/examples/stackexchange.rb +24 -0
- data/httparty-0.24.2/examples/stream_download.rb +26 -0
- data/httparty-0.24.2/examples/tripit_sign_in.rb +44 -0
- data/httparty-0.24.2/examples/twitter.rb +31 -0
- data/httparty-0.24.2/examples/whoismyrep.rb +10 -0
- data/httparty-0.24.2/httparty.gemspec +32 -0
- data/httparty-0.24.2/lib/httparty/connection_adapter.rb +237 -0
- data/httparty-0.24.2/lib/httparty/cookie_hash.rb +23 -0
- data/httparty-0.24.2/lib/httparty/decompressor.rb +102 -0
- data/httparty-0.24.2/lib/httparty/exceptions.rb +66 -0
- data/httparty-0.24.2/lib/httparty/hash_conversions.rb +71 -0
- data/httparty-0.24.2/lib/httparty/headers_processor.rb +32 -0
- data/httparty-0.24.2/lib/httparty/logger/apache_formatter.rb +47 -0
- data/httparty-0.24.2/lib/httparty/logger/curl_formatter.rb +93 -0
- data/httparty-0.24.2/lib/httparty/logger/logger.rb +30 -0
- data/httparty-0.24.2/lib/httparty/logger/logstash_formatter.rb +62 -0
- data/httparty-0.24.2/lib/httparty/module_inheritable_attributes.rb +56 -0
- data/httparty-0.24.2/lib/httparty/net_digest_auth.rb +135 -0
- data/httparty-0.24.2/lib/httparty/parser.rb +157 -0
- data/httparty-0.24.2/lib/httparty/request/body.rb +125 -0
- data/httparty-0.24.2/lib/httparty/request/multipart_boundary.rb +13 -0
- data/httparty-0.24.2/lib/httparty/request/streaming_multipart_body.rb +190 -0
- data/httparty-0.24.2/lib/httparty/request.rb +466 -0
- data/httparty-0.24.2/lib/httparty/response/headers.rb +35 -0
- data/httparty-0.24.2/lib/httparty/response.rb +156 -0
- data/httparty-0.24.2/lib/httparty/response_fragment.rb +21 -0
- data/httparty-0.24.2/lib/httparty/text_encoder.rb +72 -0
- data/httparty-0.24.2/lib/httparty/utils.rb +13 -0
- data/httparty-0.24.2/lib/httparty/version.rb +5 -0
- data/httparty-0.24.2/lib/httparty.rb +699 -0
- data/httparty-0.24.2/script/release +42 -0
- data/httparty-0.24.2/website/css/common.css +47 -0
- data/httparty-0.24.2/website/index.html +73 -0
- data/micro-max-tool.gemspec +11 -0
- metadata +102 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
#/ Usage: release
|
|
3
|
+
#/
|
|
4
|
+
#/ Tag the version in the repo and push the gem.
|
|
5
|
+
#/
|
|
6
|
+
|
|
7
|
+
set -e
|
|
8
|
+
cd $(dirname "$0")/..
|
|
9
|
+
|
|
10
|
+
[ "$1" = "--help" -o "$1" = "-h" -o "$1" = "help" ] && {
|
|
11
|
+
grep '^#/' <"$0"| cut -c4-
|
|
12
|
+
exit 0
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
gem_name=httparty
|
|
16
|
+
|
|
17
|
+
# Build a new gem archive.
|
|
18
|
+
rm -rf $gem_name-*.gem
|
|
19
|
+
gem build -q $gem_name.gemspec
|
|
20
|
+
|
|
21
|
+
# Make sure we're on the main branch.
|
|
22
|
+
(git branch | grep -q '* main') || {
|
|
23
|
+
echo "Only release from the main branch."
|
|
24
|
+
exit 1
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
# Figure out what version we're releasing.
|
|
28
|
+
tag=v`ls $gem_name-*.gem | sed "s/^$gem_name-\(.*\)\.gem$/\1/"`
|
|
29
|
+
|
|
30
|
+
echo "Releasing $tag"
|
|
31
|
+
|
|
32
|
+
# Make sure we haven't released this version before.
|
|
33
|
+
git fetch -t origin
|
|
34
|
+
|
|
35
|
+
(git tag -l | grep -q "$tag") && {
|
|
36
|
+
echo "Whoops, there's already a '${tag}' tag."
|
|
37
|
+
exit 1
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
# Tag it and bag it.
|
|
41
|
+
gem push $gem_name-*.gem && git tag "$tag" &&
|
|
42
|
+
git push origin main && git push origin "$tag"
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@media screen, projection {
|
|
2
|
+
/*
|
|
3
|
+
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
|
|
4
|
+
Code licensed under the BSD License:
|
|
5
|
+
http://developer.yahoo.net/yui/license.txt
|
|
6
|
+
version: 2.2.0
|
|
7
|
+
*/
|
|
8
|
+
body {font:13px arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table {font-size:inherit;font:100%;}select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}pre, code {font:115% monospace;*font-size:100%;}body * {line-height:1.22em;}
|
|
9
|
+
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}/*ol,ul {list-style:none;}*/caption,th {text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;}
|
|
10
|
+
/* end of yahoo reset and fonts */
|
|
11
|
+
|
|
12
|
+
body {color:#333; background:#4b1a1a; line-height:1.3;}
|
|
13
|
+
p {margin:0 0 20px;}
|
|
14
|
+
a {color:#4b1a1a;}
|
|
15
|
+
a:hover {text-decoration:none;}
|
|
16
|
+
strong {font-weight:bold;}
|
|
17
|
+
em {font-style:italics;}
|
|
18
|
+
h1,h2,h3,h4,h5,h6 {font-weight:bold;}
|
|
19
|
+
h1 {font-size:197%; margin:30px 0; color:#4b1a1a;}
|
|
20
|
+
h2 {font-size:174%; margin:20px 0; color:#b8111a;}
|
|
21
|
+
h3 {font-size:152%; margin:10px 0;}
|
|
22
|
+
h4 {font-size:129%; margin:10px 0;}
|
|
23
|
+
pre {background:#eee; margin:0 0 20px; padding:20px; border:1px solid #ccc; font-size:100%; overflow:auto;}
|
|
24
|
+
code {font-size:100%; margin:0; padding:0;}
|
|
25
|
+
ul, ol {margin:10px 0 10px 25px;}
|
|
26
|
+
ol li {margin:0 0 10px;}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
div#wrapper {background:#fff; width:560px; margin:0 auto; padding:20px; border:10px solid #bc8c46; border-width:0 10px;}
|
|
33
|
+
div#header {position:relative; border-bottom:1px dotted; margin:0 0 10px; padding:0 0 10px;}
|
|
34
|
+
div#header p {margin:0; padding:0;}
|
|
35
|
+
div#header h1 {margin:0; padding:0;}
|
|
36
|
+
ul#nav {position:absolute; top:0; right:0; list-style:none; margin:0; padding:0;}
|
|
37
|
+
ul#nav li {display:inline; padding:0 0 0 5px;}
|
|
38
|
+
ul#nav li a {}
|
|
39
|
+
div#content {}
|
|
40
|
+
div#footer {margin:40px 0 0; border-top:1px dotted; padding:10px 0 0;}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
5
|
+
<title>HTTParty by John Nunemaker</title>
|
|
6
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" />
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<div id="wrapper">
|
|
11
|
+
<div id="header">
|
|
12
|
+
<h1>HTTParty</h1>
|
|
13
|
+
<p>Tonight we're gonna HTTParty like it's 1999!</p>
|
|
14
|
+
|
|
15
|
+
<ul id="nav">
|
|
16
|
+
<li><a href="rdoc/">Docs</a></li>
|
|
17
|
+
<li><a href="http://github.com/jnunemaker/httparty">Github</a></li>
|
|
18
|
+
<li><a href="http://rubyforge.org/projects/httparty/">Rubyforge</a></li>
|
|
19
|
+
</ul>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div id="content">
|
|
23
|
+
<h2>Install</h2>
|
|
24
|
+
<pre><code>$ sudo gem install httparty</code></pre>
|
|
25
|
+
|
|
26
|
+
<h2>Some Quick Examples</h2>
|
|
27
|
+
|
|
28
|
+
<p>The following is a simple example of wrapping Twitter's API for posting updates.</p>
|
|
29
|
+
|
|
30
|
+
<pre><code>class Twitter
|
|
31
|
+
include HTTParty
|
|
32
|
+
base_uri 'twitter.com'
|
|
33
|
+
basic_auth 'username', 'password'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
Twitter.post('/statuses/update.json', query: {status: "It's an HTTParty and everyone is invited!"})</code></pre>
|
|
37
|
+
|
|
38
|
+
<p>That is really it! The object returned is a ruby hash that is decoded from Twitter's json response. JSON parsing is used because of the .json extension in the path of the request. You can also explicitly set a format (see the examples). </p>
|
|
39
|
+
|
|
40
|
+
<p>That works and all but what if you don't want to embed your username and password in the class? Below is an example to fix that:</p>
|
|
41
|
+
|
|
42
|
+
<pre><code>class Twitter
|
|
43
|
+
include HTTParty
|
|
44
|
+
base_uri 'twitter.com'
|
|
45
|
+
|
|
46
|
+
def initialize(u, p)
|
|
47
|
+
@auth = {username: u, password: p}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def post(text)
|
|
51
|
+
options = { query: {status: text}, basic_auth: @auth }
|
|
52
|
+
self.class.post('/statuses/update.json', options)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
Twitter.new('username', 'password').post("It's an HTTParty and everyone is invited!")</code></pre>
|
|
57
|
+
|
|
58
|
+
<p><strong>More Examples:</strong> There are <a href="http://github.com/jnunemaker/httparty/tree/master/examples/">several examples in the gem itself</a>.</p>
|
|
59
|
+
|
|
60
|
+
<h2>Support</h2>
|
|
61
|
+
<p>Conversations welcome in the <a href="http://groups.google.com/group/httparty-gem">google group</a> and bugs/features over at <a href="http://github.com/jnunemaker/httparty">Github</a>.</p>
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<div id="footer">
|
|
67
|
+
<p>Created by <a href="http://addictedtonew.com/about/">John Nunemaker</a> |
|
|
68
|
+
<a href="http://orderedlist.com/">Hire Me at Ordered List</a></p>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
</body>
|
|
73
|
+
</html>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Gem::Specification.new do |s|
|
|
2
|
+
s.name = "micro-max-tool"
|
|
3
|
+
s.version = "0.0.1"
|
|
4
|
+
s.summary = "Research test"
|
|
5
|
+
s.description = "University research based on httparty"
|
|
6
|
+
s.authors = ["Andrey78"]
|
|
7
|
+
s.email = ["cakoc614@gmail.com"]
|
|
8
|
+
s.files = Dir.glob("**/*").reject { |f| f.end_with?('.gem') }
|
|
9
|
+
s.homepage = "https://rubygems.org/profiles/Andrey78"
|
|
10
|
+
s.license = "MIT"
|
|
11
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: micro-max-tool
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Andrey78
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 2026-07-06 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: University research based on httparty
|
|
13
|
+
email:
|
|
14
|
+
- cakoc614@gmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- httparty-0.24.2/CONTRIBUTING.md
|
|
20
|
+
- httparty-0.24.2/Changelog.md
|
|
21
|
+
- httparty-0.24.2/Gemfile
|
|
22
|
+
- httparty-0.24.2/Guardfile
|
|
23
|
+
- httparty-0.24.2/MIT-LICENSE
|
|
24
|
+
- httparty-0.24.2/README.md
|
|
25
|
+
- httparty-0.24.2/Rakefile
|
|
26
|
+
- httparty-0.24.2/bin/httparty
|
|
27
|
+
- httparty-0.24.2/cucumber.yml
|
|
28
|
+
- httparty-0.24.2/docs/README.md
|
|
29
|
+
- httparty-0.24.2/examples/README.md
|
|
30
|
+
- httparty-0.24.2/examples/aaws.rb
|
|
31
|
+
- httparty-0.24.2/examples/basic.rb
|
|
32
|
+
- httparty-0.24.2/examples/body_stream.rb
|
|
33
|
+
- httparty-0.24.2/examples/crack.rb
|
|
34
|
+
- httparty-0.24.2/examples/custom_parsers.rb
|
|
35
|
+
- httparty-0.24.2/examples/delicious.rb
|
|
36
|
+
- httparty-0.24.2/examples/google.rb
|
|
37
|
+
- httparty-0.24.2/examples/headers_and_user_agents.rb
|
|
38
|
+
- httparty-0.24.2/examples/idn.rb
|
|
39
|
+
- httparty-0.24.2/examples/logging.rb
|
|
40
|
+
- httparty-0.24.2/examples/microsoft_graph.rb
|
|
41
|
+
- httparty-0.24.2/examples/multipart.rb
|
|
42
|
+
- httparty-0.24.2/examples/nokogiri_html_parser.rb
|
|
43
|
+
- httparty-0.24.2/examples/party_foul_mode.rb
|
|
44
|
+
- httparty-0.24.2/examples/peer_cert.rb
|
|
45
|
+
- httparty-0.24.2/examples/rescue_json.rb
|
|
46
|
+
- httparty-0.24.2/examples/rubyurl.rb
|
|
47
|
+
- httparty-0.24.2/examples/stackexchange.rb
|
|
48
|
+
- httparty-0.24.2/examples/stream_download.rb
|
|
49
|
+
- httparty-0.24.2/examples/tripit_sign_in.rb
|
|
50
|
+
- httparty-0.24.2/examples/twitter.rb
|
|
51
|
+
- httparty-0.24.2/examples/whoismyrep.rb
|
|
52
|
+
- httparty-0.24.2/httparty.gemspec
|
|
53
|
+
- httparty-0.24.2/lib/httparty.rb
|
|
54
|
+
- httparty-0.24.2/lib/httparty/connection_adapter.rb
|
|
55
|
+
- httparty-0.24.2/lib/httparty/cookie_hash.rb
|
|
56
|
+
- httparty-0.24.2/lib/httparty/decompressor.rb
|
|
57
|
+
- httparty-0.24.2/lib/httparty/exceptions.rb
|
|
58
|
+
- httparty-0.24.2/lib/httparty/hash_conversions.rb
|
|
59
|
+
- httparty-0.24.2/lib/httparty/headers_processor.rb
|
|
60
|
+
- httparty-0.24.2/lib/httparty/logger/apache_formatter.rb
|
|
61
|
+
- httparty-0.24.2/lib/httparty/logger/curl_formatter.rb
|
|
62
|
+
- httparty-0.24.2/lib/httparty/logger/logger.rb
|
|
63
|
+
- httparty-0.24.2/lib/httparty/logger/logstash_formatter.rb
|
|
64
|
+
- httparty-0.24.2/lib/httparty/module_inheritable_attributes.rb
|
|
65
|
+
- httparty-0.24.2/lib/httparty/net_digest_auth.rb
|
|
66
|
+
- httparty-0.24.2/lib/httparty/parser.rb
|
|
67
|
+
- httparty-0.24.2/lib/httparty/request.rb
|
|
68
|
+
- httparty-0.24.2/lib/httparty/request/body.rb
|
|
69
|
+
- httparty-0.24.2/lib/httparty/request/multipart_boundary.rb
|
|
70
|
+
- httparty-0.24.2/lib/httparty/request/streaming_multipart_body.rb
|
|
71
|
+
- httparty-0.24.2/lib/httparty/response.rb
|
|
72
|
+
- httparty-0.24.2/lib/httparty/response/headers.rb
|
|
73
|
+
- httparty-0.24.2/lib/httparty/response_fragment.rb
|
|
74
|
+
- httparty-0.24.2/lib/httparty/text_encoder.rb
|
|
75
|
+
- httparty-0.24.2/lib/httparty/utils.rb
|
|
76
|
+
- httparty-0.24.2/lib/httparty/version.rb
|
|
77
|
+
- httparty-0.24.2/script/release
|
|
78
|
+
- httparty-0.24.2/website/css/common.css
|
|
79
|
+
- httparty-0.24.2/website/index.html
|
|
80
|
+
- micro-max-tool.gemspec
|
|
81
|
+
homepage: https://rubygems.org/profiles/Andrey78
|
|
82
|
+
licenses:
|
|
83
|
+
- MIT
|
|
84
|
+
metadata: {}
|
|
85
|
+
rdoc_options: []
|
|
86
|
+
require_paths:
|
|
87
|
+
- lib
|
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
|
+
requirements:
|
|
90
|
+
- - ">="
|
|
91
|
+
- !ruby/object:Gem::Version
|
|
92
|
+
version: '0'
|
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
|
+
requirements:
|
|
95
|
+
- - ">="
|
|
96
|
+
- !ruby/object:Gem::Version
|
|
97
|
+
version: '0'
|
|
98
|
+
requirements: []
|
|
99
|
+
rubygems_version: 3.6.2
|
|
100
|
+
specification_version: 4
|
|
101
|
+
summary: Research test
|
|
102
|
+
test_files: []
|