harunica 0.0.3 → 0.0.4

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: 3fb99a2e1aae906ff21da91d172ad06caf8be866
4
- data.tar.gz: 4843a6ce8ed8fe305fbedff69f895fa109440601
3
+ metadata.gz: d932bdfc49d9fb6140d19355f16794a570600f5e
4
+ data.tar.gz: 936a76ce65e359d8d55d53a030b5c3bc0981943a
5
5
  SHA512:
6
- metadata.gz: 56f209aa18c8c22683c9223469e913fe5db031f8bfa2371ba9833e52905050e2e440da2471a0b287797685354cadc91ce6e722e54a28051c00271bfa28b1625b
7
- data.tar.gz: 8906adaa556c268ead5e1a43de586adaeb67b260fdb300bf64164574a1c2f8d1a1eafb2fff06b06c1cca00ea94bd8fb082ee5c0ebe9fe7b37c23442b248902c4
6
+ metadata.gz: 2474aea0a8d0e19ba4e95bae685e8b2659658ae743b44d06dbfc55fd456622ab5ee82c85201e7feec1eca07049478447506188d9bf41dc391683402ec6ac8720
7
+ data.tar.gz: 55120c926c410fc369a2982bfaed020cdd9d87b2a85aefe9c017767a9436d2cdb97d9ba23213b24de3689d7b6f7c39bb86dbb4a5b3be745f871ac8375d9bf1a6
@@ -3,7 +3,7 @@ require 'nokogiri'
3
3
  module Harunica
4
4
  module Scraping
5
5
  class ListPage
6
- INITIAL_URL = "http://www.nicovideo.jp/tag/#{ ::URI.escape('春ニカ祭') }2015"
6
+ DEFAULT_URL = "http://www.nicovideo.jp/tag/#{ ::URI.escape('春ニカ祭') }2015"
7
7
 
8
8
  VIDEO_SELECTORS = [
9
9
  '.container',
@@ -24,8 +24,8 @@ module Harunica
24
24
 
25
25
  attr_reader :html
26
26
 
27
- def initialize(html)
28
- @html = html || Html.new(url: INITIAL_URL)
27
+ def initialize(html = nil)
28
+ @html = html || Html.new(DEFAULT_URL)
29
29
  end
30
30
 
31
31
  def video_pages
@@ -1,3 +1,3 @@
1
1
  module Harunica
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harunica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mosop