gritano 0.1.5 → 0.1.6
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/README.rdoc +1 -1
- data/TODO +0 -3
- data/VERSION +1 -1
- data/gritano.gemspec +2 -2
- data/lib/gritano/console.rb +6 -1
- metadata +3 -3
data/README.rdoc
CHANGED
data/TODO
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.6
|
data/gritano.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "gritano"
|
|
8
|
-
s.version = "0.1.
|
|
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 = ["Igor Bonadio"]
|
|
12
|
-
s.date = "2012-10-
|
|
12
|
+
s.date = "2012-10-30"
|
|
13
13
|
s.description = "Gritano is the simplest way to configure your git server over ssh. You can create repositories and manage user access."
|
|
14
14
|
s.email = "igorbonadio@gmail.com"
|
|
15
15
|
s.executables = ["gritano", "gritano-check"]
|
data/lib/gritano/console.rb
CHANGED
|
@@ -97,7 +97,12 @@ module Gritano
|
|
|
97
97
|
users = repo.users
|
|
98
98
|
msg = "Users:\n"
|
|
99
99
|
users.each do |user|
|
|
100
|
-
|
|
100
|
+
permissions = ""
|
|
101
|
+
user.permissions.find_by_repository_id(repo.id) do |p|
|
|
102
|
+
permissions += "r" if p.is(:read)
|
|
103
|
+
permissions += "w" if p.is(:write)
|
|
104
|
+
end
|
|
105
|
+
msg += " - #{user.login}\t #{permissions}\n"
|
|
101
106
|
end
|
|
102
107
|
msg = "No user have access to this repository" if users.count == 0
|
|
103
108
|
return [true, msg]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gritano
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
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: 2012-10-
|
|
12
|
+
date: 2012-10-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|
|
@@ -245,7 +245,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
245
245
|
version: '0'
|
|
246
246
|
segments:
|
|
247
247
|
- 0
|
|
248
|
-
hash:
|
|
248
|
+
hash: 1774883244443288831
|
|
249
249
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
250
|
none: false
|
|
251
251
|
requirements:
|