user_mgmt 0.0.40 → 0.0.41

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: dd7dcee76c10fd165656ff18ab6e62abc102a0ae
4
- data.tar.gz: e740ef180e1063e3cb078e8e03aa9d7e08e1eb16
3
+ metadata.gz: 493c2460a573c4f8de2da0f67527843df5a1c562
4
+ data.tar.gz: ee2d9a819750ee2c3060fb8c0573731f35592fe1
5
5
  SHA512:
6
- metadata.gz: 566327b3c973edc5c5c63bfd1053b3b9c0cc0e0bf891e5df6457395adbe605a77d2abe66368f015d51cf33ba2ab17cd34b996156d7e9702966c070368563a762
7
- data.tar.gz: 189e8c43d8d1da611d86c9fe335c8570466e27304ea64ca44e028b61fe91ac510e0cbfcb50b87ade18e007d8774a7af75c58d47e0c6704bfe5713a9eea1f7e69
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
@@ -0,0 +1,11 @@
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
@@ -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.40"
2
+ VERSION = "0.0.41"
3
3
  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.40
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