user_mgmt 0.0.511 → 0.0.512

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: 86334c3e262291f46da3acbb06ad1b9b278c3a5c
4
- data.tar.gz: f92fc29e0754fc0174328f9caf7355685b2febe3
3
+ metadata.gz: 3ce6c26e6b495763f5269e2265ecaf1921de5bb7
4
+ data.tar.gz: 773b0ae51bd7ce96e66cc41fd826799cc626724f
5
5
  SHA512:
6
- metadata.gz: f33a5faacbdb533857873abeb981fbbb08f7c46875505afd0e73d739654cc8b6a7004714430ad1d201489e5c44e926e361a478965eda0e4ef409bf704cc41355
7
- data.tar.gz: 2cf4886d53302f74c76a297b5aa39cf06fa448c9b45227d48b61a15d07d9b495bfb78693cc511042fe084a6afbb8cb1925f6a7971c78abecd4ac2db77d2a292f
6
+ metadata.gz: d9c05a9dce1d10e2e96b43ee2a1b8a0c5514be21be42cc2ef67c84af760bef9b73293079f1715cbf2da1450c80bdaba804f5c24965fee364c20c4a951126e9c1
7
+ data.tar.gz: 136641cf821df60c60cb8a065083b2e0f2a26a1a42d91b57037eac8bf660cfd71310333732476b4176c760d811f9899e4ab7cbcfb2045587caf08bd915564ab7
@@ -0,0 +1,13 @@
1
+ class UserMgmt::RegistrationsController < UserMgmtController
2
+
3
+ # GET /user/sign_up
4
+ def new
5
+
6
+ end
7
+
8
+ # POST /user
9
+ def create
10
+
11
+ end
12
+
13
+ end
@@ -0,0 +1,67 @@
1
+ module UserMgmt
2
+ module Controllers
3
+ # Create url helpers to be used with resource/scope configuration. Acts as
4
+ # proxies to the generated routes created by devise.
5
+ # Resource param can be a string or symbol, a class, or an instance object.
6
+ # Example using a :user resource:
7
+ #
8
+ # new_session_path(:user) => new_user_session_path
9
+ # session_path(:user) => user_session_path
10
+ # destroy_session_path(:user) => destroy_user_session_path
11
+ #
12
+ # new_password_path(:user) => new_user_password_path
13
+ # password_path(:user) => user_password_path
14
+ # edit_password_path(:user) => edit_user_password_path
15
+ #
16
+ # new_confirmation_path(:user) => new_user_confirmation_path
17
+ # confirmation_path(:user) => user_confirmation_path
18
+ #
19
+ # Those helpers are included by default to ActionController::Base.
20
+ #
21
+ # In case you want to add such helpers to another class, you can do
22
+ # that as long as this new class includes both url_helpers and
23
+ # mounted_helpers. Example:
24
+ #
25
+ # include Rails.application.routes.url_helpers
26
+ # include Rails.application.routes.mounted_helpers
27
+ #
28
+ # module UrlHelpers
29
+ # def self.remove_helpers!
30
+ # self.instance_methods.map(&:to_s).grep(/_(url|path)$/).each do |method|
31
+ # remove_method method
32
+ # end
33
+ # end
34
+
35
+ # def self.generate_helpers!(routes=nil)
36
+ # routes ||= begin
37
+ # mappings = Devise.mappings.values.map(&:used_helpers).flatten.uniq
38
+ # Devise::URL_HELPERS.slice(*mappings)
39
+ # end
40
+
41
+ # routes.each do |module_name, actions|
42
+ # [:path, :url].each do |path_or_url|
43
+ # actions.each do |action|
44
+ # action = action ? "#{action}_" : ""
45
+ # method = "#{action}#{module_name}_#{path_or_url}"
46
+
47
+ # class_eval <<-URL_HELPERS, __FILE__, __LINE__ + 1
48
+ # def #{method}(resource_or_scope, *args)
49
+ # scope = Devise::Mapping.find_scope!(resource_or_scope)
50
+ # _devise_route_context.send("#{action}\#{scope}_#{module_name}_#{path_or_url}", *args)
51
+ # end
52
+ # URL_HELPERS
53
+ # end
54
+ # end
55
+ # end
56
+ # end
57
+
58
+ # generate_helpers!(Devise::URL_HELPERS)
59
+
60
+ # private
61
+
62
+ # def _devise_route_context
63
+ # @_devise_route_context ||= send(Devise.available_router_name)
64
+ # end
65
+ # end
66
+ end
67
+ end
@@ -1,3 +1,3 @@
1
1
  module UserMgmt
2
- VERSION = "0.0.511"
2
+ VERSION = "0.0.512"
3
3
  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.511
4
+ version: 0.0.512
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-18 00:00:00.000000000 Z
11
+ date: 2013-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -124,6 +124,7 @@ files:
124
124
  - LICENSE.txt
125
125
  - README.md
126
126
  - Rakefile
127
+ - app/controllers/user_mgmt/registrations_controller.rb
127
128
  - app/controllers/user_mgmt_controller.rb
128
129
  - app/views/user_mgmt/registrations/_user_form.html.haml
129
130
  - app/views/user_mgmt/registrations/new.html.haml
@@ -132,6 +133,7 @@ files:
132
133
  - lib/generators/user_mgmt/install_generator.rb
133
134
  - lib/user_mgmt.rb
134
135
  - lib/user_mgmt/configurator.rb
136
+ - lib/user_mgmt/controllers/url_helpers.rb
135
137
  - lib/user_mgmt/engine.rb
136
138
  - lib/user_mgmt/version.rb
137
139
  - spec/generators/install_generator_spec.rb