podio 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -16
- data/lib/podio.rb +6 -3
- data/lib/podio/active_podio/base.rb +53 -21
- data/lib/podio/active_podio/updatable.rb +9 -14
- data/lib/podio/client.rb +46 -17
- data/lib/podio/error.rb +9 -0
- data/lib/podio/middleware/error_response.rb +5 -1
- data/lib/podio/middleware/json_request.rb +27 -5
- data/lib/podio/models/account_provider.rb +16 -0
- data/lib/podio/models/app_store_category.rb +25 -0
- data/lib/podio/models/app_store_share.rb +90 -11
- data/lib/podio/models/application.rb +52 -12
- data/lib/podio/models/application_field.rb +4 -4
- data/lib/podio/models/batch.rb +31 -0
- data/lib/podio/models/calendar_event.rb +64 -10
- data/lib/podio/models/category.rb +11 -9
- data/lib/podio/models/contact.rb +3 -1
- data/lib/podio/models/contract.rb +3 -0
- data/lib/podio/models/email_subscription_setting.rb +26 -3
- data/lib/podio/models/file_attachment.rb +3 -2
- data/lib/podio/models/form.rb +2 -2
- data/lib/podio/models/importer.rb +18 -9
- data/lib/podio/models/item.rb +87 -22
- data/lib/podio/models/item_field.rb +8 -3
- data/lib/podio/models/linked_account.rb +11 -3
- data/lib/podio/models/linked_account_data.rb +6 -0
- data/lib/podio/models/news.rb +1 -0
- data/lib/podio/models/organization.rb +4 -0
- data/lib/podio/models/organization_member.rb +17 -4
- data/lib/podio/models/organization_profile.rb +5 -1
- data/lib/podio/models/profile.rb +19 -10
- data/lib/podio/models/reference.rb +33 -0
- data/lib/podio/models/search.rb +4 -7
- data/lib/podio/models/space.rb +21 -12
- data/lib/podio/models/space_invitation.rb +7 -7
- data/lib/podio/models/space_member.rb +28 -3
- data/lib/podio/models/task.rb +38 -14
- data/lib/podio/models/user.rb +27 -5
- data/lib/podio/models/user_status.rb +5 -0
- data/lib/podio/models/view.rb +51 -0
- data/lib/podio/models/widget.rb +1 -1
- data/lib/podio/version.rb +1 -1
- data/test/client_test.rb +13 -3
- data/test/fixtures/fixtures.yaml +7 -7
- data/test/test_helper.rb +1 -24
- metadata +16 -23
- data/lib/podio/middleware/response_recorder.rb +0 -14
- data/lib/podio/models/meeting.rb +0 -151
- data/lib/podio/models/meeting_participiant.rb +0 -11
- data/test/fixtures/client/18a224aaf83ac57a7b8159cecdbb1263.rack +0 -1
- data/test/fixtures/client/a87c69a0624af0413a670094c6615651.rack +0 -1
- data/test/fixtures/client/ac493997db62308972c208afa76f8479.rack +0 -1
- data/test/fixtures/client/d7fbf422c77af768552423633d0389e8.rack +0 -1
- data/test/fixtures/client/e2d68afe39f5531195273ea259b63916.rack +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
['/oauth/token?client_id=sandbox%40podio.com&client_secret=sandbox_secret&grant_type=refresh_token&refresh_token=1df512a21e418f4171bc0259060655509951081e05114d0a56cee7d025d26a99d6c5b6db6e2b5fdf995f98d8cb3d164210fb546805a45b1c31ea8be6b3597819', :post, 200, {"server"=>"nginx/0.7.65", "date"=>"Tue, 07 Jun 2011 18:24:03 GMT", "content-type"=>"application/json; charset=utf-8", "connection"=>"close", "content-length"=>"364"}, '{"access_token":"f279f1d084f824829ea338c697e17f147542e8d8e9deb8f45f7710e495af855e6d3191c357ef7697bcad11c928199f3c37ddb5ce6dba43de700a5f42dffabb67","token_type":"bearer","ref":{"type":"user","id":5},"expires_in":28799,"refresh_token":"1df512a21e418f4171bc0259060655509951081e05114d0a56cee7d025d26a99d6c5b6db6e2b5fdf995f98d8cb3d164210fb546805a45b1c31ea8be6b3597819"}']
|
@@ -1 +0,0 @@
|
|
1
|
-
['/org/', :get, 200, {"server"=>"nginx/0.7.65", "date"=>"Tue, 07 Jun 2011 19:54:57 GMT", "content-type"=>"application/json; charset=utf-8", "connection"=>"close", "content-length"=>"440"}, '[{"type":"premium","spaces":[{"url":"http:\/\/planetexpress.podio.com\/intranet\/","url_label":"intranet","space_id":2,"role":"admin","name":"Intranet"},{"url":"http:\/\/planetexpress.podio.com\/shipping\/","url_label":"shipping","space_id":3,"role":"admin","name":"Shipping"}],"premium":true,"name":"Planet Express","logo":null,"url":"http:\/\/planetexpress.podio.com\/","url_label":"planetexpress","image":null,"role":"admin","org_id":3}]']
|
@@ -1 +0,0 @@
|
|
1
|
-
['/oauth/token?client_id=sandbox%40podio.com&client_secret=sandbox_secret&grant_type=password&password=fry&username=fry%40planetexpress.com', :post, 200, {"server"=>"nginx/0.7.65", "date"=>"Tue, 07 Jun 2011 19:54:57 GMT", "content-type"=>"application/json; charset=utf-8", "connection"=>"close", "content-length"=>"364"}, '{"access_token":"7c2efeddf67027a315174741a8c721ac55b75da37fcf1cc33039eb58fe8dc81ad410a9b64d170f74c0c5fb3937bd7143ffd795a0804a6cc52855782da39b258e","token_type":"bearer","ref":{"type":"user","id":5},"expires_in":28799,"refresh_token":"a2a0948c85df6903cd8437e29048134d1bc27c6b013ab25d0e215fb096363d4f8f95f5bb9d0bf167edc0f10883415e8a2a8933ece59d2ccee9700fff45afda0d"}']
|
@@ -1 +0,0 @@
|
|
1
|
-
['/oauth/token?client_id=sandbox%40podio.com&client_secret=sandbox_secret&grant_type=password&password=professor&username=professor%40planetexpress.com', :post, 200, {"server"=>"nginx/0.7.65", "date"=>"Tue, 07 Jun 2011 19:54:58 GMT", "content-type"=>"application/json; charset=utf-8", "connection"=>"close", "content-length"=>"364"}, '{"access_token":"c66ab69158ef75f058e154c733ea4c35c26916483229fd230445eb3a75c9023c4a8442d480ffba7d799ec7e37cab13e5e6c1b09de3625e7651c239a550de49c6","token_type":"bearer","ref":{"type":"user","id":4},"expires_in":28799,"refresh_token":"5d0c48600d73b866a838de9afd11ac1b77bdc1831e89ade72ef4f2b879956b01aa336f698cbb32a1c9c967e6493e01e859f9a1e4748fb889dbcda8ac093ff03f"}']
|
@@ -1 +0,0 @@
|
|
1
|
-
['/oauth/token?client_id=sandbox%40podio.com&client_secret=sandbox_secret&grant_type=refresh_token&refresh_token=a2a0948c85df6903cd8437e29048134d1bc27c6b013ab25d0e215fb096363d4f8f95f5bb9d0bf167edc0f10883415e8a2a8933ece59d2ccee9700fff45afda0d', :post, 200, {"server"=>"nginx/0.7.65", "date"=>"Tue, 07 Jun 2011 19:54:57 GMT", "content-type"=>"application/json; charset=utf-8", "connection"=>"close", "content-length"=>"364"}, '{"access_token":"10b3af5430fb2071d2f6f003aa11818b15f170a3416809118276e8000d0bede2f1faae6925e54019c5fdd74688368742102e226cb6725314a2b801ffe777a2d9","token_type":"bearer","ref":{"type":"user","id":5},"expires_in":28799,"refresh_token":"a2a0948c85df6903cd8437e29048134d1bc27c6b013ab25d0e215fb096363d4f8f95f5bb9d0bf167edc0f10883415e8a2a8933ece59d2ccee9700fff45afda0d"}']
|