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 +4 -4
- data/README.md +27 -2
- data/data/alphabets.txt +1 -1
- data/data/baby_names_male.txt +1 -1
- data/data/billionaires.txt +1 -1
- data/data/countries.txt +1 -1
- data/data/countries_asia.txt +1 -1
- data/data/desktop_browsers.txt +1 -2
- data/data/dog_names_female.txt +1 -1
- data/data/dog_names_male.txt +1 -1
- data/data/european_countries.txt +1 -1
- data/data/fruits.txt +1 -1
- data/data/girl_names_2014.txt +1 -1
- data/data/harry_potter_spells.txt +1 -1
- data/data/hobbies.txt +1 -1
- data/data/indian_companies.txt +1 -1
- data/data/jobs.txt +1 -1
- data/data/jokes.txt +1 -1
- data/data/kanji_three_strokes.txt +1 -1
- data/data/languages_world.txt +1 -1
- data/data/last_names.txt +1 -1
- data/data/movies_imdb_top_250.txt +1 -1
- data/data/non_words.txt +1 -1
- data/data/occupations.txt +1 -1
- data/data/phobias.txt +1 -1
- data/data/questions.txt +1 -1
- data/data/rap_artists.txt +1 -1
- data/data/religions.txt +1 -1
- data/data/search_engines.txt +1 -1
- data/data/sports.txt +1 -1
- data/data/stopwords_en.txt +1 -1
- data/data/top_movies.txt +1 -1
- data/data/us_states.txt +1 -1
- data/data/vegetables.txt +1 -1
- data/data/weapons.txt +1 -1
- data/data/xbox_games.txt +1 -1
- data/data/youtubers.txt +1 -1
- data/data/zombie_movies.txt +1 -1
- data/lib/listof/version.rb +1 -1
- data/upload_new.rb +11 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83d27c6f4ad321d72afcd12c2371bfe030a477fe
|
4
|
+
data.tar.gz: 0dae0202c3b1e45386dbf7f6d87b0cee6859e6be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 **
|
100
|
+
6. Create new Pull Request to **master**
|
data/data/alphabets.txt
CHANGED
data/data/baby_names_male.txt
CHANGED
data/data/billionaires.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#source http://www.forbes.com/billionaires/list/9/#tab:overall
|
2
|
-
#image http://
|
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
data/data/countries_asia.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#image http://
|
1
|
+
#image http://res.cloudinary.com/listof-herokuapp-com/image/upload/v1408689355/hdsonjmqmnvh0kbazuoo.png
|
2
2
|
China
|
3
3
|
India
|
4
4
|
Indonesia
|
data/data/desktop_browsers.txt
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
#
|
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
|
data/data/dog_names_female.txt
CHANGED
data/data/dog_names_male.txt
CHANGED
data/data/european_countries.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#image http://
|
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
data/data/girl_names_2014.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#source http://harrypotter.wikia.com/wiki/List_of_spells
|
2
|
-
#image http://
|
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
data/data/indian_companies.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#image http://
|
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
data/data/jokes.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#image http://
|
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'!
|
data/data/languages_world.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#source http://www.linguanaut.com/languages.htm
|
2
|
-
#image http://
|
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
data/data/non_words.txt
CHANGED
data/data/occupations.txt
CHANGED
data/data/phobias.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#image http://
|
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://
|
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://
|
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
data/data/search_engines.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#source http://www.thesearchenginelist.com/
|
2
|
-
#image http://
|
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
data/data/stopwords_en.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#source http://www.ranks.nl/stopwords
|
2
|
-
#image http://
|
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://
|
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
data/data/vegetables.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#image http://
|
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
data/data/xbox_games.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#image
|
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
data/data/zombie_movies.txt
CHANGED
data/lib/listof/version.rb
CHANGED
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.
|
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-
|
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
|