rumors-api-client 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: a1ec1d7e7ad23a43f4b0ce0808934b0bfae5fbf1da7901cd9532e82405a4b052
4
- data.tar.gz: c2d2e1a04c4d34bd6d71a4e02797ece4698466642c26cb2b6cff0ac256efb40c
3
+ metadata.gz: 3d7846a23f843ca66e4e4f26e8a8f87d90efafe26fe7d485fe350cdf707d87d5
4
+ data.tar.gz: cedd8d5cd1503566bff03d035b3054e2fbd583b4b413917d9b3fa829e39623fa
5
5
  SHA512:
6
- metadata.gz: 9fea51e2ce9a8b7962fb6640e48118e3f6248debc10eb493bec777ae86dc57bd0aecf313549eb4f4cef8140f1e4efc91663348ded7af71ef5ee8a98b20980354
7
- data.tar.gz: 50f380120e9c8ec2034782b2a5fd9e42b9be5a325cb552588fc809a1dc1ea1fae7dbb8dbfd779d38d5da942b06157d7ab9b7a7fc0dc2a8e267002eb5ec2e76e4
6
+ metadata.gz: bbe9ff7ae0847c776bac3855146708b8402801e91da8a6ce8e9f79ea47da6df3f29278051624f7d4e4005d85f0b9a015a11ae57d2585d88bb7d51cede4fdb0bb
7
+ data.tar.gz: 12b22a4100fd02beab81e9ed4dbc31d753f5fe347cb258e648b92e073c115eb6cb4425007de4ec8f155437e42a316a4be235d56c59321c9e0162042b3adfdb3c
data/README.md CHANGED
@@ -22,7 +22,15 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ ```ruby
26
+ rumor = "行政院最新公告~元旦放七天嘍!收到這訊息。千萬別點閱,因為有病毒,已有朋友中獎了,請大家告訴大家!如果有收到,元旦放七天,的那個是釣魚網站,別點。"
27
+
28
+ response = Rumors::Api::Client.search rumor
29
+
30
+ #=> #<HTTParty::Response:0x7fe0e51731d0 parsed_response={"data"=>{"GetArticle"=>{"id"=>"5394036018554-rumor", "text"=>"行政院最新公告~元旦放七天嘍!收到這訊息。千萬別點閱,因為有病毒,已有朋友中獎了,請大家告訴大家!如果有收到,元旦放七天,的那個是釣魚網站,別點", "articleReplies"=>[{"reply"=>{"id"=>"5361365129457-answer", "text"=>"人事行政總處已確認,明年的元旦假期只有4天假期,顯然說法有明顯出入,且該連結的安全性受到質疑。警政署165專線表示,初步判定該點選連結不會竊取個資,而連結網站惡作劇使用JavaScript產生彈跳視窗,民眾只要關閉就不會出現,並非惡意程式。", "type"=>"RUMOR", "reference"=>"http://www.appledaily.com.tw/realtimenews/article/new/20141209/520844/"}}, {"reply"=>{"id"=>"5394036018554-answer", "text"=>"其實早在兩年前,這樣的訊息就已經開始流傳,165反詐騙專線也證實這是惡作劇網站,初判不會竊取用戶個資。", "type"=>"RUMOR","reference"=>"http://www.setn.com/News.aspx?NewsID=187698"}}, {"reply"=>{"id"=>"AV8UubqFyCdS-nWhuhVz", "text"=>"人事行政總處已確認,明年的元旦假期只有4天假期,顯然說法有明顯出入,且該連結的安全性受到質疑。早在兩年前,這樣的訊息就已經開始流傳,165反詐騙專線也證實這是惡作劇網站,不會竊取用戶個資。警政署165專線表示,而連結網站惡作劇使用JavaScript產生彈跳視窗,民眾只要關閉就不會出現,並非惡意程式。", "type"=>"RUMOR","reference"=>"http://www.appledaily.com.tw/realtimenews/article/new/20141209/520844/\nLINE釣魚訊息瘋傳 元旦放7天係假\n\nhttp://www.setn.com/News.aspx?NewsID=187698\n元旦放7天?"}}]}}}, @response=#<Net::HTTPOK 200 OK readbody=true>, @headers={"server"=>["nginx/1.11.6"], "date"=>["Fri, 21 Dec 2018 07:20:01 GMT"], "content-type"=>["application/json"], "content-length"=>["1725"], "connection"=>["close"], "vary"=>["Origin"], "strict-transport-security"=>["max-age=15768000"]}>"}}]"}}}
31
+
32
+ response.body
33
+ ```
26
34
 
27
35
  ## Development
28
36
 
@@ -1,7 +1,7 @@
1
1
  module Rumors
2
2
  module Api
3
3
  module Client
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
6
6
  end
7
7
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumors-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carol H
@@ -145,6 +145,7 @@ files:
145
145
  - lib/rumors/api/client/utils/get_article_and_replies.rb
146
146
  - lib/rumors/api/client/utils/list_articles.rb
147
147
  - lib/rumors/api/client/version.rb
148
+ - rumors-api-client-0.1.1.gem
148
149
  - rumors-api-client.gemspec
149
150
  homepage: https://github.com/carolhsu/rumors-api-client
150
151
  licenses: