fmpvc 0.3.4 → 0.3.5
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 +4 -4
- data/.gitignore +2 -0
- data/README.md +2 -0
- data/RELEASE_NOTES.md +7 -0
- data/lib/fmpvc/FMPReport.rb +3 -3
- data/lib/fmpvc/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a48828ff6c611455967a8a0c552d96b8154777d9
|
|
4
|
+
data.tar.gz: ab67f201c5175ef9de6ef3dbf00bef813eada7e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a041a6056d1e2c9642f992c0c292bd398602cac14b434003bd1e4476addcce3eabfa5b6febc2f1a624d7c6001006dd73f60f796b961d4e9cc8d03cd0a9d3a2c2
|
|
7
|
+
data.tar.gz: d253b2ad1b7062c520f7e6e9cfdc9dd9afc046c84cf539ac0d909f48480ee41f12c3239abdad17f9684b1892c1ebb2068cdffc5240a58c56e90e1d19dc75ded1
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# FMPVC
|
|
2
2
|
|
|
3
|
+
#### **Warning:** with version changes in `FMPVC`, output format or content may change with no change to the underlying FileMaker files or their DDR. Therefore, when using `FMPVC` with a version control system, it is prudent to only run a new version `fmpvc` on a clean repository and check for differences before proceeding.
|
|
4
|
+
|
|
3
5
|
`FMPVC` is a tool to help FileMaker developers by creating a set of text files which represent design objects in their databases (e.g. scripts, custom functions, layouts, etc.). `fmpvc` has no access to database content. The command, `fmpvc`, parses a Database Design Report (DDR) produced by FileMaker Pro Advanced and creates text files for each of the primary FileMaker objects described in the DDR. With those files the developer may:
|
|
4
6
|
|
|
5
7
|
1. use a version control system to track changes to databases
|
data/RELEASE_NOTES.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# FMPVC Release Notes
|
|
2
2
|
|
|
3
|
+
## v0.3.5 (2015-08-02)
|
|
4
|
+
|
|
5
|
+
### Bugs Fixed
|
|
6
|
+
|
|
7
|
+
- Fixed missing HTML entity characters from calculations (e.g. in Script Steps) by changing FMPReport content encoding (issue #6)
|
|
8
|
+
- Fixed parsing problems with Table names containing single-quotes (issue #1)
|
|
9
|
+
|
|
3
10
|
## v0.3.4 (2015-07-02)
|
|
4
11
|
|
|
5
12
|
### New Features
|
data/lib/fmpvc/FMPReport.rb
CHANGED
|
@@ -11,13 +11,13 @@ module FMPVC
|
|
|
11
11
|
|
|
12
12
|
class FMPReport
|
|
13
13
|
|
|
14
|
-
attr_reader :content, :type, :text_dir, :text_filename, :report_dirpath, :named_objects, :tables
|
|
14
|
+
attr_reader :content, :type, :text_dir, :text_filename, :report_dirpath, :named_objects, :tables, :scripts, :layouts, :value_lists, :custom_functions, :accounts, :privileges, :extended_privileges, :relationships, :file_access, :external_sources, :file_options, :themes
|
|
15
15
|
|
|
16
16
|
def initialize(report_filename, ddr)
|
|
17
17
|
report_dirpath = "#{ddr.base_dir_ddr}/#{report_filename}" # location of the fmpfilename.xml file
|
|
18
18
|
raise(RuntimeError, "Error: can't find the report file, #{report_dirpath}") unless File.readable?(report_dirpath)
|
|
19
19
|
|
|
20
|
-
@content = IO.read(report_dirpath
|
|
20
|
+
@content = IO.read(report_dirpath)
|
|
21
21
|
@text_dir = "#{ddr.base_dir_ddr}/../#{FMPVC.configuration.text_dirname}"
|
|
22
22
|
@text_filename = fs_sanitize(report_filename)
|
|
23
23
|
@report_dirpath = "#{@text_dir}/#{@text_filename}"
|
|
@@ -245,7 +245,7 @@ module FMPVC
|
|
|
245
245
|
table_header_format = table_format.gsub(%r{d}, 's')
|
|
246
246
|
content += format(table_header_format, "id", "Field Name", "Data Type", "Field Type", "Comment")
|
|
247
247
|
content += format(table_header_format, "--", "----------", "---------", "----------", "-------")
|
|
248
|
-
a_table.xpath(
|
|
248
|
+
a_table.xpath(%{//BaseTable[@name=$table_name]/FieldCatalog/*[name()='Field']}, nil, :table_name => a_table['name']).each do |t|
|
|
249
249
|
t_comment = t.xpath("./Comment").text
|
|
250
250
|
content += format(table_format, t['id'], t['name'], t['dataType'], t['fieldType'], t_comment)
|
|
251
251
|
end
|
data/lib/fmpvc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fmpvc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin S. Boswell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
129
129
|
version: '0'
|
|
130
130
|
requirements: []
|
|
131
131
|
rubyforge_project:
|
|
132
|
-
rubygems_version: 2.2.
|
|
132
|
+
rubygems_version: 2.2.1
|
|
133
133
|
signing_key:
|
|
134
134
|
specification_version: 4
|
|
135
135
|
summary: Create a text version of the design elements of a FileMaker database.
|