ridley 0.0.3 → 0.0.4

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.
@@ -75,7 +75,11 @@ module Ridley
75
75
  }
76
76
  contents = File.open(path, 'rb') { |f| f.read }
77
77
 
78
- Faraday.put(checksum[:url], contents, headers)
78
+ if connection.hosted?
79
+ Faraday.put(checksum[:url], contents, headers)
80
+ else
81
+ connection.put(URI(checksum[:url]).path, contents, headers)
82
+ end
79
83
  end
80
84
 
81
85
  def commit
@@ -1,3 +1,3 @@
1
1
  module Ridley
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridley
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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: 2012-09-16 00:00:00.000000000 Z
12
+ date: 2012-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yajl-ruby
@@ -418,7 +418,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
418
418
  version: '0'
419
419
  segments:
420
420
  - 0
421
- hash: -1393828720209258724
421
+ hash: -2069225012835502679
422
422
  requirements: []
423
423
  rubyforge_project:
424
424
  rubygems_version: 1.8.23