mechanize_clip 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module MechanizeClip
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -72,7 +72,11 @@ module MechanizeClip
72
72
  end
73
73
 
74
74
  def from_raw request, filename_param = 'qqfile'
75
- RawTmpFile.new request, filename_param
75
+ if request.params[filename_param].respond_to?(:original_filename)
76
+ request.params[filename_param]
77
+ else
78
+ RawTmpFile.new request, "_#{filename_param}"
79
+ end
76
80
  end
77
81
 
78
82
  module_function :get
@@ -17,4 +17,5 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.add_dependency "mechanize", ">= 2.2.0"
19
19
  gem.add_development_dependency "rspec", ">= 2.8"
20
+ gem.add_development_dependency "rake"
20
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mechanize_clip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-01 00:00:00.000000000 Z
12
+ date: 2012-06-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mechanize
16
- requirement: &70253091346040 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: 2.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70253091346040
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 2.2.0
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rspec
27
- requirement: &70253091345540 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,7 +37,28 @@ dependencies:
32
37
  version: '2.8'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70253091345540
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '2.8'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
36
62
  description: Downloads files to temp files with Mechanize gem
37
63
  email:
38
64
  - yury.korolev@gmail.com
@@ -62,15 +88,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
88
  - - ! '>='
63
89
  - !ruby/object:Gem::Version
64
90
  version: '0'
91
+ segments:
92
+ - 0
93
+ hash: 968776923993836613
65
94
  required_rubygems_version: !ruby/object:Gem::Requirement
66
95
  none: false
67
96
  requirements:
68
97
  - - ! '>='
69
98
  - !ruby/object:Gem::Version
70
99
  version: '0'
100
+ segments:
101
+ - 0
102
+ hash: 968776923993836613
71
103
  requirements: []
72
104
  rubyforge_project:
73
- rubygems_version: 1.8.17
105
+ rubygems_version: 1.8.22
74
106
  signing_key:
75
107
  specification_version: 3
76
108
  summary: Mechanize url fetcher for paperclip