nicoapi-core 0.0.3.2 → 0.0.4.2

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: 94d62b0ea36a521e2f2298326e5b140a1c699f17
4
- data.tar.gz: e0e590be5a94f62156af4e2d4b7ef92708f7d756
3
+ metadata.gz: 0b3c3ddbebb8e254a88e8a422cbe067b5de2b17e
4
+ data.tar.gz: e168a51de77ca0742cbecf4d9e1dc23be653625b
5
5
  SHA512:
6
- metadata.gz: f424ab93efe9a0049ef46989197e39a8fa36794c0266f2f857d14447a95e661b0b7917bda0ef2f47f20209daee01ce3bafe567d65a1d410fb869a9837a026285
7
- data.tar.gz: ccb603c13c9c26c2b33b2359a226656112c6038c97a6fbe5459096224282ddc774b4694de1228a30030687fccc77cf4deaa285223fe171cfcc5b59bf144a8703
6
+ metadata.gz: ad6343b35e3b4c25bb85a7ff92e24f77d1475d2722db6689d59ae7823e5909612a8c2606ab1557bb8851279fd8ddbad9566db22236e976ffe808475ae8271645
7
+ data.tar.gz: 198064cca05f0f7e9240b7e9fe80e649d67ff83fba7d3bda437ff67be1be3b18436a2bbd338650b0dba9dc4ec8437d87208380874919d471e7a59b8a275d6bf4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nicoapi-core (0.0.3.2)
4
+ nicoapi-core (0.0.4.2)
5
5
  i18n
6
6
  rest-client
7
7
 
@@ -21,14 +21,12 @@ module NicoAPI
21
21
  end
22
22
 
23
23
  def params_array(sort, order, page)
24
- array = []
25
-
26
- array.push sort_param(sort)
27
- array.push order_param(order)
28
- array.push page_param(page)
29
- array.push "rss=2.0"
30
-
31
- array
24
+ [
25
+ sort_param(sort),
26
+ order_param(order),
27
+ page_param(page),
28
+ format
29
+ ]
32
30
  end
33
31
 
34
32
  def format
@@ -1,3 +1,3 @@
1
1
  module Nicoapi
2
- VERSION = "0.0.3.2"
2
+ VERSION = "0.0.4.2"
3
3
  end
@@ -9,13 +9,12 @@ describe "tag_search" do
9
9
 
10
10
  describe "uri" do
11
11
  subject { @instance.uri }
12
- specify {
13
- # host and path
14
- expect(subject).to match /http:\/\/www\.nicovideo\.jp\/tag/
15
- # uri parameter
16
- expect(subject).to match /(sort=(v|r|m|f|l)){0,}/
17
- expect(subject).to match /(order=(a|d)){0,}/
18
- expect(subject).to match /(page=\d){1,}/
19
- }
12
+
13
+ specify { expect(subject).to match /http:\/\/www\.nicovideo\.jp\/tag/ }
14
+
15
+ specify { expect(subject).to match /(sort=(v|r|m|f|l)){0,}/ }
16
+ specify { expect(subject).to match /(order=(a|d)){0,}/ }
17
+ specify { expect(subject).to match /(page=\d){1,}/ }
18
+ specify { expect(subject).to match /rss\=2\.0/ }
20
19
  end
21
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nicoapi-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.2
4
+ version: 0.0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masami Yonehara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-05 00:00:00.000000000 Z
11
+ date: 2013-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client