shangrila 0.0.7 → 0.0.8

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: bf7cf6a45956c8f8610e454cf85b0c0c75041de7
4
- data.tar.gz: 5fddc6c4b2cd564f9cf0e7fb14829c05e0d32ff6
3
+ metadata.gz: 047893ba7d33cad9dca6d30596e35b2e704b7c28
4
+ data.tar.gz: 6642e65c332310230cc8bb30d9aa848189e0ee9b
5
5
  SHA512:
6
- metadata.gz: 55e4d9c00075a44d8b20b3ec9d81b684d4e52d964b2f4aadd2de48d1e82548a472f6937def328817f78d623409966283cbc8d60e361316da615c10b0cc980abe
7
- data.tar.gz: c9c92bf2ccb48b425455b3faa08cb8d44795f08d68fdb1685008adc77f90bb82ade567845519d78a8ac7ae605db2881a8ec38c262919535dfa2139256fd18896
6
+ metadata.gz: 45bb3cc3194b7bd91ad9379041c621532008f7f19995d0405443cf5ecaaf1daccd8c299e2d8518c27748abb1065a2a61ee3b083b91b315fbd0f7a88147e5fc59
7
+ data.tar.gz: c61ee16df71db2b434363eaa119e90f4ae004d5d114a7b443f98cf0da5816df31f2d420995274ed640ac44552d3040936c0b5f0b037cd2d8d3ca6a92cced28f8
data/README.md CHANGED
@@ -60,4 +60,6 @@ irb(main):002:0> Shangrila::Sora.new().get_flat_data(2015, 4, ['id', 'title']).e
60
60
 
61
61
  ``Shangrila::Sana.new().follower_history('usagi_anime')``
62
62
 
63
- ``Shangrila::Sana.new().follower_history('usagi_anime', 1446901208)``
63
+ ``Shangrila::Sana.new().follower_history('usagi_anime', 1446901208)``
64
+
65
+ ``Shangrila::Sana.new().follower_history_daily('usagi_anime', 30)``
@@ -18,7 +18,7 @@ module Shangrila
18
18
  JSON.load(response.body)
19
19
  end
20
20
 
21
- # @param [Array] account データ取得対象のアニメTwitter公式アカウント
21
+ # @param [String] account データ取得対象のアニメTwitter公式アカウント
22
22
  # @param [int] end_date 検索対象の終了日時 where update_at < end_date)
23
23
  # @return [Array] フォロワー数と更新日時のハッシュの配列
24
24
  def follower_history(account, end_date = nil)
@@ -32,6 +32,15 @@ module Shangrila
32
32
  JSON.load(response.body)
33
33
  end
34
34
 
35
+ # /anime/v1/twitter/follower/history/daily
36
+ # @param [String] account データ取得対象のアニメTwitter公式アカウント
37
+ # @param [int] days 取得日数
38
+ # @return [Array] フォロワー数と更新日時のハッシュの配列
39
+ def follower_history_daily(account, days = nil)
40
+ response = HTTPClient.get(sprintf('%s/follower/history/daily?account=%s&days=%s', URL, account, days))
41
+
42
+ JSON.load(response.body)
43
+ end
35
44
  end
36
45
 
37
46
  end
@@ -1,3 +1,3 @@
1
1
  module Shangrila
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shangrila
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - AKB428
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-14 00:00:00.000000000 Z
11
+ date: 2016-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler