fmpvc 0.3.2 → 0.3.3

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: b3a390e3cfe02d80a7f15cf4751e8772f3da314d
4
- data.tar.gz: a89b88d4365f3279ec46d66a93e1ef5440db736d
3
+ metadata.gz: df624961cae0090a3a05545c2d6f0a3d1c2632d8
4
+ data.tar.gz: 274c6fee11358e8b3b217acaed6165b91c6701d4
5
5
  SHA512:
6
- metadata.gz: cb2cabdb3e496445f15f4b9748284643e8f8a12e03eb3b455175af704e1b7562c4e1040d09934f13e983068dc49aa456704cb840cbe7c921f3b53be6bcacd421
7
- data.tar.gz: d8c928f7b5e7f38ff02d79f4133008ff74a5a9ea19feda60d68bf859e1e47e94174ca914f59e837db66c97e65a19c0beca8171f83d47fa8c32ea321eb4bb6929
6
+ metadata.gz: f9d53f2f965e6091c9ff13f9560b582f140d1cd6dd578edbb687f8977d4146c177f2d46eee6ecde0e59e26e483bde45c8beae61768138cd67a10b25caae8f286
7
+ data.tar.gz: 208b2d92908fb27617a11a05777538b9941f22ef83f3050445ed29a8e28cfc907fd7d108f8855b300e484652f9f385dfd8f1082d53fd194284e55a5d82fb70e1
data/.gitignore CHANGED
@@ -12,3 +12,10 @@ spec/data/test_1/fmp_text/
12
12
  spec/data/test_2/fmp_text/
13
13
  spec/data/test_3/fmp_text/
14
14
  spec/data/test_4/fmp_text/
15
+ spec/data/test_5/fmp_text/
16
+ spec/data/test_6/fmp_text/
17
+ spec/data/test_7/fmp_text/
18
+
19
+ .ruby-version
20
+ .ruby-gemset
21
+
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.
@@ -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'
@@ -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
- encryption_type = file_options.xpath('./Encryption').first['type']
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:", file_options.xpath('./OnOpen/MinimumAllowedVersion').first['name'])
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
@@ -1,3 +1,3 @@
1
1
  module FMPVC
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
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.2
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-14 00:00:00.000000000 Z
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.1
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.
@@ -1 +0,0 @@
1
- fmversioning
@@ -1 +0,0 @@
1
- ruby-2.1.0