listof 0.0.2 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68b5059d9651c1820b4e2aaedfaca9eacbcd0e69
4
- data.tar.gz: e136b0bf020c5509c6d4a9485910cb80e66ab022
3
+ metadata.gz: 3097a4658fb2e2b90b5cf82866fc5ebb3cc09c07
4
+ data.tar.gz: bfca92cf47db3cce43122c4f373bc9d3762e28b1
5
5
  SHA512:
6
- metadata.gz: a2b38288d5f3b9e36e9a0dc908f61aa113e6131219ca15d86aa14df23edd4457a0bc38b0e7b49210ec0033cd7d51669696839a639954cb0813f916facb08bfbd
7
- data.tar.gz: 55fb06328fd05e277538a7d1ef17a0d9c0c74afc95fcab8533810324afaf4b037eb9fbc42cb9fec4d4993c5dcc974e45043b2380fa5a1cf399dea30f0692c6d8
6
+ metadata.gz: 347a9d8204270f44e044a19e97bca46bda8bd9324a810f3d5b03d23f8dd88ce1d3fc749bfd30e341689bf7402b46c17618202e97257224cdc0973ceadcd8dc0b
7
+ data.tar.gz: 97771383b942bc7cd648927c2dc38dec8a426015c34d4cb18a88531c733add8212a4ad7248bbc1be7290f99af28416f3d7710d59fcb0843b32a824d9ff68b96d
data/README.md CHANGED
@@ -33,6 +33,36 @@ puts Listof.by_alphabet("c")
33
33
  puts Listof.all().to_yaml
