anaconda 0.13.0 → 0.13.1

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: 0912b73bf2811535a108eb6315c0308ac787edd3
4
- data.tar.gz: 784348799ded4aa0c2acfbadef522a07f0c162d5
3
+ metadata.gz: 0759b09ee2db44658f9cd59b0b6a2a093c3fc668
4
+ data.tar.gz: 15735e51e3373536e940e5e16265f2ffec9b04fd
5
5
  SHA512:
6
- metadata.gz: c2cc3a99a5dfa431fec05e20c1750640df6643e86767545e8a4f9a6b38630b763d09726fdcc8c2b3b7c2c12375cc8a6495dd852406e8241ba493c5e621cefdf8
7
- data.tar.gz: ade3196bcab7786bc36f104149c2aea8a65e8a707ae960e8f9c7a4b0083c4dbe37be023860d17c0e49ed716bf6082aebd15a5d88865761262c230e254b99b285
6
+ metadata.gz: 1cb38146118e3b88ae021ba36296a9ebed795028c52a20173c16d51ac4cd129885cbf38b8d49d56b449f5d03e19814b7b595e2d9f1c095b5ba2e329f818f1b0e
7
+ data.tar.gz: a6788cafd904bc2adfa806a0200789c2e5a96e4fe8f6b07cfd13ff1a0b86b507df70cbc050b8e093c42a6a61de38b1aa29da1e18228b7f70a6713b73541b7c90
data/README.markdown CHANGED
@@ -179,6 +179,9 @@ We highly recommend the `figaro` gem [https://github.com/laserlemon/figaro](http
179
179
  `asset_download_url` will return a signed S3 URL with content-disposition set to attachment so the file will be downloaded instead of opened in the browser.
180
180
 
181
181
  ## Changelog
182
+ * 0.13.1
183
+ * Use UTC for timestamp in migration files.
184
+
182
185
  * 0.13.0
183
186
  * Set Content-Type for S3 file to match that of the uploaded source file.
184
187
 
@@ -1,5 +1,5 @@
1
1
  module Anaconda
2
2
  module Rails
3
- VERSION = "0.13.0"
3
+ VERSION = "0.13.1"
4
4
  end
5
5
  end
@@ -8,14 +8,14 @@ module Anaconda
8
8
  argument :field_name, :type => :string, :default => "asset"
9
9
 
10
10
  def create_migration_file
11
- destination = "db/migrate/#{Time.now.strftime('%Y%m%d%H%M%S')}_anaconda_migration_for_#{file_name}_#{field_name}.rb".gsub(" ", "")
11
+ destination = "db/migrate/#{Time.now.utc.strftime('%Y%m%d%H%M%S')}_anaconda_migration_for_#{file_name}_#{field_name}.rb".gsub(" ", "")
12
12
  migration_name = "AnacondaMigrationFor#{file_name.titlecase}#{field_name.titlecase}".gsub(" ", "")
13
13
  count = nil
14
14
  i = 1
15
15
  while !Dir.glob("db/migrate/*_anaconda_migration_for_#{file_name}_#{field_name}#{count}.rb".gsub(" ", "")).empty?
16
16
  i += 1
17
17
  count = "_#{i}"
18
- destination = "db/migrate/#{Time.now.strftime('%Y%m%d%H%M%S')}_anaconda_migration_for_#{file_name}_#{field_name}#{count}.rb".gsub(" ", "")
18
+ destination = "db/migrate/#{Time.now.utc.strftime('%Y%m%d%H%M%S')}_anaconda_migration_for_#{file_name}_#{field_name}#{count}.rb".gsub(" ", "")
19
19
  migration_name = "AnacondaMigrationFor#{file_name.titlecase}#{field_name.titlecase}#{i}".gsub(" ", "")
20
20
  end
21
21
  create_file destination, <<-FILE
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anaconda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McFadden