uricp 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,6 +23,10 @@ module Uricp::Strategy
23
23
  if options['target-format']
24
24
  @proposed_options['source-format'] =
25
25
  options['from_uri'].open(headers) { |u| encoding(u) }
26
+ if @proposed_options['source-format'] == @proposed_options['target-format']
27
+ @proposed_options.delete('source-format')
28
+ @proposed_options.delete('target-format')
29
+ end
26
30
  end
27
31
  self
28
32
  end
data/lib/uricp/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Uricp
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  DEFAULT_SEGMENT_SIZE = "5 GiB"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uricp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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: 2015-01-21 00:00:00.000000000 Z
12
+ date: 2015-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -234,7 +234,6 @@ files:
234
234
  - lib/uricp/strategy/piped_local_get.rb
235
235
  - lib/uricp/strategy/piped_local_put.rb
236
236
  - lib/uricp/strategy/piped_remote_get.rb
237
- - lib/uricp/strategy/pruner.rb
238
237
  - lib/uricp/strategy/remote_put.rb
239
238
  - lib/uricp/strategy/segmented_remote_put.rb
240
239
  - lib/uricp/strategy/sweeper.rb
@@ -1,22 +0,0 @@
1
- module Uricp::Strategy
2
-
3
- class Pruner
4
-
5
- include Uricp::Strategy::Common
6
-
7
- def appropriate?
8
- if conversion_required? && options['source-format']
9
- unsupported_conversion
10
- end
11
- debug "#{self.class.name}: no dead ends to prune"
12
- false
13
- end
14
-
15
- def unsupported_conversion
16
- raise Uricp::UnsupportedConversion,
17
- "Unsupported source conversion to #{options['target-format'].to_s}"
18
- end
19
-
20
- end
21
-
22
- end