user_mgmt 0.0.50 → 0.0.51

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: 71a7eafa88492469973ac004d094c312deed6933
4
- data.tar.gz: 564195e3bda0996d0d9fde3d21596af540552330
3
+ metadata.gz: 936aa66e6d518eb26469ed3b6b8643f260852ad2
4
+ data.tar.gz: 7243cc3d2c3f246133f3d71742d2cac744033415
5
5
  SHA512:
6
- metadata.gz: 141b01413b9e6a4b2c1f651a39fe377f2547d9707bc20c8fd9336d4fd5c5cb427994b846af6a1f8db86d2028cfac6e223108bb64f3cd668f6ec86f000fbbec8b
7
- data.tar.gz: d939cfbb1e0eae141a1376f00ec60ed5b04ed63edeb794daa4fba3af12cb5a82f7a9ec321c2e2d02400afb4e826f3b395c51f5459422604ebe3296ce6519d5e4
6
+ metadata.gz: 6a16d145a121ade0a0ea85ca9ce337d896e020576facfd9e65504746b62cfeb4cc77cdd7aea86c52b21795557f94d8c648216e37e66d9efb812dd8e8bc44a5ca
7
+ data.tar.gz: 372c0237528f3ae4a28d49b82455310706aa0a835d6caecfce0a574f5c211ec3ec17bbddce553c5290fb4e9070392936f0dfd640644eea2d70435a1796c1d944
@@ -1,6 +1,7 @@
1
1
  %h2 Sign up
2
- = form_tag @@external_database_URI, :method => :post do
3
- = render :partial => 'user_form'
4
- = submit_tag 'submit'
2
+ / = form_tag @@external_database_URI, :method => :post do
3
+ / = render :partial => 'user_form'
4
+ / = submit_tag 'submit'
5
5
 
6
+ %div po
6
7
  /a{}
@@ -8,16 +8,16 @@ module UserMgmt
8
8
  @@external_database_URI = nil
9
9
 
10
10
  # The parent controller all UserMgmt controllers inherits from.
11
- # Defaults to ApplicationController. This should be set early
12
- # in the initialization process and should be set to a string.
13
- mattr_accessor :parent_controller
14
- @@parent_controller = "ApplicationController"
11
+ # Defaults to ApplicationController. This should be set early
12
+ # in the initialization process and should be set to a string.
13
+ mattr_accessor :parent_controller
14
+ @@parent_controller = "ApplicationController"
15
15
 
16
16
 
17
- # Default way to setup UserMgmt. Run rails generate user_mgmt:install to create
18
- # a fresh initializer with all configuration values.
19
- def self.setup
20
- yield self
21
- end
22
-
17
+ # Default way to setup UserMgmt. Run rails generate user_mgmt:install to create
18
+ # a fresh initializer with all configuration values.
19
+ def self.setup
20
+ yield self
21
+ end
22
+
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module UserMgmt
2
- VERSION = "0.0.50"
2
+ VERSION = "0.0.51"
3
3
  end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe UserMgmt::Generators::InstallGenerator do
4
+
5
+ it 'should create files properly' do
6
+ subject.should generate("config/initializers/user_mgmt.rb")
7
+ end
8
+
9
+ end
@@ -1,4 +1,13 @@
1
1
  require 'user_mgmt'
2
2
 
3
+ # For generators
4
+ require "generators/user_mgmt/install_generator"
5
+ require 'genspec'
6
+
3
7
  #explained here http://stackoverflow.com/questions/3015261/rails-custom-plugin-gem-with-partials
4
- ActionController::Base.prepend_view_path File.dirname(__FILE__) + "/../app/views"
8
+ #ActionController::Base.prepend_view_path File.dirname(__FILE__) + "/../app/views"
9
+
10
+ RSpec.configure do |config|
11
+ # some (optional) config here
12
+ end
13
+
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe UserMgmt do
4
+
5
+ end
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ["lib"]
19
19
 
20
20
  spec.add_development_dependency "rspec"
21
+ spec.add_development_dependency "genspec"
22
+ spec.add_development_dependency "rails"
21
23
  spec.add_development_dependency "warden"
22
24
  spec.add_development_dependency "haml"
23
25
 
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.50
4
+ version: 0.0.51
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-10 00:00:00.000000000 Z
11
+ date: 2013-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -24,6 +24,34 @@ dependencies:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: genspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: warden
29
57
  requirement: !ruby/object:Gem::Requirement
@@ -106,7 +134,9 @@ files:
106
134
  - lib/user_mgmt/configurator.rb
107
135
  - lib/user_mgmt/engine.rb
108
136
  - lib/user_mgmt/version.rb
137
+ - spec/generators/install_generator_spec.rb
109
138
  - spec/spec_helper.rb
139
+ - spec/user_mgmt_spec.rb
110
140
  - user_mgmt.gemspec
111
141
  homepage: https://github.com/Methos2013/user_mgmt_gem
112
142
  licenses:
@@ -133,4 +163,6 @@ signing_key:
133
163
  specification_version: 4
134
164
  summary: Various authentication options in an outside database.
135
165
  test_files:
166
+ - spec/generators/install_generator_spec.rb
136
167
  - spec/spec_helper.rb
168
+ - spec/user_mgmt_spec.rb