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.
@@ -1,3 +1,8 @@
1
+ == 0.0.2 2009-04-18
2
+
3
+ * Minor bugfix:
4
+ * lib/path-to/http_client.rb missing from manifest
5
+
1
6
  == 0.0.1 2009-04-04
2
7
 
3
8
  * 1 major enhancement:
@@ -6,6 +6,7 @@ README.rdoc
6
6
  Rakefile
7
7
  lib/path-to.rb
8
8
  lib/path-to/application.rb
9
+ lib/path-to/http_client.rb
9
10
  lib/path-to/path.rb
10
11
  lib/path-to/with_params.rb
11
12
  script/console
@@ -1,6 +1,7 @@
1
1
  module PathTo
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
4
4
 
5
+ $:.push File.dirname(__FILE__)
5
6
  require "path-to/application"
6
7
  require "path-to/path"
@@ -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.1
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