mtbb 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/mtbb.rb +2 -2
  2. data/lib/mtbb/version.rb +1 -1
  3. metadata +2 -8
data/lib/mtbb.rb CHANGED
@@ -38,7 +38,7 @@ rescue LoadError
38
38
  end
39
39
 
40
40
  module Mtbb
41
- VERSION = '0.1.0' unless defined?(VERSION)
41
+ VERSION = '0.1.1' unless defined?(VERSION)
42
42
 
43
43
  YELLOW = "\033\[33m"
44
44
  RESET = "\033\[0m"
@@ -266,7 +266,7 @@ module Mtbb
266
266
 
267
267
  def post_request(options = {})
268
268
  request = Net::HTTP::Post.new(options[:path] || '/')
269
- request.content_type = 'application/x-www-form-urlencoded'
269
+ request.content_type = options[:content_type] || 'application/x-www-form-urlencoded'
270
270
  request.body = options.fetch(:body)
271
271
  perform_request(request, options.fetch(:port))
272
272
  end
data/lib/mtbb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mtbb
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mtbb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-25 00:00:00.000000000 Z
12
+ date: 2013-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -111,18 +111,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
111
  - - ! '>='
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
- segments:
115
- - 0
116
- hash: 4294838388783584232
117
114
  required_rubygems_version: !ruby/object:Gem::Requirement
118
115
  none: false
119
116
  requirements:
120
117
  - - ! '>='
121
118
  - !ruby/object:Gem::Version
122
119
  version: '0'
123
- segments:
124
- - 0
125
- hash: 4294838388783584232
126
120
  requirements: []
127
121
  rubyforge_project:
128
122
  rubygems_version: 1.8.23