34
34
  ```
35
35
 
36
+ ## List of
37
+
38
+ 1. Alphabets ``listof.find('alphabets')``
39
+ 2. Baby Names Male ``listof.find('baby_names_male')``
40
+ 3. Countries ``listof.find('countries')``
41
+ 4. Countries Asia ``listof.find('countries_asia')``
42
+ 5. Dog Names Female ``listof.find('dog_names_female')``
43
+ 6. Dog Names Male ``listof.find('dog_names_male')``
44
+ 7. European Countries ``listof.find('european_countries')``
45
+ 8. Fruits ``listof.find('fruits')``
46
+ 9. Girl Names 2014 ``listof.find('girl_names_2014')``
47
+ 10. Hobbies ``listof.find('hobbies')``
48
+ 11. Indian Companies ``listof.find('indian_companies')``
49
+ 12. Jobs ``listof.find('jobs')``
50
+ 13. Kanji Three Strokes ``listof.find('kanji_three_strokes')``
51
+ 14. Last Names ``listof.find('last_names')``
52
+ 15. Movies Imdb Top 250 ``listof.find('movies_imdb_top_250')``
53
+ 16. Non Words ``listof.find('non_words')``
54
+ 17. Occupations ``listof.find('occupations')``
55
+ 18. Phobias ``listof.find('phobias')``
56
+ 19. Questions ``listof.find('questions')``
57
+ 20. Religions ``listof.find('religions')``
58
+ 21. Sports ``listof.find('sports')``
59
+ 22. Top Movies ``listof.find('top_movies')``
60
+ 23. Us States ``listof.find('us_states')``
61
+ 24. Vegetables ``listof.find('vegetables')``
62
+ 25. Weapons ``listof.find('weapons')``
63
+ 26. Xbox Games ``listof.find('xbox_games')``
64
+ 27. Youtubers ``listof.find('youtubers')``
65
+ 28. Zombie Movies ``listof.find('zombie_movies')``
36
66
 
37
67
  ## Contributing
38
68
 
data/data/a/alphabets.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://www.downhillpublishing.com/v/vspfiles/photos/Decorative_Alphabets-2.jpg
1
2
  a
2
3
  b
3
4
  c
@@ -1,3 +1,4 @@
1
+ #image http://blog.brainfacts.org/wp-content/uploads/happy-baby.jpg
1
2
  james
2
3
  john
3
4
  robert
data/data/c/countries.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://media.dev.umpirsky.com/2012/03/country-flags.jpg
1
2
  Afghanistan
2
3
  Albania
3
4
  Algeria
@@ -1,3 +1,4 @@
1
+ #image http://upload.wikimedia.org/wikipedia/commons/thumb/8/80/Asia_(orthographic_projection).svg/541px-Asia_(orthographic_projection).svg.png
1
2
  China
2
3
  India
3
4
  Indonesia
@@ -1,3 +1,4 @@
1
+ #image http://blog.headsupfortails.com/wp-content/uploads/2014/02/Female-doggie.jpg
1
2
  Bella
2
3
  Lucy
3
4
  Molly
@@ -1,3 +1,4 @@
1
+ #image https://www.petfinder.com/wp-content/uploads/2012/11/147083304-dogs-home-alone-all-day-632x475.jpg
1
2
  Max
2
3
  Bailey
3
4
  Charlie
@@ -1,3 +1,4 @@
1
+ #image http://upload.wikimedia.org/wikipedia/commons/thumb/d/de/Europe_orthographic_Caucasus_Urals_boundary.svg/1026px-Europe_orthographic_Caucasus_Urals_boundary.svg.png
1
2
  Albania
2
3
  Andorra
3
4
  Armenia
data/data/f/fruits.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://www.kenyaforum.net/wp-content/uploads/2014/03/fruits-image.jpg
1
2
  Apple
2
3
  Apricot
3
4
  Avocado
@@ -1,3 +1,4 @@
1
+ #image http://pad3.whstatic.com/images/thumb/a/a3/Flirt-if-You-Are-a-Shy-Girl-Step-4.jpg/670px-Flirt-if-You-Are-a-Shy-Girl-Step-4.jpg
1
2
  Sophia
2
3
  Emma
3
4
  Olivia
data/data/h/hobbies.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://lgalaviz.files.wordpress.com/2012/01/hobby.png
1
2
  Recycling
2
3
  Organic farming
3
4
  Composting
@@ -1,3 +1,4 @@
1
+ #image http://www.norbert-dentressangle.co.uk/var/norbert-dentressangle/storage/images/site_unitedk/transport/keypl-4pl/case-studies/tata-steel/251499-2-eng-GB/Tata-Steel.png
1
2
  Indian Oil Corporation Ltd.
2
3
  Reliance Industries Ltd.
3
4
  Bharat Petroleum Corporation Ltd.
data/data/j/jobs.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://www.theonequestion.com/wp-content/uploads/2013/10/jobhunt.jpg
1
2
  Engineer
2
3
  Doctor
3
4
  Manager
@@ -1,3 +1,4 @@
1
+ #image http://judoinfo.com/images/ukitoshi.gif
1
2
 
2
3
 
3
4
 
@@ -1,3 +1,4 @@
1
+ #image http://3.bp.blogspot.com/-D35jMmS6Rjw/UaLKXnfkB1I/AAAAAAAAAXU/-SHOMNBgYeM/s1600/Most_Popular_Male_Names.jpg
1
2
  smith
2
3
  johnson
3
4
  williams
@@ -1,3 +1,4 @@
1
+ #image https://pbs.twimg.com/profile_images/1980473583/imdblogo.jpg
1
2
  The Shawshank Redemption (1994)
2
3
  The Godfather (1972)
3
4
  The Godfather: Part II (1974)
data/data/n/non_words.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://dublab.com/wp-content/uploads/2012/10/non_720px.jpg
1
2
  nona
2
3
  nonabrasive
3
4
  nonabsorbable
@@ -1,3 +1,4 @@
1
+ #image http://www.clipartguide.com/_named_clipart_images/0511-1001-2605-4324_Occupation_Cartoon_of_a_Chef_Holding_a_Covered_Tray_clipart_image.jpg
1
2
  Engineer
2
3
  Doctor
3
4
  Manager
data/data/p/phobias.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://www.docgautham.com/yahoo_site_admin/assets/images/phobia.304151103_std.jpg
1
2
  Ablutophobia- Fear of washing or bathing.
2
3
  Acarophobia- Fear of itching or of the insects that cause itching.
3
4
  Acerophobia- Fear of sourness.
data/data/q/questions.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://chuckanutwa.org/yahoo_site_admin/assets/images/purzen_Icon_with_question_mark.69152232_std.png
1
2
  Whats your full name?
2
3
  How old are you?
3
4
  Whats your Birthday?
data/data/r/religions.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://images.elephantjournal.com/wp-content/uploads/2011/03/Religious_syms.png
1
2
  Abrahamic religions
2
3
  Babism
3
4
  Bahá'í Faith
data/data/s/sports.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://www.ci.dearborn-heights.mi.us/images/PR/play-sports-hi.png
1
2
  Aquatics
2
3
  Archery
3
4
  Automobile Racing
@@ -1,4 +1,5 @@
1
- #imdb
1
+ #source imdb
2
+ #image http://static1.businessinsider.com/image/52c5922369bedd4808bd3b50/the-most-pirated-movies-of-2013.jpg
2
3
  The Shawshank Redemption (1994)
3
4
  The Godfather (1972)
4
5
  The Godfather: Part II (1974)
data/data/u/us_states.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://www.mcatoolkit.org/images/locator_maps/US_State-Summaries_Map.png
1
2
  Alabama
2
3
  Alaska
3
4
  Arizona
@@ -1,3 +1,4 @@
1
+ #image http://vegetablegardenhub.com/wp-content/uploads/2012/03/vegetable-families.jpg
1
2
  Amaranthus, leaf (Amaranthus cruentus)
2
3
  Arugula/known as rocket/rucola not to be confused with wild rocket/ (Eruca sativa)
3
4
  Artichoke, Chinese(Stachys affinis)
data/data/w/weapons.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://fc02.deviantart.net/fs70/i/2011/329/b/f/modern_warfare_2_weapons_by_pedrokomando-d4h9c29.jpg
1
2
  A-bomb
2
3
  ammo
3
4
  ammunition
@@ -1,3 +1,4 @@
1
+ #image https://pbs.twimg.com/profile_images/378800000512288604/62781460ca85f9151a8668d3841e3e51_400x400.png
1
2
  RBI Baseball 14
2
3
  Valiant Hearts: The Great War
3
4
  Guacamelee! Super Turbo Championship Edition
data/data/y/youtubers.txt CHANGED
@@ -1,3 +1,4 @@
1
+ #image http://sd.keepcalm-o-matic.co.uk/i/keep-calm-im-a-youtuber-.png
1
2
  PewDiePie
2
3
  DisneyCollectorBR
3
4
  TheFineBros
@@ -1,3 +1,4 @@
1
+ #image http://www.modny73.com/wp-content/uploads/2012/02/Zombie_Photography12.jpg
1
2
  Dawn of the Dead
2
3
  Night of the Living Dead
3
4
  Shaun of the Dead
@@ -10,12 +10,15 @@ module Thelister
10
10
  contents_hash = {}
11
11
  if File.file?(file_for_query)
12
12
  f = File.open(file_for_query)
13
- f.each_line.with_index do |line, lineno = 1|
13
+ _lineno = 1
14
+ f.each_line.with_index do |line|
14
15
  line = line.strip
15
16
  if !line.start_with?("#") and line.length >= 1
16
- contents_hash[lineno] = line
17
- else
18
- contents_hash['source'] = line.sub("#","")
17
+ contents_hash[_lineno] = line
18
+ _lineno += 1
19
+ elsif line.start_with?("#")
20
+ l = line.sub("#", "").split()
21
+ contents_hash[l[0]] = l[1]
19
22
  end
20
23
  end
21
24
  end
@@ -1,3 +1,3 @@
1
1
  module Listof
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/test/listof.rb CHANGED
@@ -9,4 +9,6 @@ require 'listof'
9
9
  # puts Listof.by_alphabet("c")
10
10
  # puts Listof.all().to_yaml
11
11
  puts Listof.find("top_movies").to_yaml
12
- puts Listof.find("top_movies").to_json
12
+ top_movies = Listof.find("top_movies")
13
+ puts top_movies['source']
14
+ puts top_movies['image']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: listof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pulkit Kathuria
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-25 00:00:00.000000000 Z
11
+ date: 2014-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.0.14
135
+ rubygems_version: 2.0.3
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: List of anything countries, cities, food, allergies, shops