listof 0.0.5 → 0.0.6

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: 61469e6a9e7aa80ed77dbfb70cf6054c394db9d8
4
- data.tar.gz: 7ce54ae2f41fec25ec98604c4aa7596ff95516bc
3
+ metadata.gz: 83d27c6f4ad321d72afcd12c2371bfe030a477fe
4
+ data.tar.gz: 0dae0202c3b1e45386dbf7f6d87b0cee6859e6be
5
5
  SHA512:
6
- metadata.gz: c05b79e4c704aed35d60a28f479a53cc00061d92dbafe4c8e1a90a450b58e6a5280b2253f971fb9cb226a133f5c5c209b330d1f023885cda967806a40050e725
7
- data.tar.gz: 3e9b68f328e7d1a3b19bca45745d55fc06e43a7fe6c69aa44211550259f170eabbf012de4ebd9b835416f6a6e7dd09bc1952a561e02744cb90613ca954c63c33
6
+ metadata.gz: 06c014bf310a2c57126bc42415eb844a8900a9efe73215af46d8e5c9de2f41611a5ba0f964333fd58ce5153eae0533e23b0e45f1291db4db4005def092e9c889
7
+ data.tar.gz: 270388f4af87edcdf3abb074166c223ccb061b004fdc5ab56e2cead65d2480b24946e0339635567ef8fdcba93a7ff1e2f192656cee1675a83a7f14bf57316aac
data/README.md CHANGED
@@ -6,7 +6,32 @@ http://listof.herokuapp.com
6
6
 
7
7
  # Listof
8
8
 
9
- TODO: Write a gem description & gem installation from repo
9
+ ### Why ?
10
+
11
+ As a developer I found myself wasting a lot of time to get a ``list of`` the US states
12
+
13
+ - Google: list of the US states
14
+ - Jump to wikipedia or some other webpage
15
+ - Copy paste(usually is a table) to my editor (sublime)
16
+ - Remove unwanted info
17
+ - Finally the text format
18
+ - Save it in a file and IO read
19
+ - Convert them to JSON, xml etc.. on the go
20
+
21
+ ### Solution
22
+
23
+ ```
24
+ irb> Listof.find('us_states')
25
+ ```
26
+
27
+ ### Current Situation
28
+
29
+ Currently it is packed in a gem ``listof``.
30
+ Future plan to pack with pip, npm or other package managers
31
+
32
+ - Interface: http://listof.herokuapp.com/
33
+ - Repo: https://github.com/kevincobain2000/listof
34
+
10
35
 
11
36
  ## Installation
12
37
 
