gitroom 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/gitroom/server.rb +2 -2
  3. metadata +79 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA512:
3
- metadata.gz: 9b70a187ec96be19efadab5ec788a0b12695cf2e3b909fa00cb652a8967919f0033839a95391bb578a26171b73cceca5152867ac246b99edad2fa82bdb77109a
4
- data.tar.gz: f4c16482a278339f43310ceb14d6b279d8aa75918985bc51e09d6257c15d7f0f4353a09459d766d0a2d1e3ebfd06eb823db46b018d1c9b204ccbff992d71376a
5
2
  SHA1:
6
- metadata.gz: 8a10e96a237e14edb7fec3a971c7fbbadb7cb112
7
- data.tar.gz: aaaf090b281e4875d6beec32b4c7ea0d6e9d79fc
3
+ metadata.gz: e556bf29637701c9c7bac8d75ed120297f011505
4
+ data.tar.gz: a58dcf66a2d6c39205f0ad3b2a0ff091cacadab4
5
+ SHA512:
6
+ metadata.gz: ea0b8c6a34c9db8830343072b3bc00efe49124fd16f6b04e8e73f7fbe7e2442fa88cf163e266d4b279ca19c8d5a976ed03a547d9cfcd74deeeec3bbbc764c2ee
7
+ data.tar.gz: bd412da96fb6a432a968e1725b3a9b9f19c8fff8654f6a01ff68cf158283e3ba69b73301d96081a00a272c782d86c06f1dc37a52f517ec9f767338799e930e84
@@ -9,7 +9,7 @@ module GitRoom
9
9
  def self.serve(user)
10
10
  permissions = 'rw'
11
11
  command = ENV['SSH_ORIGINAL_COMMAND']
12
- abort unless user and permissions and command
12
+ abort unless user && permissions && command
13
13
 
14
14
  STDERR.write ENV.to_hash.to_yaml
15
15
 
@@ -22,7 +22,7 @@ module GitRoom
22
22
  abort unless valid_actions.include? action
23
23
 
24
24
  abort "read denied for #{user}" unless permissions =~ /r/
25
- abort "write denied for #{user}" if action == 'git-receive-pack' and permissions !~ /w/
25
+ abort "write denied for #{user}" if action == 'git-receive-pack' && permissions !~ /w/
26
26
 
27
27
  STDERR.write "user #{user} authorized\n"
28
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitroom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Fedorov (waterlink)
@@ -10,8 +10,82 @@ bindir: bin
10
10
  cert_chain: []
11
11
 
12
12
  date: 2013-08-01 00:00:00 Z
13
- dependencies: []
14
-
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: git
16
+ prerelease: false
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - &id002
20
+ - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
23
+ type: :runtime
24
+ version_requirements: *id001
25
+ - !ruby/object:Gem::Dependency
26
+ name: rfuse
27
+ prerelease: false
28
+ requirement: &id003 !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - *id002
31
+ type: :runtime
32
+ version_requirements: *id003
33
+ - !ruby/object:Gem::Dependency
34
+ name: activerecord
35
+ prerelease: false
36
+ requirement: &id004 !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - *id002
39
+ type: :runtime
40
+ version_requirements: *id004
41
+ - !ruby/object:Gem::Dependency
42
+ name: pg
43
+ prerelease: false
44
+ requirement: &id005 !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - *id002
47
+ type: :runtime
48
+ version_requirements: *id005
49
+ - !ruby/object:Gem::Dependency
50
+ name: sqlite3
51
+ prerelease: false
52
+ requirement: &id006 !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - *id002
55
+ type: :runtime
56
+ version_requirements: *id006
57
+ - !ruby/object:Gem::Dependency
58
+ name: standalone_migrations
59
+ prerelease: false
60
+ requirement: &id007 !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - *id002
63
+ type: :runtime
64
+ version_requirements: *id007
65
+ - !ruby/object:Gem::Dependency
66
+ name: json
67
+ prerelease: false
68
+ requirement: &id008 !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - *id002
71
+ type: :runtime
72
+ version_requirements: *id008
73
+ - !ruby/object:Gem::Dependency
74
+ name: redis
75
+ prerelease: false
76
+ requirement: &id009 !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - *id002
79
+ type: :runtime
80
+ version_requirements: *id009
81
+ - !ruby/object:Gem::Dependency
82
+ name: hiredis
83
+ prerelease: false
84
+ requirement: &id010 !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - *id002
87
+ type: :runtime
88
+ version_requirements: *id010
15
89
  description: Simplest git server with permissions
16
90
  email: waterlink000@gmail.com
17
91
  executables:
@@ -46,13 +120,10 @@ require_paths:
46
120
  - lib
47
121
  required_ruby_version: !ruby/object:Gem::Requirement
48
122
  requirements:
49
- - &id001
50
- - ">="
51
- - !ruby/object:Gem::Version
52
- version: "0"
123
+ - *id002
53
124
  required_rubygems_version: !ruby/object:Gem::Requirement
54
125
  requirements:
55
- - *id001
126
+ - *id002
56
127
  requirements: []
57
128
 
58
129
  rubyforge_project: