salesforce_certification_calculator 0.1.7 → 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 +7 -9
- 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
@@ -40,13 +40,11 @@ I've taken a few Salesforce certification exams in my day, and I was always anno
|
|
40
40
|
|
41
41
|
1. Install `rbenv` via Homebrew: `brew install rbenv`
|
42
42
|
2. Update your `.zshrc` config file:
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
export
|
47
|
-
export
|
48
|
-
export PATH=$HOME/gems/bin:$PATH
|
49
|
-
```
|
43
|
+
> `export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.1.0/bin:$PATH"`
|
44
|
+
> `eval "$(rbenv init - zsh)"`
|
45
|
+
> `export PATH=$HOME/.rbenv/shims:$PATH`
|
46
|
+
> `export GEM_HOME=$HOME/gems`
|
47
|
+
> `export PATH=$HOME/gems/bin:$PATH`
|
50
48
|
3. Install latest version of Ruby via the `rbenv` package: `rbenv install 3.1.2`
|
51
49
|
4. Set global version of Ruby via the `rbenv` package: `rbenv global 3.1.2`
|
52
50
|
5. Fix `racc` version: `gem pristine racc --version 1.6.0`
|
@@ -64,11 +62,11 @@ If you have trouble downloading the package or just want to play around with the
|
|
64
62
|
1. Fork this repository
|
65
63
|
2. Clone it to your local computer
|
66
64
|
3. From within your local version of the directory, build the module: `gem build salesforce_certification_calculator.gemspec`
|
67
|
-
4. Then install that built module: `gem install ./salesforce_certification_calculator-0.1.
|
65
|
+
4. Then install that built module: `gem install ./salesforce_certification_calculator-0.2.1.gem`
|
68
66
|
5. Open a Ruby environment to use the module: `irb`
|
69
67
|
6. Execute any of the recently installed methods
|
70
68
|
|
71
|
-
You may need to update the specific version of the build as later releases come out (e.g., `-0.1.
|
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`).
|
72
70
|
|
73
71
|
## Usage
|
74
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
|