gemfileAB 0.0.4
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/myGem.rb +62 -0
- metadata +43 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: d87fd78c738ee25f005fddfeb05ac952e32103b3
|
|
4
|
+
data.tar.gz: 95cefb21b3fcc3e1ff4f4d9072169bfa57f0e7e0
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: f64a6a3f6b5f939bdbbc7f3c4304f1fc9e3461cbdf3d00d80ba3f35cf4a65612c4b0966b1b6f5e80100c9f7d091bd8be44da34743865cd9187aa0079eb3b2deb
|
|
7
|
+
data.tar.gz: 4e68c6a47e9cd757598e2bae0b2a02ed580d385253ec7501a7ce436691acd0025a80a89a825fb2eb0d54fbb9f93c3f2d936c61974c1f38a39922b81b30787d48
|
data/lib/myGem.rb
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
require 'json'
|
|
2
|
+
class GemFile
|
|
3
|
+
def self.showCountry
|
|
4
|
+
@arrCountry = ['Ireland', "1"]
|
|
5
|
+
return @arrCountry
|
|
6
|
+
end
|
|
7
|
+
def self.showState
|
|
8
|
+
@arrState = ['Leinster', "1"], ['Munster',"2"], ['Connacht', "3"], ['Ulster', "4"]
|
|
9
|
+
return @arrState
|
|
10
|
+
end
|
|
11
|
+
def self.showCity
|
|
12
|
+
@arrCity = ['Dublin', "1"], ['Cork',"2"], ['Limerick', "3"], ['Galway', "4"], ['Tallaght',"5"], ['Waterford', "6"], ['Swords', "7"], ['Drogheda', "8"], ['Dundalk', "9"]
|
|
13
|
+
return @arrCity
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.countryDecodearray(countryID)
|
|
17
|
+
@countryID = countryID
|
|
18
|
+
if @countryID == "1"
|
|
19
|
+
@countryName = "Ireland"
|
|
20
|
+
end
|
|
21
|
+
return @countryName
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.stateDecodearray(stateID)
|
|
25
|
+
@stateID = stateID
|
|
26
|
+
if @stateID == "1"
|
|
27
|
+
@stateName = "Leinster"
|
|
28
|
+
elsif @stateID == "2"
|
|
29
|
+
@stateName = "Munster"
|
|
30
|
+
elsif @stateID == "3"
|
|
31
|
+
@stateName = "Connacht"
|
|
32
|
+
elsif @stateID == "4"
|
|
33
|
+
@stateName = "Ulster"
|
|
34
|
+
end
|
|
35
|
+
return @stateName
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def self.cityDecodearray(cityID)
|
|
39
|
+
@cityID = cityID
|
|
40
|
+
if @cityID == "1"
|
|
41
|
+
@cityName = "Dublin"
|
|
42
|
+
elsif @cityID == "2"
|
|
43
|
+
@cityName = "Cork"
|
|
44
|
+
elsif @cityID == "3"
|
|
45
|
+
@cityName = "Limerick"
|
|
46
|
+
elsif @cityID == "4"
|
|
47
|
+
@cityName = "Galway"
|
|
48
|
+
elsif @cityID == "5"
|
|
49
|
+
@cityName = "Tallaght"
|
|
50
|
+
elsif @cityID == "6"
|
|
51
|
+
@cityName = "Waterford"
|
|
52
|
+
elsif @cityID == "7"
|
|
53
|
+
@cityName = "Swords"
|
|
54
|
+
elsif @cityID == "8"
|
|
55
|
+
@cityName = "Drogheda"
|
|
56
|
+
elsif @cityID == "9"
|
|
57
|
+
@cityName = "Dundalk"
|
|
58
|
+
end
|
|
59
|
+
return @cityName
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: gemfileAB
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.4
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Kapilan
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2018-04-18 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: create a dropdown list
|
|
14
|
+
email: x17116503@student.ncirl.ie
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/myGem.rb
|
|
20
|
+
homepage: http://rubygems.org/gems/gemfileAB
|
|
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.8
|
|
40
|
+
signing_key:
|
|
41
|
+
specification_version: 4
|
|
42
|
+
summary: DropDownList
|
|
43
|
+
test_files: []
|