newegg_scraper_chsbr 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: ecdd2f650fba416b6b86158255fa9e3e2ba7eb61534630a7d9b1e77cdcd38de5
4
- data.tar.gz: edffad12467a9576079de11e2ed5136f2f4c54c71ec09a76d15a898d846bece2
3
+ metadata.gz: 5dcbc1bd32893df3dc6628024e9673075c32045bd52bde5d56b468c162012a2a
4
+ data.tar.gz: 1e1ecf135f81b0c6dd163a8023ea6e9f85286edab0306c8a6028806d3e4804ad
5
5
  SHA512:
6
- metadata.gz: 82e12a074192ab1386d26d86a6baa81222e2ae772396a0271c8fdc66bfe0f2e885bb45ac2b875d4fc392994336e4b9df8534bcc911c2635a5418cf5546e53951
7
- data.tar.gz: 342b3859e8f1bb4f63b68448dc021355a3dde187013a7611712299b10f8a44ba78dcb1ababb827c67c19a8552db900e9784aaf24ea37690a214824aa6e7d0c53
6
+ metadata.gz: e36856f48d56d2eef304700a1b4e1c41d14401d80ce42341e0d72c7eb3fc92758f016763a658928343b38b12e0d6bf0daac606a8f70737c61bc8edfb5b847eab
7
+ data.tar.gz: 534721fa96cbaa73f4a664f6f99ee5c227b57abf63af64ef145481b925f60452c14f88cfa68b8cb6d73b8325a9c3f1a45cf3071047179f93846606338895b02e
@@ -1,11 +1,10 @@
1
1
 
2
-
3
2
  class NeweggScraperChsbr::Scraper
4
3
  attr_reader :xml_obj
5
4
 
6
5
  URL = "https://www.newegg.com/p/pl?d=cpu"
7
6
  def initialize(url = URL)
8
- @xml_obj = Nokogiri::HTML(open(url)) # This opens the URL with open-uri, then parses it as an XML Object
7
+ @xml_obj = Nokogiri::HTML(URI.open(url)) # This opens the URL with open-uri, then parses it as an XML Object
9
8
  end
10
9
 
11
10
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NeweggScraperChsbr
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newegg_scraper_chsbr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lrd134
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2021-04-16 00:00:00.000000000 Z
12
12
  dependencies:
@@ -46,15 +46,7 @@ executables:
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
- - ".gitignore"
50
- - Gemfile
51
- - Gemfile.lock
52
- - LICENSE.txt
53
- - README.md
54
- - Rakefile
55
49
  - bin/newegg_scraper
56
- - class_diagram.drawio
57
- - exe/newegg_scraper
58
50
  - lib/environment.rb
59
51
  - lib/newegg_scraper_chsbr/cli.rb
60
52
  - lib/newegg_scraper_chsbr/cpu.rb
@@ -65,7 +57,6 @@ files:
65
57
  - lib/newegg_scraper_chsbr/scraper.rb
66
58
  - lib/newegg_scraper_chsbr/user.rb
67
59
  - lib/newegg_scraper_chsbr/version.rb
68
- - newegg_scraper_chsbr.gemspec
69
60
  homepage: https://github.com/Lrd134/aa_phase_1_proj
70
61
  licenses:
