orange 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,7 +51,9 @@ module Orange
51
51
  end
52
52
  # Move the files
53
53
  FileUtils.cp(file.path, file_path)
54
+ FileUtils.chmod(0644, file_path)
54
55
  FileUtils.cp(secondary.path, secondary_path) if secondary_path
56
+ FileUtils.chmod(0644, secondary_path) if secondary_path
55
57
 
56
58
  params['path'] = params['file'][:filename] if file_path
57
59
  params['secondary_path'] = params['file2'][:filename] if secondary_path
@@ -28,7 +28,7 @@ module Orange
28
28
  params = packet.request.params
29
29
  route = params.delete('r')
30
30
  params['donation_amount'] = params['donation_amount'].sub(/\$/, '')
31
- if params['donor_phone'] == '' && packet.request.post? && params['donation_amount'] != '' && params['donation_amount'].to_f >= 0
31
+ if params['donor_phone'] == '' && packet.request.post? && params['donation_amount'] != '' && params['donation_amount'].to_f > 0
32
32
  template = "paypal_form"
33
33
  params.delete('donor_phone')
34
34
  obj = self.new(packet, {:no_reroute => true, :params => params})
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - David Haslem
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-07 00:00:00 -04:00
17
+ date: 2010-06-11 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency