giticious 0.9.4 → 0.9.5
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +16 -17
- data/Makefile +8 -0
- data/bin/giticious +2 -2
- data/giticious.gemspec +2 -2
- data/lib/giticious/service/user.rb +7 -3
- data/lib/giticious/version.rb +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: daa98d13016e554886d9b2b6412da7aa00697e5c
|
|
4
|
+
data.tar.gz: 462ce7d8140b3fd8619adabcd0e73e492bf1c899
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 926ffc181962b875efab4481861ec95053481910440577fbf21be848a3735f44ed9ed7703858c39de22296606f7dff5c47821aeff671b6d74a06068eb5fb77c2
|
|
7
|
+
data.tar.gz: d0bd6647c3eb1ed7d42c5c0ec154aa4c5c24191d2c30503125e4d8b9daa98b837e8acd3978b2c45b216b19fefebabc5eb204464b85cb04997ad325107824e875
|
data/Gemfile.lock
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
giticious (0.
|
|
5
|
-
activerecord (~> 4.2
|
|
6
|
-
sqlite3 (~> 1.3
|
|
7
|
-
terminal-table (~> 1.4
|
|
8
|
-
thor (~> 0.19
|
|
4
|
+
giticious (0.9.4)
|
|
5
|
+
activerecord (~> 4.2)
|
|
6
|
+
sqlite3 (~> 1.3)
|
|
7
|
+
terminal-table (~> 1.4)
|
|
8
|
+
thor (~> 0.19)
|
|
9
9
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
activemodel (4.2.
|
|
14
|
-
activesupport (= 4.2.
|
|
13
|
+
activemodel (4.2.7.1)
|
|
14
|
+
activesupport (= 4.2.7.1)
|
|
15
15
|
builder (~> 3.1)
|
|
16
|
-
activerecord (4.2.
|
|
17
|
-
activemodel (= 4.2.
|
|
18
|
-
activesupport (= 4.2.
|
|
16
|
+
activerecord (4.2.7.1)
|
|
17
|
+
activemodel (= 4.2.7.1)
|
|
18
|
+
activesupport (= 4.2.7.1)
|
|
19
19
|
arel (~> 6.0)
|
|
20
|
-
activesupport (4.2.
|
|
20
|
+
activesupport (4.2.7.1)
|
|
21
21
|
i18n (~> 0.7)
|
|
22
22
|
json (~> 1.7, >= 1.7.7)
|
|
23
23
|
minitest (~> 5.1)
|
|
@@ -27,14 +27,16 @@ GEM
|
|
|
27
27
|
builder (3.2.2)
|
|
28
28
|
i18n (0.7.0)
|
|
29
29
|
json (1.8.3)
|
|
30
|
-
minitest (5.
|
|
30
|
+
minitest (5.9.1)
|
|
31
31
|
rake (10.4.2)
|
|
32
|
-
sqlite3 (1.3.
|
|
33
|
-
terminal-table (1.
|
|
32
|
+
sqlite3 (1.3.12)
|
|
33
|
+
terminal-table (1.7.3)
|
|
34
|
+
unicode-display_width (~> 1.1.1)
|
|
34
35
|
thor (0.19.1)
|
|
35
36
|
thread_safe (0.3.5)
|
|
36
37
|
tzinfo (1.2.2)
|
|
37
38
|
thread_safe (~> 0.1)
|
|
39
|
+
unicode-display_width (1.1.1)
|
|
38
40
|
|
|
39
41
|
PLATFORMS
|
|
40
42
|
ruby
|
|
@@ -43,6 +45,3 @@ DEPENDENCIES
|
|
|
43
45
|
bundler (~> 1.7)
|
|
44
46
|
giticious!
|
|
45
47
|
rake (~> 10.0)
|
|
46
|
-
|
|
47
|
-
BUNDLED WITH
|
|
48
|
-
1.10.6
|
data/Makefile
ADDED
data/bin/giticious
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/ruby
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
2
|
require 'thor'
|
|
3
3
|
|
|
4
4
|
THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
|
|
@@ -9,4 +9,4 @@ require File.join(File.dirname(THIS_FILE), '../lib/giticious/cli/pubkey.rb')
|
|
|
9
9
|
require File.join(File.dirname(THIS_FILE), '../lib/giticious/cli/user.rb')
|
|
10
10
|
require File.join(File.dirname(THIS_FILE), '../lib/giticious/cli/main.rb')
|
|
11
11
|
|
|
12
|
-
Giticious::Cli::Main.start(ARGV)
|
|
12
|
+
Giticious::Cli::Main.start(ARGV)
|
data/giticious.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.summary = %q{Giticious is a simple Git with user management}
|
|
12
12
|
spec.description = ''
|
|
13
13
|
spec.homepage = 'http://dprandzioch.github.io/giticious/'
|
|
14
|
-
spec.license = 'MIT
|
|
14
|
+
spec.license = 'MIT'
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
|
17
17
|
spec.executables = ['giticious']
|
|
@@ -27,4 +27,4 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.add_dependency 'thor', '~> 0.19'
|
|
28
28
|
spec.add_dependency 'sqlite3', '~> 1.3'
|
|
29
29
|
spec.add_dependency 'activerecord', '~> 4.2'
|
|
30
|
-
end
|
|
30
|
+
end
|
|
@@ -27,9 +27,13 @@ module Giticious
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def delete_by_username(username)
|
|
30
|
-
user = Giticious::Model::User.
|
|
30
|
+
user = Giticious::Model::User.find_by_username(username)
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
if user.nil?
|
|
33
|
+
raise ArgumentError, "The selected user does not exist"
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
Giticious::Model::Permission.where(user_id: user.id).delete_all
|
|
33
37
|
|
|
34
38
|
user.destroy!
|
|
35
39
|
end
|
|
@@ -40,4 +44,4 @@ module Giticious
|
|
|
40
44
|
|
|
41
45
|
end
|
|
42
46
|
end
|
|
43
|
-
end
|
|
47
|
+
end
|
data/lib/giticious/version.rb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module Giticious
|
|
2
|
-
VERSION = "0.9.
|
|
3
|
-
end
|
|
2
|
+
VERSION = "0.9.5"
|
|
3
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: giticious
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Prandzioch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -105,6 +105,7 @@ files:
|
|
|
105
105
|
- Gemfile
|
|
106
106
|
- Gemfile.lock
|
|
107
107
|
- LICENSE
|
|
108
|
+
- Makefile
|
|
108
109
|
- README.md
|
|
109
110
|
- Rakefile
|
|
110
111
|
- Vagrantfile
|
|
@@ -128,7 +129,7 @@ files:
|
|
|
128
129
|
- lib/giticious/version.rb
|
|
129
130
|
homepage: http://dprandzioch.github.io/giticious/
|
|
130
131
|
licenses:
|
|
131
|
-
- MIT
|
|
132
|
+
- MIT
|
|
132
133
|
metadata: {}
|
|
133
134
|
post_install_message:
|
|
134
135
|
rdoc_options: []
|
|
@@ -146,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
146
147
|
version: '0'
|
|
147
148
|
requirements: []
|
|
148
149
|
rubyforge_project:
|
|
149
|
-
rubygems_version: 2.
|
|
150
|
+
rubygems_version: 2.5.1
|
|
150
151
|
signing_key:
|
|
151
152
|
specification_version: 4
|
|
152
153
|
summary: Giticious is a simple Git with user management
|