schema_to_dbml 0.0.5 → 0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc54963544b87bb99449b5bcb2129a64211378ffbfec57cfbbebce562bdf0c0b
4
- data.tar.gz: 06c18c1b57f71d0c064ae1d01ee2df9de0600bd68da6748c657af1f51f819927
3
+ metadata.gz: 0d0ac5d45ffc3f45685848a61f55084656c7ca61c9f35c7adf37fd1ba35408ab
4
+ data.tar.gz: 26cedb4c8356f33d854a8a9e351ec2c1691dab71127bbedd67551ab55e20bfdb
5
5
  SHA512:
6
- metadata.gz: 7733b4a827bff5432bd663e6900f9c8cb7388b89b6eaabc7135cf01acfa09ff4f527262c127d9ec15fbe82cb5536a5fc96bf67511956572d34e78ae51c999a5f
7
- data.tar.gz: e86975d104f9cc120f6a20e88d6a412534ef9b47286940a08f2ebaf3ec5a1d59ff7a7d7280995ada45f1676b9b91437a39b380ee29ea6f41002c6ba56aa53ef5
6
+ metadata.gz: a0860f6ab756779c7f90ebe1942c7a231687bb9c1f1e1ec86bf6b778b86423cd696a57b6695b9df82f75215cec1459ab8b6fdf9e9c16e807095874750114079a
7
+ data.tar.gz: a2a47bef2c7719d060845cb516db62147aa8cc7736bd69ac9716d6afb102975c8df4ffcfca9bf70773c5db2cfa52ffe7f9d20170bb8d23b8553aa2619e516170
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- schema_to_dbml (0.0.5)
4
+ schema_to_dbml (0.0.6)
5
5
  activesupport (>= 6.1.0)
6
6
 
7
7
  GEM
@@ -38,7 +38,7 @@ GEM
38
38
  racc
39
39
  racc (1.7.3)
40
40
  rainbow (3.1.1)
41
- rake (13.1.0)
41
+ rake (13.2.0)
42
42
  regexp_parser (2.9.0)
43
43
  rexml (3.2.6)
44
44
  rspec (3.13.0)
@@ -54,7 +54,7 @@ GEM
54
54
  diff-lcs (>= 1.2.0, < 2.0)
55
55
  rspec-support (~> 3.13.0)
56
56
  rspec-support (3.13.0)
57
- rubocop (1.61.0)
57
+ rubocop (1.62.1)
58
58
  json (~> 2.3)
59
59
  language_server-protocol (>= 3.17.0)
60
60
  parallel (~> 1.10)
@@ -62,19 +62,22 @@ GEM
62
62
  rainbow (>= 2.2.2, < 4.0)
63
63
  regexp_parser (>= 1.8, < 3.0)
64
64
  rexml (>= 3.2.5, < 4.0)
65
- rubocop-ast (>= 1.30.0, < 2.0)
65
+ rubocop-ast (>= 1.31.1, < 2.0)
66
66
  ruby-progressbar (~> 1.7)
67
67
  unicode-display_width (>= 2.4.0, < 3.0)
68
- rubocop-ast (1.31.1)
68
+ rubocop-ast (1.31.2)
69
69
  parser (>= 3.3.0.4)
70
70
  rubocop-capybara (2.20.0)
71
71
  rubocop (~> 1.41)
72
72
  rubocop-factory_bot (2.25.1)
73
73
  rubocop (~> 1.41)
74
- rubocop-rspec (2.27.0)
74
+ rubocop-rspec (2.28.0)
75
75
  rubocop (~> 1.40)
76
76
  rubocop-capybara (~> 2.17)
77
77
  rubocop-factory_bot (~> 2.22)
78
+ rubocop-rspec_rails (~> 2.28)
79
+ rubocop-rspec_rails (2.28.2)
80
+ rubocop (~> 1.40)
78
81
  ruby-progressbar (1.13.0)
79
82
  simplecov (0.22.0)
80
83
  docile (~> 1.1)
data/README.md CHANGED
@@ -58,7 +58,7 @@ custom_project_notes: |
58
58
  - Utilizes the custom primary key for better indexing
59
59
  - Specifies the appropriate database type (e.g., PostgreSQL)
60
60
  - Provides meaningful project information and descriptions
61
- custom_primary_key: "id integer [pk, unique, note: 'Unique identifier and primary key']"
61
+ custom_primary_key: "id integer [pk, unique, note: '''Unique identifier and primary key''']"
62
62
  custom_dbml_content: ''
63
63
  custom_dbml_file_path: 'db/schema.dbml'
64
64
  ```
@@ -20,7 +20,7 @@ class BuildDbmlContent
20
20
  def project_header
21
21
  header = "Project #{project_name} {\n"
22
22
  header += " database_type: '#{custom_database_type}'\n"
23
- header += " Note: '#{custom_project_notes}'\n"
23
+ header += " Note: '''#{custom_project_notes}'''\n"
24
24
  header += '}'
25
25
  header
26
26
  end
@@ -7,6 +7,6 @@ custom_project_notes: |
7
7
  - Utilizes the custom primary key for better indexing
8
8
  - Specifies the appropriate database type (e.g., PostgreSQL)
9
9
  - Provides meaningful project information and descriptions
10
- custom_primary_key: "id integer [pk, unique, note: 'Unique identifier and primary key']"
10
+ custom_primary_key: "id integer [pk, unique, note: '''Unique identifier and primary key''']"
11
11
  custom_dbml_content: ''
12
12
  custom_dbml_file_path: 'db/schema.dbml'
@@ -63,7 +63,7 @@ class DbmlTablesFormatter
63
63
  dbml_table << "#{TAB}#{custom_primary_key}\n"
64
64
  dbml_table << columns.join("\n")
65
65
  dbml_table << indexes if indexes
66
- dbml_table << "\n#{TAB}Note: '#{table_comment}'" unless table_comment.to_s.empty?
66
+ dbml_table << "\n#{TAB}Note: '''#{table_comment}'''" unless table_comment.to_s.empty?
67
67
  dbml_table << "\n}"
68
68
  dbml_table
69
69
  end
@@ -52,7 +52,7 @@ module Formatters
52
52
  note.gsub!(mapper[:from], mapper[:to])
53
53
  end
54
54
 
55
- "note: '#{note}'"
55
+ "note: '''#{note}'''"
56
56
  end
57
57
  end
58
58
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class SchemaToDbml
4
- VERSION = '0.0.5'
4
+ VERSION = '0.0.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_to_dbml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Ribeiro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-03 00:00:00.000000000 Z
11
+ date: 2024-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler