redbooth-ruby 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +7 -0
  2. data/spec/cassettes/Redbooth_Me/_initialize/.yml +48 -0
  3. data/spec/cassettes/Redbooth_Me/_show/.yml +48 -0
  4. data/spec/cassettes/Redbooth_Me/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +48 -0
  5. data/spec/cassettes/Redbooth_Me/_update/.yml +97 -0
  6. data/spec/cassettes/Redbooth_Me/_update/integration/.yml +97 -0
  7. data/spec/cassettes/Redbooth_Organization/_create/.yml +47 -0
  8. data/spec/cassettes/Redbooth_Organization/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml +47 -0
  9. data/spec/cassettes/Redbooth_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml +123 -0
  10. data/spec/cassettes/Redbooth_Organization/_index/.yml +58 -0
  11. data/spec/cassettes/Redbooth_Organization/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +58 -0
  12. data/spec/cassettes/Redbooth_Organization/_initialize/.yml +64 -0
  13. data/spec/cassettes/Redbooth_Organization/_show/.yml +64 -0
  14. data/spec/cassettes/Redbooth_Organization/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +64 -0
  15. data/spec/cassettes/Redbooth_Organization/_update/.yml +48 -0
  16. data/spec/cassettes/Redbooth_Organization/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +48 -0
  17. data/spec/cassettes/Redbooth_Person/_create/integration/.yml +83 -0
  18. data/spec/cassettes/Redbooth_Person/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml +83 -0
  19. data/spec/cassettes/Redbooth_Person/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml +83 -0
  20. data/spec/cassettes/Redbooth_Person/_index/.yml +127 -0
  21. data/spec/cassettes/Redbooth_Person/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +54 -0
  22. data/spec/cassettes/Redbooth_Person/_initialize/.yml +117 -0
  23. data/spec/cassettes/Redbooth_Person/_show/.yml +117 -0
  24. data/spec/cassettes/Redbooth_Person/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +44 -0
  25. data/spec/cassettes/Redbooth_Person/_update/.yml +163 -0
  26. data/spec/cassettes/Redbooth_Person/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +294 -0
  27. data/spec/cassettes/Redbooth_Project/_create/.yml +47 -0
  28. data/spec/cassettes/Redbooth_Project/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml +47 -0
  29. data/spec/cassettes/Redbooth_Project/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml +2296 -0
  30. data/spec/cassettes/Redbooth_Project/_index/.yml +62 -0
  31. data/spec/cassettes/Redbooth_Project/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +62 -0
  32. data/spec/cassettes/Redbooth_Project/_initialize/.yml +44 -0
  33. data/spec/cassettes/Redbooth_Project/_show/.yml +44 -0
  34. data/spec/cassettes/Redbooth_Project/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +44 -0
  35. data/spec/cassettes/Redbooth_Project/_update/.yml +47 -0
  36. data/spec/cassettes/Redbooth_Project/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +47 -0
  37. data/spec/cassettes/Redbooth_Request_Collection/_all/.yml +59 -0
  38. data/spec/cassettes/Redbooth_Request_Collection/_count/.yml +59 -0
  39. data/spec/cassettes/Redbooth_Request_Collection/_current_page/.yml +59 -0
  40. data/spec/cassettes/Redbooth_Request_Collection/_current_page/where_endpoint_is_not_paginated/.yml +59 -0
  41. data/spec/cassettes/Redbooth_Request_Collection/_initialize/.yml +59 -0
  42. data/spec/cassettes/Redbooth_Request_Collection/_next_page/.yml +106 -0
  43. data/spec/cassettes/Redbooth_Request_Collection/_next_page/where_endpoint_is_not_paginated/.yml +59 -0
  44. data/spec/cassettes/Redbooth_Request_Collection/_next_page/where_is_the_last_page/.yml +59 -0
  45. data/spec/cassettes/Redbooth_Request_Collection/_per_page/.yml +59 -0
  46. data/spec/cassettes/Redbooth_Request_Collection/_per_page/where_endpoint_is_not_paginated/.yml +59 -0
  47. data/spec/cassettes/Redbooth_Request_Collection/_prev_page/.yml +115 -0
  48. data/spec/cassettes/Redbooth_Request_Collection/_prev_page/where_endpoint_is_not_paginated/.yml +59 -0
  49. data/spec/cassettes/Redbooth_Request_Collection/_prev_page/where_is_the_first_page/.yml +159 -0
  50. data/spec/cassettes/Redbooth_Request_Collection/_total_pages/.yml +59 -0
  51. data/spec/cassettes/Redbooth_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml +59 -0
  52. data/spec/cassettes/Redbooth_Task/_create/.yml +47 -0
  53. data/spec/cassettes/Redbooth_Task/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +47 -0
  54. data/spec/cassettes/Redbooth_Task/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +84 -0
  55. data/spec/cassettes/Redbooth_Task/_index/.yml +1037 -0
  56. data/spec/cassettes/Redbooth_Task/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +437 -0
  57. data/spec/cassettes/Redbooth_Task/_initialize/.yml +47 -0
  58. data/spec/cassettes/Redbooth_Task/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  59. data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_assigned_id.yml +47 -0
  60. data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_id.yml +47 -0
  61. data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_name.yml +47 -0
  62. data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_project_id.yml +47 -0
  63. data/spec/cassettes/Redbooth_Task/_update/.yml +47 -0
  64. data/spec/cassettes/Redbooth_Task/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  65. data/spec/cassettes/Redbooth_User/_create/.yml +84 -0
  66. data/spec/cassettes/Redbooth_User/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +47 -0
  67. data/spec/cassettes/Redbooth_User/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  68. data/spec/cassettes/Redbooth_User/_create/name/.yml +47 -0
  69. data/spec/cassettes/Redbooth_User/_create/project_id/.yml +47 -0
  70. data/spec/cassettes/Redbooth_User/_create/task_list_id/.yml +47 -0
  71. data/spec/cassettes/Redbooth_User/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +84 -0
  72. data/spec/cassettes/Redbooth_User/_index/.yml +413 -0
  73. data/spec/cassettes/Redbooth_User/_index/class/.yml +400 -0
  74. data/spec/cassettes/Redbooth_User/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +400 -0
  75. data/spec/cassettes/Redbooth_User/_initialize/.yml +88 -0
  76. data/spec/cassettes/Redbooth_User/_initialize/assigned_id/.yml +47 -0
  77. data/spec/cassettes/Redbooth_User/_initialize/description/.yml +47 -0
  78. data/spec/cassettes/Redbooth_User/_initialize/due_on/.yml +47 -0
  79. data/spec/cassettes/Redbooth_User/_initialize/id/.yml +47 -0
  80. data/spec/cassettes/Redbooth_User/_initialize/initializes_all_attributes_correctly.yml +44 -0
  81. data/spec/cassettes/Redbooth_User/_initialize/name/.yml +47 -0
  82. data/spec/cassettes/Redbooth_User/_initialize/project_id/.yml +47 -0
  83. data/spec/cassettes/Redbooth_User/_show/.yml +44 -0
  84. data/spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  85. data/spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +88 -0
  86. data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_assigned_id.yml +47 -0
  87. data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_id.yml +47 -0
  88. data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_name.yml +47 -0
  89. data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_project_id.yml +47 -0
  90. data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_email.yml +393 -0
  91. data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_first_name.yml +393 -0
  92. data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_id.yml +393 -0
  93. data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_last_name.yml +393 -0
  94. data/spec/cassettes/Redbooth_User/_update/.yml +47 -0
  95. data/spec/cassettes/Redbooth_User/_update/id/.yml +47 -0
  96. data/spec/cassettes/Redbooth_User/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  97. data/spec/cassettes/Redbooth_User/_update/name/.yml +47 -0
  98. data/spec/fixtures/hola.txt +1 -0
  99. data/spec/redbooth/base_spec.rb +12 -0
  100. data/spec/redbooth/client_spec.rb +69 -0
  101. data/spec/redbooth/me_spec.rb +56 -0
  102. data/spec/redbooth/organization_spec.rb +80 -0
  103. data/spec/redbooth/person_spec.rb +85 -0
  104. data/spec/redbooth/project_spec.rb +80 -0
  105. data/spec/redbooth/request/base_spec.rb +53 -0
  106. data/spec/redbooth/request/collection_spec.rb +104 -0
  107. data/spec/redbooth/request/connection_spec.rb +82 -0
  108. data/spec/redbooth/request/info_spec.rb +27 -0
  109. data/spec/redbooth/request/response_spec.rb +32 -0
  110. data/spec/redbooth/request/validator_spec.rb +45 -0
  111. data/spec/redbooth/task_spec.rb +90 -0
  112. data/spec/redbooth/user_spec.rb +32 -0
  113. data/spec/redbooth_spec.rb +69 -0
  114. data/spec/shared/authentication_context.rb +24 -0
  115. data/spec/spec_helper.rb +22 -0
  116. metadata +370 -0
