cake 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/cake +9 -0
  2. data/lib/bake.jar +0 -0
  3. data/lib/cake.jar +0 -0
  4. metadata +4 -4
data/bin/cake CHANGED
@@ -47,6 +47,15 @@ else
47
47
  end
48
48
  end
49
49
 
50
+ module OpenURI
51
+ REDIRECTABLE = ['http', 'ftp', 'https']
52
+ def self.redirectable?(uri1, uri2)
53
+ scheme1 = uri1.scheme.downcase
54
+ scheme2 = uri2.scheme.downcase
55
+ scheme1 == scheme2 or (REDIRECTABLE.include?(scheme1) and REDIRECTABLE.include?(scheme2))
56
+ end
57
+ end
58
+
50
59
  class IO
51
60
  def gets_nonblock(delim = "\n")
52
61
  line = ""
Binary file
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cake
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 4
10
- version: 0.5.4
9
+ - 5
10
+ version: 0.5.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Balthrop
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-21 00:00:00 -07:00
19
+ date: 2010-11-07 00:00:00 -07:00
20
20
  default_executable: cake
21
21
  dependencies: []
22
22