totter 0.2.11 → 0.2.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,15 @@ module Totter
10
10
  def configuration
11
11
  get 'configuration'
12
12
  end
13
+
14
+ # Get the featured timelines and users for Explore.
15
+ #
16
+ # @return [Hashie::Mash] A hash of timelines and users data.
17
+ # @example
18
+ # Totter.explore
19
+ def explore
20
+ get 'explore'
21
+ end
13
22
  end
14
23
  end
15
24
  end
@@ -1,4 +1,4 @@
1
1
  module Totter
2
2
  # Verion of the Totter gem
3
- VERSION = '0.2.11'
3
+ VERSION = '0.2.12'
4
4
  end
@@ -0,0 +1,109 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.seesaw.co/v1/explore
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Ruby
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - max-age=0, private, must-revalidate
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Date:
26
+ - Mon, 18 Feb 2013 15:01:41 GMT
27
+ Etag:
28
+ - ! '"e82b35b4b8bd33818ebf8aed1c207dfb"'
29
+ Server:
30
+ - thin 1.5.0 codename Knife
31
+ Strict-Transport-Security:
32
+ - max-age=31536000
33
+ X-Rack-Cache:
34
+ - miss
35
+ X-Request-Id:
36
+ - aefa89d0584473d893ef5cc3a25519dc
37
+ X-Runtime:
38
+ - '0.108578'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Transfer-Encoding:
42
+ - chunked
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"timelines":[{"timeline_id":"global","timeline_name":"All","icon":"globe"},{"timeline_id":"sticker/featured","timeline_name":"Featured","icon":"star"}],"users":[{"biography":"Travel
48
+ is not defined by the miles you cover.","created_at":"2013-01-30T20:03:21Z","family_name":"Dublin","given_name":"Erica","id":2511,"meta":{"biography_display_text":"Travel
49
+ is not defined by the miles you cover.","biography_display_html":"Travel is
50
+ not defined by the miles you cover.","biography_entities":[]},"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-16T22:43:27Z","username":"wayfare","website":"www.wayfaremag.com","avatar_url":"https://recess.s3.amazonaws.com/avatars/3917/1360263176/Erica-107WEB8x12.jpg","full_name":"Erica
51
+ Dublin","short_name":"Erica D","display_name":"wayfare","short_display_name":"wayfare","analytics":{"decisions":4,"updated_at":"2013-02-15T14:38:13Z","followers":8,"votes":0,"following":0}},{"biography":null,"created_at":"2013-01-25T19:07:32Z","family_name":"Nystul","given_name":"Jill","id":396,"meta":null,"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-16T23:11:46Z","username":"jillsgoodthings","website":null,"avatar_url":"https://recess.s3.amazonaws.com/avatars/3667/1360260417/photo.jpg","full_name":"Jill
52
+ Nystul","short_name":"Jill N","display_name":"jillsgoodthings","short_display_name":"jillsgoodthings","analytics":{"votes":27,"updated_at":"2013-02-15T14:59:08Z","decisions":9,"followers":16,"following":1}},{"biography":"Providing
53
+ daily inspiration to thousands of parents on simplifying, connecting, and
54
+ living well.","created_at":"2013-01-30T22:47:51Z","family_name":"","given_name":"Steph
55
+ at MPMK","id":2526,"meta":{"biography_display_text":"Providing daily inspiration
56
+ to thousands of parents on simplifying, connecting, and living well.","biography_display_html":"Providing
57
+ daily inspiration to thousands of parents on simplifying, connecting, and
58
+ living well.","biography_entities":[]},"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-16T00:12:29Z","username":"modrentmessykid","website":"www.modernparentsmessykids.com","avatar_url":"https://recess.s3.amazonaws.com/avatars/4563/1360274461/profileheadshotsquare.jpg","full_name":"Steph
59
+ at MPMK","short_name":"Steph at MPMK","display_name":"modrentmessykid","short_display_name":"modrentmessykid","analytics":{"decisions":6,"updated_at":"2013-02-15T01:23:27Z","followers":10,"votes":11,"following":0}},{"biography":null,"created_at":"2013-01-22T21:39:41Z","family_name":"Silber
60
+ ","given_name":"Allison","id":272,"meta":null,"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-17T21:20:59Z","username":"allisonsilber","website":null,"avatar_url":"https://recess.s3.amazonaws.com/avatars/3600/1360259581/photo.jpg","full_name":"Allison
61
+ Silber","short_name":"Allison S","display_name":"allisonsilber","short_display_name":"allisonsilber","analytics":{"votes":166,"updated_at":"2013-02-17T13:37:17Z","decisions":8,"followers":19,"following":7}},{"biography":"San
62
+ Francisco. Pretty cool.","created_at":"2013-01-25T19:08:57Z","family_name":"Crawford","given_name":"Janette","id":406,"meta":{"biography_display_text":"San
63
+ Francisco. Pretty cool.","biography_display_html":"San Francisco. Pretty cool.","biography_entities":[]},"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-16T00:12:37Z","username":"janette","website":"http://fashionlovespeople.com","avatar_url":"https://recess.s3.amazonaws.com/avatars/5523/1360299245/jcrawford.jpg","full_name":"Janette
64
+ Crawford","short_name":"Janette C","display_name":"janette","short_display_name":"janette","analytics":{"decisions":2,"updated_at":"2013-02-15T15:02:16Z","followers":15,"votes":9,"following":6}},{"biography":null,"created_at":"2013-01-25T19:04:35Z","family_name":"","given_name":"Design
65
+ Crush","id":347,"meta":null,"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-18T05:06:10Z","username":"designcrush","website":null,"avatar_url":"https://recess.s3.amazonaws.com/avatars/9256/1360801442/photo.jpg","full_name":"Design
66
+ Crush","short_name":"Design Crush","display_name":"designcrush","short_display_name":"designcrush","analytics":{"votes":314,"updated_at":"2013-02-18T03:50:40Z","decisions":7,"followers":9,"following":0}},{"biography":null,"created_at":"2013-01-28T19:23:58Z","family_name":"Bellessa","given_name":"Summer","id":2232,"meta":null,"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-18T11:11:38Z","username":"summerbellessa","website":null,"avatar_url":"https://recess.s3.amazonaws.com/avatars/4436/1360271678/photo.jpg","full_name":"Summer
67
+ Bellessa","short_name":"Summer B","display_name":"summerbellessa","short_display_name":"summerbellessa","analytics":{"votes":35,"updated_at":"2013-02-18T08:02:46Z","decisions":5,"followers":13,"following":4}},{"biography":null,"created_at":"2013-01-23T04:37:32Z","family_name":"Blair","given_name":"Gabrielle","id":296,"meta":null,"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-16T22:28:04Z","username":"designmom","website":null,"avatar_url":"https://recess.s3.amazonaws.com/avatars/3209/1360254700/photo.jpg","full_name":"Gabrielle
68
+ Blair","short_name":"Gabrielle B","display_name":"designmom","short_display_name":"designmom","analytics":{"votes":157,"updated_at":"2013-02-15T05:17:06Z","following":28,"decisions":8,"followers":46}},{"biography":null,"created_at":"2012-11-16T00:40:36Z","family_name":"Mayes","given_name":"Laura","id":10,"meta":null,"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-18T00:06:05Z","username":"lauramayes","website":null,"avatar_url":"https://recess.s3.amazonaws.com/avatars/3179/1360220560/photo.jpg","full_name":"Laura
69
+ Mayes","short_name":"Laura M","display_name":"lauramayes","short_display_name":"lauramayes","analytics":{"votes":123,"decisions":8,"following":55,"followers":59,"updated_at":"2013-02-17T22:22:43Z"}},{"biography":"Ampersand
70
+ is where color and pattern come to play","created_at":"2013-01-25T19:10:38Z","family_name":"Design
71
+ Studio","given_name":"Ampersand ","id":421,"meta":{"biography_display_text":"Ampersand
72
+ is where color and pattern come to play","biography_display_html":"Ampersand
73
+ is where color and pattern come to play","biography_entities":[]},"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-16T04:51:08Z","username":"ampersandstudio","website":"http://ampersanddesignstudio.com","avatar_url":"https://recess.s3.amazonaws.com/avatars/5978/1360347547/530365_556824157678957_817047202_n.jpg","full_name":"Ampersand
74
+ Design Studio","short_name":"Ampersand D","display_name":"ampersandstudio","short_display_name":"ampersandstudio","analytics":{"decisions":3,"updated_at":"2013-02-15T14:43:18Z","followers":11,"votes":10,"following":8}},{"biography":"Style
75
+ Expert, Blogger, On-air Personality & Creative Consultant // LOVES: Husband
76
+ & puppy, spicy food, stand-up comedy, vintage, entertaining & the pursuit
77
+ of the perfect shoes.\r\nNYC // Conveniently Portable","created_at":"2013-02-05T04:48:21Z","family_name":"Artigue","given_name":"Jessie","id":2638,"meta":{"biography_display_text":"Style
78
+ Expert, Blogger, On-air Personality & Creative Consultant // LOVES: Husband
79
+ & puppy, spicy food, stand-up comedy, vintage, entertaining & the pursuit
80
+ of the perfect shoes.\r\nNYC // Conveniently Portable","biography_display_html":"Style
81
+ Expert, Blogger, On-air Personality & Creative Consultant //
82
+ LOVES: Husband & puppy, spicy food, stand-up comedy, vintage, entertaining
83
+ & the pursuit of the perfect shoes.\r\nNYC // Conveniently Portable","biography_entities":[]},"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-16T03:45:03Z","username":"styleandpepper","website":"http://www.styleandpepperblog.com","avatar_url":"https://recess.s3.amazonaws.com/avatars/3192/1360241505/dec2012sm.jpg","full_name":"Jessie
84
+ Artigue","short_name":"Jessie A","display_name":"styleandpepper","short_display_name":"styleandpepper","analytics":{"decisions":6,"updated_at":"2013-02-15T23:19:11Z","followers":19,"following":7,"votes":36}},{"biography":"I
85
+ like being kind. I also make modern, minimalist, geometric & tribal inspired
86
+ jewelry here: www.mooreaseal.etsy.com. You can find me chatting & curating
87
+ on my blog & on Pinterest on the daily. Looking forward to meeting you!","created_at":"2013-01-27T18:12:16Z","family_name":"Seal","given_name":"Moorea","id":2024,"meta":{"biography_display_text":"I
88
+ like being kind. I also make modern, minimalist, geometric & tribal inspired
89
+ jewelry here: mooreaseal.etsy.com. You can find me chatting & curating on
90
+ my blog & on Pinterest on the daily. Looking forward to meeting you!","biography_display_html":"I
91
+ like being kind. I also make modern, minimalist, geometric & tribal inspired
92
+ jewelry here: <a href=\"http://www.mooreaseal.etsy.com\" rel=\"external nofollow\"
93
+ class=\"link\">mooreaseal.etsy.com</a>. You can find me chatting & curating
94
+ on my blog & on Pinterest on the daily. Looking forward to meeting you!","biography_entities":[{"type":"link","text":"www.mooreaseal.etsy.com","display_text":"mooreaseal.etsy.com","url":"http://www.mooreaseal.etsy.com","indices":[95,118],"display_indices":[95,114]}]},"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-18T08:01:35Z","username":"mooreaseal","website":"http://www.moorea-seal.com","avatar_url":"https://recess.s3.amazonaws.com/avatars/4903/1360282569/photo.jpg","full_name":"Moorea
95
+ Seal","short_name":"Moorea S","display_name":"mooreaseal","short_display_name":"mooreaseal","analytics":{"decisions":16,"updated_at":"2013-02-18T05:37:20Z","followers":30,"votes":290,"following":9}},{"biography":"Love
96
+ life and life will love you back.","created_at":"2013-02-05T19:54:30Z","family_name":"","given_name":"","id":2647,"meta":{"biography_display_text":"Love
97
+ life and life will love you back.","biography_display_html":"Love life and
98
+ life will love you back.","biography_entities":[]},"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-17T23:23:43Z","username":"stacyofksw","website":"http://www.kidsstuffworld.com","avatar_url":"https://recess.s3.amazonaws.com/avatars/3194/1360242136/photo.jpg","full_name":"stacyofksw","short_name":"stacyofksw","display_name":"stacyofksw","short_display_name":"stacyofksw","analytics":{"decisions":10,"updated_at":"2013-02-16T21:27:48Z","followers":17,"following":25,"votes":42}},{"biography":"I''m
99
+ a writer who believes design can change the world.","created_at":"2013-02-02T00:57:54Z","family_name":"Loechner","given_name":"Erin","id":2578,"meta":{"biography_display_text":"I''m
100
+ a writer who believes design can change the world.","biography_display_html":"I''m
101
+ a writer who believes design can change the world.","biography_entities":[]},"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-16T21:19:31Z","username":"erinloechner","website":"Http://www.designformankind.com","avatar_url":"https://recess.s3.amazonaws.com/avatars/3976/1360263960/photo.jpg","full_name":"Erin
102
+ Loechner","short_name":"Erin L","display_name":"erinloechner","short_display_name":"erinloechner","analytics":{"decisions":5,"updated_at":"2013-02-16T03:43:08Z","followers":26,"votes":14,"following":9}},{"biography":"Design
103
+ Milk is a website dedicated to modern design founded by Jaime Derringer.","created_at":"2013-01-30T21:01:15Z","family_name":"Milk","given_name":"Design","id":2515,"meta":{"biography_display_text":"Design
104
+ Milk is a website dedicated to modern design founded by Jaime Derringer.","biography_display_html":"Design
105
+ Milk is a website dedicated to modern design founded by Jaime Derringer.","biography_entities":[]},"moderated_decisions_count":null,"stickers":["featured","stars"],"updated_at":"2013-02-17T15:03:20Z","username":"designmilk","website":"http://design-milk.com","avatar_url":"https://recess.s3.amazonaws.com/avatars/3308/1360257649/DMLogoTM-carton-icon-72dpi-160SQ.jpg","full_name":"Design
106
+ Milk","short_name":"Design M","display_name":"designmilk","short_display_name":"designmilk","analytics":{"decisions":4,"updated_at":"2013-02-17T13:37:39Z","followers":46,"votes":2,"following":12}}]}'
107
+ http_version:
108
+ recorded_at: Mon, 18 Feb 2013 15:01:43 GMT
109
+ recorded_with: VCR 2.4.0
@@ -6,4 +6,10 @@ class ConfigurationTest < Totter::TestCase
6
6
  assert 'v1', Totter.configuration.api_version
7
7
  end
8
8
  end
9
+
10
+ def test_configuration
11
+ VCR.use_cassette 'configuration/explore' do
12
+ assert_equal 2, Totter.explore.timelines.length
13
+ end
14
+ end
9
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: totter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -89,6 +89,7 @@ files:
89
89
  - test/cassettes/comments/destroy.yml
90
90
  - test/cassettes/comments/index.yml
91
91
  - test/cassettes/configuration/configuration.yml
92
+ - test/cassettes/configuration/explore.yml
92
93
  - test/cassettes/decisions/analytics.yml
93
94
  - test/cassettes/decisions/create.yml
94
95
  - test/cassettes/decisions/destroy.yml
@@ -148,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
149
  version: '0'
149
150
  segments:
150
151
  - 0
151
- hash: -859779867175174977
152
+ hash: -1345176096837953697
152
153
  requirements: []
153
154
  rubyforge_project:
154
155
  rubygems_version: 1.8.23
@@ -168,6 +169,7 @@ test_files:
168
169
  - test/cassettes/comments/destroy.yml
169
170
  - test/cassettes/comments/index.yml
170
171
  - test/cassettes/configuration/configuration.yml
172
+ - test/cassettes/configuration/explore.yml
171
173
  - test/cassettes/decisions/analytics.yml
172
174
  - test/cassettes/decisions/create.yml
173
175
  - test/cassettes/decisions/destroy.yml