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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/nicoquery/core/hash_mapper.rb +8 -6
- data/lib/nicoquery/core/http_client.rb +8 -6
- data/lib/nicoquery/core/tag_search.rb +2 -2
- data/lib/nicoquery/core/version.rb +3 -1
- data/lib/nicoquery/core/video_array.rb +1 -0
- data/nicoquery-core.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d8118c053c44eeebb886338d41585623a9ca3fc
|
|
4
|
+
data.tar.gz: ae53ffb71d96398f85eab2c188ce49721ea67fe8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6098b2e057b2238f18f6477b519df3b7d296acd7c3608a643910929b3f6f4ebf09a599fbb485cca806465bf62ae0ff8d4b59711e278f59faed1ddef1e212a47a
|
|
7
|
+
data.tar.gz: ac4193f1187381d50e653b509453594e9951169271c182a47e14cb171a652ee2361fa71222264259bfb61089c72e228061a9b85bbda1028a91062a1afafaba83
|
data/Gemfile.lock
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
require 'nori'
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
module
|
|
5
|
-
module
|
|
6
|
-
|
|
7
|
-
(
|
|
8
|
-
|
|
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
|
-
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
module NicoQuery
|
|
6
|
+
module Core
|
|
7
|
+
class HttpClient
|
|
8
|
+
include Singleton
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
def set_params(uri) @uri = uri end
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
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 '
|
|
2
|
+
require 'nicoquery/core/base'
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
module NicoQuery
|
|
6
6
|
module Core
|
|
7
7
|
class TagSearch
|
|
8
|
-
include
|
|
8
|
+
include NicoQuery::Core::Base
|
|
9
9
|
|
|
10
10
|
def initialize(tag: tag, sort: sort, order: order, page: page)
|
|
11
11
|
@dynamic_segment = tag
|
data/nicoquery-core.gemspec
CHANGED
|
@@ -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}
|