producthunt 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/producthunt.rb +2 -25
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWEwY2UxMTJhYTdlMWZiOWNiMjU3NTJkMmZlMDQwZjUwNmJmNzVhMg==
4
+ OWY3N2ZkNjI4MGJiY2FhNTg2YmVjNmQwMDNkMTYxY2JjYmUyODIyNA==
5
5
  data.tar.gz: !binary |-
6
- NGJmOTdhYmJhMjU1ZTFhM2E2OTM4NjJlNTIxZjUzYWQ2NTJkZTlmNg==
6
+ YTQ2NzlmNGVlMDJkZmIxYjE2YjhjYWZkNTBjNTNhMjUzZjc5MjRjZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGFkYTQ3NjZmYTQ2MWI4NjMxNTcwOWQ1Y2Y2ZTkxODM0NTQyZDM3NzM2Nzgy
10
- OWZiN2NhZGQ5YzI1OWEyYmI2MmNmNjhjNzIzNmFjODZhMTdiYjA3N2EwNmU1
11
- NzQxOTdmYTM0YTJjYmYxMDdlOWVkMzBiZDY0MjA5OWQ4YzYxOTQ=
9
+ MDdiODZkYTU2YmZmOThjYmRjYzZiYjAzZGRjZWRiZDBlMWIzZDdmMzlkMDM2
10
+ NzJlZDhiNTI5MDhkMTk1ZGFhMGY3NjZhNzgwZDA4ZWM3MjIzNjNkOGFkZmJl
11
+ MDAxM2UxZjI2ZTU0ZWExYzYzNmMwMGI2ZjIyOWZhNDllMzRjZjc=
12
12
  data.tar.gz: !binary |-
13
- YmEyNWQ1Yjk3ZmE2YjIyNDFjNjczZjQ4NTc0ZTUzMDkyNTg5YWNkMGQ0ODg5
14
- NGY0MTE3Zjk3YjJhMzEzMGI1NzQyZjU4NzRiM2ExNjFhYzFlYTk0N2RmNWM3
15
- OTFhZGU3ZDg2MGYyMWNmNzIyZmM5MjQ1MjA2OWZlZjRiMmI5ODA=
13
+ ODgwNTU1MDExMjhiODU0YTMwYjA5ODcxMDYxNDc0YjY4N2UyNjQ3M2ExODE3
14
+ NWJmYmUwZTFjNjM1MDBjNDZmNTU1M2VmMzg0OTk0M2JhNThhMmU0Yzc1YzVi
15
+ NTE2Y2FmNjg3NTE4ZmUzODgwYmNiMjY2MDU0ZGE4M2E4YzVkNWI=
data/lib/producthunt.rb CHANGED
@@ -8,14 +8,7 @@ module ProductHunt
8
8
  #
9
9
  # Example:
10
10
  # >> puts ProductHunt::Post.get_today
11
- # => { "status"=>"success",
12
- # => "hunts"=>[
13
- # => {
14
- # => "title"=>"Wealthfront", "votes"=>10,
15
- # => "user"=>{"username"=>"hunterwalk", "name"=>"Hunter Walk"},
16
- # => "rank"=>2, "tagline"=>"Automated, low cost investment service",
17
- # => "comment_count"=>"3", "permalink"=>"/posts/wealthfront", "url"=>"https://www.wealthfront.com/"
18
- # => }, ... ]}
11
+ # => { "status"=>"success", "hunts"=>[{ "title"=>"Wealthfront", "votes"=>10, "user"=>{"username"=>"hunterwalk", "name"=>"Hunter Walk"}, "rank"=>2, "tagline"=>"Automated, low cost investment service", "comment_count"=>"3", "permalink"=>"/posts/wealthfront", "url"=>"https://www.wealthfront.com/"}, ... ]}
19
12
  def self.get_today
20
13
  url = "http://hook-api.herokuapp.com/today"
21
14
  res = RestClient.get url
@@ -26,23 +19,7 @@ module ProductHunt
26
19
  #
27
20
  # Example:
28
21
  # >> puts ProductHunt::Post.get_comments("/posts/splashbase")
29
- # => {
30
- # => "status"=>"success", "post"=>{
31
- # => "title"=>"Splashbase", "votes"=>28,
32
- # => "user"=>{"username"=>"gregoiregilbert", "name"=>"Grégoire Gilbert"},
33
- # => "rank"=>1, "tagline"=>"Search & discover free, public domain, hi res photos",
34
- # => "comment_count"=>"2", "permalink"=>"/posts/splashbase", "url"=>"http://www.splashbase.co"
35
- # => }, "comments"=>[
36
- # => {
37
- # => "index"=>1, "user"=>{"username"=>"gregoiregilbert", "name"=>"Grégoire Gilbert"}, "timestamp"=>"1d ago",
38
- # => "comment"=>"\n\nFollowing up the post about @foapapp http://www.producthunt.com/posts/foap few days ago,
39
- # => this website organizes public domain, free to use photos from Unsplash.A good complement to
40
- # => Compfight mentioned by @rrhoover. This could interest you @johnmurch\n",
41
- # => "comment_html"=>"\n\nFollowing up the post about <a href=\"https://twitter.com/foapapp\">@foapapp</a>
42
- # => <a href=\"http://www.producthunt.com/posts/foap\" target=\"_blank\">http://www.producthunt.com/posts/foap</a> few days ago,
43
- # => this website organizes public domain, free to use photos from Unsplash.<br><br>A good complement to Compfight mentioned by
44
- # => <a href=\"https://twitter.com/rrhoover\">@rrhoover</a>. <br><br>This could interest you <a href=\"https://twitter.com/johnmurch\">@johnmurch</a>\n"
45
- # => }, ... ]}}
22
+ # => { "status"=>"success", "post"=>{ "title"=>"Splashbase", "votes"=>28, "user"=>{"username"=>"gregoiregilbert", "name"=>"Grégoire Gilbert"}, "rank"=>1, "tagline"=>"Search & discover free, public domain, hi res photos", "comment_count"=>"2", "permalink"=>"/posts/splashbase", "url"=>"http://www.splashbase.co" }, "comments"=>[{ "index"=>1, "user"=>{"username"=>"gregoiregilbert", "name"=>"Grégoire Gilbert"}, "timestamp"=>"1d ago", "comment"=>"\n\nFollowing up the post about @foapapp http://www.producthunt.com/posts/foap few days ago, this website organizes public domain, free to use photos from Unsplash.A good complement to Compfight mentioned by @rrhoover. This could interest you @johnmurch\n", "comment_html"=>"\n\nFollowing up the post about <a href=\"https://twitter.com/foapapp\">@foapapp</a> <a href=\"http://www.producthunt.com/posts/foap\" target=\"_blank\">http://www.producthunt.com/posts/foap</a> few days ago, this website organizes public domain, free to use photos from Unsplash.<br><br>A good complement to Compfight mentioned by <a href=\"https://twitter.com/rrhoover\">@rrhoover</a>. <br><br>This could interest you <a href=\"https://twitter.com/johnmurch\">@johnmurch</a>\n" }, ... ]}}
46
23
  #
47
24
  # Arguments:
48
25
  # permalink: (String)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: producthunt
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
  - dugong