repository-manager 0.2.0 → 0.2.1

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: cf952fb3752184fb64aa5278be4d0d0f12efd79b
4
- data.tar.gz: c16ab36bac207d748e4ed0acb716b141cb616e12
3
+ metadata.gz: e1e5f978c5051186f41883c8c77158e6158828be
4
+ data.tar.gz: 52a66c07f18e1d37ed4a4d457835b1ae0de9d140
5
5
  SHA512:
6
- metadata.gz: bb2137ad712f97e313e27ce012fe4a909de4134d92be97845f66605c3e7343c155596102debac1634dc931ed9651a41d9931e06009a4471f8a4e18da8eedb94d
7
- data.tar.gz: 54138b1cef9e644e8037eac0482d2987d7bd5e3a9862af381d193c4a432fc0c322b417802322bd95f018a34135a4e21344847b80723649d28216bccb6fe10c10
6
+ metadata.gz: a7bcfa49b4121c96410a4fc5b0456735b7776e61086b00c8ab07f16ae5cd75b014a8fa1ace5eda185b77543f297f3a3366a38adfd17caa69c695a2fab59f9d2b
7
+ data.tar.gz: 3abbdfc0675b21a40a6d30f4b9f158599780db73082cebfd874d3a25b407ec12f409fae62afa6e544d6b4918e477b01b1c33cd2283279443047c66133a209ad1
data/README.md CHANGED
@@ -1,18 +1,14 @@
1
- WORK IN PROGRESS, but it already works !
2
-
3
1
  Ruby on Rails plugin (gem) for managing repositories (files/folders/permissions/sharing).
4
2
 
5
- # RepositoryManager [![Gem Version](https://badge.fury.io/rb/repository-manager.png)](http://badge.fury.io/rb/repository-manager)
3
+ # Repository Manager [![Gem Version](https://badge.fury.io/rb/repository-manager.png)](http://badge.fury.io/rb/repository-manager)
6
4
 
7
- This gem add functionalities to manage repositories. Each instance (users, groups, etc..) can have it own repository (with files and folders). It can manage them (edit, remove, add, etc) and share them with other objects.
5
+ This gem add functionalities to manage files and folders (repositories). Each instance (users, groups, etc..) has it own repository (with files and folders). It can manage them (create, edit, remove, copy, move, etc) and share them with other objects.
8
6
 
9
7
  This project is based on the need for a repository manager system for [Collaide](https://github.com/facenord-sud/collaide). A system for easily create/delete files and folders in a repository. For sharing these "repo items" easily with other object with a flexible and complete permissions management.
10
8
 
11
- Instead of creating my core repository manager system heavily
12
- dependent on our development, I'm trying to implement a generic and potent repository gem.
9
+ Instead of creating my core repository manager system heavily dependent on our development, I'm trying to implement a generic and potent repository gem.
13
10
 
14
- After looking for a good gem to use I noticed the lack of repository gems
15
- and flexibility in them. RepositoryManager tries to be the more flexible possible.
11
+ After looking for a good gem to use I noticed the lack of repository gems and flexibility in them. Repository Manager tries to be the more easy, light and flexible possible.
16
12
 
17
13
  This gem is my informatics project for the Master in [University of Lausanne (CH)](http://www.unil.ch/index.html).
18
14
 
@@ -45,7 +41,7 @@ $ rake db:migrate
45
41
 
46
42
  ## Settings
47
43
 
48
- You can edit the RepositoryManager settings in the initializer (/config/initializer/repository_manager.rb).
44
+ You can edit the RepositoryManager settings in the initializer (config/initializer/repository_manager.rb).
49
45
 
50
46
  ```ruby
51
47
  RepositoryManager.setup do |config|
@@ -102,7 +98,7 @@ class Group < ActiveRecord::Base
102
98
  end
103
99
  ```
104
100
 
105
- ## How to use RepositoryManager
101
+ ## How to use Repository Manager
106
102
 
107
103
  ### Introduction
108
104
 
@@ -3,9 +3,9 @@ class CreateRepositoryManager < ActiveRecord::Migration
3
3
  def change
4
4
 
5
5
  create_table :rm_sharings do |t|
6
- t.references :owner, polymorphic: true#, index: true
7
- t.references :creator, polymorphic: true#, index: true
8
- t.references :repo_item#, index: true
6
+ t.references :owner, polymorphic: true, index: true
7
+ t.references :creator, polymorphic: true, index: true
8
+ t.references :repo_item, index: true
9
9
  t.boolean :can_create, :default => false
10
10
  t.boolean :can_read, :default => false
11
11
  t.boolean :can_update, :default => false
@@ -14,15 +14,15 @@ class CreateRepositoryManager < ActiveRecord::Migration
14
14
  end
15
15
 
16
16
  create_table :rm_sharings_members do |t|
17
- t.references :sharing
18
- t.references :member, polymorphic: true
17
+ t.references :sharing, index: true
18
+ t.references :member, polymorphic: true, index: true
19
19
  t.boolean :can_add, :default => false
20
20
  t.boolean :can_remove, :default => false
21
21
  end
22
22
 
23
23
  create_table :rm_repo_items do |t|
24
- t.references :owner, polymorphic: true#, index: true
25
- t.references :sender, polymorphic: true#, index: true
24
+ t.references :owner, polymorphic: true, index: true
25
+ t.references :sender, polymorphic: true, index: true
26
26
  t.string :ancestry
27
27
  t.integer :ancestry_depth, :default => 0
28
28
  t.string :name
@@ -1,3 +1,3 @@
1
1
  module RepositoryManager
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -10,14 +10,13 @@ Gem::Specification.new do |s|
10
10
  s.authors = ['Yves Baumann']
11
11
  s.email = ['texicitys@gmail.com']
12
12
  s.homepage = 'https://github.com/Texicitys/repository-manager'
13
- s.summary = "Ruby on Rails plugin (gem) for managing repositories (files/folders/permissions/sharings)."
14
- s.description = "This project is based on the need for a repository manager system for Collaide. A system for easily create/delete files and folders in a repository. For sharing these repositories easily with other object with a flexible and complete permissions management.
15
- Each instance (users, groups, etc..) can have it own repositories (with files and folders). It can manage them easily (edit, remove, add, etc) and sharing them with other instance."
16
-
17
- #s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
13
+ s.summary = "Ruby on Rails plugin (gem) for managing repositories ( files / folders / permissions / sharings )."
14
+ #s.description = "Repository Manager help you to easily manage your files and folders. Each instance has its own repository. You can share these items with other instance with a complet flexible permission control. "
15
+ s.description = "This project is based on the need for a system for easily create/delete files and folders in a repository. For sharing these repositories easily with other object with a flexible and complete permissions management. Each instance (users, groups, etc..) can have it own repositories (with files and folders). It can manage them easily (create, delete, edit, move, copy, etc) and sharing them with other instance."
16
+
18
17
  s.files = `git ls-files`.split("\n")
19
18
  s.test_files = `git ls-files -- spec/*`.split("\n")
20
- #s.test_files = Dir["spec/**/*"]
19
+
21
20
  s.license = 'MIT'
22
21
 
23
22
  s.add_runtime_dependency('rails', '> 3.0.0')
@@ -28,4 +27,4 @@ Each instance (users, groups, etc..) can have it own repositories (with files an
28
27
  s.add_runtime_dependency 'ancestry'
29
28
  s.add_runtime_dependency('carrierwave', '>= 0.5.8')
30
29
  s.add_runtime_dependency 'rubyzip', '>= 1.0.0'#, :require => 'zip/zip'
31
- end
30
+ end
@@ -3,9 +3,9 @@ class CreateRepositoryManager < ActiveRecord::Migration
3
3
  def change
4
4
 
5
5
  create_table :rm_sharings do |t|
6
- t.references :owner, polymorphic: true#, index: true
7
- t.references :creator, polymorphic: true#, index: true
8
- t.references :repo_item#, index: true
6
+ t.references :owner, polymorphic: true, index: true
7
+ t.references :creator, polymorphic: true, index: true
8
+ t.references :repo_item, index: true
9
9
  t.boolean :can_create, :default => false
10
10
  t.boolean :can_read, :default => false
11
11
  t.boolean :can_update, :default => false
@@ -14,15 +14,15 @@ class CreateRepositoryManager < ActiveRecord::Migration
14
14
  end
15
15
 
16
16
  create_table :rm_sharings_members do |t|
17
- t.references :sharing
18
- t.references :member, polymorphic: true
17
+ t.references :sharing, index: true
18
+ t.references :member, polymorphic: true, index: true
19
19
  t.boolean :can_add, :default => false
20
20
  t.boolean :can_remove, :default => false
21
21
  end
22
22
 
23
23
  create_table :rm_repo_items do |t|
24
- t.references :owner, polymorphic: true#, index: true
25
- t.references :sender, polymorphic: true#, index: true
24
+ t.references :owner, polymorphic: true, index: true
25
+ t.references :sender, polymorphic: true, index: true
26
26
  t.string :ancestry
27
27
  t.integer :ancestry_depth, :default => 0
28
28
  t.string :name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repository-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yves Baumann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-09 00:00:00.000000000 Z
11
+ date: 2014-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -108,9 +108,12 @@ dependencies:
108
108
  - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.0.0
111
- description: |-
112
- This project is based on the need for a repository manager system for Collaide. A system for easily create/delete files and folders in a repository. For sharing these repositories easily with other object with a flexible and complete permissions management.
113
- Each instance (users, groups, etc..) can have it own repositories (with files and folders). It can manage them easily (edit, remove, add, etc) and sharing them with other instance.
111
+ description: This project is based on the need for a system for easily create/delete
112
+ files and folders in a repository. For sharing these repositories easily with other
113
+ object with a flexible and complete permissions management. Each instance (users,
114
+ groups, etc..) can have it own repositories (with files and folders). It can manage
115
+ them easily (create, delete, edit, move, copy, etc) and sharing them with other
116
+ instance.
114
117
  email:
115
118
  - texicitys@gmail.com
116
119
  executables: []
@@ -217,7 +220,8 @@ rubyforge_project:
217
220
  rubygems_version: 2.2.1
218
221
  signing_key:
219
222
  specification_version: 4
220
- summary: Ruby on Rails plugin (gem) for managing repositories (files/folders/permissions/sharings).
223
+ summary: Ruby on Rails plugin (gem) for managing repositories ( files / folders /
224
+ permissions / sharings ).
221
225
  test_files:
222
226
  - spec/dummy/Gemfile
223
227
  - spec/dummy/README.rdoc