permission 0.0.2 → 0.0.3
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/lib/generators/permission/install_generator.rb +13 -13
- data/lib/permission/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4978d59b2445b5e45cd84be6a7c765912458b717
|
|
4
|
+
data.tar.gz: 62b56d38c936f0d0a8ff5874420fc6c5e523cf0b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a5838afbd42600c39a71bc6c85fbc396a4a3575545eead555c1dc8dddb2589a4b52c4d068876fd52e2c7ae2c3f478d309f21ab8c3590746770150572594a2f9
|
|
7
|
+
data.tar.gz: ccb412aa1eee91f95342ed9ea212473c8c836a1236ae44c549a5ded9e666f23a8b585fb0896b700838a140eeb0e2c1e505a676153094f28fcdbedcc88791f3e0
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
require 'rails/generators/base'
|
|
2
|
-
|
|
2
|
+
require 'securerandom'
|
|
3
3
|
module Permission
|
|
4
4
|
# module Generators
|
|
5
5
|
class InstallGenerator < Rails::Generators::Base
|
|
6
6
|
source_root File.expand_path("../templates", __FILE__)
|
|
7
|
-
def copy_initializer
|
|
8
|
-
|
|
9
|
-
end
|
|
10
|
-
# def create_initializer_file
|
|
11
|
-
# create_file Rails.root.join("config", "initializers", "permission.rb"), "This is a test"
|
|
7
|
+
# def copy_initializer
|
|
8
|
+
# template "permission_config.rb", "config/initializers/permission.rb"
|
|
12
9
|
# end
|
|
10
|
+
def create_initializer_file
|
|
11
|
+
create_file Rails.root.join("config", "initializers", "permission.rb"), "This is a test"
|
|
12
|
+
end
|
|
13
13
|
|
|
14
|
-
def create_migrations
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
end
|
|
14
|
+
# def create_migrations
|
|
15
|
+
# Dir["#{self.class.source_root}/migrations/*.rb"].sort.each do |filepath|
|
|
16
|
+
# name = File.basename(filepath)
|
|
17
|
+
# template "migrations/#{name}", "db/migrate/#{name}"
|
|
18
|
+
# sleep 1
|
|
19
|
+
# end
|
|
20
|
+
# end
|
|
21
21
|
|
|
22
22
|
end
|
|
23
23
|
# end
|
data/lib/permission/version.rb
CHANGED