dcuddeback-octopi 0.2.11 → 0.2.12
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 +1 -0
- data/VERSION.yml +1 -1
- data/dcuddeback-octopi.gemspec +2 -2
- data/lib/octopi/repository.rb +1 -1
- data/test/repository_test.rb +2 -1
- metadata +4 -4
data/.gitignore
CHANGED
data/VERSION.yml
CHANGED
data/dcuddeback-octopi.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dcuddeback-octopi}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.12"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Felipe Coury", "David Cuddeback"]
|
12
|
-
s.date = %q{2010-07-
|
12
|
+
s.date = %q{2010-07-23}
|
13
13
|
s.email = %q{david.cuddeback@gmail.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
data/lib/octopi/repository.rb
CHANGED
@@ -109,7 +109,7 @@ module Octopi
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def collaborators
|
112
|
-
property('collaborators', [self.owner, self.name].join('/')).values.map { |v| User.find(v
|
112
|
+
property('collaborators', [self.owner, self.name].join('/')).values.flatten.map { |v| User.find(v) }
|
113
113
|
end
|
114
114
|
|
115
115
|
def deploy_keys
|
data/test/repository_test.rb
CHANGED
@@ -97,8 +97,9 @@ class RepositoryTest < Test::Unit::TestCase
|
|
97
97
|
should "be able to find all collaborators" do
|
98
98
|
@collaborators = @repository.collaborators
|
99
99
|
assert_not_nil @collaborators
|
100
|
-
assert_equal
|
100
|
+
assert_equal 2, @collaborators.size
|
101
101
|
assert @collaborators.first.is_a?(User)
|
102
|
+
assert @collaborators.last.is_a?(User)
|
102
103
|
end
|
103
104
|
|
104
105
|
should "be able to create a repository" do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dcuddeback-octopi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 12
|
10
|
+
version: 0.2.12
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Felipe Coury
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-07-
|
19
|
+
date: 2010-07-23 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|