trello_client 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/trello/client.rb +0 -1
- data/lib/trello/list.rb +25 -0
- data/lib/trello_client.rb +2 -0
- data/trello_client.gemspec +2 -2
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3a56fdb88755c8a63ce070b77bcf515b6f7a136
|
4
|
+
data.tar.gz: e373a2f9362d7108b0eb50c6a616de587e9e345a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 769d40c2a7d29293853d0cea7984301d2fa5ef6e11bd170d7875114464ca13136b0a78fcd503b48fd7b37a357c6e6295ab0b85a757c5a93459867a8a957022ca
|
7
|
+
data.tar.gz: 3f44cc5c6e2775cfe20d72011006f9a7b3bb47538cc258242f04c0dc03b8f4b7dceee37d0b1c7bdf82b843ed7abfddf735ee36eee5e910f7330dcff79897df3a
|
data/lib/trello/client.rb
CHANGED
data/lib/trello/list.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
module Trello
|
2
|
+
class List
|
3
|
+
def initialize(client)
|
4
|
+
@client = client
|
5
|
+
end
|
6
|
+
|
7
|
+
def fetch_all(board_id:)
|
8
|
+
@client.get(lists_url(board_id))
|
9
|
+
end
|
10
|
+
|
11
|
+
def fetch(id)
|
12
|
+
@client.get(list_url(id))
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def lists_url(board_id)
|
18
|
+
"/1/boards/#{board_id}/lists"
|
19
|
+
end
|
20
|
+
|
21
|
+
def list_url(id)
|
22
|
+
"/1/lists/#{id}"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/trello_client.rb
CHANGED
data/trello_client.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
lib = File.expand_path("../lib", __FILE__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "
|
3
|
+
require "trello_client"
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "trello_client"
|
7
|
-
spec.version =
|
7
|
+
spec.version = TrelloClient::VERSION
|
8
8
|
spec.authors = ["Chen Huang"]
|
9
9
|
spec.email = ["alan.tolearn@gmail.com"]
|
10
10
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trello_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chen Huang
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- bin/setup
|
84
84
|
- lib/trello/board.rb
|
85
85
|
- lib/trello/client.rb
|
86
|
+
- lib/trello/list.rb
|
86
87
|
- lib/trello/net_http_client.rb
|
87
88
|
- lib/trello_client.rb
|
88
89
|
- trello_client.gemspec
|