fmpvc 0.3.4 → 0.3.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
  SHA1:
3
- metadata.gz: 6375927885c92d53b9e49ab8e2de3955e62b1994
4
- data.tar.gz: a7af50f77aae4c3d9981b55385b7d088ade3b391
3
+ metadata.gz: a48828ff6c611455967a8a0c552d96b8154777d9
4
+ data.tar.gz: ab67f201c5175ef9de6ef3dbf00bef813eada7e3
5
5
  SHA512:
6
- metadata.gz: 2f28fb3116aec19ad61c68833a966b9986fe604a03911ace19d30eaec817986bc04c58aa6398740094233489e67f095f1bff031857d89d58ad1ab2b86c102f49
7
- data.tar.gz: 98ade21fcdf20bb15970a32895966741d27362d07d6090349ec74b79fb6f570d18b0ef0b67de1c03e5cedaa5bb6b3bb48b93916dcb7fc1f68ea280987af5e381
6
+ metadata.gz: a041a6056d1e2c9642f992c0c292bd398602cac14b434003bd1e4476addcce3eabfa5b6febc2f1a624d7c6001006dd73f60f796b961d4e9cc8d03cd0a9d3a2c2
7
+ data.tar.gz: d253b2ad1b7062c520f7e6e9cfdc9dd9afc046c84cf539ac0d909f48480ee41f12c3239abdad17f9684b1892c1ebb2068cdffc5240a58c56e90e1d19dc75ded1
data/.gitignore CHANGED
@@ -16,6 +16,8 @@ spec/data/test_5/fmp_text/
16
16
  spec/data/test_6/fmp_text/
17
17
  spec/data/test_7/fmp_text/
18
18
  spec/data/test_8/fmp_text/
19
+ spec/data/test_9/fmp_text/
20
+ spec/data/test_10/fmp_text/
19
21
 
20
22
  .ruby-version
21
23
  .ruby-gemset
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
@@ -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
@@ -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, mode: 'rb:UTF-16:UTF-8') # transcode is specifically for a spec content match
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("//BaseTable[@name='#{a_table['name']}']/FieldCatalog/*[name()='Field']").each do |t|
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
@@ -1,3 +1,3 @@
1
1
  module FMPVC
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
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
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-07-02 00:00:00.000000000 Z
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.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.