twiterator 0.1.0 → 0.2.0
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 +14 -17
- data/lib/twiterator/twiterator-cli.rb +2 -2
- data/lib/twiterator/user.rb +5 -5
- data/lib/twiterator/version.rb +1 -1
- data/twiterator-0.1.0.gem +0 -0
- data/twiterator.gemspec +0 -1
- metadata +3 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5611c59b1dbc2039259b53306df0ee4ba9e542d3
|
4
|
+
data.tar.gz: 3cdfcabf047e9bbafdc6839b10a8f61dd4588d1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af3e20298b606c4f1348c700c0225848fa3d9635367ab68571c3809ea0e5e7ff96919fdee9722890cf7db8fa1caeaee3f29354f8d9c1dd486ed9ba59c606a7f8
|
7
|
+
data.tar.gz: 494c661c7f26f3fe022149d7b5de54cbdbe34edd0b8d8b9ae5c0c882110e8b488249f24a81b3c5b8a51ee365f1f9ba8ad2b6771df33b67024343950c8f42c77a
|
data/README.md
CHANGED
@@ -2,31 +2,28 @@
|
|
2
2
|
|
3
3
|
Welcome to Twiterator, a simple CLI browser for the popular social networking site, twitter.
|
4
4
|
|
5
|
-
##
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
$ gem install twiterator
|
5
|
+
## Features
|
6
|
+
|
7
|
+
As of version 0.2.0, a user is able to:
|
8
|
+
-Input a twitter handle
|
9
|
+
-Search for a user if they don't know the handle. Spaces and misspellings are allowed.
|
10
|
+
-Search will display user's handle & display name, along with bio.
|
11
|
+
-See stats on the user of their choice (followers, following).
|
12
|
+
-Display up to 20 tweets from the user of their choice.
|
13
|
+
-Differentiate between a retweet and an original tweet.
|
14
|
+
-Display up to 15 replies to any given tweet.
|
15
|
+
-Display stats on any given tweet (# of likes, retweets, and replies).
|
16
|
+
-Navigate easily with simple commands such as "back," "new," "more," etc...
|
17
|
+
-Maybe even a little more than that!
|
20
18
|
|
21
19
|
## Usage
|
22
20
|
|
23
|
-
To use Twiterator, run bin/console and follow whatever instructions show up on the screen.
|
21
|
+
To use Twiterator, run bin/console and follow whatever instructions show up on the screen.
|
24
22
|
|
25
23
|
## Contributing
|
26
24
|
|
27
25
|
Bug reports and pull requests are welcome on GitHub at https://github.com/[gloverab]/twiterator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
28
26
|
|
29
|
-
|
30
27
|
## License
|
31
28
|
|
32
29
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
@@ -4,7 +4,7 @@ class TwiteratorCLI
|
|
4
4
|
|
5
5
|
def initialize
|
6
6
|
puts " "
|
7
|
-
puts "************ | TWITERATOR
|
7
|
+
puts "************ | TWITERATOR #{Twiterator::VERSION} | ************"
|
8
8
|
puts " "
|
9
9
|
puts "\nHi there! I'm Twiterator, a Ruby cli scraper for"
|
10
10
|
puts "the popular social networking site, Twitter."
|
@@ -24,7 +24,7 @@ class TwiteratorCLI
|
|
24
24
|
search_possible(user)
|
25
25
|
display_possible
|
26
26
|
new_user_menu
|
27
|
-
|
27
|
+
elsif
|
28
28
|
@user = User.new(user)
|
29
29
|
end
|
30
30
|
display_profile
|
data/lib/twiterator/user.rb
CHANGED
@@ -77,10 +77,10 @@ class User
|
|
77
77
|
self.tweets << Tweet.new(url, user)
|
78
78
|
end
|
79
79
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
end
|
80
|
+
# This would have been something cool to implement but sadly Twitter doesn't have the feature.
|
81
|
+
# def similar_users
|
82
|
+
# display_name = self.doc.css('.related-users .fullname')[0].text
|
83
|
+
# user_name = self.doc.css('.related-users .username')[0].text
|
84
|
+
# end
|
85
85
|
|
86
86
|
end
|
data/lib/twiterator/version.rb
CHANGED
Binary file
|
data/twiterator.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twiterator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Glover
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.7.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rest-open-uri
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: bundler
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,6 +93,7 @@ files:
|
|
107
93
|
- lib/twiterator/user.rb
|
108
94
|
- lib/twiterator/verification.rb
|
109
95
|
- lib/twiterator/version.rb
|
96
|
+
- twiterator-0.1.0.gem
|
110
97
|
- twiterator.gemspec
|
111
98
|
homepage: https://rubygems.org/gems/twiterator
|
112
99
|
licenses:
|