iaa 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 1eb2158ff489e1ffc1e98abbbfde98270da163df
4
- data.tar.gz: 8d517d819226ed638327487157eeeb27f254305c
3
+ metadata.gz: cbfdc4c99664b9240ec86476fe451d3b31908463
4
+ data.tar.gz: fcbf2bc976782fd71608493c588d484fb9993ca0
5
5
  SHA512:
6
- metadata.gz: 88fc95a42dc2016886f7f283a976f6d06070f7da731a3c0405f79ca332578ca4924b517a5f32fc1f725ea57cea9f9a34410c94719c3f66d1d95b8eaaf7a56df6
7
- data.tar.gz: ac3590c159a1d5793af5d63aba8e3a6cb53a77073e56208bc6456058fba0f34bc151b6919f4b09cb5319e0b60759d00ee39cde62cfbae9aab9f9a06a5d50a5fb
6
+ metadata.gz: 0879a001ae584ff43a4fa34abd8cbd4d410dad31d7a3d781c04651e3db8e9d388a3c4f76569734badfa4a2e9e2a16129119f60b7567795d6552a54f9b91647ae
7
+ data.tar.gz: 442210b053b480f0614cca0055da3df30386ca682aa5038f37dfb1e7a0c2b626a0ab57a89c780488702d1641473b5979d41e2f5f69f215ed81dc3d6c6ca2770b
data/lib/base_form.rb CHANGED
@@ -9,8 +9,13 @@ module IAA
9
9
  PdfForms.new(pdftk_path || Cliver.detect('pdftk'))
10
10
  end
11
11
 
12
+ def get_full_path(path)
13
+ File.expand_path(File.join('..', '..', path), __FILE__)
14
+ end
15
+
12
16
  def get_mapper_fields(path)
13
- full_path = File.expand_path(File.join('..', '..', path), __FILE__)
17
+ #full_path = File.expand_path(File.join('..', '..', path), __FILE__)
18
+ full_path = get_full_path(path)
14
19
  JSON.parse(File.read(full_path))
15
20
  end
16
21
 
@@ -29,7 +34,7 @@ module IAA
29
34
  @save_filename = nil
30
35
  @fill_values = {}
31
36
  load_fields_from_pdf!(pdf_path, @pdftk, self)
32
- @pdf_path = pdf_path || self.class.default_pdf_path
37
+ @pdf_path = get_full_path(pdf_path || self.class.default_pdf_path)
33
38
 
34
39
  @fields.each do |field|
35
40
  self.class.send(:define_method, field['attribute_name']) do
data/lib/iaa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module IAA
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -22,7 +22,7 @@
22
22
  },
23
23
  {
24
24
  "name": "Name Requesting Agency of Products/Services",
25
- "attribute_name": "requesting_agency_name",
25
+ "attribute_name": "requesting_agency_name_of_products_services",
26
26
  "options": null,
27
27
  "type": "Text",
28
28
  "value": null
@@ -36,7 +36,7 @@
36
36
  },
37
37
  {
38
38
  "name": "Name Servicing Agency Providing Products/Services",
39
- "attribute_name": "servicing_agency_name",
39
+ "attribute_name": "servicing_agency_name_products_services",
40
40
  "options": null,
41
41
  "type": "Text",
42
42
  "value": "U.S. General Services Administration / Office of Citizen Services & Innovative Technologies / 18F"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iaa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan deLevie
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2015-06-29 00:00:00.000000000 Z
12
+ date: 2015-07-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pdf-forms