giticious 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acada4842db7f14d220bb86cd07d8aabafa3a6d9
4
- data.tar.gz: d485ffc5d4cfa8c5979354cce9b39ba8555a1b93
3
+ metadata.gz: daa98d13016e554886d9b2b6412da7aa00697e5c
4
+ data.tar.gz: 462ce7d8140b3fd8619adabcd0e73e492bf1c899
5
5
  SHA512:
6
- metadata.gz: 49cbf4c80dfb011a48bcca513d3c1210c409167816046a8ea5598c59f035adb82dc2fd209e6cc5550feb7439ee1dac4e9141feef2ad6310aec2032251a1c2db6
7
- data.tar.gz: 01bed9e5aa38515c54cef7fa9a2397e67356fd120107dbcbd67058ad52317170db341e3adedfa04a66257bc3b5e1939f530d45ce421bf29af9c7c2009cc5ac32
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.8.0)
5
- activerecord (~> 4.2.0)
6
- sqlite3 (~> 1.3.0)
7
- terminal-table (~> 1.4.5)
8
- thor (~> 0.19.1)
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.5)
14
- activesupport (= 4.2.5)
13
+ activemodel (4.2.7.1)
14
+ activesupport (= 4.2.7.1)
15
15
  builder (~> 3.1)
16
- activerecord (4.2.5)
17
- activemodel (= 4.2.5)
18
- activesupport (= 4.2.5)
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.5)
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.8.3)
30
+ minitest (5.9.1)
31
31
  rake (10.4.2)
32
- sqlite3 (1.3.11)
33
- terminal-table (1.4.5)
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
@@ -0,0 +1,8 @@
1
+ docker:
2
+ docker run -it --rm -v ${PWD}:/app -w /app centos/ruby-22-centos7 /bin/bash
3
+
4
+ build:
5
+ gem build giticious.gemspec
6
+
7
+ release: build
8
+ gem push giticious-*.gem
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 Expat'
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.find_by_user(username).first!
30
+ user = Giticious::Model::User.find_by_username(username)
31
31
 
32
- Giticious::Model::Permission.find_by_user_id(user.id).delete_all!
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
@@ -1,3 +1,3 @@
1
1
  module Giticious
2
- VERSION = "0.9.4"
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
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: 2015-12-13 00:00:00.000000000 Z
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 Expat
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.4.8
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