dragonfly 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of dragonfly might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Gemfile +3 -0
- data/History.md +7 -0
- data/README.md +10 -3
- data/dragonfly.gemspec +5 -6
- data/lib/dragonfly/model/attachment_class_methods.rb +2 -2
- data/lib/dragonfly/shell.rb +1 -0
- data/lib/dragonfly/version.rb +1 -1
- data/lib/rails/generators/dragonfly/dragonfly_generator.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e466fa10768e501d79f3b6239d45b22d2e5a076
|
4
|
+
data.tar.gz: 72fde21f3ab21c60720fab09cfc7548de18bfd1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0243d1ce6216d43b2449ac5d4e6296ee82d291c32501a1f3b0540b41d1906f9795a58ef1383df52b2fae6e14086debbc0368724a1b6c7a6e487e5f0cc17b709
|
7
|
+
data.tar.gz: f18f63bd5c9e1b2f0e0fc3609eaced84d22efb4689267d27f9ff944c3ec168e90e477b86cef9f953e6e068435e030dc23bcc8d38b8a155be663e1b5aa62437d4
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/History.md
CHANGED
data/README.md
CHANGED
@@ -37,7 +37,14 @@ Documentation
|
|
37
37
|
|
38
38
|
<a href="http://rubydoc.info/github/markevans/dragonfly/frames">RDoc documentation is here</a>
|
39
39
|
|
40
|
-
|
40
|
+
Upgrading from v0.9 to v1.0
|
41
|
+
===========================
|
42
|
+
Dragonfly has changed somewhat since version 0.9.
|
43
|
+
See [the Upgrading wiki](http://github.com/markevans/dragonfly/wiki/Upgrading-from-0.9-to-1.0) for notes on changes, and feel free to add anything you come across while upgrading!
|
44
|
+
|
45
|
+
Changes are listed in [History.md](https://github.com/markevans/dragonfly/blob/master/History.md)
|
46
|
+
|
47
|
+
If for whatever reason you can't upgrade, then
|
41
48
|
<a href="http://markevans.github.io/dragonfly/v0.9.15">the docs for version 0.9.x are here</a>.
|
42
49
|
|
43
50
|
Installation
|
@@ -47,7 +54,7 @@ Installation
|
|
47
54
|
|
48
55
|
or in your Gemfile
|
49
56
|
```ruby
|
50
|
-
gem 'dragonfly', '~> 1.0.
|
57
|
+
gem 'dragonfly', '~> 1.0.2'
|
51
58
|
```
|
52
59
|
|
53
60
|
Require with
|
@@ -57,7 +64,7 @@ require 'dragonfly'
|
|
57
64
|
|
58
65
|
Ruby Versions
|
59
66
|
=============
|
60
|
-
Dragonfly has been tested with ruby versions 1.8.7, 1.9.2, 1.9.3, 2.0.0
|
67
|
+
Dragonfly has been tested with ruby versions 1.8.7, 1.9.2, 1.9.3, 2.0.0, jruby 1.7.8 and rubinius 2.2.
|
61
68
|
|
62
69
|
Plugins / add-ons
|
63
70
|
=================
|
data/dragonfly.gemspec
CHANGED
@@ -37,13 +37,12 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.post_install_message =<<-POST_INSTALL_MESSAGE
|
38
38
|
================================================================================
|
39
39
|
|
40
|
-
|
40
|
+
You've installed Dragonfly hooray!!
|
41
41
|
|
42
|
-
|
42
|
+
Quite a few things have changed since version 0.9.
|
43
|
+
Please check the documentation at <http://markevans.github.io/dragonfly>
|
44
|
+
and see upgrade notes at <https://github.com/markevans/dragonfly/wiki/Upgrading-from-0.9-to-1.0> if upgrading.
|
43
45
|
|
44
|
-
|
45
|
-
Please refer to <http://markevans.github.io/dragonfly/rails/> for instructions to setup
|
46
|
-
with Rails
|
47
|
-
--------------------------------------------------------------------------------
|
46
|
+
================================================================================
|
48
47
|
POST_INSTALL_MESSAGE
|
49
48
|
end
|
@@ -46,8 +46,8 @@ module Dragonfly
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def method_missing(meth, *args, &block)
|
49
|
-
if meth.to_s
|
50
|
-
raise NoMethodError, "#{meth} is deprecated - use storage_options instead"
|
49
|
+
if key = meth.to_s[/^storage_(.*)$/, 1]
|
50
|
+
raise NoMethodError, "#{meth} is deprecated - use storage_options{|a| {#{key}: ...} } instead"
|
51
51
|
else
|
52
52
|
super
|
53
53
|
end
|
data/lib/dragonfly/shell.rb
CHANGED
@@ -44,6 +44,7 @@ module Dragonfly
|
|
44
44
|
|
45
45
|
def run_command(command)
|
46
46
|
Open3.popen3 command do |stdin, stdout, stderr, wait_thread|
|
47
|
+
stdin.close_write # make sure it doesn't hang
|
47
48
|
status = wait_thread.value
|
48
49
|
raise CommandFailed, "Command failed (#{command}) with exit status #{status.exitstatus} and stderr #{stderr.read}" unless status.success?
|
49
50
|
stdout.read
|
data/lib/dragonfly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dragonfly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -228,14 +228,13 @@ metadata: {}
|
|
228
228
|
post_install_message: |
|
229
229
|
================================================================================
|
230
230
|
|
231
|
-
|
231
|
+
You've installed Dragonfly hooray!!
|
232
232
|
|
233
|
-
|
233
|
+
Quite a few things have changed since version 0.9.
|
234
|
+
Please check the documentation at <http://markevans.github.io/dragonfly>
|
235
|
+
and see upgrade notes at <https://github.com/markevans/dragonfly/wiki/Upgrading-from-0.9-to-1.0> if upgrading.
|
234
236
|
|
235
|
-
|
236
|
-
Please refer to <http://markevans.github.io/dragonfly/rails/> for instructions to setup
|
237
|
-
with Rails
|
238
|
-
--------------------------------------------------------------------------------
|
237
|
+
================================================================================
|
239
238
|
rdoc_options: []
|
240
239
|
require_paths:
|
241
240
|
- lib
|