user_mgmt 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/generators/templates/README +10 -0
- data/lib/generators/user_mgmt/install_generator.rb +22 -0
- data/lib/user_mgmt/engine.rb +5 -0
- data/lib/user_mgmt/version.rb +1 -1
- data/lib/user_mgmt.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7939c268a44f904ddb97ff6cf43da660684f4e52
|
4
|
+
data.tar.gz: 78f206ca0ecce1284a5f9c0305b74564e031c2b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40981a7be34077135fe2a9dd674f78b0f3e3d785c48f0bbe8611cb48cf197810dec5e4d10ce2801ecca9d040a1d0885a4edd697e0d2c9207df0d5aae0b6963ce
|
7
|
+
data.tar.gz: dea7aab25f19103abfa7681517baceaf46cacdb7a3717e55125a4bdb75f1ba4546ef04781b36ead7a58292c5ae2bb4638da0ef59e7e0c4c63984a79e5676d216
|
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
|
+
===============================================================================
|
@@ -0,0 +1,22 @@
|
|
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
|
+
|
9
|
+
def copy_initializer
|
10
|
+
template "user_mgmt.rb", "config/initializers/user_mgmt.rb"
|
11
|
+
end
|
12
|
+
|
13
|
+
# def copy_locale
|
14
|
+
# copy_file "../../../config/locales/en.yml", "config/locales/user_mgmt.en.yml"
|
15
|
+
# end
|
16
|
+
|
17
|
+
def show_readme
|
18
|
+
readme "README" if behavior == :invoke
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/user_mgmt/version.rb
CHANGED
data/lib/user_mgmt.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danilo Faria, Fernando Gorodscy, Josh Leslie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -99,9 +99,12 @@ 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
|
104
|
+
- lib/generators/user_mgmt/install_generator.rb
|
103
105
|
- lib/user_mgmt.rb
|
104
106
|
- lib/user_mgmt/configurator.rb
|
107
|
+
- lib/user_mgmt/engine.rb
|
105
108
|
- lib/user_mgmt/version.rb
|
106
109
|
- spec/spec_helper.rb
|
107
110
|
- user_mgmt.gemspec
|