salesforce_certification_calculator 0.1.5 → 0.1.6

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: 5b3af38ee912086c7b247aa6de21898adc3602bf61fb9c6e3e8405604a82ae8e
4
- data.tar.gz: 3f57b7edd150a282bce980b8e6c5a67a7da30e1e3861adc774c691b43f499b25
3
+ metadata.gz: 89975cfe44435c5333ff78f7cf2ae9b07fa6bb7e65e2c04956032d701f168295
4
+ data.tar.gz: 034d59b5a2b748c3dc5f68ada517d8ddbb2b228a8c0510a41ca443389885ef3a
5
5
  SHA512:
6
- metadata.gz: 2f824cec6f7c2fc20ffdc7a1ca5cd31e4292b6ea9140b414e2e2eda2d1ba846e90a55de9b1a5b36b52c639aa9ad14be7316d38bb904b274c65b995e4663e9467
7
- data.tar.gz: 4bd3a4ddd902b7969bb9a801b16a73ed3437a13cd5954fac2f0e5b61086b3c2113ae71a3f40d9321f8435da200b980982c7b843a5ddd891054ba54ec8d574e97
6
+ metadata.gz: 9206baab3efeab5656430fb32fcf4149e860d1a0208757caf8abaaed6ca1d102615d4ba16661e4dde19fcd142a8c8228999171770632282a89ba088d01195547
7
+ data.tar.gz: 07aacc0a3b6028d552ad74984b86bb4688f27858c2953c635da417f676360956a4b6354b327df2c0777c9b41c2bc673430b7999d7a3350a9c8b166f10dba5b61
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.5.gem`
67
+ 4. Then install that built module: `gem install ./salesforce_certification_calculator-0.1.6.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.5.gem` may need to become `-0.2.0.gem`).
71
+ You may need to update the specific version of the build as later releases come out (e.g., `-0.1.6.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/0.1.5). 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.
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/0.1.6). 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
 
@@ -56,6 +56,8 @@ class SalesforceCertificationCalculator::Exam
56
56
  # Sets total to error message when sum of sections' weights is not 100
57
57
  if summed_weights != 100
58
58
  @total = "CANNOT CALCULATE"
59
+ else
60
+ @total = @total.round(2)
59
61
  end
60
62
  end
61
63
  end
@@ -13,6 +13,8 @@ class SalesforceCertificationCalculator::FileReader
13
13
  exams = []
14
14
  files = Dir.glob("data/*xml")
15
15
 
16
+ puts files
17
+
16
18
  files.each do |file|
17
19
  exam = SFC::Exam.new
18
20
  doc = File.open(file) { |f| Nokogiri::XML(f) }
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jackson Reeves