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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed553368b82c87def4d091de28f03f0c75824ae4370de8a9a77406a9d69819fb
4
- data.tar.gz: '080a97ee79b689740f67dec3f08f976a44a5e607685d59868b378009c847b452'
3
+ metadata.gz: daadda8ec5492f0cb94a233c0733a800852be05788cdca2448e4de7b7242ac49
4
+ data.tar.gz: 3e1a55891a80d8c898159908a8de764d456fe4631f6745ad0f00d46f77cdda95
5
5
  SHA512:
6
- metadata.gz: 44f34589f9f640b62fb51f3df8fbd9060f2c981ef9b12cbe5d0c6623670981e6f6c520736f7ac8cfe3603eb64af8b8499158d82885a0bb871314eecf08148904
7
- data.tar.gz: 998cbc7cb902b1c5691aa487c2ac9e806c73de19aa8cc53ab41554b6e203ebfd19f9efda026b5ede32ff91a5735ed3fdd0de4688df217d6d8aed3d5b065d9f8d
6
+ metadata.gz: e28873cd8f588b2ddbb129cbdf2f737ade0e6ab9ed69c31906e0983e5f1cb4f58d439ceab449a1188fbd56a8c9451dd5032cf76fc402f274a3cdc199bc83f4ef
7
+ data.tar.gz: 71a3354b5dac1dad2250936fcae71cefb67d6a7b40c539a5e6041d7126a01ddea0bdb14ef41b847f4e7745e2c09c0300604d1069b74f3dd3930f15720237a66c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fishplate (0.2.0)
4
+ fishplate (0.2.1)
5
5
  a9n (>= 0.9.1)
6
6
  activemodel
7
7
  activerecord
@@ -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}_#{args[:name].underscore}.rb"
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}]
@@ -1,3 +1,3 @@
1
1
  module Fishplate
2
- VERSION = "0.2.0".freeze
2
+ VERSION = "0.2.1".freeze
3
3
  end
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2019-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: a9n