anaconda 0.13.0 → 0.13.1
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.
- checksums.yaml +4 -4
- data/README.markdown +3 -0
- data/lib/anaconda/version.rb +1 -1
- data/lib/generators/anaconda/migration_generator.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0759b09ee2db44658f9cd59b0b6a2a093c3fc668
|
|
4
|
+
data.tar.gz: 15735e51e3373536e940e5e16265f2ffec9b04fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/anaconda/version.rb
CHANGED
|
@@ -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
|