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.
@@ -1,4 +1,4 @@
1
- = Gritano v0.1.5
1
+ = Gritano v0.1.6
2
2
 
3
3
  Gritano is the simplest way to configure a git server over ssh. You can create repositories and manage user access using this practical tool.
4
4
 
data/TODO CHANGED
@@ -1,6 +1,3 @@
1
- v0.1.6
2
- - exibir o tipo de acesso do usuario pelo commando repo users
3
-
4
1
  v0.2.0
5
2
  - acesso do usuário via ssh
6
3
  ssh git@host.com repos
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gritano"
8
- s.version = "0.1.5"
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-13"
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"]
@@ -97,7 +97,12 @@ module Gritano
97
97
  users = repo.users
98
98
  msg = "Users:\n"
99
99
  users.each do |user|
100
- msg += " - #{user.login}\n"
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.5
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-13 00:00:00.000000000 Z
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: -72039970687723004
248
+ hash: 1774883244443288831
249
249
  required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  none: false
251
251
  requirements: