fishplate 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/fishplate/tasks.rake +2 -2
- 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: daadda8ec5492f0cb94a233c0733a800852be05788cdca2448e4de7b7242ac49
|
4
|
+
data.tar.gz: 3e1a55891a80d8c898159908a8de764d456fe4631f6745ad0f00d46f77cdda95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e28873cd8f588b2ddbb129cbdf2f737ade0e6ab9ed69c31906e0983e5f1cb4f58d439ceab449a1188fbd56a8c9451dd5032cf76fc402f274a3cdc199bc83f4ef
|
7
|
+
data.tar.gz: 71a3354b5dac1dad2250936fcae71cefb67d6a7b40c539a5e6041d7126a01ddea0bdb14ef41b847f4e7745e2c09c0300604d1069b74f3dd3930f15720237a66c
|
data/Gemfile.lock
CHANGED
data/lib/fishplate/tasks.rake
CHANGED
@@ -23,9 +23,9 @@ task "db:setup" => ["fail_if_prod", "db:create", "db:schema:load"]
|
|
23
23
|
desc "Generate new migration with name given, e.g. rake generate:migration[CreateUsers]"
|
24
24
|
namespace :generate do
|
25
25
|
task :migration, [:name] do |name, args|
|
26
|
-
klass = args[:name].camelize
|
26
|
+
klass = args[:name].gsub('-','_').camelize
|
27
27
|
number = ActiveRecord::Migration.next_migration_number(0)
|
28
|
-
file_name = "#{number}_#{
|
28
|
+
file_name = "#{number}_#{klass.underscore}.rb"
|
29
29
|
file_path = A9n.root.join("db/migrate", file_name)
|
30
30
|
content = <<-CONTENT
|
31
31
|
|class #{klass} < ActiveRecord::Migration[#{ActiveRecord::Migration.current_version}]
|
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: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: a9n
|