mudbug 0.4.6.2 → 0.4.6.3
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/README.md +11 -0
- data/VERSION +1 -1
- data/rakefile.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -11,10 +11,21 @@ Features
|
|
11
11
|
* Understand and fall back to basic Content-types if application/json is not provided
|
12
12
|
* Fine-grained response handling using Mudbug#resource
|
13
13
|
|
14
|
+
Installation
|
15
|
+
------------
|
16
|
+
Install the gem:
|
17
|
+
|
18
|
+
$ gem install mudbug
|
19
|
+
|
20
|
+
Or, if using bundler, add to your Gemfile:
|
21
|
+
|
22
|
+
gem 'bateman'
|
23
|
+
|
14
24
|
Quick Start
|
15
25
|
-----------
|
16
26
|
Initialize it with a host:
|
17
27
|
|
28
|
+
require 'mudbug'
|
18
29
|
mb = Mudbug.new 'ip.jsontest.com'
|
19
30
|
|
20
31
|
The convenience methods *#get*, *#post*, *#put*, or *#delete* return the response body. If the response has a *Content-type:* **application/json** header, then JSON parsing will be automatically performed on the response body, with the resulting object returned.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.6.
|
1
|
+
0.4.6.3
|
data/rakefile.rb
CHANGED
@@ -25,7 +25,7 @@ task :build do
|
|
25
25
|
spec = Gem::Specification.new do |s|
|
26
26
|
# Static assignments
|
27
27
|
s.name = "mudbug"
|
28
|
-
s.summary = "
|
28
|
+
s.summary = "This hardy creature consumes JSON / REST APIs"
|
29
29
|
s.description = <<EOF
|
30
30
|
GET, POST, PUT, and DELETE JSON payloads. Easy Accept headers. Fine-grained response handling using Mudbug#resource. A winning combination of guts, salad, sea legs, and torpor will propel our fair spaceship beyond the pale shadow of unspoken doubt that the inxorable result of our redoubled efforts will counfound any chance at snatching defeat from the jars of whiskey.
|
31
31
|
EOF
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mudbug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.6.
|
4
|
+
version: 0.4.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -119,5 +119,5 @@ rubyforge_project:
|
|
119
119
|
rubygems_version: 1.8.23
|
120
120
|
signing_key:
|
121
121
|
specification_version: 3
|
122
|
-
summary:
|
122
|
+
summary: This hardy creature consumes JSON / REST APIs
|
123
123
|
test_files: []
|