@@ -72,4 +97,4 @@ puts Listof.all().to_yaml
72
97
  3. Add Your file with the list in data/**sushi_fishes.txt**
73
98
  4. Commit your changes (`git commit -am 'Add your list'`)
74
99
  5. Push to the branch (`git push origin my-new-feature`)
75
- 6. Create new Pull Request to **develop**
100
+ 6. Create new Pull Request to **master**
data/data/alphabets.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://www.downhillpublishing.com/v/vspfiles/photos/Decorative_Alphabets-2.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689222/cwtwdgmc0cd8ltnvdctd.jpg
2
2
  a
3
3
  b
4
4
  c
@@ -1,4 +1,4 @@
1
- #image http://blog.brainfacts.org/wp-content/uploads/happy-baby.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689290/zb3dxb2o3icyeksdbn84.jpg
2
2
  james
3
3
  john
4
4
  robert
@@ -1,5 +1,5 @@
1
1
  #source http://www.forbes.com/billionaires/list/9/#tab:overall
2
- #image http://www.workingmomsagainstguilt.com/wp-content/uploads/2012/10/Sara-Blakely-Spanx-Forbes-billionaire.jpeg
2
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689314/e57ssav8gucchzwxliw1.jpg
3
3
  Carlos Slim Helu & family
4
4
  Bill Gates
5
5
  Amancio Ortega
data/data/countries.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://media.dev.umpirsky.com/2012/03/country-flags.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689334/zyibogipt3u5y45be2ie.jpg
2
2
  Afghanistan
3
3
  Albania
4
4
  Algeria
@@ -1,4 +1,4 @@
1
- #image http://upload.wikimedia.org/wikipedia/commons/thumb/8/80/Asia_(orthographic_projection).svg/541px-Asia_(orthographic_projection).svg.png
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689355/hdsonjmqmnvh0kbazuoo.png
2
2
  China
3
3
  India
4
4
  Indonesia
@@ -1,5 +1,4 @@
1
- #source http://apps.mercenie.com/internet-browser/list-top-10-internet-browsers-windows-7-8-xp/#ixzz38f5Yj8Y2
2
- #image http://www.browsers.org.uk/files/2012/03/browsers-icons.png
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689411/hquraqcn6w6bovl9autv.png
3
2
  Google Chrome
4
3
  Mozilla Firefox
5
4
  Internet Explorer
@@ -1,4 +1,4 @@
1
- #image http://blog.headsupfortails.com/wp-content/uploads/2014/02/Female-doggie.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689430/zv67hion8cqydbee6unx.jpg
2
2
  Bella
3
3
  Lucy
4
4
  Molly
@@ -1,4 +1,4 @@
1
- #image https://www.petfinder.com/wp-content/uploads/2012/11/147083304-dogs-home-alone-all-day-632x475.jpg
1
+ #image https://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689451/jrnl5ck3fh20keenj7uz.jpg
2
2
  Max
3
3
  Bailey
4
4
  Charlie
@@ -1,4 +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
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689476/puc09qso2riinlsetzfh.png
2
2
  Albania
3
3
  Andorra
4
4
  Armenia
data/data/fruits.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://www.kenyaforum.net/wp-content/uploads/2014/03/fruits-image.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689499/lhtea7cfy1crzy8uke72.jpg
2
2
  Apple
3
3
  Apricot
4
4
  Avocado
@@ -1,4 +1,4 @@
1
- #image http://postmediaprovince.files.wordpress.com/2014/01/brave-new-girls-jenna-web.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689524/keqvzrw5hnwgyanhvkp5.jpg
2
2
  Sophia
3
3
  Emma
4
4
  Olivia
@@ -1,5 +1,5 @@
1
1
  #source http://harrypotter.wikia.com/wiki/List_of_spells
2
- #image http://2.bp.blogspot.com/-mNquibfVmUE/T3wzzxs_SPI/AAAAAAAAAeI/1mG6Xdmhvt0/s1600/hermione-granger-hp6-dvd-right-320x480-iphone.jpg
2
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689546/x90i475krqmjb204t908.jpg
3
3
  Accio
4
4
  Age Line
5
5
  Aguamenti
data/data/hobbies.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://lgalaviz.files.wordpress.com/2012/01/hobby.png
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689563/gptacqb2svj0e1frnebs.png
2
2
  Recycling
3
3
  Organic farming
4
4
  Composting
@@ -1,4 +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
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689582/rdf0dz149fbq4jehavmf.png
2
2
  Indian Oil Corporation Ltd.
3
3
  Reliance Industries Ltd.
4
4
  Bharat Petroleum Corporation Ltd.
data/data/jobs.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://www.theonequestion.com/wp-content/uploads/2013/10/jobhunt.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689607/fgc6izbh39tzzfb442j8.jpg
2
2
  Engineer
3
3
  Doctor
4
4
  Manager
data/data/jokes.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://naijabird.com/wp-content/uploads/2013/08/600px-Joke_Alert.svg_.png
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689624/j4rhhuodsqoah001lhcs.png
2
2
  Why do Farts stink? A: So that Deaf people can enjoy them too.
3
3
  Why did the Hedgehog cross the road? A: To see his Flat Mate.
4
4
  What do you call a Fish without an eye? A: A 'Fsh'!
@@ -1,4 +1,4 @@
1
- #image http://judoinfo.com/images/ukitoshi.gif
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689646/zcjfaxvfaschrzujurpw.gif
2
2
 
3
3
 
4
4
 
@@ -1,5 +1,5 @@
1
1
  #source http://www.linguanaut.com/languages.htm
2
- #image http://www.bitesizedlanguages.com/app/webroot/attachments/2013/05/language-learning.jpg
2
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689685/ktieor84n9bkhbjhg7k0.jpg
3
3
  Abanyom (Bantu)
4
4
  Abaza (Northwest Caucasian)
5
5
  Abkhaz or Abkhazian (Northwest Caucasian)
data/data/last_names.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://3.bp.blogspot.com/-D35jMmS6Rjw/UaLKXnfkB1I/AAAAAAAAAXU/-SHOMNBgYeM/s1600/Most_Popular_Male_Names.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689715/gb2etuoyajgi5bg0lfue.jpg
2
2
  smith
3
3
  johnson
4
4
  williams
@@ -1,4 +1,4 @@
1
- #image https://pbs.twimg.com/profile_images/1980473583/imdblogo.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689731/sedcvwjspaze85fq5bid.jpg
2
2
  The Shawshank Redemption (1994)
3
3
  The Godfather (1972)
4
4
  The Godfather: Part II (1974)
data/data/non_words.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://dublab.com/wp-content/uploads/2012/10/non_720px.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689836/bpsjzdjyse4iyhj3m3xg.jpg
2
2
  nona
3
3
  nonabrasive
4
4
  nonabsorbable
data/data/occupations.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://www.worldoffemale.com/wp-content/uploads/2013/01/women-job.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689928/t8fvcaciq2shmomwvzsk.jpg
2
2
  Engineer
3
3
  Doctor
4
4
  Manager
data/data/phobias.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://www.docgautham.com/yahoo_site_admin/assets/images/phobia.304151103_std.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689945/vstrismfa1p7kwvucr9y.jpg
2
2
  Ablutophobia- Fear of washing or bathing.
3
3
  Acarophobia- Fear of itching or of the insects that cause itching.
4
4
  Acerophobia- Fear of sourness.
data/data/questions.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://chuckanutwa.org/yahoo_site_admin/assets/images/purzen_Icon_with_question_mark.69152232_std.png
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689974/efxq4dutg5hizjr7t73s.png
2
2
  Whats your full name?
3
3
  How old are you?
4
4
  Whats your Birthday?
data/data/rap_artists.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  #source http://digitaldreamdoor.com/pages/best_rap-artists.html
2
- #image http://reallifebh.com/wp-content/uploads/2012/10/i-love-rap.jpg
2
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689992/fuzsaimmvv6oy6yv0pj4.jpg
3
3
  Run-D.M.C.
4
4
  Public Enemy
5
5
  2Pac
data/data/religions.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://images.elephantjournal.com/wp-content/uploads/2011/03/Religious_syms.png
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408690010/f2vh2k7muvvq5seo9yko.png
2
2
  Abrahamic religions
3
3
  Babism
4
4
  Bahá'í Faith
@@ -1,5 +1,5 @@
1
1
  #source http://www.thesearchenginelist.com/
2
- #image http://www.spectrumnetdesigns.com/wp-content/uploads/2013/10/search-engines.png
2
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408690025/zk7ewjfvifdbhmrqz2lt.png
3
3
  Google
4
4
  Bing
5
5
  Yahoo! Search
data/data/sports.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://iosicongallery.com/wp-content/uploads/2011/12/Performa_Sports.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408690043/bwa6dcb4rnsaqygoyghx.jpg
2
2
  Aquatics
3
3
  Archery
4
4
  Automobile Racing
@@ -1,5 +1,5 @@
1
1
  #source http://www.ranks.nl/stopwords
2
- #image http://us.123rf.com/450wm/radiantskies/radiantskies1211/radiantskies121103703/16578627-abstract-word-cloud-for-stop-words-with-related-tags-and-terms.jpg
2
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408690061/qrh3xkyellj7wsxj3xzg.jpg
3
3
  a
4
4
  about
5
5
  above
data/data/top_movies.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  #source imdb
2
- #image https://lh4.googleusercontent.com/-sM8cK0HGzSE/UrhPe0YwFAI/AAAAAAAAHlo/COlCTf5Dt4w/w426-h341/13%2B-%2B1pirated-movies-of-2013.jpg
2
+ #image https://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408690077/t7xvzmtrxf2eeoacfofe.jpg
3
3
  The Shawshank Redemption (1994)
4
4
  The Godfather (1972)
5
5
  The Godfather: Part II (1974)
data/data/us_states.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://www.mcatoolkit.org/images/locator_maps/US_State-Summaries_Map.png
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408690106/eqk7vybs2wly3dnyvm6b.png
2
2
  Alabama
3
3
  Alaska
4
4
  Arizona
data/data/vegetables.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://content.answcdn.com/main/content/img/wiley/visualfood/03_LegumesFruits/40801-Tomate.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408690122/kqh1dm32aiaaqjmdwqmj.jpg
2
2
  Amaranthus, leaf (Amaranthus cruentus)
3
3
  Arugula/known as rocket/rucola not to be confused with wild rocket/ (Eruca sativa)
4
4
  Artichoke, Chinese(Stachys affinis)
data/data/weapons.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://fc02.deviantart.net/fs70/i/2011/329/b/f/modern_warfare_2_weapons_by_pedrokomando-d4h9c29.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408690138/uwqiqlf8uheiadzgaaxx.jpg
2
2
  A-bomb
3
3
  ammo
4
4
  ammunition
data/data/xbox_games.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image https://pbs.twimg.com/profile_images/378800000512288604/62781460ca85f9151a8668d3841e3e51_400x400.png
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408690160/d08umfda9u2zmwxkljco.png
2
2
  RBI Baseball 14
3
3
  Valiant Hearts: The Great War
4
4
  Guacamelee! Super Turbo Championship Edition
data/data/youtubers.txt CHANGED
@@ -1,4 +1,4 @@
1
- #image http://www.kryptonchronicles.com/YouTube.png
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408690177/iefyms4guk4ja5kzmuuf.png
2
2
  PewDiePie
3
3
  DisneyCollectorBR
4
4
  TheFineBros
@@ -1,4 +1,4 @@
1
- #image http://www.modny73.com/wp-content/uploads/2012/02/Zombie_Photography12.jpg
1
+ #image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408690199/y6nj2siz4qemxf7cqh3m.jpg
2
2
  Dawn of the Dead
3
3
  Night of the Living Dead
4
4
  Shaun of the Dead
@@ -1,3 +1,3 @@
1
1
  module Listof
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/upload_new.rb ADDED
@@ -0,0 +1,11 @@
1
+ require 'net/http'
2
+ require 'json'
3
+
4
+ source = "http://listof.herokuapp.com/submit/all_submitted.json"
5
+ resp = Net::HTTP.get_response(URI.parse(source))
6
+ data = resp.body
7
+ result = JSON.parse(data)
8
+
9
+ result.each do |title, list|
10
+ File.open("data/#{title}.txt", 'w') { |file| file.write(list.join("\n")) }
11
+ end
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.5
4
+ version: 0.0.6
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-27 00:00:00.000000000 Z
11
+ date: 2014-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -120,6 +120,7 @@ files:
120
120
  - lib/listof/version.rb
121
121
  - listof.gemspec
122
122
  - test/listof.rb
123
+ - upload_new.rb
123
124
  homepage: http://listof.herokuapp.com/api/dog_names_male
124
125
  licenses:
125
126
  - MIT