pivotal-tracker-api 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbe2c90c2bba74b1786f6b01037b640aa7bb18cc
4
- data.tar.gz: 1f8948d45390620446e88181d5fbf88da5747b79
3
+ metadata.gz: 684e9c41b85f26f2b945a3968a246697c93fe327
4
+ data.tar.gz: c2d99f604a04bf0a75209bf1f01987889fd54c7b
5
5
  SHA512:
6
- metadata.gz: be5c6620c49eede7d9804279c3031ff4636653b4c740cc6613e4f702b5e69db06da77b5cb66a62833adad507978e3955d8954bf00cab521751779b40db5043ee
7
- data.tar.gz: 4c439b0aad7bf21d998bd770abf2070adfa4041f8a2b5ab60b36e0c35251f4a38bcfbfcf0ba46512437c15f0a783081a093c2242ac79f0488daa67032fdeb5c5
6
+ metadata.gz: af4f339ec6457b278c4de4e0ac1990c8bf874585fd93b07a017f98cfd2acc1733e103d7d017d05d1bd614a5bace762044c7da29b59afb355b3cc424ff70894c0
7
+ data.tar.gz: 01227146224d47e0ebfcd063983ed02b22019317d41940af42951f8352a516754f741b217b5ca4e1ae1eff768706e6341ee1054598692d6666c96ea53fbb90e9
@@ -0,0 +1,78 @@
1
+ pivotal-tracker-api
2
+ ===================
3
+
4
+ A Pivotal Tracker API gem that can be used to interface with the Pivotal Tracke API v5.
5
+
6
+ ### Basic Example
7
+
8
+ ```ruby
9
+ # Use your personal Pivotal token
10
+ def set_token
11
+ # This will set the @token in the Client class. Class caching must be enabled for the token to persist.
12
+ # config.cache_classes = true
13
+ PivotalService.set_token(your_token_here)
14
+ end
15
+ ```
16
+
17
+ ```ruby
18
+ # Authenticate a user using email / pass
19
+ def get_user_token
20
+ email = params[:email]
21
+ pass = params[:pass]
22
+ # This will set the @token in the Client class. Class caching must be enabled for the token to persist.
23
+ # config.cache_classes = true
24
+ token = Scorer::Client.token(email, pass)
25
+ # do something with the token
26
+ end
27
+ ```
28
+
29
+ ```ruby
30
+ # Get all of the users Projects
31
+ def projects
32
+ @projects = PivotalService.all_projects(Scorer::Project.fields)
33
+ end
34
+ ```
35
+
36
+ ```ruby
37
+ # Get only 1 of the users Projects
38
+ def project
39
+ @project = PivotalService.one_project(params[:project_id], Scorer::Project.fields)
40
+ end
41
+ ```
42
+
43
+ ```ruby
44
+ # Get a Projects Stories by a specific Label
45
+ def stories_by_label
46
+ project_label = params[:project_label]
47
+ @project_label = CGI.escape(project_label) if project_label
48
+ @stories = PivotalService.all_stories(@project_label, @project, Scorer::Story.fields) if @project_label
49
+ end
50
+ ```
51
+
52
+ ```ruby
53
+ # Get an Iteration and it's Stories
54
+ def get_iteration
55
+ @project_id = params[:project_id]
56
+ @project = PivotalService.one_project(@project_id, Scorer::Project.fields)
57
+ @iteration = PivotalService.iterations(@project_id, 'current')
58
+ @stories = @iteration.stories
59
+ end
60
+ ```
61
+
62
+ For additional infomation on how to interface with this gem and use it to communicate with the Pivotal Tracker API v5 see the [PivotalService](https://github.com/atljeremy/pivotal-tracker-api/blob/master/lib/pivotal-tracker-api/pivotal_service.rb) class.
63
+
64
+ ### Contributing to pivotal-tracker-api
65
+
66
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
67
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
68
+ * Fork the project.
69
+ * Start a feature/bugfix branch.
70
+ * Commit and push until you are happy with your contribution.
71
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
72
+ * 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.
73
+
74
+ ### Copyright
75
+
76
+ Copyright (c) 2013 Jeremy Fox ([jeremyfox.me](http://www.jeremyfox.me)). See LICENSE.txt for
77
+ further details.
78
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -1,7 +1,7 @@
1
1
  module Scorer
2
2
  class Comment
3
3
 
4
- attr_accessor :story, :project_id, :story_id, :id, :text, :author, :created_at
4
+ attr_accessor :story, :project_id, :story_id, :id, :text, :author, :created_at, :updated_at
5
5
 
6
6
  def initialize(attributes={})
7
7
  if attributes[:owner]
@@ -60,8 +60,9 @@ module Scorer
60
60
  comments << Scorer::Comment.new({
61
61
  id: note[:id].to_i,
62
62
  text: note[:text],
63
- author: note[:author],
63
+ author: note[:person_id],
64
64
  created_at: DateTime.parse(note[:created_at].to_s).to_s,
65
+ updated_at: DateTime.parse(note[:updated_at].to_s).to_s,
65
66
  story: story
66
67
  })
67
68
  end
@@ -0,0 +1,84 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: pivotal-tracker-api 0.1.1 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "pivotal-tracker-api"
9
+ s.version = "0.1.1"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["jfox"]
14
+ s.date = "2014-01-30"
15
+ s.description = "A ruby gem to communicate with the Picotal Tracker API v5"
16
+ s.email = "atljeremy@me.com"
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.md"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".idea/.name",
24
+ ".idea/.rakeTasks",
25
+ ".idea/encodings.xml",
26
+ ".idea/misc.xml",
27
+ ".idea/modules.xml",
28
+ ".idea/pivotal-tracker-api.iml",
29
+ ".idea/scopes/scope_settings.xml",
30
+ ".idea/vcs.xml",
31
+ "Gemfile",
32
+ "Gemfile.lock",
33
+ "LICENSE.txt",
34
+ "README.md",
35
+ "Rakefile",
36
+ "VERSION",
37
+ "lib/pivotal-tracker-api.rb",
38
+ "lib/pivotal-tracker-api/activity.rb",
39
+ "lib/pivotal-tracker-api/attachment.rb",
40
+ "lib/pivotal-tracker-api/client.rb",
41
+ "lib/pivotal-tracker-api/comment.rb",
42
+ "lib/pivotal-tracker-api/iteration.rb",
43
+ "lib/pivotal-tracker-api/person.rb",
44
+ "lib/pivotal-tracker-api/pivotal_service.rb",
45
+ "lib/pivotal-tracker-api/project.rb",
46
+ "lib/pivotal-tracker-api/story.rb",
47
+ "lib/pivotal-tracker-api/task.rb",
48
+ "pivotal-tracker-api.gemspec",
49
+ "test/helper.rb",
50
+ "test/test_pivotal-tracker-api.rb"
51
+ ]
52
+ s.homepage = "http://github.com/atljeremy/pivotal-tracker-api"
53
+ s.licenses = ["MIT"]
54
+ s.rubygems_version = "2.2.0"
55
+ s.summary = "A ruby gem to communicate with the Picotal Tracker API v5"
56
+
57
+ if s.respond_to? :specification_version then
58
+ s.specification_version = 4
59
+
60
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
61
+ s.add_runtime_dependency(%q<rest-client>, ["~> 1.6.7"])
62
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
63
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
64
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
65
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
66
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
67
+ else
68
+ s.add_dependency(%q<rest-client>, ["~> 1.6.7"])
69
+ s.add_dependency(%q<shoulda>, [">= 0"])
70
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
71
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
72
+ s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
73
+ s.add_dependency(%q<simplecov>, [">= 0"])
74
+ end
75
+ else
76
+ s.add_dependency(%q<rest-client>, ["~> 1.6.7"])
77
+ s.add_dependency(%q<shoulda>, [">= 0"])
78
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
79
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
80
+ s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
81
+ s.add_dependency(%q<simplecov>, [">= 0"])
82
+ end
83
+ end
84
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal-tracker-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jfox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-17 00:00:00.000000000 Z
11
+ date: 2014-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -100,7 +100,7 @@ executables: []
100
100
  extensions: []
101
101
  extra_rdoc_files:
102
102
  - LICENSE.txt
103
- - README.rdoc
103
+ - README.md
104
104
  files:
105
105
  - .document
106
106
  - .idea/.name
@@ -114,7 +114,7 @@ files:
114
114
  - Gemfile
115
115
  - Gemfile.lock
116
116
  - LICENSE.txt
117
- - README.rdoc
117
+ - README.md
118
118
  - Rakefile
119
119
  - VERSION
120
120
  - lib/pivotal-tracker-api.rb
@@ -128,6 +128,7 @@ files:
128
128
  - lib/pivotal-tracker-api/project.rb
129
129
  - lib/pivotal-tracker-api/story.rb
130
130
  - lib/pivotal-tracker-api/task.rb
131
+ - pivotal-tracker-api.gemspec
131
132
  - test/helper.rb
132
133
  - test/test_pivotal-tracker-api.rb
133
134
  homepage: http://github.com/atljeremy/pivotal-tracker-api
@@ -150,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
151
  version: '0'
151
152
  requirements: []
152
153
  rubyforge_project:
153
- rubygems_version: 2.0.8
154
+ rubygems_version: 2.2.0
154
155
  signing_key:
155
156
  specification_version: 4
156
157
  summary: A ruby gem to communicate with the Picotal Tracker API v5
@@ -1,19 +0,0 @@
1
- = pivotal-tracker-api
2
-
3
- Description goes here.
4
-
5
- == Contributing to pivotal-tracker-api
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 jfox. See LICENSE.txt for
18
- further details.
19
-