nicoquery 0.1.2 → 0.1.3

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: cd2893dd0840e9b1f0fa3caf99ff82dc55678ac0
4
- data.tar.gz: 28d668d9124a48af24fa5cf60c835c9192a0168d
3
+ metadata.gz: b3814f14a25adbb1ee71f0844c0b61029fa8f477
4
+ data.tar.gz: e73736c6c8399eccd015fa1299ecc209d2cfe363
5
5
  SHA512:
6
- metadata.gz: a5cda5df660252b7c4d81b6747a375dcbef4fb0814b7a51fde77346d1e35d3a5d1dabd86e322027fa7596d9c094307d72ea6b7e289d22e9380043964cfd609a2
7
- data.tar.gz: dc255433b58771d9500525c5839d114dd374387d0f8f9e9c4b628e76fe104b359c3d76755da7111c07ad589a81adc8b8533f48cfcfadf35cfcd6027d37415960
6
+ metadata.gz: 40ec35c5bfab9edb7617ca03f8f7c32e22c1aec168b632e9759b23a8274b337eb219d20fabe46c5a5cd297609ae0028a5724e8b9f470e183f2189003f058b988
7
+ data.tar.gz: 1f3506b3b00bc3e14be66335ce884d7efb05b23580bbe0a30f30c4a0c7b9bdfafeec4881fde7a42cb22736110509feecad51374105282870e9e8f99fb581d0a1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nicoquery (0.1.2)
4
+ nicoquery (0.1.3)
5
5
  activesupport (~> 4.0.0)
6
6
  i18n
7
7
  nicoapi
@@ -35,6 +35,10 @@ module NicoQuery
35
35
  @hash['video']['id']
36
36
  end
37
37
 
38
+ def thread_id
39
+ @hash['thread']['id'].to_i
40
+ end
41
+
38
42
  def title
39
43
  @hash['video']['title']
40
44
  end
@@ -69,7 +73,7 @@ module NicoQuery
69
73
  end
70
74
 
71
75
  def comment_num
72
- @hash['video']['comment_num'].to_i
76
+ @hash['thread']['num_res'].to_i
73
77
  end
74
78
 
75
79
  def mylist_counter
@@ -1,3 +1,3 @@
1
1
  module NicoQuery
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -23,6 +23,12 @@ describe "NicoQuery::ObjectMapper::VideoArray" do
23
23
  end
24
24
  end
25
25
 
26
+ describe "#thread_id" do
27
+ it "returns number of mylist_id" do
28
+ expect(subject.thread_id).to eq 1364047834
29
+ end
30
+ end
31
+
26
32
  describe "#publish_date" do
27
33
  it "returns number of thread_id" do
28
34
  expect(subject.publish_date).to eq Time.new(2013, 3, 23, 23, 10, 32)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nicoquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masami Yonehara