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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2ac782d0341d2326b1f420b69e7841de95e3f8f00a50a359ffb6d75d799c61d
4
- data.tar.gz: cdd4011f3d02210b682293da4973b67fac299572a75df2a26a5ae5563496d709
3
+ metadata.gz: ef5a9b0381b8fa4e0bc2bec71b5095410c1d204e14894d4fe1bb3920b38813c5
4
+ data.tar.gz: 2792ca40ed89823d99e38498d0866a2fda1761ed3700e991e8e5f0a491d97531
5
5
  SHA512:
6
- metadata.gz: 644d95bd25b831e8fbda3b4052b126e172d22aa49b27c101425bbaa0a251e95f6c2207c65e9159b4b26e7f72e72e05ad0d0fcaa8bd127f2f1a22aba24996cb77
7
- data.tar.gz: be70fc1855a3d76c9476546292624da2a406e4c3af000bf57ca8e1cdc99ce8cc64ac2babbd37f0177c01b5e5ad833b1ed6e30340c58fa721b54afd42e61002ef
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
- ```bash
44
- export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.1.0/bin:$PATH"
45
- eval "$(rbenv init - zsh)"
46
- export PATH=$HOME/.rbenv/shims:$PATH
47
- export GEM_HOME=$HOME/gems
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.7.gem`
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.7.gem` may need to become `-0.2.0.gem`).
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
- doc = File.open(file) { |f| Nokogiri::XML(f) }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforce_certification_calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jackson Reeves