steamdeals-cli-gem 1.0.0 → 1.0.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.
@@ -0,0 +1,106 @@
1
+ require 'vcr'
2
+
3
+ VCR.configure do |config|
4
+ config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
5
+ config.hook_into :webmock # or :fakeweb
6
+ end
7
+
8
+ require_relative '../lib/steam_deals'
9
+
10
+
11
+ # This file was generated by the `rspec --init` command. Conventionally, all
12
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
13
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
14
+ # this file to always be loaded, without a need to explicitly require it in any
15
+ # files.
16
+ #
17
+ # Given that it is always loaded, you are encouraged to keep this file as
18
+ # light-weight as possible. Requiring heavyweight dependencies from this file
19
+ # will add to the boot time of your test suite on EVERY test run, even for an
20
+ # individual file that may not need all of that loaded. Instead, consider making
21
+ # a separate helper file that requires the additional dependencies and performs
22
+ # the additional setup, and require it from the spec files that actually need
23
+ # it.
24
+ #
25
+ # The `.rspec` file also contains a few flags that are not defaults but that
26
+ # users commonly want.
27
+ #
28
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
29
+ RSpec.configure do |config|
30
+ # rspec-expectations config goes here. You can use an alternate
31
+ # assertion/expectation library such as wrong or the stdlib/minitest
32
+ # assertions if you prefer.
33
+ config.expect_with :rspec do |expectations|
34
+ # This option will default to `true` in RSpec 4. It makes the `description`
35
+ # and `failure_message` of custom matchers include text for helper methods
36
+ # defined using `chain`, e.g.:
37
+ # be_bigger_than(2).and_smaller_than(4).description
38
+ # # => "be bigger than 2 and smaller than 4"
39
+ # ...rather than:
40
+ # # => "be bigger than 2"
41
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
42
+ end
43
+
44
+ # rspec-mocks config goes here. You can use an alternate test double
45
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
46
+ config.mock_with :rspec do |mocks|
47
+ # Prevents you from mocking or stubbing a method that does not exist on
48
+ # a real object. This is generally recommended, and will default to
49
+ # `true` in RSpec 4.
50
+ mocks.verify_partial_doubles = true
51
+ end
52
+
53
+ # The settings below are suggested to provide a good initial experience
54
+ # with RSpec, but feel free to customize to your heart's content.
55
+ =begin
56
+ # These two settings work together to allow you to limit a spec run
57
+ # to individual examples or groups you care about by tagging them with
58
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
59
+ # get run.
60
+ config.filter_run :focus
61
+ config.run_all_when_everything_filtered = true
62
+
63
+ # Allows RSpec to persist some state between runs in order to support
64
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
65
+ # you configure your source control system to ignore this file.
66
+ config.example_status_persistence_file_path = "spec/examples.txt"
67
+
68
+ # Limits the available syntax to the non-monkey patched syntax that is
69
+ # recommended. For more details, see:
70
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
71
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
72
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
73
+ config.disable_monkey_patching!
74
+
75
+ # This setting enables warnings. It's recommended, but in some cases may
76
+ # be too noisy due to issues in dependencies.
77
+ config.warnings = true
78
+
79
+ # Many RSpec users commonly either run the entire suite or an individual
80
+ # file, and it's useful to allow more verbose output when running an
81
+ # individual spec file.
82
+ if config.files_to_run.one?
83
+ # Use the documentation formatter for detailed output,
84
+ # unless a formatter has already been configured
85
+ # (e.g. via a command-line flag).
86
+ config.default_formatter = 'doc'
87
+ end
88
+
89
+ # Print the 10 slowest examples and example groups at the
90
+ # end of the spec run, to help surface which specs are running
91
+ # particularly slow.
92
+ config.profile_examples = 10
93
+
94
+ # Run specs in random order to surface order dependencies. If you find an
95
+ # order dependency and want to debug it, you can fix the order by providing
96
+ # the seed, which is printed after each run.
97
+ # --seed 1234
98
+ config.order = :random
99
+
100
+ # Seed global randomization in this process using the `--seed` CLI option.
101
+ # Setting this allows you to use `--seed` to deterministically reproduce
102
+ # test failures related to randomization by passing the same `--seed` value
103
+ # as the one that triggered the failure.
104
+ Kernel.srand config.seed
105
+ =end
106
+ end
@@ -0,0 +1,26 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'steam_deals/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.authors = ["Justin Thomas"]
7
+ spec.email = ["jvthomas0209@gmail.com"]
8
+ spec.description = "Scrape steamdb.info for latest steam deals. Provides name, sale price, sale discount, and misc. details"
9
+ spec.summary = "Scrapes steamdb.info for latest deals"
10
+ spec.homepage = "https://github.com/JVThomas/steam-deals-parser"
11
+ spec.licenses = ['MIT']
12
+ spec.files = `git ls-files`.split($\)
13
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
14
+ spec.executables = ["steam-deals"]
15
+ spec.name = "steamdeals-cli-gem"
16
+ spec.require_paths = ["lib", "lib/steam_deals"]
17
+ spec.version = SteamDeals::VERSION
18
+
19
+ spec.add_dependency "nokogiri", '~> 1.6.8', ">= 1.6.8"
20
+ spec.add_development_dependency "bundler", "~> 1.10", ">= 1.10"
21
+ spec.add_development_dependency "rake", "~> 10.0", ">= 10.0"
22
+ spec.add_development_dependency "rspec", '~> 3.4.0', ">= 3.4.0"
23
+ spec.add_development_dependency "pry", '~> 0.10.3', ">= 0.10.3"
24
+ spec.add_development_dependency "vcr"
25
+ spec.add_development_dependency "webmock"
26
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steamdeals-cli-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Thomas
@@ -10,6 +10,26 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2016-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.6.8
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.6.8
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 1.6.8
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.6.8
13
33
  - !ruby/object:Gem::Dependency
