path-to 0.0.1 → 0.0.2
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.
- data/History.txt +5 -0
- data/Manifest.txt +1 -0
- data/lib/path-to.rb +2 -1
- data/lib/path-to/http_client.rb +14 -0
- metadata +2 -1
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/lib/path-to.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
require "httparty"
|
2
|
+
|
3
|
+
module PathTo
|
4
|
+
#
|
5
|
+
# path-to's default HTTPClient. Any Object (ours just happens to be a Class that includes HTTParty) that provides get, put, post and
|
6
|
+
# delete for a String path and optional additional parameters will do.
|
7
|
+
#
|
8
|
+
# If you only need one such object, simply pass it in as a parameter when constructing your Application object. Override
|
9
|
+
# Path#http_client if you need more control than that.
|
10
|
+
#
|
11
|
+
class HTTPClient
|
12
|
+
include HTTParty
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: path-to
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Burrows (asplake)
|
@@ -75,6 +75,7 @@ files:
|
|
75
75
|
- Rakefile
|
76
76
|
- lib/path-to.rb
|
77
77
|
- lib/path-to/application.rb
|
78
|
+
- lib/path-to/http_client.rb
|
78
79
|
- lib/path-to/path.rb
|
79
80
|
- lib/path-to/with_params.rb
|
80
81
|
- script/console
|