bnext_robot 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 +4 -4
- data/bnext_robot.gemspec +13 -12
- data/lib/ext_class/bnext_robot.rb +1 -1
- data/lib/ext_class/bnext_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31d277ff36be5c53761ad53487f366abf74fdfff
|
4
|
+
data.tar.gz: dbd7c42c6a6849a5f01a36279c286c9abb2d9e06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa8c8bf9ae8acfaf919c8af77a0c0fab3b09b3faf8cbd1cbf2fe219907a9d5be010d1a2d3fa6b57e6d34779426bb5a11b24c24f4fd270617d1b93e9e9a3b6ab8
|
7
|
+
data.tar.gz: 336cf0ed72da2763d8c0854eb49fcd123fc58a8f40e0ae35f5692227c9d17225f15c1d42c6a6530c989145987c9186b64d717b1930c8c7a9a2d24c43364353d5
|
data/bnext_robot.gemspec
CHANGED
@@ -2,18 +2,19 @@ $LOAD_PATH.push File.expand_path('../lib/ext_class', __FILE__)
|
|
2
2
|
require 'bnext_version'
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
|
-
s.name
|
6
|
-
s.version
|
7
|
-
s.date
|
8
|
-
s.executables
|
9
|
-
s.summary
|
10
|
-
s.description
|
11
|
-
s.authors
|
12
|
-
s.email
|
13
|
-
s.files
|
14
|
-
s.test_files
|
15
|
-
s.
|
16
|
-
s.
|
5
|
+
s.name = 'bnext_robot'
|
6
|
+
s.version = BnextRobot::VERSION
|
7
|
+
s.date = BnextRobot::DATE
|
8
|
+
s.executables << 'bnext_robot'
|
9
|
+
s.summary = 'Web scrapy for Business Next'
|
10
|
+
s.description = 'Web scrapy for Business Next, including showing day/week rank and feeds extraction'
|
11
|
+
s.authors = ['Jacky Pan', 'Angela Hung', 'Edison Lee', 'Tony Lee']
|
12
|
+
s.email = ['jackypan000@gmail.com', 'angela.hung@iss.nthu.edu.tw', 'dfg1021@hotmail.com.tw', 'tony123930@yahoo.com.tw']
|
13
|
+
s.files = `git ls-files`.split("\n")
|
14
|
+
s.test_files = `git ls-files spec/*`.split("\n")
|
15
|
+
s.require_paths = ['lib/ext_class']
|
16
|
+
s.homepage = 'https://github.com/SOA-Upstart4/Team-HW-1-Ideate-and-Scrape'
|
17
|
+
s.license = 'MIT'
|
17
18
|
|
18
19
|
s.add_development_dependency 'minitest'
|
19
20
|
s.add_development_dependency 'minitest-rg'
|
@@ -91,6 +91,6 @@ class BNextRobot
|
|
91
91
|
content = document.xpath(CONTENT_XPATH).text.force_encoding('utf-8')
|
92
92
|
tags = document.xpath(TAG_XPATH).map{ |i| i.text.force_encoding('utf-8') }
|
93
93
|
imgs = document.xpath(IMGS_XPATH).map(&:text)
|
94
|
-
Feed.new(title, author, date, tags, query_url, content, imgs)
|
94
|
+
Feed.new(title, author, date, tags, query_url, content, imgs)
|
95
95
|
end
|
96
96
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bnext_robot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacky Pan
|
@@ -116,7 +116,7 @@ metadata: {}
|
|
116
116
|
post_install_message:
|
117
117
|
rdoc_options: []
|
118
118
|
require_paths:
|
119
|
-
- lib
|
119
|
+
- lib/ext_class
|
120
120
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|