14
34
  name: bundler
15
35
  requirement: !ruby/object:Gem::Requirement
@@ -70,26 +90,6 @@ dependencies:
70
90
  - - ">="
71
91
  - !ruby/object:Gem::Version
72
92
  version: 3.4.0
73
- - !ruby/object:Gem::Dependency
74
- name: nokogiri
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: 1.6.8
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 1.6.8
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 1.6.8
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 1.6.8
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: pry
95
95
  requirement: !ruby/object:Gem::Requirement
@@ -138,8 +138,8 @@ dependencies:
138
138
  - - ">="
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
- description: Scrape steamdb.info for daily steam deals, provides name, sale price,
142
- sale discount, and minor descriptions
141
+ description: Scrape steamdb.info for latest steam deals. Provides name, sale price,
142
+ sale discount, and misc. details
143
143
  email:
144
144
  - jvthomas0209@gmail.com
145
145
  executables:
@@ -147,12 +147,23 @@ executables:
147
147
  extensions: []
148
148
  extra_rdoc_files: []
149
149
  files:
150
+ - CONTRIBUTING.md
151
+ - Gemfile
152
+ - Gemfile.lock
153
+ - LICENSE.md
154
+ - README.md
155
+ - bin/console
156
+ - bin/setup
150
157
  - bin/steam-deals
151
158
  - lib/steam_deals.rb
152
159
  - lib/steam_deals/cli.rb
153
160
  - lib/steam_deals/deal.rb
154
161
  - lib/steam_deals/version.rb
155
- homepage:
162
+ - spec/deal_spec.rb
163
+ - spec/fixtures/vcr_cassettes/scrape_deals_list.yml
164
+ - spec/spec_helper.rb
165
+ - steamdeals-cli-gem.gemspec
166
+ homepage: https://github.com/JVThomas/steam-deals-parser
156
167
  licenses:
157
168
  - MIT
158
169
  metadata: {}
@@ -176,5 +187,8 @@ rubyforge_project:
176
187
  rubygems_version: 2.4.5.1
177
188
  signing_key:
178
189
  specification_version: 4
179
- summary: Scrapes steamdb.info for daily and weeklong deals
180
- test_files: []
190
+ summary: Scrapes steamdb.info for latest deals
191
+ test_files:
192
+ - spec/deal_spec.rb
193
+ - spec/fixtures/vcr_cassettes/scrape_deals_list.yml
194
+ - spec/spec_helper.rb