user_mgmt 0.0.40 → 0.0.41
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 493c2460a573c4f8de2da0f67527843df5a1c562
|
4
|
+
data.tar.gz: ee2d9a819750ee2c3060fb8c0573731f35592fe1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fd269513b007f443e66dd11a486bfbe0a7b2f5262e0f7604ee2b4409128378be5a8f6d9ca7ac252081708f58de2123051f4166c8784930cc8311103e244e0d6
|
7
|
+
data.tar.gz: b1812f72116d0b8d04b85c7b61c8e2db3b475856326c4e9f4588023605572ef303c4cbd276ea8319cb0db15d1cddfac4d55f735084220fd8ae67900be97398a9
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
module UserMgmt
|
3
|
+
# module Generators
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
5
|
+
#source_root File.expand_path("../../templates", __FILE__)
|
6
|
+
|
7
|
+
desc "Creates a UserMgmt initializer and copy locale files to your application."
|
8
|
+
#class_option :orm
|
9
|
+
|
10
|
+
def self.source_root
|
11
|
+
@source_root ||= File.join(File.dirname(__FILE__), 'templates')
|
12
|
+
end
|
13
|
+
|
14
|
+
def copy_initializer
|
15
|
+
template "user_mgmt.rb", "config/initializers/user_mgmt.rb"
|
16
|
+
end
|
17
|
+
|
18
|
+
# def copy_locale
|
19
|
+
# copy_file "../../../config/locales/en.yml", "config/locales/user_mgmt.en.yml"
|
20
|
+
# end
|
21
|
+
|
22
|
+
def show_readme
|
23
|
+
readme "README" if behavior == :invoke
|
24
|
+
end
|
25
|
+
#end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#module UserMgmt
|
2
|
+
# module Generators
|
3
|
+
require 'rails/generators'
|
4
|
+
|
5
|
+
class UserMgmtGenerator < Rails::Generators::NamedBase
|
6
|
+
include Rails::Generators::ResourceHelpers
|
7
|
+
|
8
|
+
namespace "user_mgmt"
|
9
|
+
# source_root File.expand_path("../templates", __FILE__)
|
10
|
+
|
11
|
+
# Commandline options can be defined here using Thor-like options:
|
12
|
+
class_option :my_opt, :type => :boolean, :default => false, :desc => "My Option"
|
13
|
+
|
14
|
+
# I can later access that option using:
|
15
|
+
# options[:my_opt]
|
16
|
+
|
17
|
+
|
18
|
+
def self.source_root
|
19
|
+
@source_root ||= File.join(File.dirname(__FILE__), 'templates')
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
end
|
24
|
+
# end
|
25
|
+
#end
|
data/lib/user_mgmt/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: user_mgmt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danilo Faria, Fernando Gorodscy, Josh Leslie
|
@@ -100,8 +100,12 @@ files:
|
|
100
100
|
- app/views/user_mgmt/registrations/_user_form.html.haml
|
101
101
|
- app/views/user_mgmt/registrations/new.html.haml
|
102
102
|
- lib/generators/templates/user_mgmt.rb
|
103
|
+
- lib/generators/user_mgmt/install_generator.rb
|
104
|
+
- lib/generators/user_mgmt/user_mgmt_generator.rb
|
105
|
+
- lib/generators/user_mgmt_generator.rb
|
103
106
|
- lib/user_mgmt.rb
|
104
107
|
- lib/user_mgmt/configurator.rb
|
108
|
+
- lib/user_mgmt/engine.rb
|
105
109
|
- lib/user_mgmt/version.rb
|
106
110
|
- spec/spec_helper.rb
|
107
111
|
- user_mgmt.gemspec
|