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.
Files changed (5) hide show
  1. checksums.yaml +8 -8
  2. data/VERSION +1 -1
  3. data/lib/mudbug.rb +2 -1
  4. data/rakefile.rb +9 -8
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODU1YmNjZGVkYjY0MDQ3MmYyMmRkOTBiMDBmNmM2ZDllOGY4ODg3Yg==
4
+ YmI3NzE0NGE5MmVjZGQ5NDgwNzRmZmZjOTdkNjVmMGQ1NGJjYmRkZQ==
5
5
  data.tar.gz: !binary |-
6
- N2RhYWNmNWE0ZjU5NTRmZWIyZTA5MTQ4OGQzYjQwMTdlMDdiMDIyNA==
6
+ MDQ5NGFhZTVkZTEyMzU4NjVjY2Y3NjI0YjAyNjEzNDEyNDdhNzdhMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjdlYmQ5YmYyNzNhZmVlNTQ1NmU5YWQwZmMzMTBjNWM5OGNhZDg5MGNiNDg2
10
- NmJlNGUwYmNkNThhMWZhNjNmMTIwNWIwODViOThhNGI1OGQ1ODNlZmI5MDFl
11
- NjM1NjM4ZDJlNzE0NmM2YTM1ZTc0MDFjOTIxN2IxM2Y3OGVkNGE=
9
+ MTAwMzFjZThlNWFkMTczNzM5YTFhMDQ2M2UxNzg3ZGU3OGE5MjYxMjYyYTNl
10
+ ZDIwMGU3MmNhMGQzOWFlNWY4NzdmMDBmZTFhNWZiZjM2YmRiNDk3NWI2OTI1
11
+ OWFhNDJlNWQwNGQwYjAyNTdhMDJmN2E1NjdiMTkzMmIwNDgzODc=
12
12
  data.tar.gz: !binary |-
13
- MWZlYmYyZWRhNDdlMzQ1ZTQ2ODhlNWJmMzBkMmUzNjNjY2UzNGNiYTgyNGY1
14
- NTZlNWNjZDVjZThlMTBiYjRlOGM1ZWNkMmQwMzI3YTBjMjdiZTUzZWExMjA3
15
- YjUwNjA4YTk5NzFiYWIxYjFlMzFkMTZkMDU0NjRkOWY4NzIxNzE=
13
+ MjMyZTljZTNjMzMzM2M3YzhhNThiYjhmNDM1MTM0NTY2ZWMzZGY2N2NjMWVh
14
+ YjM3N2QyYjYxOTMyNDcyY2JiMTBhYTY5MTlmOWE3NDBmMGE1OTUzZjM5ZjMx
15
+ ZTJmMzMyMTI3MGYwMDc3NzlhMTczM2Y0ZDhlOTI2YzYxYWFkNDc=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2.1
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.heads[:accept])
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/tasks'
1
+ require 'buildar'
2
2
  require 'rake/testtask'
3
3
 
4
- Buildar.conf(__FILE__) do |b|
5
- b.name = 'mudbug'
6
- b.use_gemspec_file = true
7
- b.use_version_file = true
8
- b.version_filename = 'VERSION'
9
- b.use_git = true
10
- b.publish[:rubygems] = true
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.5.2.1
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 00:00:00.000000000 Z
11
+ date: 2013-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client