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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78fa77a41b595a217f16a1cd237218bd27a29265
4
- data.tar.gz: e5e48ce49f3f2bb810715d78424513e820adae92
3
+ metadata.gz: 5611c59b1dbc2039259b53306df0ee4ba9e542d3
4
+ data.tar.gz: 3cdfcabf047e9bbafdc6839b10a8f61dd4588d1f
5
5
  SHA512:
6
- metadata.gz: '018fdc8ce330a0b8e099e07d36bd5101a40e6c11a5393d93840385d82489b7acc891d3ae5d710f4007fee7f79f968e64b19d1472963cdfa2551907ad5df1a7a9'
7
- data.tar.gz: 5f5242f3a727a13856c4ba276abfaabec3e3b14465091879677212f21722bf0e711ddf716e69966c619caaee3bcc922b60b5a65cb7b2f730f9e1287e323b07bb
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
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- ```ruby
10
- gem 'twiterator'
11
- ```
12
-
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
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. It's pretty simple.
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 0.1.0 | ************"
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
- else
27
+ elsif
28
28
  @user = User.new(user)
29
29
  end
30
30
  display_profile
@@ -77,10 +77,10 @@ class User
77
77
  self.tweets << Tweet.new(url, user)
78
78
  end
79
79
 
80
- def similar_users
81
- binding.pry
82
- display_name = self.doc.css('.related-users .fullname')[0].text
83
- user_name = self.doc.css('.related-users .username')[0].text
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
@@ -1,3 +1,3 @@
1
1
  module Twiterator
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
Binary file
data/twiterator.gemspec CHANGED
@@ -34,7 +34,6 @@ Gem::Specification.new do |spec|
34
34
  spec.require_paths = ["lib"]
35
35
 
36
36
  spec.add_dependency 'nokogiri', '1.7.0'
37
- spec.add_dependency 'rest-open-uri'
38
37
 
39
38
  spec.add_development_dependency "bundler", "~> 1.14"
40
39
  spec.add_development_dependency "rake", "~> 10.0"
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.1.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-09 00:00:00.000000000 Z
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: