salesforce_certification_calculator 0.1.3 → 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: f22ae65bcbef0473ae9e52421a4907f017d0642ab6f65df5a52b0c2552a35396
4
- data.tar.gz: d2ce21e0908dc21bf91f68d477301667bc25fd8425b51c97d06d3f32a5df72a2
3
+ metadata.gz: 89975cfe44435c5333ff78f7cf2ae9b07fa6bb7e65e2c04956032d701f168295
4
+ data.tar.gz: 034d59b5a2b748c3dc5f68ada517d8ddbb2b228a8c0510a41ca443389885ef3a
5
5
  SHA512:
6
- metadata.gz: 70914bb6b37c2497d98ff8e7cf1667e3d86edf7758b7b984637ff2c4286eece6adf79ac4f2554f74115c1924cc1c086838c182a56e9381fbb51330e41d9606f3
7
- data.tar.gz: a2dacb5b70ee020e252f18ec3a805b962c9db041fb823750cd6668625c7ee27bfae8d3ef6683beb210fa5ed6f22d6fdea6ba7731c34f0751d9a1b531c34fa64b
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.3.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.3.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.3). 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.3
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jackson Reeves
@@ -28,56 +28,56 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: yard
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.9'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.9'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: stringio
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: o_stream_catcher
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.0.1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.0.1
83
83
  description: Calculates cumulative percentage from Salesforce certification section
@@ -134,9 +134,9 @@ require_paths:
134
134
  - data
135
135
  required_ruby_version: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ">="
137
+ - - "~>"
138
138
  - !ruby/object:Gem::Version
139
- version: '2.0'
139
+ version: '3.1'
140
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - ">="