check_the_facts 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 98e697782b88193583c3ec804c37c6255c11d14d
4
+ data.tar.gz: 737291bbc92f8faf4d07fd82a64ddf8b55298c1b
5
+ SHA512:
6
+ metadata.gz: bd4c79587087dcf2e5bed188ef1c78f08ce8cbc5d61304ef11d1d98541dee3dcce86b9bb61fc6394d15e834607ad3c263d682d30ce932f269386f6f61594b622
7
+ data.tar.gz: 9163e4b80f79802835cec70d16937a175ee12bbd5601cc15f5ba20997a02f10d70563c5db3f7dad7e56cb651cd54c65008cd5a5c413df59883a9c0ca70327109
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rspec'
4
+ gem 'pry'
5
+ gem 'require_all'
data/Gemfile.lock ADDED
@@ -0,0 +1,36 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ coderay (1.1.1)
5
+ diff-lcs (1.2.5)
6
+ method_source (0.8.2)
7
+ pry (0.10.4)
8
+ coderay (~> 1.1.0)
9
+ method_source (~> 0.8.1)
10
+ slop (~> 3.4)
11
+ require_all (1.3.3)
12
+ rspec (3.5.0)
13
+ rspec-core (~> 3.5.0)
14
+ rspec-expectations (~> 3.5.0)
15
+ rspec-mocks (~> 3.5.0)
16
+ rspec-core (3.5.3)
17
+ rspec-support (~> 3.5.0)
18
+ rspec-expectations (3.5.0)
19
+ diff-lcs (>= 1.2.0, < 2.0)
20
+ rspec-support (~> 3.5.0)
21
+ rspec-mocks (3.5.0)
22
+ diff-lcs (>= 1.2.0, < 2.0)
23
+ rspec-support (~> 3.5.0)
24
+ rspec-support (3.5.0)
25
+ slop (3.6.0)
26
+
27
+ PLATFORMS
28
+ ruby
29
+
30
+ DEPENDENCIES
31
+ pry
32
+ require_all
33
+ rspec
34
+
35
+ BUNDLED WITH
36
+ 1.12.5
data/Notes ADDED
@@ -0,0 +1,21 @@
1
+ Objects:
2
+
3
+ CLI
4
+ Scraper
5
+ Claim
6
+ Accuracy
7
+ Origin
8
+ Last Updated
9
+ Originally Published
10
+ Author
11
+ Claim
12
+
13
+ TO DO
14
+
15
+ Set up environment
16
+ Populate gemfile
17
+ Give classes attr_accessors
18
+
19
+ TO DO LATER
20
+
21
+ Make sure to create a good README.md with a short description, install instructions, a contributors guide and a link to the license for your code.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ CHECK THE FACTS
2
+
3
+ INSTALLATION
4
+ -To install Check The Facts, simply run
5
+ "gem install check_the_facts" from your terminal.
6
+
7
+ USAGE
8
+ -To run Check The Facts after installation, type
9
+ "check_the_facts" into your terminal.
10
+ -You will be greeted by a welcome message and list
11
+ of articles, scraped from snopes, with corresponding
12
+ number. Enter a number to select an article, and then
13
+ enter another number to read see an attribute!
14
+
15
+ DEPENDENCIES
16
+ irb
17
+ bundler
18
+ open-uri
19
+ nokogiri
20
+ require_all
21
+
22
+ CONTRIBUTING
23
+ 1. Fork it ( https://github.com/dkennell/dkennell-cli-gem/fork )
24
+ 2. Create your feature branch (git checkout -b my-new-feature)
25
+ 3. Commit your changes (git commit -am 'Add some feature')
26
+ 4. Push to the branch (git push origin my-new-feature)
27
+ 5. Create a new Pull Request
28
+
29
+ Thanks and enjoy Check The Facts!
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ require './config/environment.rb'
3
+ puts "---- Executing.... ----"
4
+
5
+ new_cli = CLI.new
6
+ new_cli.start
@@ -0,0 +1,13 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'check_the_facts'
3
+ s.version = '0.0.1'
4
+ s.date = '2016-09-30'
5
+ s.summary = "Check the Facts"
6
+ s.description = "A Snopes Scraper and CLI"
7
+ s.authors = ["David Kennell"]
8
+ s.email = 'davidkennell0@gmail.com'
9
+ s.files = Dir['Gemfile', 'Gemfile.lock', 'Notes', 'environment.rb', 'check_the_facts.gemspec', 'README.md', 'spec.md' '{bin,lib,config}/**/*'] & `git ls-files -z`.split("\0")
10
+ s.executables = ["check_the_facts"]
11
+ s.homepage = 'http://rubygems.org/gems/check_the_facts'
12
+ s.license = 'MIT'
13
+ end
data/environment.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'irb'
2
+ require 'bundler'
3
+ require 'open-uri'
4
+ require 'nokogiri'
5
+ Bundler.require
6
+
7
+ require_all './lib'
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: check_the_facts
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - David Kennell
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-09-30 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A Snopes Scraper and CLI
14
+ email: davidkennell0@gmail.com
15
+ executables:
16
+ - check_the_facts
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - Gemfile
21
+ - Gemfile.lock
22
+ - Notes
23
+ - README.md
24
+ - bin/check_the_facts
25
+ - check_the_facts.gemspec
26
+ - environment.rb
27
+ homepage: http://rubygems.org/gems/check_the_facts
28
+ licenses:
29
+ - MIT
30
+ metadata: {}
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubyforge_project:
47
+ rubygems_version: 2.6.6
48
+ signing_key:
49
+ specification_version: 4
50
+ summary: Check the Facts
51
+ test_files: []