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 +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +16 -3
- data/README.md +1 -1
- data/lib/sp_log_parser/stats.rb +2 -2
- data/lib/sp_log_parser/version.rb +1 -1
- metadata +2 -3
- data/Rakefile +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 828fe316c94b4d07c2a2b6b945c837f6b198e8cb70a0e7b5db07c45e445429de
|
4
|
+
data.tar.gz: 253038a7d96c0f4b57bbdfad2cbab7b9ccca5549d28f1050f765f91f0d7b45e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44ebacfb8af2c90ed7f3751bead416d7024dcfbe631347363b32b14f748d1086fdfc043edb95450f2516ef1da4f28e60a78d59dbd827556fed252485d3f9ecc3
|
7
|
+
data.tar.gz: 3310873d2309e8e0f5e0b03b3d5bb58586b746005834a8a1b3d5915a020dc7136eb056d5e4d216c46c8482d9e61e0951693fde8d31e61e487d69b36a70fcf12e
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,20 +1,33 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sp_log_parser (0.
|
4
|
+
sp_log_parser (0.3.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
|
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 `
|
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
|
|
data/lib/sp_log_parser/stats.rb
CHANGED
@@ -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
|
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.
|
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-
|
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
|