nyros_form 0.1.6 → 0.1.7

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: 447b001040ffb17463d6da2a4d80a10fe4ad3d740b81fd536b6912646a57446f
4
- data.tar.gz: 8f4f666e33217689bf6bea4faa1fade216fa5aabb0d799d4fdff62ee44a86a06
3
+ metadata.gz: c67f19a2867f180d6a6f9db11b5f5013c9774c3840bf42f95663e572a8412499
4
+ data.tar.gz: e3fd75033004ac6a0af365fb7fd797fc9dd40d9277f87856178cd3bdae589ebb
5
5
  SHA512:
6
- metadata.gz: 926c10d18c713981a432b88da7f04f5472a0370406b989075cbb92428ac4295f258e51ade6c37d6390bd23c849d0fea69d89063c8a2734c1b3c493e7a1ef6cb6
7
- data.tar.gz: d5b646018efc1cfff45d985067c1da23a2aca90684197bde15b11e644b95ddb411c7a88ef9dc55e7d8ba33d22597b2299ac084fb9c8aca2f2a0451d0daed3a83
6
+ metadata.gz: 38da43dcc16d935a42180105500af77c1de71a24af413a9fb64a3ca596b77e2a917286bdb693b76357f899703c20dd6fce31aadd9a5802952b6d459e63706d6c
7
+ data.tar.gz: 1d90a76e51031292524d656261e85d83405d0964b22b5c78c5cc2f0d46e1e8c2f8fb3412adaaa340bde4780d846b26ad46680f02dedf1a7727527f35200e6352
data/lib/nyros_form.rb CHANGED
@@ -4,5 +4,5 @@ require "nyros_form/builder"
4
4
 
5
5
  module NyrosForm
6
6
  class Error < StandardError; end
7
-
7
+ # Your code goes here...
8
8
  end
@@ -14,26 +14,30 @@ module NyrosForm
14
14
  @gratuity = gratuity
15
15
  end
16
16
 
17
- def generate
18
- return calculation if number_based?
19
- string_based
20
- end
21
-
22
- def number_based?
23
- (@gratuity.is_a? Numeric) || (@gratuity.integer?)
24
- end
25
-
26
- def string_based
27
- case @gratuity.downcase
28
- when 'high' then calculation 100
29
- when 'standard' then calculation 200
30
- when 'low' then calculation 300
31
- end
32
- end
33
-
34
- def calculation gratuity = @gratuity
35
- @total += @total * (gratuity.to_f / 100)
36
- end
17
+ # def name
18
+ # puts "Hello world!"
19
+ # end
20
+
21
+ # def generate
22
+ # return calculation if number_based?
23
+ # string_based
24
+ # end
25
+
26
+ # def number_based?
27
+ # (@gratuity.is_a? Numeric) || (@gratuity.integer?)
28
+ # end
29
+
30
+ # def string_based
31
+ # case @gratuity.downcase
32
+ # when 'high' then calculation 100
33
+ # when 'standard' then calculation 200
34
+ # when 'low' then calculation 300
35
+ # end
36
+ # end
37
+
38
+ # def calculation gratuity = @gratuity
39
+ # @total += @total * (gratuity.to_f / 100)
40
+ # end
37
41
  end
38
42
 
39
43
  end
@@ -1,3 +1,3 @@
1
1
  module NyrosForm
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nyros_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - raju rekadi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-11 00:00:00.000000000 Z
11
+ date: 2019-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler