hacker_news 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
data/hacker_news.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "hacker_news"
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aleksandr Lossenko"]
@@ -9,7 +9,8 @@ module HackerNews
9
9
  points_comments_tr = tr.next
10
10
  points_comments_td = points_comments_tr.css("td.subtext")[0]
11
11
 
12
- @title = Iconv.iconv('iso-8859-1//translit', 'utf-8', node.text)[0].to_s.strip
12
+ #@title = Iconv.iconv('iso-8859-1//translit', 'utf-8', node.text)[0].to_s.strip
13
+ @title = Iconv.iconv('iso-8859-1//IGNORE', 'US-ASCII', node.text)[0].to_s.strip
13
14
  @url = node[:href]
14
15
  @position = position
15
16
  @points = points_comments_td.css("span")[0].text.to_i rescue nil
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hacker_news
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aleksandr Lossenko