ranbanery 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # ranbanery
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/ranbanery.png)](http://badge.fury.io/rb/ranbanery)
4
+ [![Code Climate](https://codeclimate.com/github/GeneralScripting/ranbanery.png)](https://codeclimate.com/github/GeneralScripting/ranbanery)
5
+
6
+ ## Installation
7
+
8
+ gem install ranbanery
9
+
10
+ Or in your Gemfile:
11
+
12
+ gem 'ranbanery'
13
+
14
+ ## Usage
15
+
16
+ require 'ranbanery'
17
+
18
+ client = Kanbanery::Client.new(YOUR_WORKSPACE, YOUR_KEY)
19
+
20
+ client.projects
21
+ # returns the ActiveResource: Project
22
+ # see https://github.com/rails/activeresource#configuration-and-usage
23
+
24
+ # find(:first) is broken :(
25
+ project_id = client.projects.all.first.id
26
+
27
+ client.columns( project_id )
28
+ # returns the ActiveResource: Column
29
+ # (ugly, but necessary until ActiveResource supports has_many etc.)
30
+
31
+ client.tasks( project_id )
32
+ # returns the ActiveResource: Task
33
+ # project_id is optional (don't use it for finding a task)
34
+
35
+ client.subtasks( task_id )
36
+ # returns the ActiveResource: Subtask
37
+
38
+ That is all for now. Please help creating the other [Kanbanery API methods](https://kanbanery.desk.com/customer/portal/articles/1137675-api-version-1-3).
39
+
40
+
41
+ ## Contributing to ranbanery
42
+
43
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
44
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
45
+ * Fork the project.
46
+ * Start a feature/bugfix branch.
47
+ * Commit and push until you are happy with your contribution.
48
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
49
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
50
+
51
+ ## License
52
+
53
+ This gem is released under the [MIT License](http://www.opensource.org/licenses/MIT).
54
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
@@ -0,0 +1,5 @@
1
+ module Kanbanery
2
+ class Comment < Kanbanery::Base
3
+
4
+ end
5
+ end
data/lib/ranbanery.rb CHANGED
@@ -4,6 +4,7 @@ require 'ranbanery/project'
4
4
  require 'ranbanery/task'
5
5
  require 'ranbanery/subtask'
6
6
  require 'ranbanery/column'
7
+ require 'ranbanery/comment'
7
8
 
8
9
  module Kanbanery
9
10
  class Client
@@ -44,5 +45,9 @@ module Kanbanery
44
45
  resource(:subtask, prefix: task_id ? "/tasks/#{task_id}" : nil)
45
46
  end
46
47
 
48
+ def comments(task_id=nil)
49
+ resource(:comment, prefix: task_id ? "/tasks/#{task_id}" : nil)
50
+ end
51
+
47
52
  end
48
53
  end
data/ranbanery.gemspec CHANGED
@@ -5,16 +5,16 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ranbanery"
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jan Schwenzien"]
12
- s.date = "2013-06-12"
12
+ s.date = "2013-07-03"
13
13
  s.description = "Kanbanery Ruby API implementation"
14
14
  s.email = "jan@general-scripting.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
- "README.rdoc"
17
+ "README.md"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
@@ -23,12 +23,13 @@ Gem::Specification.new do |s|
23
23
  "Gemfile",
24
24
  "Gemfile.lock",
25
25
  "LICENSE.txt",
26
- "README.rdoc",
26
+ "README.md",
27
27
  "Rakefile",
28
28
  "VERSION",
29
29
  "lib/ranbanery.rb",
30
30
  "lib/ranbanery/base.rb",
31
31
  "lib/ranbanery/column.rb",
32
+ "lib/ranbanery/comment.rb",
32
33
  "lib/ranbanery/project.rb",
33
34
  "lib/ranbanery/subtask.rb",
34
35
  "lib/ranbanery/task.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ranbanery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-12 00:00:00.000000000 Z
12
+ date: 2013-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -129,7 +129,7 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files:
131
131
  - LICENSE.txt
132
- - README.rdoc
132
+ - README.md
133
133
  files:
134
134
  - .document
135
135
  - .ruby-gemset
@@ -137,12 +137,13 @@ files:
137
137
  - Gemfile
138
138
  - Gemfile.lock
139
139
  - LICENSE.txt
140
- - README.rdoc
140
+ - README.md
141
141
  - Rakefile
142
142
  - VERSION
143
143
  - lib/ranbanery.rb
144
144
  - lib/ranbanery/base.rb
145
145
  - lib/ranbanery/column.rb
146
+ - lib/ranbanery/comment.rb
146
147
  - lib/ranbanery/project.rb
147
148
  - lib/ranbanery/subtask.rb
148
149
  - lib/ranbanery/task.rb
@@ -164,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
165
  version: '0'
165
166
  segments:
166
167
  - 0
167
- hash: -3604230118188601964
168
+ hash: -4502131600870785461
168
169
  required_rubygems_version: !ruby/object:Gem::Requirement
169
170
  none: false
170
171
  requirements:
data/README.rdoc DELETED
@@ -1,19 +0,0 @@
1
- = ranbanery
2
-
3
- Description goes here.
4
-
5
- == Contributing to ranbanery
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2013 Jan Schwenzien. See LICENSE.txt for
18
- further details.
19
-