pointmd_comments 0.1.5 → 0.1.6
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/lib/pointmd_comments/aggregators/main.rb +7 -1
- data/lib/pointmd_comments/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33e78e92e82cde074461ee904263960acf61b7f4b346ed6e6195f966fc852456
|
4
|
+
data.tar.gz: ee1271f3f136cbaf9ad88988a7de7c973fec3bcfc115823808b0e234afd016ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be7a9b05cdeaf6c5ec7613f628fc259ca1312c80d29258764d244e99dfb561a8c2479ae3c2620f091001764693bd875537bcc435ea2d1363be000e19f1de3c10
|
7
|
+
data.tar.gz: bb718e968268bda91b7d2227465860846f133a94d926bb24ea9eb73b5e9e2e04fb73882684ad19724d1acb218123070192987156f2e2c568859c2d46a522829b
|
@@ -10,7 +10,12 @@ module PointmdComments
|
|
10
10
|
@source = options[:source] || Aggregators::Posts::DEFAULT_SOURCE
|
11
11
|
@posts_aggregator = Aggregators::Posts.new(source: source, path: path)
|
12
12
|
@comments_aggregator = Aggregators::Comments.new
|
13
|
-
|
13
|
+
|
14
|
+
client = Selenium::WebDriver::Remote::Http::Default.new
|
15
|
+
# NOTE: #timeout= is deprecated, use #read_timeout= and #open_timeout= instead
|
16
|
+
client.timeout = 600 # instead of the default 60 (seconds)
|
17
|
+
|
18
|
+
@browser = ::Watir::Browser.new :chrome, http_client: client, headless: true
|
14
19
|
@all_comments = []
|
15
20
|
end
|
16
21
|
|
@@ -48,6 +53,7 @@ module PointmdComments
|
|
48
53
|
def write_to_csv
|
49
54
|
# File#expand_path is needed to process paths like '~/test.txt' => '/Users/me/test.txt'
|
50
55
|
file_path = File.expand_path(output)
|
56
|
+
puts "File Path is #{file_path}"
|
51
57
|
|
52
58
|
CSV.open(file_path, 'w') do |csv|
|
53
59
|
all_comments.each { |c| csv << c }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pointmd_comments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolai Stoianov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|