pivotal_sync 0.0.1

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.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rest-client"
4
+ gem "happymapper"
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Brandon Hansen
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,121 @@
1
+ # PivotalSync
2
+
3
+ Pull from the [Pivotal Tracker V4 API](https://www.pivotaltracker.com/help/api?version=v4).
4
+ Gives access to projects, iterations, stories, memberships, attachments, comments, tasks and integrations.
5
+
6
+ ### Mappings
7
+
8
+ #### Project
9
+ id, Integer
10
+ name, String
11
+ iteration_length, Integer
12
+ week_start, String
13
+ point_scale, String
14
+ velocity_scheme, String
15
+ current_velocity, Integer
16
+ initial_velocity, Integer
17
+ number_of_done_iterations_to_show, Integer
18
+ labels, String
19
+ allow_attachments, Boolean
20
+ public, Boolean
21
+ use_https, Boolean
22
+ bugs_and_chores_are_estimatable, Boolean
23
+ comit_mode, Boolean
24
+ last_activity_at, DateTime
25
+
26
+
27
+ #### Iteraion
28
+ id, Integer
29
+ number, Integer
30
+ start, DateTime
31
+ finish, DateTime
32
+ team_strength, Float
33
+
34
+ #### Story
35
+ id, Integer
36
+ project_id, Integer
37
+ story_type, String
38
+ url, String
39
+ estimate_type, Float
40
+ current_state, String
41
+ description, String
42
+ name, String
43
+ requested_by, String
44
+ owned_by, String
45
+ created_at, DateTime
46
+ accepted_at, DateTime
47
+ labels, String
48
+
49
+ #### Task
50
+ id, Integer
51
+ description, String
52
+ position, Integer
53
+ complete, Boolean
54
+ created_at, DateTime
55
+
56
+ #### Comment
57
+ id, Integer
58
+ text, String
59
+ created_at, DateTime
60
+ person_name, String
61
+ person_initials, String
62
+
63
+ #### Integration
64
+ id, Integer
65
+ type, String
66
+ name, String
67
+ field_name, String
68
+ field_label, String
69
+ active, Boolean
70
+
71
+ #### Attachment
72
+ id, Integer
73
+ filename, String
74
+ description, String
75
+ uploaded_by, String
76
+ uploaded_at, DateTime
77
+ url, String
78
+
79
+ #### Membership
80
+ id, Integer
81
+ role, String
82
+ name, String
83
+ email, String
84
+ initials, String
85
+
86
+ ### Associations
87
+
88
+ `project has_many :iterations`
89
+ `project has_many :stories, through: :iterations`
90
+ `iteration has_many :stories`
91
+ `story belongs_to :project`
92
+ `story has_many :attachments`
93
+ `story has_many :tasks`
94
+ `story has_many :comments`
95
+
96
+ ## Installation
97
+
98
+ Add this line to your application's Gemfile:
99
+
100
+ gem "pivotal_sync"
101
+
102
+ And then execute:
103
+
104
+ $ bundle
105
+
106
+ Or install it yourself as:
107
+
108
+ $ gem install pivotal_sync
109
+
110
+ ## Usage
111
+
112
+ `PivotalSync::Client.token = "your token"`
113
+ `projects = PivotalSync::Project.all`
114
+
115
+ ## Contributing
116
+
117
+ 1. Fork it
118
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
119
+ 3. Commit your changes (`git commit -am "Add some feature"`)
120
+ 4. Push to the branch (`git push origin my-new-feature`)
121
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,3 @@
1
+ module PivotalSync
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,6 @@
1
+ require "rest_client"
2
+ require "happymapper"
3
+
4
+ %w{version client attachment comment integration membership task story iteration project}.each do |req|
5
+ require File.join(File.dirname(__FILE__), "pivotal_sync", req)
6
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pivotal_sync/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "pivotal_sync"
8
+ spec.version = PivotalSync::VERSION
9
+ spec.authors = ["Brandon Hansen"]
10
+ spec.email = ["brandonh@ibethel.org"]
11
+ spec.description = %q{Read from the Pivotal Tracker v4 api. Next version will include pushing.}
12
+ spec.summary = %q{Read from the Pivotal Tracker v4 api}
13
+ spec.homepage = "https://github.com/ready4god2513/pivotal_sync"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pivotal_sync
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Brandon Hansen
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-03-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: Read from the Pivotal Tracker v4 api. Next version will include pushing.
47
+ email:
48
+ - brandonh@ibethel.org
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - .gitignore
54
+ - Gemfile
55
+ - LICENSE.txt
56
+ - README.md
57
+ - Rakefile
58
+ - lib/pivotal_sync.rb
59
+ - lib/pivotal_sync/version.rb
60
+ - pivotal_sync.gemspec
61
+ homepage: https://github.com/ready4god2513/pivotal_sync
62
+ licenses:
63
+ - MIT
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubyforge_project:
82
+ rubygems_version: 1.8.25
83
+ signing_key:
84
+ specification_version: 3
85
+ summary: Read from the Pivotal Tracker v4 api
86
+ test_files: []