shangrila 0.0.4 → 0.0.5

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: 8689341f617b560128b93c4433c24b2f030a589f
4
- data.tar.gz: b7129609fd768a1f43ecb4265a2e7fce11ee9fc1
3
+ metadata.gz: 19441a8f33bc83788cb5c05bfe7cf857d4f400e6
4
+ data.tar.gz: 02aa7cdcba537f3dcd756bf4d0655a8998520a49
5
5
  SHA512:
6
- metadata.gz: 9d5567c7eab93ef8b9a1735414ebe264c6483ef24ed20425c18142307cc2e7eb9030979f932f2cef2bd606215ae9ce4939e69eeffe7680870fce5640875985b0
7
- data.tar.gz: 9baa94f3124e4c033fee1da1aaa6401f78e0c29aa3f6b2621e96c1343962187fbe39a34517cac0186c0511fe1799092babb59c18182a9a4ef7cec9843c0ab02a
6
+ metadata.gz: 2940f90190ad02519868a178722fc4621f06f062de9d77cffc7d50b07dda62b49c461057c18e68ff347277085200ff09d5239ec5482adc4a4fabeb4ebeee2a2d
7
+ data.tar.gz: 134059e4689d06e268c5f221ed1661353f9568ef5058d4c53c23e37e300b82fdf0c4b57663f8367cd10db919f7deb45a96198a0f239b93f70c522cfae6ea8829
data/README.md CHANGED
@@ -42,9 +42,11 @@ or Gemfile
42
42
 
43
43
  #### Get Twitter Follower Status
44
44
 
45
- ```Shangrila::Sora.new().get_flat_data(year, cours, property_list)```
45
+ ```Shangrila::Sana.new().follower_status(['usagi_anime','kinmosa_anime','aldnoahzero'])```
46
46
 
47
47
 
48
48
  #### Get Twitter Follower History
49
49
 
50
- ```Shangrila::Sora.new().get_flat_data(year, cours, property_list)```
50
+ ```Shangrila::Sana.new().follower_history(usagi_anime)```
51
+
52
+ ```Shangrila::Sana.new().follower_history(usagi_anime, 1446721206)```
@@ -13,20 +13,20 @@ module Shangrila
13
13
 
14
14
  # @param [Array] accounts データ取得対象のアニメTwitter公式アカウント
15
15
  # @return [Hash] アカウント群をキーとしたハッシュ
16
- def follwer_status(accounts)
17
- response = HTTPClient.get(sprintf('/follwer_status&accounts=%s', URL, accounts.join(',')))
16
+ def follower_status(accounts)
17
+ response = HTTPClient.get(sprintf('/follower_status&accounts=%s', URL, accounts.join(',')))
18
18
  JSON.load(response.body)
19
19
  end
20
20
 
21
21
  # @param [Array] account データ取得対象のアニメTwitter公式アカウント
22
22
  # @param [int] end_date 検索対象の終了日時 where update_at < end_date)
23
23
  # @return [Array] フォロワー数と更新日時のハッシュの配列
24
- def follwer_history(account, end_date = nil)
24
+ def follower_history(account, end_date = nil)
25
25
  response = nil
26
26
  if end_date.nil?
27
- response = HTTPClient.get(sprintf('/follwer_history&account=%s', URL, account))
27
+ response = HTTPClient.get(sprintf('/follower_history&account=%s', URL, account))
28
28
  else
29
- response = HTTPClient.get(sprintf('/follwer_history&account=%s&end_date=%d', URL, account, end_date))
29
+ response = HTTPClient.get(sprintf('/follower_history&account=%s&end_date=%d', URL, account, end_date))
30
30
  end
31
31
 
32
32
  JSON.load(response.body)
@@ -1,3 +1,3 @@
1
1
  module Shangrila
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/shangrila.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'shangrila/version'
2
2
  require 'shangrila/sora'
3
+ require 'shangrila/sana'
3
4
 
4
5
  module Shangrila
5
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shangrila
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - AKB428