gitcontacts 0.1.2 → 0.1.3

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: d837531ae0cd458381ab3de9f8c7de45bf66dd4d
4
- data.tar.gz: f5ac1de4f69c59e31549d5f25d4d71431d8bb378
3
+ metadata.gz: 32f8aa6d72a71df70529373d58120aaae71975a3
4
+ data.tar.gz: 76a57917abbc81ef9698eea46b94192ed3c32b50
5
5
  SHA512:
6
- metadata.gz: 86c2493fd291a5c0cc7e84648f1bb072f31fa6530f1184420839509f947d55dae13d1a3c9746f0a4fd063fb9d5b8ac04a8f2bcb6e5b557086d05fd4037af165e
7
- data.tar.gz: e2aa8858d3b06a545208e85504656552342b62ef286eb89e613748ac4c9203fdc0a54f3275348a1558591782d0d2a69d60f1887c7c135765e79f38977d6b1896
6
+ metadata.gz: b7f901de92143f961de9c289aad8b199ea3cbbc26ac9a4decd4d756f68d899624abb8b60923c7c33334678530c278a8984de77596e70b68115bec861cc2bfe56
7
+ data.tar.gz: 8c168ee166b5ade5a9263640fcc55050d3ba77680da91ad1fb07b9b678415d14cd0ec8fb953642b0f574405b18799c74bb481eda48b937f085947bfea60b7dce
data/.gitignore CHANGED
@@ -13,3 +13,5 @@
13
13
  *.a
14
14
  mkmf.log
15
15
  *.gem
16
+ storage/
17
+ cookies
@@ -1,3 +1,3 @@
1
1
  module GitContacts
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/gitcontacts.rb CHANGED
@@ -209,6 +209,12 @@ module GitContacts
209
209
  true
210
210
  end
211
211
  end
212
+
213
+ def get_contacts_user_privileges operator, gid, uid
214
+ return unless GitContacts::relation_valid?(operator, gid)
215
+ privilege = 'user' if contacts.getusers.include? uid
216
+ privilege = 'admin' if contacts.getadmins.include? uid
217
+ end
212
218
 
213
219
  # code review: @AustinChou
214
220
  def edit_contacts_user_privileges operator, gid, uid, payload
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitcontacts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - AustinChou
@@ -93,7 +93,6 @@ files:
93
93
  - LICENSE.txt
94
94
  - README.md
95
95
  - Rakefile
96
- - cookies
97
96
  - gitcontacts.gemspec
98
97
  - lib/gitcontacts.rb
99
98
  - lib/gitcontacts/Contacts.rb
data/cookies DELETED
@@ -1,5 +0,0 @@
1
- # Netscape HTTP Cookie File
2
- # http://curl.haxx.se/docs/http-cookies.html
3
- # This file was generated by libcurl! Edit at your own risk.
4
-
5
- #HttpOnly_localhost FALSE / FALSE 0 rack.session 3a6e5feac57db3dcecf80ab38c708995ca227632e583ca3de49b3dd930ed7fa3