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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f679f5471b494a363b6ad8b63abe134ab56169e0
4
- data.tar.gz: 16e5bddb9fabf32fe9f494025aa1d9ec052f9421
3
+ metadata.gz: 3e466fa10768e501d79f3b6239d45b22d2e5a076
4
+ data.tar.gz: 72fde21f3ab21c60720fab09cfc7548de18bfd1e
5
5
  SHA512:
6
- metadata.gz: ce1fb089fa71ad9f0ac5ba3a2841de04510c1a9241a99a404be6886a62a1574a594c3fb07efe629e66528d8fdb92b973e67f1f6db4328506cebd6fbec108ba8b
7
- data.tar.gz: e53fb3a2d1da7c4cd64ab58ca10f4fa39f3167da1a10c7273f36e8ba65e3b142c2df8e29095d06cef1d54d4de2e95be83e9f6f86d52ad1dd5ebbc91e274b85ba
6
+ metadata.gz: d0243d1ce6216d43b2449ac5d4e6296ee82d291c32501a1f3b0540b41d1906f9795a58ef1383df52b2fae6e14086debbc0368724a1b6c7a6e487e5f0cc17b709
7
+ data.tar.gz: f18f63bd5c9e1b2f0e0fc3609eaced84d22efb4689267d27f9ff944c3ec168e90e477b86cef9f953e6e068435e030dc23bcc8d38b8a155be663e1b5aa62437d4
data/.travis.yml CHANGED
@@ -5,4 +5,5 @@ rvm:
5
5
  - "1.9.3"
6
6
  - "2.0.0"
7
7
  - "jruby"
8
+ - "rbx-2"
8
9
  script: bundle exec rspec spec
data/Gemfile CHANGED
@@ -1,3 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
3
  gem 'pry', :group => :development
4
+ if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' && RUBY_VERSION >= '2.0'
5
+ gem "rubysl", "~> 2.0", :group => :development
6
+ end
data/History.md CHANGED
@@ -1,3 +1,10 @@
1
+ 1.0.2 (2013-12-20)
2
+ ===================
3
+ Fixes
4
+ -----
5
+ - more secure generation of secret in rails generator
6
+ - ensure popen3 doesn't hang
7
+
1
8
  1.0.1 (2013-11-28)
2
9
  ===================
3
10
  Changes
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
- Dragonfly has changed somewhat since version 0.9 - if for whatever reason you can't upgrade, then
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.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 and jruby 1.7.8.
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
- Please check the documentation at <http://markevans.github.io/dragonfly/>.
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
- DEPRECATED: dragonfly/rails/images is now deprecated.
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 =~ /^storage_(.*)$/
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Dragonfly
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -8,7 +8,7 @@ class DragonflyGenerator < Rails::Generators::Base
8
8
  private
9
9
 
10
10
  def generate_secret
11
- rand(1e32).to_s(36)
11
+ SecureRandom.hex(32)
12
12
  end
13
13
 
14
14
  if RUBY_VERSION > "1.9"
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.1
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-28 00:00:00.000000000 Z
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
- Please check the documentation at <http://markevans.github.io/dragonfly/>.
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
- DEPRECATED: dragonfly/rails/images is now deprecated.
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