almodovar 1.0.0.pre → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9c558a41b4f44342111b462d222add5f75a1554
4
- data.tar.gz: c3dfc2635e36cb5383fe5b800ceafcb0287f899e
3
+ metadata.gz: d1da71a55c33749a41d7985ff3782fb45a03720f
4
+ data.tar.gz: b2f94fa8c47bcc157e1f4e3279fc6aadeb51737c
5
5
  SHA512:
6
- metadata.gz: c76748a94c90c083ced281b7b3c18ba2f514954c76d9fd613aedffeca966e833a7eb7e8c03610ae8bb61f4f88c2a1ae270ac4d6278051092ef60e1a660bf3fac
7
- data.tar.gz: a46d9ce4a65c8e7156bc03c6d4fafeeaec5f55de7eff3d77a17bcc7d5d4cc510cabacdd942990370e888f25be1346282fcf458b8a91700a7ce587461f64c8feb
6
+ metadata.gz: 4dc9c6698119b36325344e0248d7c8a048c9a2bb7b8ff10cba7a43dc936f868980feb8c88e20a6739ad96c773ba7eb4e1647cc326f653d7b151a0e9887b45ac3
7
+ data.tar.gz: 6b6978d1ff0e9fe31ae11aa8a17eeb1c350b2c2b7ab89229566e29edec47fad7ef5cccbd1a69034ec3f382b83f7b23f51c52fcc72acae1f184cc2376a3d24549
@@ -41,7 +41,7 @@ module Almodovar
41
41
  private
42
42
 
43
43
  def merge_headers(headers)
44
- headers.merge(headers)
44
+ (self.headers ||= {}).merge(headers)
45
45
  end
46
46
 
47
47
  def requires_auth?
@@ -15,7 +15,7 @@ module Almodovar
15
15
  def update(attrs = {})
16
16
  raise ArgumentError.new("You must specify one only root element which is the type of resource (e.g. `:project => { :name => 'Wadus' }` instead of just `:name => 'Wadus'`)") if attrs.size > 1
17
17
  root, body = attrs.first
18
- response = http.put(@url, body.to_xml(:root => root), :content_type => "application/xml")
18
+ response = http.put(@url, body.to_xml(:root => root), "Content-Type" => "application/xml")
19
19
  check_errors(response, @url)
20
20
  @xml = Nokogiri::XML.parse(response.body).root
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module Almodovar
2
- VERSION = '1.0.0.pre'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: almodovar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BeBanjo S.L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-11 00:00:00.000000000 Z
11
+ date: 2014-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -129,9 +129,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  requirements:
132
- - - '>'
132
+ - - '>='
133
133
  - !ruby/object:Gem::Version
134
- version: 1.3.1
134
+ version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
137
  rubygems_version: 2.0.6