html-pipeline-nico_link 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 366a0e350574d225a5afaa5dd1842866abf4eee4
4
- data.tar.gz: 5b1b0c477d9629e5cf7d1a1522e307577e72b990
3
+ metadata.gz: 0b2a92d7dcf74a12b5ea66f313b6c57725b71164
4
+ data.tar.gz: 00dfef35e6062a3e92c6c5ff26b0d76ea9e5c898
5
5
  SHA512:
6
- metadata.gz: 3191efafc28421a8cacc3521a46bc07d7080102be4ea5091d7330d65c762e588bd8d8e85c37e646702bf15026058e0eb14474e51037b02132769c591172f97b3
7
- data.tar.gz: e567142ee2b3caec8a59d75ee2c83c33ff7e82ec160b2394f8fca821dce1fd4a0c662d194577e9e1943b28d98cd2efc49eb49a6eff6bd7714e64a014012e8dc9
6
+ metadata.gz: c5404006cda11a35574caeeab2b2f0c22ef96a465f2a54a5fed1b7576694c28ceedc29f1526f77e1d9da1e42f55f86ec080e0b379da0c71c87b371885896e6fb
7
+ data.tar.gz: 93cfd5c85663dad2c847d523e808624a971f7af4d1cb8708b9b44d5e0d9a7b37b534b6aa42bd56447b860c1f690f0087c1116010855ce9ee14ced5234a6cef8b
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 2.1
5
- - 2.2
4
+ - 2.2.2
6
5
  - 2.3.0
6
+ - 2.4.0
7
7
  - ruby-head
8
8
  before_install:
9
9
  - gem install bundler
@@ -126,6 +126,10 @@ module HTML
126
126
  pattern: /kn\d+/,
127
127
  link: 'http://niconare.nicovideo.jp/watch/%s',
128
128
  },
129
+ {
130
+ pattern: /gm\d+/,
131
+ link: 'http://game.nicovideo.jp/atsumaru/games/%s',
132
+ },
129
133
  ].freeze
130
134
  end
131
135
  end
@@ -1,7 +1,7 @@
1
1
  module HTML
2
2
  class Pipeline
3
3
  module NicoLink
4
- VERSION = '0.1.0'.freeze
4
+ VERSION = '0.2.0'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -63,9 +63,9 @@ describe 'NicoLinkFilter' do
63
63
  sm123 watch/5321 co9999 ch1414 ar56789 td3232 nc9284 dw111 lv8864 sg9123 bk1313 im58
64
64
  commons.nicovideo.jp/user/1 niconicommons.jp/user/2
65
65
  user/illust/3 clip/555 ch.nicovideo.jp/h-p
66
- jps1111 kn1567
66
+ jps1111 kn1567 gm54321
67
67
  ).join(' ')
68
68
  end
69
- it { expect(subject).to eq '<a href="http://www.nicovideo.jp/watch/sm123">sm123</a> <a href="http://www.nicovideo.jp/watch/5321">watch/5321</a> <a href="http://com.nicovideo.jp/co9999">co9999</a> <a href="http://ch.nicovideo.jp/ch1414">ch1414</a> <a href="http://ch.nicovideo.jp/article/ar56789">ar56789</a> <a href="http://3d.nicovideo.jp/works/td3232">td3232</a> <a href="http://commons.nicovideo.jp/material/nc9284">nc9284</a> <a href="http://ichiba.nicovideo.jp/item/dw111">dw111</a> <a href="http://live.nicovideo.jp/watch/lv8864">lv8864</a> <a href="http://seiga.nicovideo.jp/watch/sg9123">sg9123</a> <a href="http://seiga.nicovideo.jp/watch/bk1313">bk1313</a> <a href="http://seiga.nicovideo.jp/seiga/im58">im58</a> <a href="http://commons.nicovideo.jp/user/1">commons.nicovideo.jp/user/1</a> <a href="http://www.niconicommons.jp/user/2">niconicommons.jp/user/2</a> <a href="http://seiga.nicovideo.jp/user/illust/3">user/illust/3</a> <a href="http://seiga.nicovideo.jp/clip/555">clip/555</a> <a href="http://ch.nicovideo.jp/h-p">ch.nicovideo.jp/h-p</a> <a href="http://jpstore.dwango.jp/products/detail.php?product_id=1111">jps1111</a> <a href="http://niconare.nicovideo.jp/watch/kn1567">kn1567</a>' }
69
+ it { expect(subject).to eq '<a href="http://www.nicovideo.jp/watch/sm123">sm123</a> <a href="http://www.nicovideo.jp/watch/5321">watch/5321</a> <a href="http://com.nicovideo.jp/co9999">co9999</a> <a href="http://ch.nicovideo.jp/ch1414">ch1414</a> <a href="http://ch.nicovideo.jp/article/ar56789">ar56789</a> <a href="http://3d.nicovideo.jp/works/td3232">td3232</a> <a href="http://commons.nicovideo.jp/material/nc9284">nc9284</a> <a href="http://ichiba.nicovideo.jp/item/dw111">dw111</a> <a href="http://live.nicovideo.jp/watch/lv8864">lv8864</a> <a href="http://seiga.nicovideo.jp/watch/sg9123">sg9123</a> <a href="http://seiga.nicovideo.jp/watch/bk1313">bk1313</a> <a href="http://seiga.nicovideo.jp/seiga/im58">im58</a> <a href="http://commons.nicovideo.jp/user/1">commons.nicovideo.jp/user/1</a> <a href="http://www.niconicommons.jp/user/2">niconicommons.jp/user/2</a> <a href="http://seiga.nicovideo.jp/user/illust/3">user/illust/3</a> <a href="http://seiga.nicovideo.jp/clip/555">clip/555</a> <a href="http://ch.nicovideo.jp/h-p">ch.nicovideo.jp/h-p</a> <a href="http://jpstore.dwango.jp/products/detail.php?product_id=1111">jps1111</a> <a href="http://niconare.nicovideo.jp/watch/kn1567">kn1567</a> <a href="http://game.nicovideo.jp/atsumaru/games/gm54321">gm54321</a>' }
70
70
  end
71
71
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-pipeline-nico_link
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ru_shalm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-11 00:00:00.000000000 Z
11
+ date: 2017-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-pipeline
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.5.1
123
+ rubygems_version: 2.6.8
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: niconico link for html-pipeline