sneaky_mani 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3776d7c4b3919d5bee8a99371f4cc2bf8775ea1243f874dde69eca5be48b75cb
4
- data.tar.gz: 2b5a317020b84b455aa7901ce0d359b95e73ab6e4d8ad9e787a45db741964a0e
3
+ metadata.gz: 46c83e03472cd1bdecb6183a52e7ac78ae6883095c48fd5f563bcc377f9b1c18
4
+ data.tar.gz: 75b4eaff72393a982b6b6c1e03820e99830da8a9eab4c789b960404f6f51d892
5
5
  SHA512:
6
- metadata.gz: e9966f6cd93464075b1978ea3f786128623b4de15cf4588f0abb470d045f86d79baf4213d60bf2d60cb2ad43c76521208b40a8c457a2972299f309d0ccb0377d
7
- data.tar.gz: d2e1d0758561f8d53c4e651aa24b933174028d89f41d2b2c1705a6691f476aa819ca6314ec93d61dac3ae89c42f363a0af094fd29ee897a891fe86ae6092e9b5
6
+ metadata.gz: 2d5770627baa33c935d6ab6348f9483ed3bcaec36424c0ae54a6c9f498369b3596fea8415c1015135a79703fb6e3c55f20b506a72a4db267b8e71e088630d2c6
7
+ data.tar.gz: 9db657a7fe4f6343d2b13f01bc5593bb495277a76bd69ce053537aad7064ddcf2f8a772f6a3317d38b1656b2a5a917493cb31265d1c7b8703f55a57eda72c6cd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sneaky_mani (0.1.1)
4
+ sneaky_mani (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,38 +1,7 @@
1
- class String
2
- def integer?
3
- return true if self =~ /^[1-9]\d*(\.\d+)?$/
4
- false
1
+ module SneakyMani
2
+ class Builder
3
+ def greet_user(name)
4
+ puts "Hello #{name}, thanks for using the Gem"
5
5
  end
6
6
  end
7
7
 
8
- module SneakyMani
9
-
10
- class Builder
11
- def initialize total:, gratuity:
12
- @total = total
13
- @gratuity = gratuity
14
- end
15
-
16
- def generate
17
- return calculation if number_based?
18
- string_based
19
- end
20
-
21
- def number_based?
22
- (@gratuity.is_a? Numeric) || (@gratuity.integer?)
23
- end
24
-
25
- def string_based
26
- case @gratuity.downcase
27
- when 'high' then calculation 25
28
- when 'standard' then calculation 18
29
- when 'low' then calculation 15
30
- end
31
- end
32
-
33
- def calculation gratuity = @gratuity
34
- @total += @total * (gratuity.to_f / 100)
35
- end
36
- end
37
-
38
- end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SneakyMani
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sneaky_mani
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manikanta