salesforce_certification_calculator 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/salesforce_certification_calculator/file_reader.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef5a9b0381b8fa4e0bc2bec71b5095410c1d204e14894d4fe1bb3920b38813c5
|
4
|
+
data.tar.gz: 2792ca40ed89823d99e38498d0866a2fda1761ed3700e991e8e5f0a491d97531
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71b256254c6f6af442ddcc5b1913d27a9d07686f97409c3530294b347b68fb4c0982cf4b7d82d8a4750c24831861da89fc2ce15ea658080b885110de767c4c7c
|
7
|
+
data.tar.gz: 3b6dbfd4b6e2035f618eda5bebd96319c895e2a2d02ded544383a8693860eb5b8a2c3ae08739374d960d9d7c31b5ced62155413acc1838e2ad0bf07c88d3db20
|
data/README.md
CHANGED
@@ -62,11 +62,11 @@ If you have trouble downloading the package or just want to play around with the
|
|
62
62
|
1. Fork this repository
|
63
63
|
2. Clone it to your local computer
|
64
64
|
3. From within your local version of the directory, build the module: `gem build salesforce_certification_calculator.gemspec`
|
65
|
-
4. Then install that built module: `gem install ./salesforce_certification_calculator-0.2.
|
65
|
+
4. Then install that built module: `gem install ./salesforce_certification_calculator-0.2.1.gem`
|
66
66
|
5. Open a Ruby environment to use the module: `irb`
|
67
67
|
6. Execute any of the recently installed methods
|
68
68
|
|
69
|
-
You may need to update the specific version of the build as later releases come out (e.g., `-0.2.
|
69
|
+
You may need to update the specific version of the build as later releases come out (e.g., `-0.2.1.gem` may need to become `-0.3.0.gem`).
|
70
70
|
|
71
71
|
## Usage
|
72
72
|
|
@@ -28,7 +28,8 @@ class SalesforceCertificationCalculator::FileReader
|
|
28
28
|
|
29
29
|
files.each do |file|
|
30
30
|
exam = SFC::Exam.new
|
31
|
-
|
31
|
+
file_path = base_path + "/" + file
|
32
|
+
doc = File.open(file_path) { |f| Nokogiri::XML(f) }
|
32
33
|
title = doc.at_xpath("//title")
|
33
34
|
exam.title = title.content
|
34
35
|
exam.file = file
|