bazuro 0.2.35 → 0.3.0

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.
Files changed (4) hide show
  1. data/Gemfile +1 -0
  2. data/lib/bazuro.rb +12 -8
  3. data/lib/bazuro/version.rb +1 -1
  4. metadata +2 -2
data/Gemfile CHANGED
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in bazuro.gemspec
4
+ gem 'rest-client'
4
5
  gemspec
5
6
 
@@ -19,14 +19,18 @@ module Bazuro
19
19
  end
20
20
 
21
21
  def request
22
- response = RestClient::Request.new(
23
- :method => :post,
24
- :url => Bazuro.config["remote"]["url"],
25
- :user => Bazuro.config["remote"]["username"],
26
- :password => Bazuro.config["username"]["password"],
27
- #:headers => { :accept => "",
28
- # :content_type => :json }
29
- ).execute
22
+ RestClient::Request.new(
23
+ :method => :post,
24
+ :url => Bazuro.config["remote"]["url"],
25
+ :user => Bazuro.config["remote"]["username"],
26
+ :password => Bazuro.config["username"]["password"],
27
+ :payload => {
28
+ :multipart => true,
29
+ :file => File.new(@pdf, 'rb')
30
+ }
31
+ #:headers => { :accept => "",
32
+ # :content_type => :json }
33
+ ).execute
30
34
  end
31
35
 
32
36
  def test
@@ -1,3 +1,3 @@
1
1
  module Bazuro
2
- VERSION = "0.2.35"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bazuro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.35
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-03 00:00:00.000000000 Z
13
+ date: 2015-06-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler