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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 493c2460a573c4f8de2da0f67527843df5a1c562
4
- data.tar.gz: ee2d9a819750ee2c3060fb8c0573731f35592fe1
3
+ metadata.gz: 71a7eafa88492469973ac004d094c312deed6933
4
+ data.tar.gz: 564195e3bda0996d0d9fde3d21596af540552330
5
5
  SHA512:
6
- metadata.gz: 9fd269513b007f443e66dd11a486bfbe0a7b2f5262e0f7604ee2b4409128378be5a8f6d9ca7ac252081708f58de2123051f4166c8784930cc8311103e244e0d6
7
- data.tar.gz: b1812f72116d0b8d04b85c7b61c8e2db3b475856326c4e9f4588023605572ef303c4cbd276ea8319cb0db15d1cddfac4d55f735084220fd8ae67900be97398a9
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
- 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
+ ===============================================================================
@@ -1,15 +1,10 @@
1
1
  require 'rails/generators'
2
2
  module UserMgmt
3
- # module Generators
3
+ module Generators
4
4
  class InstallGenerator < Rails::Generators::Base
5
- #source_root File.expand_path("../../templates", __FILE__)
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
- #end
20
+ end
26
21
  end
27
22
  end
@@ -1,3 +1,3 @@
1
1
  module UserMgmt
2
- VERSION = "0.0.41"
2
+ VERSION = "0.0.50"
3
3
  end
data/lib/user_mgmt.rb CHANGED
@@ -20,11 +20,4 @@ module UserMgmt
20
20
  yield self
21
21
  end
22
22
 
23
- #require 'user_mgmt/engine' if defined?(Rails)
24
- class Engine < Rails::Engine
25
- end
26
-
27
- def self.popo
28
- 5
29
- end
30
23
  end
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.41
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
@@ -1,11 +0,0 @@
1
- module UserMgmt
2
- module Generators
3
- class UserMgmtGenerator < Rails::Generators::NamedBase
4
- include Rails::Generators::ResourceHelpers
5
-
6
- namespace "user_mgmt"
7
- source_root File.expand_path("../templates", __FILE__)
8
-
9
- end
10
- end
11
- end