darkhelmet-darkext 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/VERSION.yml +1 -1
  3. data/lib/darkext/net.rb +2 -1
  4. metadata +1 -1
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.9.3 2009-2-27
2
+
3
+ * Download open/write any file if not HTTPOK
4
+
1
5
  == 0.9.2 2009-2-27
2
6
 
3
7
  * Few fixes
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 9
3
- :patch: 2
3
+ :patch: 3
4
4
  :major: 0
data/lib/darkext/net.rb CHANGED
@@ -11,6 +11,7 @@ module Net
11
11
  else
12
12
  path = File.expand_path(path)
13
13
  end
14
- open(path,'w') { |file| file.write(download(url)) }
14
+ resp = download(url)
15
+ open(path,'w') { |file| file.write(resp) } if resp.to_s.include?('HTTPOK')
15
16
  end
16
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: darkhelmet-darkext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Huckstep