@@ -0,0 +1,69 @@
1
+ require "spec_helper"
2
+
3
+ describe Redbooth do
4
+ describe '.request' do
5
+ context 'given no api key exists' do
6
+ it 'raises an authentication error' do
7
+ expect { Redbooth.request(:get, nil, 'clients', {}) }.to raise_error(Redbooth::AuthenticationError)
8
+ end
9
+ end
10
+
11
+ context "with an invalid api key" do
12
+ let(:consumer_key) { '_your_consumen_key_' }
13
+ let(:consumer_secret) { '_your_consumen_secret_' }
14
+ let(:access_token) do
15
+ {
16
+ token: '_your_user_token_',
17
+ secret: '_your_secret_token_'
18
+ }
19
+ end
20
+ let(:client) { Redbooth::Client.new(session) }
21
+ let(:session) { Redbooth::Session.new(access_token) }
22
+ let(:redbooth_protocol) { Redbooth.configuration[:use_ssl] ? 'https' : 'http' }
23
+ let(:redbooth_url) { "#{redbooth_protocol}://#{Redbooth.configuration[:api_base]}/#{Redbooth.configuration[:api_base_path]}/#{Redbooth.configuration[:api_version]}" }
24
+
25
+ before(:each) do
26
+ Redbooth.config do |configuration|
27
+ configuration[:consumer_key] = consumer_key
28
+ configuration[:consumer_secret] = consumer_secret
29
+ end
30
+ WebMock.stub_request(:any,
31
+ /#{Redbooth.configuration[:api_base]}/
32
+ ).to_return(body: '{}')
33
+ end
34
+
35
+ it 'attempts to get a url with one param' do
36
+ Redbooth.request(:get, nil, 'user',
37
+ { param_name: 'param_value' },
38
+ { session: session }
39
+ )
40
+ expect(WebMock).to have_requested(:get,
41
+ "#{redbooth_url}/user?param_name=param_value"
42
+ )
43
+ end
44
+
45
+ it 'attempts to get a url with more than one param' do
46
+ Redbooth.request(:get,
47
+ nil,
48
+ 'user',
49
+ { client: 'client_id', order: 'created_at_desc' },
50
+ { session: session }
51
+ )
52
+ expect(WebMock).to have_requested(
53
+ :get,
54
+ "#{redbooth_url}/user?client=client_id&order=created_at_desc"
55
+ )
56
+ end
57
+
58
+ it "doesn't add a question mark if no params" do
59
+ Redbooth.request(:post, nil, "user", {}, { session: session })
60
+ expect(WebMock).to have_requested(:post, "#{redbooth_url}/user")
61
+ end
62
+
63
+ it "uses the param id to construct the url" do
64
+ Redbooth.request(:post, nil, "user", {id: 'new_id'}, { session: session })
65
+ expect(WebMock).to have_requested(:post, "#{redbooth_url}/user/new_id")
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,24 @@
1
+ shared_context 'authentication' do
2
+ let(:use_development?) { true }
3
+ let(:consumer_key) { use_development? ? '_redbooth_development_' : ENV['CLIENT_ID'] }
4
+ let(:consumer_secret) { use_development? ? '_redbooth_development_' : ENV['CLIENT_SECRET'] }
5
+ let(:access_token) do
6
+ {
7
+ token: use_development? ? '_frank_access_token_' : ENV['ACCESS_TOKEN'] ,
8
+ refresh_token: use_development? ? '_frank_refresh_token_' : ENV['REFRESH_TOKEN']
9
+ }
10
+ end
11
+ let(:client) { Redbooth::Client.new(session) }
12
+ let(:session) { Redbooth::Session.new(access_token) }
13
+
14
+ before :each do
15
+ Redbooth.config do |configuration|
16
+ if use_development?
17
+ configuration[:api_base] = 'localhost:3000'
18
+ configuration[:use_ssl] = false
19
+ end
20
+ configuration[:consumer_key] = consumer_key
21
+ configuration[:consumer_secret] = consumer_secret
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,22 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ require 'redbooth'
4
+ require 'rspec'
5
+ require 'webmock/rspec'
6
+ require 'pry'
7
+ require 'vcr'
8
+
9
+ # Requires support files
10
+ Dir[File.join(File.dirname(__FILE__), 'shared/**/*.rb')].each {|f| require f}
11
+
12
+ # VCR cassette configuration
13
+ VCR.configure do |config|
14
+ config.cassette_library_dir = 'spec/cassettes'
15
+ config.hook_into :webmock
16
+ config.default_cassette_options = { record: :new_episodes }
17
+ config.configure_rspec_metadata!
18
+ end
19
+
20
+ RSpec.configure do |config|
21
+ config.extend VCR::RSpec::Macros
22
+ end
metadata ADDED
@@ -0,0 +1,370 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: redbooth-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Andres Bravo
8
+ - Carlos Saura
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-11-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: json
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: 1.8.1
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: 1.8.1
28
+ - !ruby/object:Gem::Dependency
29
+ name: oauth2
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - '>='
33
+ - !ruby/object:Gem::Version
34
+ version: 0.9.3
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '>='
40
+ - !ruby/object:Gem::Version
41
+ version: 0.9.3
42
+ - !ruby/object:Gem::Dependency
43
+ name: multipart-post
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '>='
47
+ - !ruby/object:Gem::Version
48
+ version: 1.1.0
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: 1.1.0
56
+ - !ruby/object:Gem::Dependency
57
+ name: rspec
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: pry
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: vcr
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: fakeweb
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ description: API wrapper for Redbooth.
113
+ email:
114
+ - support@redbooth.com
115
+ executables: []
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - spec/cassettes/Redbooth_Me/_initialize/.yml
120
+ - spec/cassettes/Redbooth_Me/_show/.yml
121
+ - spec/cassettes/Redbooth_Me/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
122
+ - spec/cassettes/Redbooth_Me/_update/.yml
123
+ - spec/cassettes/Redbooth_Me/_update/integration/.yml
124
+ - spec/cassettes/Redbooth_Organization/_create/.yml
125
+ - spec/cassettes/Redbooth_Organization/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml
126
+ - spec/cassettes/Redbooth_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml
127
+ - spec/cassettes/Redbooth_Organization/_index/.yml
128
+ - spec/cassettes/Redbooth_Organization/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
129
+ - spec/cassettes/Redbooth_Organization/_initialize/.yml
130
+ - spec/cassettes/Redbooth_Organization/_show/.yml
131
+ - spec/cassettes/Redbooth_Organization/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
132
+ - spec/cassettes/Redbooth_Organization/_update/.yml
133
+ - spec/cassettes/Redbooth_Organization/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
134
+ - spec/cassettes/Redbooth_Person/_create/integration/.yml
135
+ - spec/cassettes/Redbooth_Person/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml
136
+ - spec/cassettes/Redbooth_Person/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml
137
+ - spec/cassettes/Redbooth_Person/_index/.yml
138
+ - spec/cassettes/Redbooth_Person/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
139
+ - spec/cassettes/Redbooth_Person/_initialize/.yml
140
+ - spec/cassettes/Redbooth_Person/_show/.yml
141
+ - spec/cassettes/Redbooth_Person/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
142
+ - spec/cassettes/Redbooth_Person/_update/.yml
143
+ - spec/cassettes/Redbooth_Person/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
144
+ - spec/cassettes/Redbooth_Project/_create/.yml
145
+ - spec/cassettes/Redbooth_Project/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml
146
+ - spec/cassettes/Redbooth_Project/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml
147
+ - spec/cassettes/Redbooth_Project/_index/.yml
148
+ - spec/cassettes/Redbooth_Project/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
149
+ - spec/cassettes/Redbooth_Project/_initialize/.yml
150
+ - spec/cassettes/Redbooth_Project/_show/.yml
151
+ - spec/cassettes/Redbooth_Project/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
152
+ - spec/cassettes/Redbooth_Project/_update/.yml
153
+ - spec/cassettes/Redbooth_Project/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
154
+ - spec/cassettes/Redbooth_Request_Collection/_all/.yml
155
+ - spec/cassettes/Redbooth_Request_Collection/_count/.yml
156
+ - spec/cassettes/Redbooth_Request_Collection/_current_page/.yml
157
+ - spec/cassettes/Redbooth_Request_Collection/_current_page/where_endpoint_is_not_paginated/.yml
158
+ - spec/cassettes/Redbooth_Request_Collection/_initialize/.yml
159
+ - spec/cassettes/Redbooth_Request_Collection/_next_page/.yml
160
+ - spec/cassettes/Redbooth_Request_Collection/_next_page/where_endpoint_is_not_paginated/.yml
161
+ - spec/cassettes/Redbooth_Request_Collection/_next_page/where_is_the_last_page/.yml
162
+ - spec/cassettes/Redbooth_Request_Collection/_per_page/.yml
163
+ - spec/cassettes/Redbooth_Request_Collection/_per_page/where_endpoint_is_not_paginated/.yml
164
+ - spec/cassettes/Redbooth_Request_Collection/_prev_page/.yml
165
+ - spec/cassettes/Redbooth_Request_Collection/_prev_page/where_endpoint_is_not_paginated/.yml
166
+ - spec/cassettes/Redbooth_Request_Collection/_prev_page/where_is_the_first_page/.yml
167
+ - spec/cassettes/Redbooth_Request_Collection/_total_pages/.yml
168
+ - spec/cassettes/Redbooth_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml
169
+ - spec/cassettes/Redbooth_Task/_create/.yml
170
+ - spec/cassettes/Redbooth_Task/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
171
+ - spec/cassettes/Redbooth_Task/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
172
+ - spec/cassettes/Redbooth_Task/_index/.yml
173
+ - spec/cassettes/Redbooth_Task/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
174
+ - spec/cassettes/Redbooth_Task/_initialize/.yml
175
+ - spec/cassettes/Redbooth_Task/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
176
+ - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_assigned_id.yml
177
+ - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_id.yml
178
+ - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_name.yml
179
+ - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_project_id.yml
180
+ - spec/cassettes/Redbooth_Task/_update/.yml
181
+ - spec/cassettes/Redbooth_Task/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
182
+ - spec/cassettes/Redbooth_User/_create/.yml
183
+ - spec/cassettes/Redbooth_User/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
184
+ - spec/cassettes/Redbooth_User/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
185
+ - spec/cassettes/Redbooth_User/_create/name/.yml
186
+ - spec/cassettes/Redbooth_User/_create/project_id/.yml
187
+ - spec/cassettes/Redbooth_User/_create/task_list_id/.yml
188
+ - spec/cassettes/Redbooth_User/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
189
+ - spec/cassettes/Redbooth_User/_index/.yml
190
+ - spec/cassettes/Redbooth_User/_index/class/.yml
191
+ - spec/cassettes/Redbooth_User/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
192
+ - spec/cassettes/Redbooth_User/_initialize/.yml
193
+ - spec/cassettes/Redbooth_User/_initialize/assigned_id/.yml
194
+ - spec/cassettes/Redbooth_User/_initialize/description/.yml
195
+ - spec/cassettes/Redbooth_User/_initialize/due_on/.yml
196
+ - spec/cassettes/Redbooth_User/_initialize/id/.yml
197
+ - spec/cassettes/Redbooth_User/_initialize/initializes_all_attributes_correctly.yml
198
+ - spec/cassettes/Redbooth_User/_initialize/name/.yml
199
+ - spec/cassettes/Redbooth_User/_initialize/project_id/.yml
200
+ - spec/cassettes/Redbooth_User/_show/.yml
201
+ - spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
202
+ - spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
203
+ - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_assigned_id.yml
204
+ - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_id.yml
205
+ - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_name.yml
206
+ - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_project_id.yml
207
+ - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_email.yml
208
+ - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_first_name.yml
209
+ - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_id.yml
210
+ - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_last_name.yml
211
+ - spec/cassettes/Redbooth_User/_update/.yml
212
+ - spec/cassettes/Redbooth_User/_update/id/.yml
213
+ - spec/cassettes/Redbooth_User/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
214
+ - spec/cassettes/Redbooth_User/_update/name/.yml
215
+ - spec/fixtures/hola.txt
216
+ - spec/redbooth/base_spec.rb
217
+ - spec/redbooth/client_spec.rb
218
+ - spec/redbooth/me_spec.rb
219
+ - spec/redbooth/organization_spec.rb
220
+ - spec/redbooth/person_spec.rb
221
+ - spec/redbooth/project_spec.rb
222
+ - spec/redbooth/request/base_spec.rb
223
+ - spec/redbooth/request/collection_spec.rb
224
+ - spec/redbooth/request/connection_spec.rb
225
+ - spec/redbooth/request/info_spec.rb
226
+ - spec/redbooth/request/response_spec.rb
227
+ - spec/redbooth/request/validator_spec.rb
228
+ - spec/redbooth/task_spec.rb
229
+ - spec/redbooth/user_spec.rb
230
+ - spec/redbooth_spec.rb
231
+ - spec/shared/authentication_context.rb
232
+ - spec/spec_helper.rb
233
+ homepage: https://github.com/teambox/redbooth-ruby
234
+ licenses: []
235
+ metadata: {}
236
+ post_install_message:
237
+ rdoc_options: []
238
+ require_paths:
239
+ - lib
240
+ required_ruby_version: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - '>='
243
+ - !ruby/object:Gem::Version
244
+ version: '0'
245
+ required_rubygems_version: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - '>='
248
+ - !ruby/object:Gem::Version
249
+ version: '0'
250
+ requirements: []
251
+ rubyforge_project:
252
+ rubygems_version: 2.0.6
253
+ signing_key:
254
+ specification_version: 4
255
+ summary: API wrapper for Redbooth.
256
+ test_files:
257
+ - spec/cassettes/Redbooth_Me/_initialize/.yml
258
+ - spec/cassettes/Redbooth_Me/_show/.yml
259
+ - spec/cassettes/Redbooth_Me/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
260
+ - spec/cassettes/Redbooth_Me/_update/.yml
261
+ - spec/cassettes/Redbooth_Me/_update/integration/.yml
262
+ - spec/cassettes/Redbooth_Organization/_create/.yml
263
+ - spec/cassettes/Redbooth_Organization/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml
264
+ - spec/cassettes/Redbooth_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml
265
+ - spec/cassettes/Redbooth_Organization/_index/.yml
266
+ - spec/cassettes/Redbooth_Organization/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
267
+ - spec/cassettes/Redbooth_Organization/_initialize/.yml
268
+ - spec/cassettes/Redbooth_Organization/_show/.yml
269
+ - spec/cassettes/Redbooth_Organization/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
270
+ - spec/cassettes/Redbooth_Organization/_update/.yml
271
+ - spec/cassettes/Redbooth_Organization/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
272
+ - spec/cassettes/Redbooth_Person/_create/integration/.yml
273
+ - spec/cassettes/Redbooth_Person/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml
274
+ - spec/cassettes/Redbooth_Person/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml
275
+ - spec/cassettes/Redbooth_Person/_index/.yml
276
+ - spec/cassettes/Redbooth_Person/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
277
+ - spec/cassettes/Redbooth_Person/_initialize/.yml
278
+ - spec/cassettes/Redbooth_Person/_show/.yml
279
+ - spec/cassettes/Redbooth_Person/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
280
+ - spec/cassettes/Redbooth_Person/_update/.yml
281
+ - spec/cassettes/Redbooth_Person/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
282
+ - spec/cassettes/Redbooth_Project/_create/.yml
283
+ - spec/cassettes/Redbooth_Project/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml
284
+ - spec/cassettes/Redbooth_Project/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml
285
+ - spec/cassettes/Redbooth_Project/_index/.yml
286
+ - spec/cassettes/Redbooth_Project/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
287
+ - spec/cassettes/Redbooth_Project/_initialize/.yml
288
+ - spec/cassettes/Redbooth_Project/_show/.yml
289
+ - spec/cassettes/Redbooth_Project/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
290
+ - spec/cassettes/Redbooth_Project/_update/.yml
291
+ - spec/cassettes/Redbooth_Project/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
292
+ - spec/cassettes/Redbooth_Request_Collection/_all/.yml
293
+ - spec/cassettes/Redbooth_Request_Collection/_count/.yml
294
+ - spec/cassettes/Redbooth_Request_Collection/_current_page/.yml
295
+ - spec/cassettes/Redbooth_Request_Collection/_current_page/where_endpoint_is_not_paginated/.yml
296
+ - spec/cassettes/Redbooth_Request_Collection/_initialize/.yml
297
+ - spec/cassettes/Redbooth_Request_Collection/_next_page/.yml
298
+ - spec/cassettes/Redbooth_Request_Collection/_next_page/where_endpoint_is_not_paginated/.yml
299
+ - spec/cassettes/Redbooth_Request_Collection/_next_page/where_is_the_last_page/.yml
300
+ - spec/cassettes/Redbooth_Request_Collection/_per_page/.yml
301
+ - spec/cassettes/Redbooth_Request_Collection/_per_page/where_endpoint_is_not_paginated/.yml
302
+ - spec/cassettes/Redbooth_Request_Collection/_prev_page/.yml
303
+ - spec/cassettes/Redbooth_Request_Collection/_prev_page/where_endpoint_is_not_paginated/.yml
304
+ - spec/cassettes/Redbooth_Request_Collection/_prev_page/where_is_the_first_page/.yml
305
+ - spec/cassettes/Redbooth_Request_Collection/_total_pages/.yml
306
+ - spec/cassettes/Redbooth_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml
307
+ - spec/cassettes/Redbooth_Task/_create/.yml
308
+ - spec/cassettes/Redbooth_Task/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
309
+ - spec/cassettes/Redbooth_Task/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
310
+ - spec/cassettes/Redbooth_Task/_index/.yml
311
+ - spec/cassettes/Redbooth_Task/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
312
+ - spec/cassettes/Redbooth_Task/_initialize/.yml
313
+ - spec/cassettes/Redbooth_Task/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
314
+ - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_assigned_id.yml
315
+ - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_id.yml
316
+ - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_name.yml
317
+ - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_project_id.yml
318
+ - spec/cassettes/Redbooth_Task/_update/.yml
319
+ - spec/cassettes/Redbooth_Task/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
320
+ - spec/cassettes/Redbooth_User/_create/.yml
321
+ - spec/cassettes/Redbooth_User/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
322
+ - spec/cassettes/Redbooth_User/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
323
+ - spec/cassettes/Redbooth_User/_create/name/.yml
324
+ - spec/cassettes/Redbooth_User/_create/project_id/.yml
325
+ - spec/cassettes/Redbooth_User/_create/task_list_id/.yml
326
+ - spec/cassettes/Redbooth_User/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
327
+ - spec/cassettes/Redbooth_User/_index/.yml
328
+ - spec/cassettes/Redbooth_User/_index/class/.yml
329
+ - spec/cassettes/Redbooth_User/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
330
+ - spec/cassettes/Redbooth_User/_initialize/.yml
331
+ - spec/cassettes/Redbooth_User/_initialize/assigned_id/.yml
332
+ - spec/cassettes/Redbooth_User/_initialize/description/.yml
333
+ - spec/cassettes/Redbooth_User/_initialize/due_on/.yml
334
+ - spec/cassettes/Redbooth_User/_initialize/id/.yml
335
+ - spec/cassettes/Redbooth_User/_initialize/initializes_all_attributes_correctly.yml
336
+ - spec/cassettes/Redbooth_User/_initialize/name/.yml
337
+ - spec/cassettes/Redbooth_User/_initialize/project_id/.yml
338
+ - spec/cassettes/Redbooth_User/_show/.yml
339
+ - spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
340
+ - spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
341
+ - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_assigned_id.yml
342
+ - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_id.yml
343
+ - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_name.yml
344
+ - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_project_id.yml
345
+ - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_email.yml
346
+ - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_first_name.yml
347
+ - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_id.yml
348
+ - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_last_name.yml
349
+ - spec/cassettes/Redbooth_User/_update/.yml
350
+ - spec/cassettes/Redbooth_User/_update/id/.yml
351
+ - spec/cassettes/Redbooth_User/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
352
+ - spec/cassettes/Redbooth_User/_update/name/.yml
353
+ - spec/fixtures/hola.txt
354
+ - spec/redbooth/base_spec.rb
355
+ - spec/redbooth/client_spec.rb
356
+ - spec/redbooth/me_spec.rb
357
+ - spec/redbooth/organization_spec.rb
358
+ - spec/redbooth/person_spec.rb
359
+ - spec/redbooth/project_spec.rb
360
+ - spec/redbooth/request/base_spec.rb
361
+ - spec/redbooth/request/collection_spec.rb
362
+ - spec/redbooth/request/connection_spec.rb
363
+ - spec/redbooth/request/info_spec.rb
364
+ - spec/redbooth/request/response_spec.rb
365
+ - spec/redbooth/request/validator_spec.rb
366
+ - spec/redbooth/task_spec.rb
367
+ - spec/redbooth/user_spec.rb
368
+ - spec/redbooth_spec.rb
369
+ - spec/shared/authentication_context.rb
370
+ - spec/spec_helper.rb