71
62
  - MIT
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in newegg_scraper_chsbr.gemspec
6
- gemspec
7
- gem "rake", "~> 13.0"
8
- gem "nokogiri", "~> 1.11.3"
9
- gem "open-uri", "~> 0.1"
data/Gemfile.lock DELETED
@@ -1,27 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- newegg_scraper_chsbr (0.1.1)
5
- nokogiri
6
- open-uri
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- nokogiri (1.11.3-x86_64-linux)
12
- racc (~> 1.4)
13
- open-uri (0.1.0)
14
- racc (1.5.2)
15
- rake (13.0.3)
16
-
17
- PLATFORMS
18
- x86_64-linux
19
-
20
- DEPENDENCIES
21
- newegg_scraper_chsbr!
22
- nokogiri (~> 1.11.3)
23
- open-uri (~> 0.1)
24
- rake (~> 13.0)
25
-
26
- BUNDLED WITH
27
- 2.2.13
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2021 Lrd134
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.
data/README.md DELETED
@@ -1,43 +0,0 @@
1
- # NeweggScraperChsbr
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/newegg_scraper_chsbr`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'newegg_scraper_chsbr'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle install
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install newegg_scraper_chsbr
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/newegg_scraper_chsbr. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/newegg_scraper_chsbr/blob/master/CODE_OF_CONDUCT.md).
36
-
37
- ## License
38
-
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
-
41
- ## Code of Conduct
42
-
43
- Everyone interacting in the NeweggScraperChsbr project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/newegg_scraper_chsbr/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile DELETED
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
- require "bundler/gem_tasks"
3
- task default: %i[]
data/class_diagram.drawio DELETED
@@ -1 +0,0 @@
1
- <mxfile host="app.diagrams.net" modified="2021-04-11T18:44:34.960Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36" etag="iBiGEqASrCRcf-A13k5W" version="14.5.10" type="device"><diagram id="C5RBs43oDa-K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QX0XiVubOszFqOjQ3KninBrvPceApyfFOHOQS0r86sShMhMFd7Cwm9dARrxVmtbj0oZXoWCq9aObEbnNZBbFcatfS/UyEy03RC143ZJQEMsFOCPeATOPjZ8q4J0/5I/7cC61ZiE3oV61gKlHuNKbbfBpOU4spLiNWXpzrVBLxe3P+L5JJ06hPX49CoztGMDnEiZsrXajvhE9MlmyCC+8EmJaE71di2wy4AUhGFJn4uPnNZo8wdF3EyX21ZRl9uWU2wiGaS+Kv+MZ9uGEi8YDe0sT78k+Sf4gEQRN+X6KcKsPsJ0FiO+shFm09pI4iUBpuOWCDCbhxFgIjNv2cUM6xX3He5t88n75wSWyExTGui990hje1jLxo+VhRpmlvJdKZYUsYOWLGhhpW/+pmRxFhqymwt9qVqyLEk09gUeL8kvngRL9YKlbrUKdCj9FoyN1mwyqxVLvf4HvQVj5lH1azDQFwdlKcV3qF2apYl2MNrFzJKe3ompCOy9Z8RtMzA+CdU3w7rvnLhthpA0BF8BSq/kgx9nTj1w6F9HN58rg3TvKXB7u+CDj2NXbxdezCMTdADBhoZoZ8GGhlkxKS+sXN2hN8Yd9YUMEzq3i02UjjtaGxpaEXcYDZ0t5rwW2uGDQUQqCV1sU0Ew8Kx6SIPNF3r0kpPbXuIwYeX6oJaAMpHNfM+JN4s2BCZ+TPcOZxzqX4Y83ta2ii7i8ErH8nb55cZe9Xhm/nmJHm0t/wVHKfae74S9Z04xunGtt3MFitk3KEn17Ese5+oX</diagram></mxfile>
data/exe/newegg_scraper DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require_relative "../lib/environment.rb"
4
- NeweggScraperChsbr::CLI.new.start
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/newegg_scraper_chsbr/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "newegg_scraper_chsbr"
7
- spec.executables << 'newegg_scraper'
8
- spec.version = NeweggScraperChsbr::VERSION
9
- spec.authors = ["Lrd134"]
10
- spec.email = ["larryc3200@gmail.com"]
11
-
12
- spec.summary = "Cpu Shopping Data from Newegg"
13
- spec.description = "To scrape CPU's off of Newegg and display them nicely."
14
- spec.homepage = "https://github.com/Lrd134/aa_phase_1_proj"
15
- spec.license = "MIT"
16
- spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
17
-
18
- #spec.metadata["allowed_push_host"] = "https://rubygems.org/"
19
-
20
- spec.metadata["homepage_uri"] = spec.homepage
21
- spec.metadata["source_code_uri"] = "https://github.com/Lrd134/aa_phase_1_proj"
22
- spec.metadata["changelog_uri"] = "https://github.com/Lrd134/aa_phase_1_proj/blob/master/CHANGELOG.md"
23
-
24
- # Specify which files should be added to the gem when it is released.
25
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
26
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
27
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
28
- end
29
- spec.bindir = "exe"
30
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
- spec.require_paths = ["lib"]
32
-
33
- # Uncomment to register a new dependency of your gem
34
-
35
- spec.add_dependency "nokogiri"
36
- spec.add_dependency "open-uri"
37
-
38
- # For more information and examples about making a new gem, checkout our
39
- # guide at: https://bundler.io/guides/creating_gem.html
40
- end