user_mgmt 0.0.41 → 0.0.50
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/README.md +4 -2
- data/lib/generators/templates/README +10 -0
- data/lib/generators/user_mgmt/install_generator.rb +3 -8
- data/lib/user_mgmt/version.rb +1 -1
- data/lib/user_mgmt.rb +0 -7
- metadata +2 -3
- data/lib/generators/user_mgmt/user_mgmt_generator.rb +0 -25
- data/lib/generators/user_mgmt_generator.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71a7eafa88492469973ac004d094c312deed6933
|
4
|
+
data.tar.gz: 564195e3bda0996d0d9fde3d21596af540552330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 141b01413b9e6a4b2c1f651a39fe377f2547d9707bc20c8fd9336d4fd5c5cb427994b846af6a1f8db86d2028cfac6e223108bb64f3cd668f6ec86f000fbbec8b
|
7
|
+
data.tar.gz: d939cfbb1e0eae141a1376f00ec60ed5b04ed63edeb794daa4fba3af12cb5a82f7a9ec321c2e2d02400afb4e826f3b395c51f5459422604ebe3296ce6519d5e4
|
data/README.md
CHANGED
@@ -12,9 +12,11 @@ And then execute:
|
|
12
12
|
|
13
13
|
$ bundle
|
14
14
|
|
15
|
-
|
15
|
+
Then you have to run the generator:
|
16
16
|
|
17
|
-
|
17
|
+
rails generate user_mgmt:install
|
18
|
+
|
19
|
+
This generator will install an initializer which describes all the gem's configuration options and you must take a look at it.
|
18
20
|
|
19
21
|
## Usage
|
20
22
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
===============================================================================
|
2
|
+
|
3
|
+
Some setup you must do manually if you haven't yet:
|
4
|
+
|
5
|
+
1. Ensure you have defined your external database URI, in
|
6
|
+
config/initializers/user_mgmt.rb:
|
7
|
+
|
8
|
+
config.external_database_URI = "yourexternaldatabaseuri.com"
|
9
|
+
|
10
|
+
===============================================================================
|
@@ -1,15 +1,10 @@
|
|
1
1
|
require 'rails/generators'
|
2
2
|
module UserMgmt
|
3
|
-
|
3
|
+
module Generators
|
4
4
|
class InstallGenerator < Rails::Generators::Base
|
5
|
-
|
5
|
+
source_root File.expand_path("../../templates", __FILE__)
|
6
6
|
|
7
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
8
|
|
14
9
|
def copy_initializer
|
15
10
|
template "user_mgmt.rb", "config/initializers/user_mgmt.rb"
|
@@ -22,6 +17,6 @@ module UserMgmt
|
|
22
17
|
def show_readme
|
23
18
|
readme "README" if behavior == :invoke
|
24
19
|
end
|
25
|
-
|
20
|
+
end
|
26
21
|
end
|
27
22
|
end
|
data/lib/user_mgmt/version.rb
CHANGED
data/lib/user_mgmt.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.50
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danilo Faria, Fernando Gorodscy, Josh Leslie
|
@@ -99,10 +99,9 @@ files:
|
|
99
99
|
- app/controllers/user_mgmt_controller.rb
|
100
100
|
- app/views/user_mgmt/registrations/_user_form.html.haml
|
101
101
|
- app/views/user_mgmt/registrations/new.html.haml
|
102
|
+
- lib/generators/templates/README
|
102
103
|
- lib/generators/templates/user_mgmt.rb
|
103
104
|
- lib/generators/user_mgmt/install_generator.rb
|
104
|
-
- lib/generators/user_mgmt/user_mgmt_generator.rb
|
105
|
-
- lib/generators/user_mgmt_generator.rb
|
106
105
|
- lib/user_mgmt.rb
|
107
106
|
- lib/user_mgmt/configurator.rb
|
108
107
|
- lib/user_mgmt/engine.rb
|
@@ -1,25 +0,0 @@
|
|
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
|