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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8336892bdf5768dfb04d992183c3c6b801838d50
4
- data.tar.gz: 812c25a7a2267ae879df21558387f897b0e1b6b8
3
+ metadata.gz: 31d277ff36be5c53761ad53487f366abf74fdfff
4
+ data.tar.gz: dbd7c42c6a6849a5f01a36279c286c9abb2d9e06
5
5
  SHA512:
6
- metadata.gz: dbb3667fe9a0e2456fd2c6c82fe3d11309f2f7fe801058de8bcf8af8ef2f0524658e0bc0ef52499747035fa66564e2077f4086969043d01b79b769f9196e4c87
7
- data.tar.gz: a9645ddb5bd3e2422e85ee508e10576478c5ddc20e96f2718c8755b9c91c91500aedcd1889d85315848568524455a38c2368d184cc55f21c20e9ae6449c52878
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 = '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.homepage = 'https://github.com/SOA-Upstart4/Team-HW-1-Ideate-and-Scrape'
16
- s.license = 'MIT'
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).to_hash()
94
+ Feed.new(title, author, date, tags, query_url, content, imgs)
95
95
  end
96
96
  end
@@ -1,5 +1,5 @@
1
1
  # Versioning
2
2
  module BnextRobot
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  DATE = '2015-10-22'
5
5
  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.2
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
  - - ">="