fmpvc 0.3.2 → 0.3.3
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 +7 -0
- data/README.md +2 -0
- data/fmpvc.gemspec +1 -0
- data/lib/fmpvc/FMPReport.rb +7 -5
- data/lib/fmpvc/version.rb +1 -1
- metadata +17 -5
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df624961cae0090a3a05545c2d6f0a3d1c2632d8
|
4
|
+
data.tar.gz: 274c6fee11358e8b3b217acaed6165b91c6701d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9d53f2f965e6091c9ff13f9560b582f140d1cd6dd578edbb687f8977d4146c177f2d46eee6ecde0e59e26e483bde45c8beae61768138cd67a10b25caae8f286
|
7
|
+
data.tar.gz: 208b2d92908fb27617a11a05777538b9941f22ef83f3050445ed29a8e28cfc907fd7d108f8855b300e484652f9f385dfd8f1082d53fd194284e55a5d82fb70e1
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -16,6 +16,8 @@ DDR parsing is a one-way process, and there is currently no way to re-create a F
|
|
16
16
|
|
17
17
|
$ gem install fmpvc
|
18
18
|
|
19
|
+
`FMPVC` will parse DDRs generated by FileMaker Pro Advanced versions 11, 12, 13, and 14 (before 0.3.3, `FMPVC` would fail on DDRs produced by FileMaker Pro Advanced versions prior to 13).
|
20
|
+
|
19
21
|
`FMPVC` requires both Nokogiri and ActiveSupport gems.
|
20
22
|
|
21
23
|
`FMPVC` requires ruby 2.0 or later. FMPVC has only been tested on Mac OS X, and in it's current state, it is unlikely to work properly in a Windows ruby environment (due to line endings, file paths, etc.). `fmpvc` should run fine on a Linux machine, but of course, the DDR generation requires FileMaker Pro Advanced, which is only available on Mac OS X and Windows.
|
data/fmpvc.gemspec
CHANGED
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.9'
|
24
24
|
spec.add_development_dependency 'rake', '~> 10.0'
|
25
|
+
spec.add_development_dependency 'rspec'
|
25
26
|
|
26
27
|
spec.add_dependency 'nokogiri', '~> 1.6.6'
|
27
28
|
spec.add_dependency 'activesupport', '~> 4.2'
|
data/lib/fmpvc/FMPReport.rb
CHANGED
@@ -193,7 +193,7 @@ module FMPVC
|
|
193
193
|
layout_name = a_layout['name']
|
194
194
|
layout_id = a_layout['id']
|
195
195
|
layout_table = a_layout.xpath('./Table').first['name']
|
196
|
-
layout_theme = a_layout.xpath('./Theme').first['name']
|
196
|
+
layout_theme = a_layout.xpath('./Theme').empty? ? '' : a_layout.xpath('./Theme').first['name']
|
197
197
|
layout_format = "%18s %-25s\n"
|
198
198
|
object_format = " %-16s %-35s\n"
|
199
199
|
content += format(layout_format, "Layout name: ", layout_name)
|
@@ -489,21 +489,23 @@ module FMPVC
|
|
489
489
|
open_account = (open_account_search.size > 0 ? open_account_search.first['name']: "")
|
490
490
|
open_layout_search = file_options.xpath('./OnOpen/Layout')
|
491
491
|
open_layout = ( open_layout_search.size > 0 ? open_layout_search.first['name'] : "" )
|
492
|
-
|
493
|
-
|
492
|
+
|
493
|
+
# puts "encryption: >>#{file_options.xpath('./Encryption').empty?}<<"
|
494
|
+
encryption_type = file_options.xpath('./Encryption').empty? ? '' : file_options.xpath('./Encryption').first['type']
|
494
495
|
encryption_note = case encryption_type
|
496
|
+
when ""
|
495
497
|
when "0"
|
496
498
|
"no encryption"
|
497
499
|
when "1"
|
498
500
|
"AES256 encrypted"
|
499
501
|
end
|
500
|
-
|
502
|
+
minimum_allowed_version = file_options.xpath('./OnOpen/MinimumAllowedVersion').empty? ? '' : file_options.xpath('./OnOpen/MinimumAllowedVersion').first['name']
|
501
503
|
content += "File Options\n"
|
502
504
|
content += "------------\n"
|
503
505
|
content += NEWLINE
|
504
506
|
content += format(file_options_format, "Encryption:", "#{encryption_type} (#{encryption_note})")
|
505
507
|
content += NEWLINE
|
506
|
-
content += format(file_options_format, "Minimum Allowed Version:",
|
508
|
+
content += format(file_options_format, "Minimum Allowed Version:", minimum_allowed_version)
|
507
509
|
content += format(file_options_format, "Account:", open_account)
|
508
510
|
content += format(file_options_format, "Layout:", open_layout)
|
509
511
|
content += NEWLINE
|
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.3
|
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-06-
|
11
|
+
date: 2015-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: nokogiri
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,8 +92,6 @@ extra_rdoc_files: []
|
|
78
92
|
files:
|
79
93
|
- ".gitignore"
|
80
94
|
- ".rspec"
|
81
|
-
- ".ruby-gemset"
|
82
|
-
- ".ruby-version"
|
83
95
|
- ".travis.yml"
|
84
96
|
- CODE_OF_CONDUCT.md
|
85
97
|
- Gemfile
|
@@ -116,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
128
|
version: '0'
|
117
129
|
requirements: []
|
118
130
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.2.
|
131
|
+
rubygems_version: 2.2.2
|
120
132
|
signing_key:
|
121
133
|
specification_version: 4
|
122
134
|
summary: Create a text version of the design elements of a FileMaker database.
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
fmversioning
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby-2.1.0
|