logaling-command 0.2.4 → 0.2.5

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: c847b98f21e2cae19d43aa80ab8784e6d54b6a75
4
- data.tar.gz: 47031fb36e0f527405af4580a4f3c21d364300c2
3
+ metadata.gz: b633ddd0e1473578be7800e96193b3e0bd1400f0
4
+ data.tar.gz: 2914f93cdedd445cbddc835082727e72dc6ebb0e
5
5
  SHA512:
6
- metadata.gz: 94f5300625a54855af7f8c06a4393443b3dc6dc800cda2a93dd29085b1a3fad47b3c4a6fbb22fa09fd09d0f0ebdc165804e279c32e64edf18341e92c1f901fb8
7
- data.tar.gz: b07f1cb7240975cab898091a7e216fd9dad1fd17610f8a27cb37d5ae09270a09e14380d99278e6624cc2248caaceebddae49ce806e26117188967d5db9e0097b
6
+ metadata.gz: e2361278c508665472d8c47fe09790dd7e18142c7338cf51f746e849d414ec13aa0250cf07efb378ecc1222ae8e80ed63e37ddc79443d7627eefd854d07d625f
7
+ data.tar.gz: 512eb045cbf23f22e7220e7b6cc6a27ff1b04cd3059418ac08ce3f9ddb9c40558913e314ec934f87827aaac052ea264304e4e0a5ac6b7a88a09f61c23aa5ce6c
data/CHANGES CHANGED
@@ -1,4 +1,7 @@
1
- = 0.2.4 / 2014-1-15
1
+ = 0.2.5 / 2015-8-21
2
+ * PostgreSQLのマニュアルの対訳表の取り込みが機能していなかった問題を修正しました [GitHub#100][nikuさんが報告]
3
+
4
+ = 0.2.4 / 2015-1-15
2
5
  * Rainbow 2.2.0に対応しました [GitHub#98][角征典さんが報告]
3
6
 
4
7
  = 0.2.3 / 2013-1-25
@@ -18,6 +18,6 @@
18
18
 
19
19
  module Logaling
20
20
  module Command
21
- VERSION = "0.2.4"
21
+ VERSION = "0.2.5"
22
22
  end
23
23
  end
@@ -27,10 +27,13 @@ module Logaling
27
27
 
28
28
  private
29
29
  def convert_to_csv(csv)
30
- doc = ::Nokogiri::HTML(open("http://osb.sraoss.co.jp/PostgreSQL/Manual/word.html", "r:iso-2022-jp").read.encode("utf-8"))
31
- doc.css('table table tr')[2..-1].each do |tr|
32
- if tr.children[2]
33
- csv << [tr.children[2].text, tr.children[4].text]
30
+ url = "http://osb.sraoss.co.jp/PostgreSQL/Manual/word.html"
31
+ open(url, "r:iso-2022-jp") do |input|
32
+ doc = ::Nokogiri::HTML(input.read.encode("utf-8"))
33
+ doc.css('table table tr')[2..-1].each do |tr|
34
+ if tr.children[3]
35
+ csv << [tr.children[3].text, tr.children[5].text]
36
+ end
34
37
  end
35
38
  end
36
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logaling-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - SHIMADA Koji
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-01-15 00:00:00.000000000 Z
15
+ date: 2015-08-21 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: thor