nicoapi-parser 0.0.1 → 0.0.2

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: 616fa9f36085316203054ec174b3da4edf14e0cd
4
- data.tar.gz: 8305fda7fb3ddabd7b9874c508091ea5eb2a91a4
3
+ metadata.gz: 4b6abd25615736aa682614ba4bc32c3a171963ca
4
+ data.tar.gz: 54d9295d349f6e95c7cf68257813ffe157c94c0b
5
5
  SHA512:
6
- metadata.gz: 3a581254aac85622e483f6abae0b4a7196b7a21b1dd536dd2670e4d982282d623d6a620732f849b3837e11cbe18a946337556583c2846ea19927956dd3826d22
7
- data.tar.gz: 4740a52ecd52e3b9b042d8585639f13ab81d7e4d5506476048ba70ee4700d349e4ecdc1376bfb15f20efdac9823d80feb066535adcd7bf567bf91d5f105a900d
6
+ metadata.gz: b59d0e708644f7238e71e111a33fe50d1eb95d4c7b5084432393e139ea051d1c39868df7ad04b3b1d0310386cc028f2f0092bb6991430b4eb03d32e52a22e586
7
+ data.tar.gz: 2e976977a9c7e291868827958e1bea0b948588e604a5debf67f793f4be2223ebe661c04d7a5da9c0dc8e50243fa37fb101ab556b4d260479e96c66bb7e1f4581
@@ -7,8 +7,11 @@ require "pry"
7
7
  module NicoAPI
8
8
  module Parser
9
9
  class TagSearch
10
- def initialize(xml)
10
+ def initialize
11
11
  @parser = Nori.new
12
+ end
13
+
14
+ def setXml(xml)
12
15
  @xml = xml
13
16
  end
14
17
 
@@ -1,5 +1,5 @@
1
1
  module Nicoapi
2
2
  module Parser
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -4,7 +4,8 @@ require "./spec/fixture"
4
4
 
5
5
  describe "TagSearch" do
6
6
  before do
7
- @instance = NicoAPI::Parser::TagSearch.new Fixture.tag_search_rss
7
+ @instance = NicoAPI::Parser::TagSearch.new
8
+ @instance.setXml Fixture.tag_search_rss
8
9
  @instance.parse
9
10
  end
10
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nicoapi-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masami Yonehara