nicoquery-core 0.0.5 → 0.0.5.1

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: d398416c7f8de2d75ddc3ba356b845e5ef78357b
4
- data.tar.gz: d850aea53c067ac894394c905c956418ccd31c11
3
+ metadata.gz: 1d8118c053c44eeebb886338d41585623a9ca3fc
4
+ data.tar.gz: ae53ffb71d96398f85eab2c188ce49721ea67fe8
5
5
  SHA512:
6
- metadata.gz: 8caf7312bdf2f5e711e27988937fbb0c051cdb082266a4557ab793783487e5ea0846bb7bf55db239f08eaff242c134da254438e82c4373a409ced7c8ac36e08c
7
- data.tar.gz: 31e34a3f6bcf6faf3ac2aa3dd94c7cc73fa544444430d40d976db5e2f7b0bdc5c24fb953a5d2a225ca8c325eac561c5188164f8fc94b7fba2af1dee601fde9e5
6
+ metadata.gz: 6098b2e057b2238f18f6477b519df3b7d296acd7c3608a643910929b3f6f4ebf09a599fbb485cca806465bf62ae0ff8d4b59711e278f59faed1ddef1e212a47a
7
+ data.tar.gz: ac4193f1187381d50e653b509453594e9951169271c182a47e14cb171a652ee2361fa71222264259bfb61089c72e228061a9b85bbda1028a91062a1afafaba83
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nicoquery-core (0.0.5)
4
+ nicoquery-core (0.0.5.1)
5
5
  activesupport (~> 4.0.0)
6
6
  i18n
7
7
  rest-client
@@ -1,12 +1,14 @@
1
1
  require 'nori'
2
2
 
3
3
 
4
- module NicoAPI
5
- module HashMapper
6
- def map_to_hash(xml)
7
- (Nori.new).parse xml
8
- end
4
+ module NicoQuery
5
+ module Core
6
+ module HashMapper
7
+ def map_to_hash(xml)
8
+ (Nori.new).parse xml
9
+ end
9
10
 
10
- module_function :map_to_hash
11
+ module_function :map_to_hash
12
+ end
11
13
  end
12
14
  end
@@ -2,14 +2,16 @@ require 'rest_client'
2
2
  require 'singleton'
3
3
 
4
4
 
5
- module NicoAPI
6
- class HttpClient
7
- include Singleton
5
+ module NicoQuery
6
+ module Core
7
+ class HttpClient
8
+ include Singleton
8
9
 
9
- def set_params(uri) @uri = uri end
10
+ def set_params(uri) @uri = uri end
10
11
 
11
- def get
12
- RestClient.get @uri.to_s
12
+ def get
13
+ RestClient.get @uri.to_s
14
+ end
13
15
  end
14
16
  end
15
17
  end
@@ -1,11 +1,11 @@
1
1
  require 'active_support/core_ext'
2
- require 'nicoapi/core/base'
2
+ require 'nicoquery/core/base'
3
3
 
4
4
 
5
5
  module NicoQuery
6
6
  module Core
7
7
  class TagSearch
8
- include NicoAPI::Base
8
+ include NicoQuery::Core::Base
9
9
 
10
10
  def initialize(tag: tag, sort: sort, order: order, page: page)
11
11
  @dynamic_segment = tag
@@ -1,3 +1,5 @@
1
1
  module NicoQuery
2
- VERSION = "0.0.5"
2
+ module Core
3
+ VERSION = "0.0.5.1"
4
+ end
3
5
  end
@@ -5,6 +5,7 @@ module NicoQuery
5
5
  module Core
6
6
  class VideoArray
7
7
  include NicoQuery::Core::Base
8
+
8
9
  def initialize(video_id_array)
9
10
  @video_id_array = video_id_array
10
11
  @dynamic_segment = ''
@@ -5,7 +5,7 @@ require 'nicoquery/core/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "nicoquery-core"
8
- spec.version = NicoQuery::VERSION
8
+ spec.version = NicoQuery::Core::VERSION
9
9
  spec.authors = ["Masami Yonehara"]
10
10
  spec.email = ["zeitdiebe@gmail.com"]
11
11
  spec.description = %q{niconico low level api library}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nicoquery-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masami Yonehara