leankitkanban 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/LICENSE +24 -0
  2. data/Manifest +1 -0
  3. data/README.md +25 -17
  4. data/Rakefile +1 -1
  5. data/leankitkanban.gemspec +3 -3
  6. metadata +3 -1
data/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ Copyright (c) 2011 Marc Lainez
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
22
+ Except as contained in this notice, the name of Marc Lainez shall not be
23
+ used in advertising or otherwise to promote the sale, use or other dealings
24
+ in this Software without prior written authorization from Marc Lainez.
data/Manifest CHANGED
@@ -1,5 +1,6 @@
1
1
  Gemfile
2
2
  Gemfile.lock
3
+ LICENSE
3
4
  Manifest
4
5
  README.md
5
6
  Rakefile
data/README.md CHANGED
@@ -8,28 +8,45 @@ http://leankitkanban.com/
8
8
  Usage
9
9
  -----
10
10
 
11
+ # configure your account information
11
12
  LeanKitKanban::Config.email = "mytestemail@test.com"
12
13
  LeanKitKanban::Config.password = "mypassword"
13
14
  LeanKitKanban::Config.account = "myaccount"
14
15
 
15
16
  # get all boards and returns an array of hashes
16
17
  @boards = LeanKitKanban::Board.all
18
+
17
19
  # get the board with specified id as a hash
18
20
  @board = LeanKitKanban::Board.find(board_id)
19
- # get all the identifiers for a board
21
+
22
+ # get all the identifiers for a board, it contains all information needed for other api calls
20
23
  @identifiers = LeanKitKanban::Board.get_identifiers(board_id)
21
24
 
22
- Board ID
23
- --------
25
+ # get the newest version of the board if it exists
26
+ @board_version = LeanKitKanban::Board.get_newer_if_exists(board_id, version_id)
27
+
28
+ # gets the last 5 events that occured since version_id
29
+ @last_events = LeanKitKanban::Board.get_board_history_since(board_id, version_id)
30
+
31
+
32
+ # get a specific card from a board
33
+ @card = LeanKitKanban::Card.find(board_id, card_id)
34
+
35
+ # get a specific card from a board by external id
36
+ @card = LeanKitKanban::Card.find_by_external_id(board_id, external_id)
37
+
24
38
 
25
- If you want to fetch a specified board from your organization, you'll need the board ID. To get it, log in to leankitkanban, go to that board and check the url. After /Boards you should see a number, that's the board ID.
39
+ # get board backlog
40
+ @backlog = LeanKitKanban::Backlog.fetch(board_id)
41
+
42
+
43
+ # get board archive
44
+ @archive = LeanKitKanban::Archive.fetch(board_id)
26
45
 
27
46
  Contributing
28
47
  ------------
29
48
 
30
- Clone this repo and send pull requests.
31
-
32
- *Running specs*
49
+ Fork this repo and send me pull requests.
33
50
 
34
51
  All specs are in the /spec directory, to run them:
35
52
 
@@ -40,14 +57,5 @@ Additional information
40
57
 
41
58
  * LeanKitKanban API doc: http://support.leankitkanban.com/forums/20153741-api
42
59
 
43
- License
44
- -------
45
-
46
- Copyright © 28/10/11, mlainez
47
-
48
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
49
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
50
-
51
- The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the Software.
52
60
 
53
- Except as contained in this notice, the name of mlainez shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from mlainez.
61
+ Copyright (c) 2011 Marc Lainez
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('leankitkanban', '0.0.9') do |p|
5
+ Echoe.new('leankitkanban', '0.1.0') do |p|
6
6
  p.description = "Ruby Wrapper around LeanKitKanban Api"
7
7
  p.url = "http://github.com/mlainez/leankitkanban"
8
8
  p.author = "Marc Lainez"
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{leankitkanban}
5
- s.version = "0.0.9"
5
+ s.version = "0.1.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Marc Lainez}]
9
9
  s.date = %q{2011-10-29}
10
10
  s.description = %q{Ruby Wrapper around LeanKitKanban Api}
11
11
  s.email = %q{ml@theotherguys.be}
12
- s.extra_rdoc_files = [%q{README.md}, %q{lib/leankit_request.rb}, %q{lib/leankitkanban.rb}, %q{lib/leankitkanban/archive.rb}, %q{lib/leankitkanban/backlog.rb}, %q{lib/leankitkanban/board.rb}, %q{lib/leankitkanban/card.rb}, %q{lib/leankitkanban/config.rb}]
13
- s.files = [%q{Gemfile}, %q{Gemfile.lock}, %q{Manifest}, %q{README.md}, %q{Rakefile}, %q{lib/leankit_request.rb}, %q{lib/leankitkanban.rb}, %q{lib/leankitkanban/archive.rb}, %q{lib/leankitkanban/backlog.rb}, %q{lib/leankitkanban/board.rb}, %q{lib/leankitkanban/card.rb}, %q{lib/leankitkanban/config.rb}, %q{spec/leankitkanban/archive_spec.rb}, %q{spec/leankitkanban/backlog_spec.rb}, %q{spec/leankitkanban/board_spec.rb}, %q{spec/leankitkanban/card_spec.rb}, %q{spec/leankitkanban/config_spec.rb}, %q{spec/spec_helper.rb}, %q{spec/support/config_helper.rb}, %q{leankitkanban.gemspec}]
12
+ s.extra_rdoc_files = [%q{LICENSE}, %q{README.md}, %q{lib/leankit_request.rb}, %q{lib/leankitkanban.rb}, %q{lib/leankitkanban/archive.rb}, %q{lib/leankitkanban/backlog.rb}, %q{lib/leankitkanban/board.rb}, %q{lib/leankitkanban/card.rb}, %q{lib/leankitkanban/config.rb}]
13
+ s.files = [%q{Gemfile}, %q{Gemfile.lock}, %q{LICENSE}, %q{Manifest}, %q{README.md}, %q{Rakefile}, %q{lib/leankit_request.rb}, %q{lib/leankitkanban.rb}, %q{lib/leankitkanban/archive.rb}, %q{lib/leankitkanban/backlog.rb}, %q{lib/leankitkanban/board.rb}, %q{lib/leankitkanban/card.rb}, %q{lib/leankitkanban/config.rb}, %q{spec/leankitkanban/archive_spec.rb}, %q{spec/leankitkanban/backlog_spec.rb}, %q{spec/leankitkanban/board_spec.rb}, %q{spec/leankitkanban/card_spec.rb}, %q{spec/leankitkanban/config_spec.rb}, %q{spec/spec_helper.rb}, %q{spec/support/config_helper.rb}, %q{leankitkanban.gemspec}]
14
14
  s.homepage = %q{http://github.com/mlainez/leankitkanban}
15
15
  s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Leankitkanban}, %q{--main}, %q{README.md}]
16
16
  s.require_paths = [%q{lib}]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: leankitkanban
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.9
5
+ version: 0.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Marc Lainez
@@ -20,6 +20,7 @@ executables: []
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
+ - LICENSE
23
24
  - README.md
24
25
  - lib/leankit_request.rb
25
26
  - lib/leankitkanban.rb
@@ -31,6 +32,7 @@ extra_rdoc_files:
31
32
  files:
32
33
  - Gemfile
33
34
  - Gemfile.lock
35
+ - LICENSE
34
36
  - Manifest
35
37
  - README.md
36
38
  - Rakefile