uploadbox 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb8325da363b172165f1fd097920d9c7d641923c
4
- data.tar.gz: 6fa144a14fd4edb581c7df6447484c46d5d3207f
3
+ metadata.gz: 62eaeadebe7535bad0f7073a427adae552ca5f71
4
+ data.tar.gz: 2f60ac42239cde465eb8af3b4b93aa10d9e38df6
5
5
  SHA512:
6
- metadata.gz: 5503fd947ce1b6baea9f0ef4002dbc4f7ebe3ea9b57d0c814cd95cf631820649f066d41fe37a8ce0cc1ac362c58c4210bc8b9228a318a945bc9727a25680534b
7
- data.tar.gz: 9bf63d8b3d97897bac47adfb9f2b95ec72f8d83672eb8ac3e5c1bd67c6bf1ad2f5b37a247fe7de332ac5ece6d99bed89323dbbec3fd70276558a65bc3e09023e
6
+ metadata.gz: 1cee6a89123479d9ce8c2f3f964ac41a3deea5f303baccfa8db42daf576636fa2cc2721530bbcef671776ca7a7668335c3cb8ab6d9d9d9d417f510974d61d06f
7
+ data.tar.gz: 4efde4d34b35e777d9fe107fd603df55271ff4b2e986b51b4a078f0afa3b18296b69eb667a82509afca2ba2441665bcc145c5bdbc520b5a05b26419bbb239a4c
@@ -19,7 +19,7 @@ module Uploadbox
19
19
  route "mount Uploadbox::Engine => '/uploadbox', as: :uploadbox"
20
20
  end
21
21
 
22
- def create_migration
22
+ def copy_migration
23
23
  migration_template 'migrate/create_images.rb', 'db/migrate/create_images.rb'
24
24
  end
25
25
 
@@ -22,7 +22,7 @@ module Uploadbox
22
22
  # @post.picture?
23
23
  define_method("#{upload_name}?") do
24
24
  upload = send("#{upload_name}_upload")
25
- upload and upload.file?
25
+ !!(upload and upload.file?)
26
26
  end
27
27
 
28
28
  # @post.picture
@@ -1,3 +1,3 @@
1
1
  module Uploadbox
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uploadbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio Protzek
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-03 00:00:00.000000000 Z
12
+ date: 2014-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -175,22 +175,22 @@ dependencies:
175
175
  name: jbuilder
176
176
  requirement: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ~>
179
- - !ruby/object:Gem::Version
180
- version: '1.5'
181
178
  - - '>='
182
179
  - !ruby/object:Gem::Version
183
- version: 1.5.0
180
+ version: '1.2'
181
+ - - <
182
+ - !ruby/object:Gem::Version
183
+ version: '3'
184
184
  type: :runtime
185
185
  prerelease: false
186
186
  version_requirements: !ruby/object:Gem::Requirement
187
187
  requirements:
188
- - - ~>
189
- - !ruby/object:Gem::Version
190
- version: '1.5'
191
188
  - - '>='
192
189
  - !ruby/object:Gem::Version
193
- version: 1.5.0
190
+ version: '1.2'
191
+ - - <
192
+ - !ruby/object:Gem::Version
193
+ version: '3'
194
194
  - !ruby/object:Gem::Dependency
195
195
  name: resque
196
196
  requirement: !ruby/object:Gem::Requirement
@@ -533,9 +533,6 @@ executables: []
533
533
  extensions: []
534
534
  extra_rdoc_files: []
535
535
  files:
536
- - MIT-LICENSE
537
- - README.md
538
- - Rakefile
539
536
  - app/assets/javascripts/_gallery_uploader.coffee
540
537
  - app/assets/javascripts/_image_uploader.coffee
541
538
  - app/assets/javascripts/_manager.coffee
@@ -563,17 +560,20 @@ files:
563
560
  - config/routes.rb
564
561
  - config/spring.rb
565
562
  - lib/form_builder.rb
566
- - lib/generators/uploadbox/image/USAGE
567
563
  - lib/generators/uploadbox/image/image_generator.rb
568
564
  - lib/generators/uploadbox/image/templates/initializers/uploadbox.rb
569
565
  - lib/generators/uploadbox/image/templates/migrate/create_images.rb
570
566
  - lib/generators/uploadbox/image/templates/models/image.rb
567
+ - lib/generators/uploadbox/image/USAGE
571
568
  - lib/heroku_resque_auto_scale.rb
572
569
  - lib/tasks/uploadbox_tasks.rake
573
- - lib/uploadbox.rb
574
570
  - lib/uploadbox/engine.rb
575
571
  - lib/uploadbox/image_uploader.rb
576
572
  - lib/uploadbox/version.rb
573
+ - lib/uploadbox.rb
574
+ - MIT-LICENSE
575
+ - Rakefile
576
+ - README.md
577
577
  homepage: https://github.com/startae/uploadbox
578
578
  licenses:
579
579
  - MIT
@@ -594,7 +594,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
594
594
  version: '0'
595
595
  requirements: []
596
596
  rubyforge_project:
597
- rubygems_version: 2.2.1
597
+ rubygems_version: 2.1.11
598
598
  signing_key:
599
599
  specification_version: 4
600
600
  summary: Ajax file uploader for Rails applications.