isveg 0.0.0
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 +7 -0
- data/lib/isveg.rb +14 -0
- metadata +43 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: fa089105d11e7ac86bfcd6e7666fbb2d298fc35b
|
|
4
|
+
data.tar.gz: 20bc1bd0a75ba2244b972e8013a5b435a3182093
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: d2e456a5b1a305ca5d9d242180d23cd1442ff237a865ce64fef6b3d164d32d270bb5868f499d538f51cab1377683b5f5fa93b6bb604d89c49f508f100edc1cb0
|
|
7
|
+
data.tar.gz: c73a5f169846515c5730258e66efbb9bab0b2bec475d77e16066181595a8a6a6bd9e4e6e0ad91b9162a5647efd24c5bd48767735da312250a17e5ced85db9abe
|
data/lib/isveg.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class Checkveg
|
|
2
|
+
def self.runcheck(product_name)
|
|
3
|
+
meats = ["lamb", "beef", "pork", "prawn", "chicken", "fish"]
|
|
4
|
+
|
|
5
|
+
meats.any { |item|
|
|
6
|
+
if product_name.include? item
|
|
7
|
+
puts "Not suitable for vegans or vegetarians"
|
|
8
|
+
end
|
|
9
|
+
}
|
|
10
|
+
puts "Suitable for vegans or vegetarians" if not meats.include? product_name
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
end
|
|
14
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: isveg
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Keith Feeney
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2019-03-16 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: A simple gem
|
|
14
|
+
email: x15015556@student.ncirl.ie
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/isveg.rb
|
|
20
|
+
homepage: https://c9.io/keithfeeneynci/cad_project
|
|
21
|
+
licenses: []
|
|
22
|
+
metadata: {}
|
|
23
|
+
post_install_message:
|
|
24
|
+
rdoc_options: []
|
|
25
|
+
require_paths:
|
|
26
|
+
- lib
|
|
27
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
28
|
+
requirements:
|
|
29
|
+
- - ">="
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '0'
|
|
32
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
33
|
+
requirements:
|
|
34
|
+
- - ">="
|
|
35
|
+
- !ruby/object:Gem::Version
|
|
36
|
+
version: '0'
|
|
37
|
+
requirements: []
|
|
38
|
+
rubyforge_project:
|
|
39
|
+
rubygems_version: 2.6.11
|
|
40
|
+
signing_key:
|
|
41
|
+
specification_version: 4
|
|
42
|
+
summary: Test to see if product_name contains meat
|
|
43
|
+
test_files: []
|