turkish_list 0.1.2 → 0.1.3
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/turkish_list.rb +3 -14
- data/lib/turkish_list/city.rb +13 -0
- data/{cities.json → lib/turkish_list/data/city_list.rb} +1 -1
- data/lib/turkish_list/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 071507eb2f71e2e249c245ba4cdb04c23aaee39c416727c1fa4b54a99d1ef4cf
|
4
|
+
data.tar.gz: 64134f2305de4c84fbb5ae75d5e55535d8fa38b1502108c6831f5d3cae0c289d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf5cbe176032e5171013b6bd7743b569afc587b2cb203c0cc85f0a700483def78da18b1f354734ede1fb317d263372393515c7228cbe5ddb02d07a73b17431fa
|
7
|
+
data.tar.gz: d541e57a8d3a1ce73a7117deaa3078479312ff444ba35ba8ac2f4c1d322d8a4bcbf577a53af3633158a9f4bac7dbf74da5faf3693ac444a5566e067f2b5e9fee
|
data/Gemfile.lock
CHANGED
data/lib/turkish_list.rb
CHANGED
@@ -1,21 +1,10 @@
|
|
1
1
|
require "turkish_list/version"
|
2
|
-
require '
|
2
|
+
require 'turkish_list/city'
|
3
3
|
|
4
4
|
module TurkishList
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
def city_name_for_plate(plate_number)
|
9
|
-
file = File.read('../cities.json')
|
10
|
-
cities = JSON.parse(file)
|
11
|
-
city_name = cities.select {|k,v| k == plate_number.to_s}
|
12
|
-
return city_name.values
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.who_am_i
|
16
|
-
puts "Cities class"
|
17
|
-
end
|
18
|
-
|
6
|
+
def self.city_name_by_plate_number(plate_number)
|
7
|
+
City.find_by_plate_number(plate_number)
|
19
8
|
end
|
20
9
|
|
21
10
|
end
|
data/lib/turkish_list/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turkish_list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hasan Karlı
|
@@ -26,8 +26,9 @@ files:
|
|
26
26
|
- Rakefile
|
27
27
|
- bin/console
|
28
28
|
- bin/setup
|
29
|
-
- cities.json
|
30
29
|
- lib/turkish_list.rb
|
30
|
+
- lib/turkish_list/city.rb
|
31
|
+
- lib/turkish_list/data/city_list.rb
|
31
32
|
- lib/turkish_list/version.rb
|
32
33
|
- turkish_list.gemspec
|
33
34
|
homepage: https://github.com/hasankarli/turkish_list
|