mudbug 0.5.2.1 → 0.6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/lib/mudbug.rb +2 -1
- data/rakefile.rb +9 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmI3NzE0NGE5MmVjZGQ5NDgwNzRmZmZjOTdkNjVmMGQ1NGJjYmRkZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDQ5NGFhZTVkZTEyMzU4NjVjY2Y3NjI0YjAyNjEzNDEyNDdhNzdhMw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTAwMzFjZThlNWFkMTczNzM5YTFhMDQ2M2UxNzg3ZGU3OGE5MjYxMjYyYTNl
|
10
|
+
ZDIwMGU3MmNhMGQzOWFlNWY4NzdmMDBmZTFhNWZiZjM2YmRiNDk3NWI2OTI1
|
11
|
+
OWFhNDJlNWQwNGQwYjAyNTdhMDJmN2E1NjdiMTkzMmIwNDgzODc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjMyZTljZTNjMzMzM2M3YzhhNThiYjhmNDM1MTM0NTY2ZWMzZGY2N2NjMWVh
|
14
|
+
YjM3N2QyYjYxOTMyNDcyY2JiMTBhYTY5MTlmOWE3NDBmMGE1OTUzZjM5ZjMx
|
15
|
+
ZTJmMzMyMTI3MGYwMDc3NzlhMTczM2Y0ZDhlOTI2YzYxYWFkNDc=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.6.0.1
|
data/lib/mudbug.rb
CHANGED
@@ -128,9 +128,10 @@ class Mudbug
|
|
128
128
|
#
|
129
129
|
[:post, :put].each { |meth|
|
130
130
|
define_method(meth) { |path, payload, options={}|
|
131
|
+
options[:content_type] ||= CONTENT[:json][:type]
|
131
132
|
payload = payload.to_json unless payload.is_a?(String)
|
132
133
|
res = resource(path, options)
|
133
|
-
self.class.process(res.send(meth, payload), res.
|
134
|
+
self.class.process(res.send(meth, payload), res.headers[:accept])
|
134
135
|
}
|
135
136
|
}
|
136
137
|
end
|
data/rakefile.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
require 'buildar
|
1
|
+
require 'buildar'
|
2
2
|
require 'rake/testtask'
|
3
3
|
|
4
|
-
Buildar.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
Buildar.new do |b|
|
5
|
+
b.gemspec_file = 'mudbug.gemspec'
|
6
|
+
b.version_file = 'VERSION'
|
7
|
+
b.use_git = true
|
8
|
+
end
|
9
|
+
|
10
|
+
Rake::TestTask.new :test do |t|
|
11
|
+
t.pattern = 'test/*.rb'
|
11
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mudbug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rick Hull
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|