uploadbox 0.1.1 → 0.1.2

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: 25481cd867324211bd573b4181cacac7725381cf
4
- data.tar.gz: 8c834a693f442b4321d120a71b4660378cf60ad4
3
+ metadata.gz: 7ca012b43884476e003d701a50ab003559babeb5
4
+ data.tar.gz: e717d637a0680722b5e4bc4e955edef5eae757c8
5
5
  SHA512:
6
- metadata.gz: 0ec250b752fa8311ee054bcbc0cda9a55c6f3611c3cf131a5446533650faa7236103a859d9583102037dd823900406fe5df35db392c35242c88d06f7290e2a62
7
- data.tar.gz: 28bec46289e580f825d6f332ed0c61f7a739ff4c7b4c3a7547f386fd731be063644550360a882b58eed1351136a2b8b05e4ff7aba3131069478d60846e87020e
6
+ metadata.gz: 6c57e3e52443a5765b93b3887b8224f731eecb66c285e23008e70819c79ba0e73a065ec064c312f7043ed1391b00293c4bf2c34c77600bf6b9d9b3164fc3e0e0
7
+ data.tar.gz: 183781e8575d8a84bd58694fd77d323ccfb26e668b206dee96688cdabbfc4772f15c62e5f3bc6513773ba8dd09b37332ac60c64db9515ece88e22540ba367155
data/README.md CHANGED
@@ -14,7 +14,7 @@ Make sure you have [ImageMagick](http://www.imagemagick.org/) installed.
14
14
 
15
15
  Add to Gemfile
16
16
  ```
17
- gem 'uploadbox', '0.1.1'
17
+ gem 'uploadbox', '0.1.2'
18
18
  ```
19
19
 
20
20
  Run generators
@@ -8,13 +8,11 @@ module Uploadbox
8
8
  copy_file 'initializers/uploadbox.rb', 'config/initializers/uploadbox.rb'
9
9
  end
10
10
 
11
- def copy_dotenv
12
- if File.exist?('.env')
13
- append_to_file '.env', "\n"
14
- append_to_file '.env', File.open(File.expand_path('../templates/.env', __FILE__)).read
15
- else
16
- copy_file '.env', '.env'
17
- end
11
+ def create_dotenv
12
+ create_file '.env' unless File.exist?('.env')
13
+ append_to_file '.env', "\nS3_KEY=your-s3-key"
14
+ append_to_file '.env', "\nS3_SECRET=your-s3-secret"
15
+ append_to_file '.env', "\nS3_BUCKET=your-s3-bucket"
18
16
  end
19
17
 
20
18
  def add_route
@@ -1,3 +1,3 @@
1
1
  module Uploadbox
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio Protzek