paperclip-nginx-upload 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Paperclip Nginx Upload
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/paperclip-nginx-upload.png)](http://badge.fury.io/rb/paperclip-nginx-upload)
3
4
  [![Build Status](https://travis-ci.org/tf/paperclip-nginx-upload.png?branch=master)](https://travis-ci.org/tf/paperclip-nginx-upload)
4
5
 
5
6
  A Paperclip IOAdapter to handle file upload requests which have been
@@ -8,7 +9,6 @@ rewritten by the
8
9
 
9
10
  The gem evolved out of the discussion in the following paperclip
10
11
  issue:
11
-
12
12
  https://github.com/thoughtbot/paperclip/issues/1396
13
13
 
14
14
  ## Motivation
@@ -12,6 +12,11 @@ module Paperclip
12
12
  end
13
13
 
14
14
  class IOAdapter < Paperclip::AbstractAdapter
15
+ # Paperclip < 3.3.1 compatibility
16
+ unless Paperclip::AbstractAdapter.instance_methods.include?(:original_filename=)
17
+ attr_writer(:original_filename)
18
+ end
19
+
15
20
  def initialize(target, options = {})
16
21
  @target = target
17
22
  @options = self.class.default_options.merge(options)
@@ -1,7 +1,7 @@
1
1
  module Paperclip
2
2
  module Nginx
3
3
  module Upload
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-nginx-upload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-21 00:00:00.000000000 Z
12
+ date: 2014-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: paperclip
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: 1774978758898476396
115
+ hash: -4449480306238587223
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  segments:
123
123
  - 0
124
- hash: 1774978758898476396
124
+ hash: -4449480306238587223
125
125
  requirements: []
126
126
  rubyforge_project:
127
127
  rubygems_version: 1.8.25