salesforce_certification_calculator 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/salesforce_certification_calculator/file_reader.rb +13 -2
- 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: f2ac782d0341d2326b1f420b69e7841de95e3f8f00a50a359ffb6d75d799c61d
|
4
|
+
data.tar.gz: cdd4011f3d02210b682293da4973b67fac299572a75df2a26a5ae5563496d709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 644d95bd25b831e8fbda3b4052b126e172d22aa49b27c101425bbaa0a251e95f6c2207c65e9159b4b26e7f72e72e05ad0d0fcaa8bd127f2f1a22aba24996cb77
|
7
|
+
data.tar.gz: be70fc1855a3d76c9476546292624da2a406e4c3af000bf57ca8e1cdc99ce8cc64ac2babbd37f0177c01b5e5ad833b1ed6e30340c58fa721b54afd42e61002ef
|
data/README.md
CHANGED
@@ -64,11 +64,11 @@ If you have trouble downloading the package or just want to play around with the
|
|
64
64
|
1. Fork this repository
|
65
65
|
2. Clone it to your local computer
|
66
66
|
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.
|
67
|
+
4. Then install that built module: `gem install ./salesforce_certification_calculator-0.1.7.gem`
|
68
68
|
5. Open a Ruby environment to use the module: `irb`
|
69
69
|
6. Execute any of the recently installed methods
|
70
70
|
|
71
|
-
You may need to update the specific version of the build as later releases come out (e.g., `-0.1.
|
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`).
|
72
72
|
|
73
73
|
## Usage
|
74
74
|
|
@@ -82,7 +82,7 @@ Of course, you may use any of the other methods provided by the package, but `de
|
|
82
82
|
|
83
83
|
## Documentation
|
84
84
|
|
85
|
-
This project uses **YARD** for documentation generation. To view the published form, see the [documentation on the RubyDoc site](https://www.rubydoc.info/gems/salesforce_certification_calculator/
|
85
|
+
This project uses **YARD** for documentation generation. To view the published form, see the [documentation on the RubyDoc site](https://www.rubydoc.info/gems/salesforce_certification_calculator/). To view the docs locally, go to the `doc` folder. To generate the docs yourself, execute `rake yard` in the CLI from the root of your local copy of the project.
|
86
86
|
|
87
87
|
## Code Examples
|
88
88
|
|
@@ -11,9 +11,20 @@ class SalesforceCertificationCalculator::FileReader
|
|
11
11
|
# @return [Array] collection of Exam objects
|
12
12
|
def generate_exams_list
|
13
13
|
exams = []
|
14
|
-
|
14
|
+
gems_path = ENV["HOME"] + "/gems/gems"
|
15
|
+
all_gems = Dir.children(gems_path)
|
16
|
+
sfc_gems = []
|
15
17
|
|
16
|
-
|
18
|
+
all_gems.each do |gem|
|
19
|
+
if gem.include? "salesforce_certification_calculator"
|
20
|
+
sfc_gems.push(gem)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
sfc_gems.sort
|
25
|
+
latest_sfc = sfc_gems[sfc_gems.length - 1]
|
26
|
+
base_path = gems_path + "/" + latest_sfc
|
27
|
+
files = Dir.glob("data/*xml", base: base_path)
|
17
28
|
|
18
29
|
files.each do |file|
|
19
30
|
exam = SFC::Exam.new
|