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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07fb222ed30cb7aab50606a52b6036344ea2fe46
4
- data.tar.gz: e2ae602e54108f088d7b0d614a3a50094c337b3d
3
+ metadata.gz: 4978d59b2445b5e45cd84be6a7c765912458b717
4
+ data.tar.gz: 62b56d38c936f0d0a8ff5874420fc6c5e523cf0b
5
5
  SHA512:
6
- metadata.gz: 48bc12f8d0d2c3b7151929eff4713ef963244c40b5d3db87e1531d496566085bac769309e50e76a72d9145640a40bfdccf6833eb2be4cb00e5080315218bf95f
7
- data.tar.gz: abcc717c6505b79af13f2957000b4d6f2cc83c2bbbdef71a602bbbf4c2164a078446e1a5c5ee40dc1b38568c33cc4c88432916edeb084c494f3f66eea280371c
6
+ metadata.gz: 4a5838afbd42600c39a71bc6c85fbc396a4a3575545eead555c1dc8dddb2589a4b52c4d068876fd52e2c7ae2c3f478d309f21ab8c3590746770150572594a2f9
7
+ data.tar.gz: ccb412aa1eee91f95342ed9ea212473c8c836a1236ae44c549a5ded9e666f23a8b585fb0896b700838a140eeb0e2c1e505a676153094f28fcdbedcc88791f3e0
@@ -1,23 +1,23 @@
1
1
  require 'rails/generators/base'
2
- # require 'securerandom'
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
- template "permission_config.rb", "config/initializers/permission.rb"
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
- 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
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
@@ -1,3 +1,3 @@
1
1
  module Permission
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: permission
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sunil