attached 0.0.3 → 0.0.4

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.
Files changed (3) hide show
  1. data/Gemfile +1 -1
  2. data/lib/attached/attachment.rb +2 -2
  3. metadata +3 -3
data/Gemfile CHANGED
@@ -2,6 +2,6 @@ source 'http://rubygems.org'
2
2
 
3
3
  gem 'rails'
4
4
 
5
- gem 'uuid'
5
+ gem 'guid'
6
6
 
7
7
  gem 'aws-s3', :require => 'aws/s3'
@@ -1,4 +1,4 @@
1
- require 'uuid'
1
+ require 'guid'
2
2
 
3
3
  require 'attached/storage'
4
4
 
@@ -47,7 +47,7 @@ module Attached
47
47
  #
48
48
  # @object.avatar.assign(...)
49
49
 
50
- def assign(file, identifier = UUID.generate)
50
+ def assign(file, identifier = Guid.new)
51
51
  @file = file.tempfile
52
52
 
53
53
  extension = File.extname(file.original_filename)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kevin Sylvestre
@@ -18,7 +18,7 @@ date: 2010-12-07 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: uuid
21
+ name: guid
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
24
  none: false