sso_news_scraper 0.1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 865370368b746df6263864cd4442f46cbdf3353e9b867c480a291336ff26474b
4
+ data.tar.gz: 3e2a8a8554c7df0766666f12f7ac35b9cd63ee0b5c8fc96de56842385b29b9d8
5
+ SHA512:
6
+ metadata.gz: 9d6a888a24dfea61fbb1672c402c9057f4ceac152a1c428affc39205c5fcc09222d6763a7c225b47aff9603f6452f7d2fe7b3c6474d01367363d2b448420cc53
7
+ data.tar.gz: a9884d62ce4b73abbbc8494633464513d899f789539b215790654b2c2ec8dbe2ac448c47dede2c4df2f29dd02d0889d87a14504bc8c53ca265dc20f0fdc37021
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in sso_news_scraper.gemspec
4
+ gemspec
5
+
6
+ gem 'nokogiri', '~> 1.10', '>= 1.10.9'
7
+ gem 'httparty', '~> 0.18.0'
8
+ gem "rake", "~> 12.0"
9
+
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 ByteSizeMagic
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,57 @@
1
+ # SSONewsScraper
2
+
3
+ Welcome to the StarStableOnline NewsScraper! This gem is intended as CLI GEM Project for Flatiron.
4
+
5
+ Getting Started
6
+ These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
7
+
8
+ Prerequisites
9
+ What things you need to install the software and how to install them
10
+
11
+ Give examples
12
+ Installing
13
+ A step by step series of examples that tell you how to get a development env running
14
+
15
+ Say what the step will be
16
+
17
+ Give the example
18
+ And repeat
19
+
20
+ until finished
21
+ End with an example of getting some data out of the system or using it for a little demo
22
+
23
+ Running the tests
24
+ Explain how to run the automated tests for this system
25
+
26
+ Break down into end to end tests
27
+ Explain what these tests test and why
28
+
29
+ Give an example
30
+ And coding style tests
31
+ Explain what these tests test and why
32
+
33
+ Give an example
34
+ Deployment
35
+ Add additional notes about how to deploy this on a live system
36
+
37
+ Built With
38
+ Dropwizard - The web framework used
39
+ Maven - Dependency Management
40
+ ROME - Used to generate RSS Feeds
41
+ Contributing
42
+ Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
43
+
44
+ Versioning
45
+ We use SemVer for versioning. For the versions available, see the tags on this repository.
46
+
47
+ Authors
48
+ Billie Thompson - Initial work - PurpleBooth
49
+ See also the list of contributors who participated in this project.
50
+
51
+ License
52
+ This project is licensed under the MIT License - see the LICENSE.md file for details
53
+
54
+ Acknowledgments
55
+ Hat tip to anyone whose code was used
56
+ Inspiration
57
+ etc
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "sso_news_scraper"
5
+
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ #require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative "../lib/sso_news_scraper.rb"
4
+
5
+ #CLI.new.run
6
+
7
+ puts "currently inside bin"
@@ -0,0 +1,9 @@
1
+ #require_relative "sso_news_scraper/version"
2
+ require_relative "sso_news_scraper/cli"
3
+
4
+ #require "pry"
5
+
6
+ module SsoNewsScraper
7
+ class Error < StandardError; end
8
+ # Your code goes here...
9
+ end
@@ -0,0 +1,34 @@
1
+
2
+
3
+ class CLI
4
+ def run
5
+ system("clear")
6
+ greeting
7
+
8
+
9
+ end_program
10
+ end
11
+
12
+ def greeting
13
+ puts "Welcome to Star Stable Online News Scraper!"
14
+ end
15
+
16
+ # while menu != "exit"
17
+
18
+ # end
19
+
20
+ def menu
21
+ puts "Please choose an option: "
22
+ list_options
23
+ user_input = gets.strip.downcase
24
+ return input
25
+ end
26
+
27
+ def end_program
28
+ puts "Thanks for checking out the news for Star Stable Online, see ya soon!"
29
+ end
30
+
31
+
32
+
33
+
34
+ end
@@ -0,0 +1,3 @@
1
+ module SsoNewsScraper
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,34 @@
1
+ require_relative 'lib/sso_news_scraper/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "sso_news_scraper"
5
+ spec.version = SsoNewsScraper::VERSION
6
+ spec.authors = ["ByteSizeMagic"]
7
+ spec.email = ["bytesizemagic@gmail.com"]
8
+
9
+ spec.summary = %q{CLI for displaying news updates for Star Stable Online.}
10
+ spec.description = %q{Scrapes the Star Stable Online news page for updates and allows reader to choose an udate to read.}
11
+ spec.homepage = "https://github.com/ByteSizeMagic/sso_news_scraper"
12
+ spec.license = "MIT"
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
+
15
+ spec.metadata["allowed_push_host"] = "https://rubygems.org/"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/ByteSizeMagic/sso_news_scraper.git"
19
+ spec.metadata["changelog_uri"] = "https://github.com/ByteSizeMagic/sso_news_scraper/blob/master/README.md"
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ end
26
+ spec.bindir = "bin"
27
+ spec.executables = ["sso_news_scraper"]
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "pry"
31
+ spec.add_development_dependency "gem-release"
32
+ spec.add_development_dependency "nokogiri"
33
+
34
+ end
metadata ADDED
@@ -0,0 +1,103 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sso_news_scraper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - ByteSizeMagic
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-07-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: pry
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: gem-release
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: nokogiri
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Scrapes the Star Stable Online news page for updates and allows reader
56
+ to choose an udate to read.
57
+ email:
58
+ - bytesizemagic@gmail.com
59
+ executables:
60
+ - sso_news_scraper
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - ".gitignore"
65
+ - Gemfile
66
+ - LICENSE.txt
67
+ - README.md
68
+ - Rakefile
69
+ - bin/console
70
+ - bin/setup
71
+ - bin/sso_news_scraper
72
+ - lib/sso_news_scraper.rb
73
+ - lib/sso_news_scraper/cli.rb
74
+ - lib/sso_news_scraper/version.rb
75
+ - sso_news_scraper.gemspec
76
+ homepage: https://github.com/ByteSizeMagic/sso_news_scraper
77
+ licenses:
78
+ - MIT
79
+ metadata:
80
+ allowed_push_host: https://rubygems.org/
81
+ homepage_uri: https://github.com/ByteSizeMagic/sso_news_scraper
82
+ source_code_uri: https://github.com/ByteSizeMagic/sso_news_scraper.git
83
+ changelog_uri: https://github.com/ByteSizeMagic/sso_news_scraper/blob/master/README.md
84
+ post_install_message:
85
+ rdoc_options: []
86
+ require_paths:
87
+ - lib
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 2.3.0
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ requirements: []
99
+ rubygems_version: 3.1.2
100
+ signing_key:
101
+ specification_version: 4
102
+ summary: CLI for displaying news updates for Star Stable Online.
103
+ test_files: []