trello_client_lite 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/trello/client.rb +12 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 276b444efb7291fb586a580c6347f7296290f71379f40dd244abd0e8a8d9e64b
|
4
|
+
data.tar.gz: 23c32cd738097a356aaebb099775d4b6275783e0b5fcd840fdf83a8a12a49a9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bf912bb0cca3c1afa826e85784d713a5d1950099d203ce2bc75aabf74e253d09672fa2912fda21b91b6e14832367281d4c4fb3c545b5e276225794ba98d17cb
|
7
|
+
data.tar.gz: c33c904f850ac30cccb6d64f2e2b5c85494ce39c01a8940b51dd221159cb906281aee05937e9c07304e36510ba7650f3bcb88a33a19c80c0f536be090eb594d1
|
data/README.md
CHANGED
@@ -162,4 +162,4 @@ npm install -g standard-version
|
|
162
162
|
3. Push the `release` branch, but not the git tag: `git push origin release`
|
163
163
|
4. Open a Pull Request.
|
164
164
|
5. Once the Pull Request is merged and back in master build the gem: `make build`
|
165
|
-
6. Push this gem to rubygems.org: `
|
165
|
+
6. Push this gem to rubygems.org: `make release`
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
data/lib/trello/client.rb
CHANGED
@@ -24,6 +24,18 @@ module Trello
|
|
24
24
|
request('cards') { |url| HTTParty.post(url, options) }
|
25
25
|
end
|
26
26
|
|
27
|
+
def boards
|
28
|
+
options = { query: { key: key, token: token } }
|
29
|
+
|
30
|
+
request('members/me/boards') { |url| HTTParty.get(url, options) }
|
31
|
+
end
|
32
|
+
|
33
|
+
def lists(board_id)
|
34
|
+
options = { query: { key: key, token: token } }
|
35
|
+
|
36
|
+
request("boards/#{board_id}/lists") { |url| HTTParty.get(url, options) }
|
37
|
+
end
|
38
|
+
|
27
39
|
private
|
28
40
|
|
29
41
|
attr_reader :base_url, :key, :token
|
@@ -43,17 +55,5 @@ module Trello
|
|
43
55
|
http_code: response.code
|
44
56
|
)
|
45
57
|
end
|
46
|
-
|
47
|
-
def boards
|
48
|
-
options = { query: { key: key, token: token } }
|
49
|
-
|
50
|
-
request('members/me/boards') { |url| HTTParty.get(url, options) }
|
51
|
-
end
|
52
|
-
|
53
|
-
def lists(board_id)
|
54
|
-
options = { query: { key: key, token: token } }
|
55
|
-
|
56
|
-
request("boards/#{board_id}/lists") { |url| HTTParty.get(url, options) }
|
57
|
-
end
|
58
58
|
end
|
59
59
|
end
|