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.
- data/lib/mechanize_clip/version.rb +1 -1
- data/lib/mechanize_clip.rb +5 -1
- data/mechanize_clip.gemspec +1 -0
- metadata +39 -7
data/lib/mechanize_clip.rb
CHANGED
@@ -72,7 +72,11 @@ module MechanizeClip
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def from_raw request, filename_param = 'qqfile'
|
75
|
-
|
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
|
data/mechanize_clip.gemspec
CHANGED
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.
|
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-
|
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:
|
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:
|
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:
|
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:
|
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.
|
105
|
+
rubygems_version: 1.8.22
|
74
106
|
signing_key:
|
75
107
|
specification_version: 3
|
76
108
|
summary: Mechanize url fetcher for paperclip
|