logfiction 0.1.2 → 0.1.3

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: 10516897b47ee315cc9f159fd211ec492e60fe61f9cda42a837bbaebb3662dbb
4
- data.tar.gz: 62fdffb792eaf108b6c35f598355909cdf5efea4fd7c542449250c88d7651998
3
+ metadata.gz: 8991359d9e5068cf4137ed1f6c19bf4011d18437055ecbdd57b62620d6a5d596
4
+ data.tar.gz: c21de91e9d2d7d7fc72be1ce4baba600ccde388f158c482974ed0d7269f120fa
5
5
  SHA512:
6
- metadata.gz: e988f5e0c99cc51a5656deda8040f0facebbd1a00189be81094b5075877b2e95e612eabc905b2f95f27ea70b41fb2d50519cbb65dcd9cf034493ac55de586bf2
7
- data.tar.gz: d3aa5bee73b92a494a242c2c9bd6ea39fe8b5b8cb19f6b788b2d30c0719d36331886069e14c0880fe59cfb4acb6cdf8ad49df42b4e168f57a48605df2434c700
6
+ metadata.gz: f2217fbbb1317e983be4b3032cfd0213a0f2885a2834fba25bc29581f3228b23ab1de3d3386ec365eefb7ac778b823b24cbba198ec3fabecd5c2d67db758dd49
7
+ data.tar.gz: efc632c1182f07cb96d93d4fdd3fd390b1761e7b501973aca9e9d9f776c7771ace9bfd9318a18d2fccba82f6ef2bf51bc259bfa27d71f92be7b4f57c4405c184
data/.gitignore CHANGED
@@ -9,3 +9,5 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+
13
+ fictionlog.csv
data/exe/logfiction CHANGED
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'logfiction'
4
- n = ARGV[0]
5
- path = ARGV[1] if ARGV[1]
4
+
5
+ n = 1000
6
+ filepath='./fictionlog.csv'
7
+
8
+ n = ARGV[0] if ARGV[1]
9
+ filepath = ARGV[1] if ARGV[1]
6
10
  la = Logfiction::AccessLog.new()
7
- la.generate_accesslog(n)
8
- la.export_logfile(filetype='CSV',filepath='./fictionlog.csv')
11
+ la.export_logfile(n=n, filetype='CSV',filepath=filepath)
@@ -1,3 +1,3 @@
1
1
  module Logfiction
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/logfiction.rb CHANGED
@@ -411,8 +411,8 @@ module Logfiction
411
411
  output_accesslogs.sort{|a, b| a[:timestamp] <=> b[:timestamp]}[0,n_max]
412
412
  end
413
413
 
414
- def export_logfile(n_max=10000, filetype='CSV', filepath='./fiction_log.csv')
415
- logs = self.generate_accesslog(n_max=10000)
414
+ def export_logfile(n=10000, filetype='CSV', filepath='./fiction_log.csv')
415
+ logs = self.generate_accesslog(n)
416
416
  headers = logs.first.keys
417
417
  if filetype == 'CSV'
418
418
  CSV.open(filepath, "wb") do |output|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logfiction
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rilmayer