i18n-migrations 0.2.3 → 0.2.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.
- checksums.yaml +5 -5
- data/lib/i18n/migrations/migrator.rb +3 -2
- data/lib/i18n/migrations/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 8c95c8d9301a3e3a6ab97029ae9364fd2c81691202b0eecb1d9f9aefa9f70197
|
|
4
|
+
data.tar.gz: 4fa547aa1f4d965d714263492f37410f533af2cdd04cc6a2c2bb0965adf42bee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aeedf137ad548fee7e4a8e8da9433ba82ccb175aedf5a44f25feed660d9aad51a9f8039b4daa28a6472e6530204bb55855ab161f246a34959b40ffd79c2cedaa
|
|
7
|
+
data.tar.gz: 7df7ad7561c9c6afe16854e85898b28154c39b7f07f056ad6c5faefa5d804b7c789418240341e1ff2d5b006fc45a898518e5ef33c820816cd74699fdd6daf614
|
|
@@ -40,7 +40,8 @@ module I18n
|
|
|
40
40
|
puts "Creating migration directory #{config.migration_dir} because it didn't exist."
|
|
41
41
|
FileUtils.mkdir_p(config.migration_dir)
|
|
42
42
|
end
|
|
43
|
-
File.
|
|
43
|
+
full_file_name = File.join(config.migration_dir, file_name)
|
|
44
|
+
File.open(full_file_name, 'w') do |f|
|
|
44
45
|
f << <<-CONTENTS
|
|
45
46
|
require 'i18n-migrations'
|
|
46
47
|
|
|
@@ -51,7 +52,7 @@ class #{name.camelcase} < I18n::Migrations::Migration
|
|
|
51
52
|
end
|
|
52
53
|
CONTENTS
|
|
53
54
|
end
|
|
54
|
-
puts "Wrote new migration to #{
|
|
55
|
+
puts "Wrote new migration to #{full_file_name}"
|
|
55
56
|
end
|
|
56
57
|
|
|
57
58
|
def migrate(locale_or_all = 'all')
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: i18n-migrations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Lightsmith
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
147
147
|
version: '0'
|
|
148
148
|
requirements: []
|
|
149
149
|
rubyforge_project:
|
|
150
|
-
rubygems_version: 2.
|
|
150
|
+
rubygems_version: 2.7.7
|
|
151
151
|
signing_key:
|
|
152
152
|
specification_version: 4
|
|
153
153
|
summary: Migrations for doing i18n.
|