sp_log_parser 0.2.0 → 0.3.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
  SHA256:
3
- metadata.gz: 8cad25469218a5de900bfcf6cfdae0ff033b58bd9a742f34a29868635787e3c3
4
- data.tar.gz: 0b45a583547c7d13f6db5092ac6e64c6911a43a9e14773e705081b883ef17e1b
3
+ metadata.gz: 828fe316c94b4d07c2a2b6b945c837f6b198e8cb70a0e7b5db07c45e445429de
4
+ data.tar.gz: 253038a7d96c0f4b57bbdfad2cbab7b9ccca5549d28f1050f765f91f0d7b45e3
5
5
  SHA512:
6
- metadata.gz: bf21c7c9e5064c2d2cd67d0ca5f1698b369972952a2d68d88497e0a5aec24f5a326e52378d000538243e92dd2dd6c2373b377356e54ab62e4e2b47bb178e72d4
7
- data.tar.gz: 297a84f5a96c005a7c6cf042207c7acb8a26c306439959308b1fbd77910a9f8a6b27d020d0df029bbe629a0c8b6169f66824767dd9d11e33c0f6f42e0c99bc06
6
+ metadata.gz: 44ebacfb8af2c90ed7f3751bead416d7024dcfbe631347363b32b14f748d1086fdfc043edb95450f2516ef1da4f28e60a78d59dbd827556fed252485d3f9ecc3
7
+ data.tar.gz: 3310873d2309e8e0f5e0b03b3d5bb58586b746005834a8a1b3d5915a020dc7136eb056d5e4d216c46c8482d9e61e0951693fde8d31e61e487d69b36a70fcf12e
data/Gemfile CHANGED
@@ -3,4 +3,4 @@ source "https://rubygems.org"
3
3
  gemspec
4
4
 
5
5
  gem "rake", "~> 12.0"
6
- gem "minitest", "~> 5.0"
6
+ gem "rspec", "~> 3.9"
@@ -1,20 +1,33 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sp_log_parser (0.1.0)
4
+ sp_log_parser (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- minitest (5.14.2)
9
+ diff-lcs (1.4.4)
10
10
  rake (12.3.3)
11
+ rspec (3.9.0)
12
+ rspec-core (~> 3.9.0)
13
+ rspec-expectations (~> 3.9.0)
14
+ rspec-mocks (~> 3.9.0)
15
+ rspec-core (3.9.2)
16
+ rspec-support (~> 3.9.3)
17
+ rspec-expectations (3.9.2)
18
+ diff-lcs (>= 1.2.0, < 2.0)
19
+ rspec-support (~> 3.9.0)
20
+ rspec-mocks (3.9.1)
21
+ diff-lcs (>= 1.2.0, < 2.0)
22
+ rspec-support (~> 3.9.0)
23
+ rspec-support (3.9.3)
11
24
 
12
25
  PLATFORMS
13
26
  ruby
14
27
 
15
28
  DEPENDENCIES
16
- minitest (~> 5.0)
17
29
  rake (~> 12.0)
30
+ rspec (~> 3.9)
18
31
  sp_log_parser!
19
32
 
20
33
  BUNDLED WITH
data/README.md CHANGED
@@ -46,7 +46,7 @@ You will get output similar to this:
46
46
 
47
47
  ## Development
48
48
 
49
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
49
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
50
50
 
51
51
  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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
52
52
 
@@ -1,8 +1,6 @@
1
1
  class Stats
2
2
  Stat = Struct.new(:webpage, :views)
3
3
 
4
- attr_reader :visits
5
-
6
4
  def initialize(visits)
7
5
  @visits = visits
8
6
  end
@@ -21,6 +19,8 @@ class Stats
21
19
 
22
20
  private
23
21
 
22
+ attr_reader :visits
23
+
24
24
  def views_for(webpage)
25
25
  visits.for(webpage)
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module SPLogParser
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sp_log_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Zugaj
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-16 00:00:00.000000000 Z
11
+ date: 2020-09-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -24,7 +24,6 @@ files:
24
24
  - Gemfile.lock
25
25
  - LICENSE.txt
26
26
  - README.md
27
- - Rakefile
28
27
  - bin/console
29
28
  - bin/setup
30
29
  - exe/sp_parser
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
-
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList["test/**/*_test.rb"]
8
- end
9
-
10
- task :default => :test