fishplate 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/fishplate/tasks.rake +3 -1
- data/lib/fishplate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e53b3025daaa70b4b0b50290e9893bae57ba809d4d58b1a9b00308e053fb0b5
|
4
|
+
data.tar.gz: 5e7120c14d64c36a148e1aca9f50cb9e49daa20e49f0f940e1b7b11951a47d7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 208b667eb662783547262235b663644c7e19bb0124bb7fa76d91a95bc5cd45e4113d491964558f7509b5669590f93811b7ae906afb9d914e9b559c3fe3ad450e
|
7
|
+
data.tar.gz: 60766641aff9b1dcec55f0ad78dd0a508ac4055b6a88cb98f78de6ac243fd81bfd04afc169114ceecf0518aab307c553955fdb7229c03598940f2e17a530adc7
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fishplate (1.0.
|
4
|
+
fishplate (1.0.5)
|
5
5
|
a9n (~> 1.0)
|
6
6
|
activemodel (~> 6.0)
|
7
7
|
activerecord (~> 6.0)
|
@@ -34,9 +34,9 @@ GEM
|
|
34
34
|
method_source (1.0.0)
|
35
35
|
minitest (5.14.0)
|
36
36
|
parallel (1.19.1)
|
37
|
-
parser (2.7.0
|
37
|
+
parser (2.7.1.0)
|
38
38
|
ast (~> 2.4.0)
|
39
|
-
pry (0.13.
|
39
|
+
pry (0.13.1)
|
40
40
|
coderay (~> 1.1)
|
41
41
|
method_source (~> 1.0)
|
42
42
|
rainbow (3.0.0)
|
data/lib/fishplate/tasks.rake
CHANGED
@@ -18,7 +18,8 @@ namespace :generate do
|
|
18
18
|
klass = args[:name].tr('-', '_').camelize
|
19
19
|
number = ActiveRecord::Migration.next_migration_number(0)
|
20
20
|
file_name = "#{number}_#{klass.underscore}.rb"
|
21
|
-
|
21
|
+
relative_file_path = File.join("db/migrate", file_name)
|
22
|
+
file_path = A9n.root.join(relative_file_path)
|
22
23
|
content = <<-CONTENT
|
23
24
|
|class #{klass} < ActiveRecord::Migration[#{ActiveRecord::Migration.current_version}]
|
24
25
|
| def change
|
@@ -26,6 +27,7 @@ namespace :generate do
|
|
26
27
|
|end
|
27
28
|
CONTENT
|
28
29
|
File.open(file_path, "w+") { |f| f.write(content.gsub(/( +\|)/, '')) }
|
30
|
+
puts "Created migration file: #{relative_file_path}"
|
29
31
|
end
|
30
32
|
end
|
31
33
|
|
data/lib/fishplate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fishplate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: a9n
|