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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52b25f2999dc6bd39abe505bd55f44616c5e06cb
4
- data.tar.gz: 4a5dc2e8d7500d523ab09379b0abefb7e716d706
3
+ metadata.gz: 7939c268a44f904ddb97ff6cf43da660684f4e52
4
+ data.tar.gz: 78f206ca0ecce1284a5f9c0305b74564e031c2b6
5
5
  SHA512:
6
- metadata.gz: 625f2ae3ab30eb3383290ac2f95e25302eeae98bb777921458b53597c8cfdbca3984541d0d1a275390bef2044459a4af99316d21d7d387b86d9431a68b8fdd4f
7
- data.tar.gz: 98fdaf6c2ec30765ac663a5665024c8b4601f2ec1c7d7e3c98bea41dcfbd448d839be8724eba94efe8d8b4cfa6dae6d0148a41011f9aa93e6f8ec6eb6433783b
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
- Or install it yourself as:
15
+ Then you have to run the generator:
16
16
 
17
- $ gem install user_mgmt
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
@@ -0,0 +1,5 @@
1
+ require 'rails'
2
+ module UserMgmt
3
+ class Engine < Rails::Engine
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module UserMgmt
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/user_mgmt.rb CHANGED
@@ -19,5 +19,5 @@ module UserMgmt
19
19
  def self.setup
20
20
  yield self
21
21
  end
22
-
22
+
23
23
  end
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.3
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-09 00:00:00.000000000 Z
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