ruby_tfs 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +2 -2
- data/lib/tfs/branches.rb +19 -0
- data/lib/tfs/changeset_merges.rb +5 -0
- data/lib/tfs/class_helpers.rb +1 -1
- data/lib/tfs/configuration.rb +2 -1
- data/lib/tfs/projects.rb +3 -1
- data/lib/tfs/query_engine.rb +5 -1
- data/ruby_tfs.gemspec +1 -1
- metadata +11 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4aef9a6669f7533eaeb4e189386abab270545fdf
|
4
|
+
data.tar.gz: 84cdac4388dc0ee2b71b3b0102b07fac76f295d2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3e2282d0eb289c89b75f4c17408f7bb26601b17b7dc80360341c4b868ce4a79acb243edcd48ba9ef184fb829822d35c07a88ecc9c215a6d9d4ea5f123cb13b9a
|
7
|
+
data.tar.gz: 7a1880b1013e9cc33afcaa554b7e33148d2bc39e5c448d1f4727a7952f740081d2ef59fe3eedb9f96bf436c8c07ce9800281f171b1d670e17e633c4580cb3e49
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ The [TFS OData api][1] supports the following object types (* = not implemented)
|
|
18
18
|
- *Build Definitions
|
19
19
|
- Changesets
|
20
20
|
- Changes
|
21
|
-
-
|
21
|
+
- Branches
|
22
22
|
- WorkItems
|
23
23
|
- *Attachments
|
24
24
|
- *Links
|
@@ -47,4 +47,4 @@ Apache v2
|
|
47
47
|
See the LICENSE.md file for more details.
|
48
48
|
|
49
49
|
[1]: https://tfsodata.visualstudio.com/
|
50
|
-
[2]: https://github.com/visoft/ruby_odata
|
50
|
+
[2]: https://github.com/visoft/ruby_odata
|
data/lib/tfs/branches.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'tfs/changesets'
|
2
|
+
require 'tfs/changeset_merges'
|
3
|
+
|
4
|
+
module TFS
|
5
|
+
class Branches < Queryable
|
6
|
+
add_child TFS::Changesets
|
7
|
+
add_child TFS::ChangesetMerges
|
8
|
+
|
9
|
+
class << self
|
10
|
+
# Branch can be found by path of the form $>Collection>Project
|
11
|
+
#
|
12
|
+
# TFS::Branches.find($>DefaultCollection>Project)
|
13
|
+
#
|
14
|
+
def find(path)
|
15
|
+
TFS.branches(path).run.first
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/tfs/class_helpers.rb
CHANGED
@@ -9,7 +9,7 @@ module TFS
|
|
9
9
|
base_class(name).downcase
|
10
10
|
end
|
11
11
|
|
12
|
-
SPECIAL_CASES = { workitems: "WorkItems", areapaths: "AreaPaths" }
|
12
|
+
SPECIAL_CASES = { workitems: "WorkItems", areapaths: "AreaPaths", changesetmerges: "ChangesetMerges" }
|
13
13
|
|
14
14
|
def odata_class_from_method_name(method_name)
|
15
15
|
return SPECIAL_CASES[method_name] if SPECIAL_CASES.has_key? method_name
|
data/lib/tfs/configuration.rb
CHANGED
data/lib/tfs/projects.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
require 'tfs/work_items'
|
2
|
+
require 'tfs/branches'
|
2
3
|
|
3
4
|
module TFS
|
4
5
|
class Projects < Queryable
|
5
6
|
add_child TFS::WorkItems
|
6
7
|
add_child TFS::Builds
|
7
8
|
add_child TFS::Changesets
|
9
|
+
add_child TFS::Branches
|
8
10
|
|
9
11
|
class << self
|
10
12
|
# Projects can be found by name alone
|
@@ -16,4 +18,4 @@ module TFS
|
|
16
18
|
end
|
17
19
|
end
|
18
20
|
end
|
19
|
-
end
|
21
|
+
end
|
data/lib/tfs/query_engine.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
require 'tfs/queryable'
|
2
|
+
require 'tfs/branches'
|
2
3
|
require 'tfs/builds'
|
3
4
|
require 'tfs/changesets'
|
4
5
|
require 'tfs/changes'
|
5
6
|
require 'tfs/projects'
|
6
7
|
require 'tfs/work_items'
|
7
8
|
require 'tfs/area_paths'
|
9
|
+
require 'tfs/changeset_merges'
|
8
10
|
|
9
11
|
module TFS
|
10
12
|
class QueryEngine
|
@@ -16,12 +18,14 @@ module TFS
|
|
16
18
|
|
17
19
|
# Classes we currently support queries on
|
18
20
|
VALID_CLASSES = [
|
21
|
+
TFS::Branches,
|
19
22
|
TFS::Builds,
|
20
23
|
TFS::Changesets,
|
21
24
|
TFS::Projects,
|
22
25
|
TFS::WorkItems,
|
23
26
|
TFS::Changes,
|
24
|
-
TFS::AreaPaths
|
27
|
+
TFS::AreaPaths,
|
28
|
+
TFS::ChangesetMerges
|
25
29
|
]
|
26
30
|
|
27
31
|
# Default pagination `#all` limit
|
data/ruby_tfs.gemspec
CHANGED
metadata
CHANGED
@@ -1,36 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_tfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Luke van der Hoeven
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-10-01 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: ruby_odata
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: bundler
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -55,8 +50,10 @@ files:
|
|
55
50
|
- README.md
|
56
51
|
- ruby_tfs.gemspec
|
57
52
|
- lib/tfs/area_paths.rb
|
53
|
+
- lib/tfs/branches.rb
|
58
54
|
- lib/tfs/builds.rb
|
59
55
|
- lib/tfs/changes.rb
|
56
|
+
- lib/tfs/changeset_merges.rb
|
60
57
|
- lib/tfs/changesets.rb
|
61
58
|
- lib/tfs/class_helpers.rb
|
62
59
|
- lib/tfs/client.rb
|
@@ -87,30 +84,26 @@ files:
|
|
87
84
|
homepage: https://github.com/BFGCOMMUNICATIONS/ruby_tfs
|
88
85
|
licenses:
|
89
86
|
- APLv2
|
87
|
+
metadata: {}
|
90
88
|
post_install_message:
|
91
89
|
rdoc_options: []
|
92
90
|
require_paths:
|
93
91
|
- lib
|
94
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
93
|
requirements:
|
97
|
-
- -
|
94
|
+
- - '>='
|
98
95
|
- !ruby/object:Gem::Version
|
99
96
|
version: '0'
|
100
|
-
segments:
|
101
|
-
- 0
|
102
|
-
hash: 4570457446438546844
|
103
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
98
|
requirements:
|
106
|
-
- -
|
99
|
+
- - '>='
|
107
100
|
- !ruby/object:Gem::Version
|
108
101
|
version: 1.3.6
|
109
102
|
requirements: []
|
110
103
|
rubyforge_project:
|
111
|
-
rubygems_version:
|
104
|
+
rubygems_version: 2.0.6
|
112
105
|
signing_key:
|
113
|
-
specification_version:
|
106
|
+
specification_version: 4
|
114
107
|
summary: A Ruby interface to the TFS OData API.
|
115
108
|
test_files:
|
116
109
|
- spec/fixtures/cassettes/area_paths.yml
|