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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 295c6cfa7b9265f5b84c922a973534ba2596af0a015f9ccf01c9a367f7b621ed
4
- data.tar.gz: 81e90f4f03bfde196124ffece057607545f18c4accf774d159d2c4c02e510da0
3
+ metadata.gz: 2e53b3025daaa70b4b0b50290e9893bae57ba809d4d58b1a9b00308e053fb0b5
4
+ data.tar.gz: 5e7120c14d64c36a148e1aca9f50cb9e49daa20e49f0f940e1b7b11951a47d7d
5
5
  SHA512:
6
- metadata.gz: 0105e225bd794e1fd1aae12d2e7416befa15979d62415ac1774287a4129620080cd8ec7d1217bba4f524c147f724a906092a59f64cd773fdb10ae90a9b25c0f1
7
- data.tar.gz: a9ed160c759f29a6bcef93b952efcc28fd9a5102af6404caf676120c4e74b0aba0031fb3fa8b5a971713fb43d92e6c7abe124e8ab5ee5b771587c1e7f8847f4e
6
+ metadata.gz: 208b667eb662783547262235b663644c7e19bb0124bb7fa76d91a95bc5cd45e4113d491964558f7509b5669590f93811b7ae906afb9d914e9b559c3fe3ad450e
7
+ data.tar.gz: 60766641aff9b1dcec55f0ad78dd0a508ac4055b6a88cb98f78de6ac243fd81bfd04afc169114ceecf0518aab307c553955fdb7229c03598940f2e17a530adc7
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fishplate (1.0.4)
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.5)
37
+ parser (2.7.1.0)
38
38
  ast (~> 2.4.0)
39
- pry (0.13.0)
39
+ pry (0.13.1)
40
40
  coderay (~> 1.1)
41
41
  method_source (~> 1.0)
42
42
  rainbow (3.0.0)
@@ -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
- file_path = A9n.root.join("db/migrate", file_name)
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
 
@@ -1,3 +1,3 @@
1
1
  module Fishplate
2
- VERSION = "1.0.4".freeze
2
+ VERSION = "1.0.5".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: 1.0.4
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-03 00:00:00.000000000 Z
11
+ date: 2020-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: a9n