bcx 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/.travis.yml +2 -0
- data/README.md +1 -1
- data/bcx.gemspec +2 -1
- data/docs/access.html +140 -0
- data/docs/authorization.html +147 -0
- data/docs/bcx.html +200 -0
- data/docs/comment.html +139 -0
- data/docs/configuration.html +137 -0
- data/docs/docco.css +76 -64
- data/docs/http.html +151 -0
- data/docs/oauth.html +144 -0
- data/docs/person.html +147 -0
- data/docs/project.html +154 -0
- data/docs/public/fonts/roboto-black.eot +0 -0
- data/docs/public/fonts/roboto-black.ttf +0 -0
- data/docs/public/fonts/roboto-black.woff +0 -0
- data/docs/response_error.html +153 -0
- data/docs/todo.html +148 -0
- data/docs/todolist.html +158 -0
- data/docs/version.html +125 -0
- data/lib/bcx/resources/comment.rb +26 -0
- data/lib/bcx/resources/project.rb +1 -0
- data/lib/bcx/resources/todo.rb +1 -0
- data/lib/bcx/resources/todolist.rb +1 -0
- data/lib/bcx/version.rb +1 -1
- data/lib/bcx.rb +1 -0
- data/lib/tasks/docs.rake +4 -2
- data/spec/bcx/comment_spec.rb +31 -0
- data/spec/cassettes/Bcx_Resources_Comment/DELETE_/projects/9634353/comments/297584179_json/should_delete_the_given_comment.yml +140 -0
- data/spec/cassettes/Bcx_Resources_Comment/POST_/projects/9634353/todolists/29123043/comments_json/should_create_a_new_todolist_comment.yml +114 -0
- data/spec/cassettes/Bcx_Resources_Comment/POST_/projects/9634353/todos/185137845/comments_json/should_create_a_new_todo_comment.yml +114 -0
- metadata +41 -30
- data/docs/lib/bcx/client/http.html +0 -144
- data/docs/lib/bcx/client/oauth.html +0 -146
- data/docs/lib/bcx/configuration.html +0 -80
- data/docs/lib/bcx/launchpad/oauth.html +0 -137
- data/docs/lib/bcx/resources/access.html +0 -133
- data/docs/lib/bcx/resources/authorization.html +0 -140
- data/docs/lib/bcx/resources/person.html +0 -140
- data/docs/lib/bcx/resources/project.html +0 -146
- data/docs/lib/bcx/resources/todo.html +0 -140
- data/docs/lib/bcx/resources/todolist.html +0 -150
- data/docs/lib/bcx/response_error.html +0 -96
- data/docs/lib/bcx/version.html +0 -68
- data/docs/lib/bcx.html +0 -192
- data/docs/public/fonts/novecento-bold.eot +0 -0
- data/docs/public/fonts/novecento-bold.ttf +0 -0
- data/docs/public/fonts/novecento-bold.woff +0 -0
data/docs/lib/bcx.html
DELETED
@@ -1,192 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<title>bcx.rb</title>
|
6
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
7
|
-
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
8
|
-
<link rel="stylesheet" media="all" href="../docco.css" />
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
<div id="container">
|
12
|
-
<div id="background"></div>
|
13
|
-
|
14
|
-
<ul id="jump_to">
|
15
|
-
<li>
|
16
|
-
<a class="large" href="javascript:void(0);">Jump To …</a>
|
17
|
-
<a class="small" href="javascript:void(0);">+</a>
|
18
|
-
<div id="jump_wrapper">
|
19
|
-
<div id="jump_page">
|
20
|
-
|
21
|
-
|
22
|
-
<a class="source" href="bcx.html">
|
23
|
-
lib/bcx.rb
|
24
|
-
</a>
|
25
|
-
|
26
|
-
|
27
|
-
<a class="source" href="bcx/client/http.html">
|
28
|
-
lib/bcx/client/http.rb
|
29
|
-
</a>
|
30
|
-
|
31
|
-
|
32
|
-
<a class="source" href="bcx/client/oauth.html">
|
33
|
-
lib/bcx/client/oauth.rb
|
34
|
-
</a>
|
35
|
-
|
36
|
-
|
37
|
-
<a class="source" href="bcx/configuration.html">
|
38
|
-
lib/bcx/configuration.rb
|
39
|
-
</a>
|
40
|
-
|
41
|
-
|
42
|
-
<a class="source" href="bcx/launchpad/oauth.html">
|
43
|
-
lib/bcx/launchpad/oauth.rb
|
44
|
-
</a>
|
45
|
-
|
46
|
-
|
47
|
-
<a class="source" href="bcx/resources/access.html">
|
48
|
-
lib/bcx/resources/access.rb
|
49
|
-
</a>
|
50
|
-
|
51
|
-
|
52
|
-
<a class="source" href="bcx/resources/authorization.html">
|
53
|
-
lib/bcx/resources/authorization.rb
|
54
|
-
</a>
|
55
|
-
|
56
|
-
|
57
|
-
<a class="source" href="bcx/resources/person.html">
|
58
|
-
lib/bcx/resources/person.rb
|
59
|
-
</a>
|
60
|
-
|
61
|
-
|
62
|
-
<a class="source" href="bcx/resources/project.html">
|
63
|
-
lib/bcx/resources/project.rb
|
64
|
-
</a>
|
65
|
-
|
66
|
-
|
67
|
-
<a class="source" href="bcx/resources/todo.html">
|
68
|
-
lib/bcx/resources/todo.rb
|
69
|
-
</a>
|
70
|
-
|
71
|
-
|
72
|
-
<a class="source" href="bcx/resources/todolist.html">
|
73
|
-
lib/bcx/resources/todolist.rb
|
74
|
-
</a>
|
75
|
-
|
76
|
-
|
77
|
-
<a class="source" href="bcx/response_error.html">
|
78
|
-
lib/bcx/response_error.rb
|
79
|
-
</a>
|
80
|
-
|
81
|
-
|
82
|
-
<a class="source" href="bcx/version.html">
|
83
|
-
lib/bcx/version.rb
|
84
|
-
</a>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
</li>
|
88
|
-
</ul>
|
89
|
-
|
90
|
-
<ul class="sections">
|
91
|
-
|
92
|
-
<li id="title">
|
93
|
-
<div class="annotation">
|
94
|
-
<h1>bcx.rb</h1>
|
95
|
-
</div>
|
96
|
-
</li>
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<li id="section-1">
|
101
|
-
<div class="annotation">
|
102
|
-
|
103
|
-
<div class="pilwrap ">
|
104
|
-
<a class="pilcrow" href="#section-1">¶</a>
|
105
|
-
</div>
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
<div class="content"><div class='highlight'><pre><span class="keyword">require</span> <span class="string">'rapidash'</span>
|
110
|
-
<span class="keyword">require</span> <span class="string">'bcx/version'</span></pre></div></div>
|
111
|
-
|
112
|
-
</li>
|
113
|
-
|
114
|
-
|
115
|
-
<li id="section-2">
|
116
|
-
<div class="annotation">
|
117
|
-
|
118
|
-
<div class="pilwrap for-h2">
|
119
|
-
<a class="pilcrow" href="#section-2">¶</a>
|
120
|
-
</div>
|
121
|
-
<h2>Bcx</h2>
|
122
|
-
<p>Fully-fledged Ruby API wrapper for Basecamp Next</p>
|
123
|
-
<p>See the <a href="https://github.com/paulspringett/bcx#readme">README</a> for usage</p>
|
124
|
-
|
125
|
-
</div>
|
126
|
-
|
127
|
-
<div class="content"><div class='highlight'><pre><span class="class"><span class="keyword">module</span> <span class="title">Bcx</span></span>
|
128
|
-
autoload <span class="symbol">:Configuration</span>, <span class="string">'bcx/configuration'</span>
|
129
|
-
|
130
|
-
<span class="class"><span class="keyword">module</span> <span class="title">Resources</span></span>
|
131
|
-
autoload <span class="symbol">:Todo</span>, <span class="string">'bcx/resources/todo'</span>
|
132
|
-
autoload <span class="symbol">:Todolist</span>, <span class="string">'bcx/resources/todolist'</span>
|
133
|
-
autoload <span class="symbol">:Project</span>, <span class="string">'bcx/resources/project'</span>
|
134
|
-
autoload <span class="symbol">:Person</span>, <span class="string">'bcx/resources/person'</span>
|
135
|
-
autoload <span class="symbol">:Access</span>, <span class="string">'bcx/resources/access'</span>
|
136
|
-
autoload <span class="symbol">:Authorization</span>, <span class="string">'bcx/resources/authorization'</span>
|
137
|
-
<span class="keyword">end</span>
|
138
|
-
|
139
|
-
<span class="class"><span class="keyword">module</span> <span class="title">Client</span></span>
|
140
|
-
autoload <span class="symbol">:HTTP</span>, <span class="string">'bcx/client/http'</span>
|
141
|
-
autoload <span class="symbol">:OAuth</span>, <span class="string">'bcx/client/oauth'</span>
|
142
|
-
<span class="keyword">end</span>
|
143
|
-
|
144
|
-
<span class="class"><span class="keyword">module</span> <span class="title">Launchpad</span></span>
|
145
|
-
autoload <span class="symbol">:OAuth</span>, <span class="string">'bcx/launchpad/oauth'</span>
|
146
|
-
<span class="keyword">end</span>
|
147
|
-
|
148
|
-
<span class="class"><span class="keyword">class</span> <span class="inheritance"><</span><span class="inheritance">< <span class="parent">self</span></span></span>
|
149
|
-
attr_accessor <span class="symbol">:configuration</span>
|
150
|
-
<span class="keyword">end</span></pre></div></div>
|
151
|
-
|
152
|
-
</li>
|
153
|
-
|
154
|
-
|
155
|
-
<li id="section-3">
|
156
|
-
<div class="annotation">
|
157
|
-
|
158
|
-
<div class="pilwrap ">
|
159
|
-
<a class="pilcrow" href="#section-3">¶</a>
|
160
|
-
</div>
|
161
|
-
<p>Expose configuration block</p>
|
162
|
-
|
163
|
-
</div>
|
164
|
-
|
165
|
-
<div class="content"><div class='highlight'><pre> <span class="function"><span class="keyword">def</span> <span class="title"><span class="keyword">self</span></span>.<span class="title">configure</span></span>
|
166
|
-
<span class="keyword">self</span>.configuration ||= <span class="constant">Configuration</span>.new
|
167
|
-
<span class="keyword">yield</span>(configuration)
|
168
|
-
<span class="keyword">end</span>
|
169
|
-
<span class="keyword">end</span></pre></div></div>
|
170
|
-
|
171
|
-
</li>
|
172
|
-
|
173
|
-
|
174
|
-
<li id="section-4">
|
175
|
-
<div class="annotation">
|
176
|
-
|
177
|
-
<div class="pilwrap ">
|
178
|
-
<a class="pilcrow" href="#section-4">¶</a>
|
179
|
-
</div>
|
180
|
-
<p>Use custom <code>Bcx::ResponseError</code> on top of Rapidash's error handling</p>
|
181
|
-
|
182
|
-
</div>
|
183
|
-
|
184
|
-
<div class="content"><div class='highlight'><pre><span class="keyword">require</span> <span class="string">'bcx/response_error'</span>
|
185
|
-
<span class="constant">Rapidash</span>.response_exception_class = <span class="constant">Bcx::ResponseError</span></pre></div></div>
|
186
|
-
|
187
|
-
</li>
|
188
|
-
|
189
|
-
</ul>
|
190
|
-
</div>
|
191
|
-
</body>
|
192
|
-
</html>
|
Binary file
|
Binary file
|
Binary file
|