wizdog 0.0.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 411c507ab5ef2a1b51649964b5d72f73cddeab2a
4
+ data.tar.gz: 93363c2f7870f3160cb99c6927ee873381ccc7d8
5
+ SHA512:
6
+ metadata.gz: 5f519556de05ea98e9caba468759cc7e700eaf299575a1d50fbcd8e5ba9bc33b6b8743d0a003517f91f6e1edfe26ed9bea56189d23825c381b8b8556386f9559
7
+ data.tar.gz: 4548b5c9a007807268b055ad9af1df83daae8a58e556c807f6f9a1fc1784bdd3966bdb88ef62866ab3bd45ade9af6d4d2cdbdff09f4dbb401fb49049cdf049c9
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ .idea/
@@ -7,7 +7,7 @@ module WizAuthc
7
7
  base.class_eval do
8
8
  attr_accessor :current
9
9
  include InstanceMethods
10
- before_filter :activate_wiz_auth
10
+ #before_filter :activate_wiz_auth
11
11
 
12
12
  end
13
13
  end
@@ -23,12 +23,12 @@ module WizAuthc
23
23
  WizAuthc::SecurityContext.current.authenticated?
24
24
  end
25
25
 
26
- private
27
- def activate_wiz_auth
28
- p self.session.to_s
29
- WizAuthc::SecurityContext.init(self)
30
- @current = WizAuthc::SecurityContext.current
31
- end
26
+ # private
27
+ # def activate_wiz_auth
28
+ # p self.session.to_s
29
+ # WizAuthc::SecurityContext.init(self, Util::Account.new(self.session))
30
+ # @current = WizAuthc::SecurityContext.current
31
+ # end
32
32
  end
33
33
  end
34
34
  end
@@ -35,9 +35,9 @@ module WizAuthc
35
35
  Thread.current[:security_contexts_key]
36
36
  end
37
37
 
38
- def init(env)
38
+ def init(env, current)
39
39
  self.env = env
40
- self.current = Core::Account.new(self.session)
40
+ self.current = current
41
41
  end
42
42
 
43
43
 
@@ -2,6 +2,5 @@
2
2
  module WizMenu
3
3
  class Menu
4
4
 
5
-
6
5
  end
7
6
  end
@@ -1,3 +1,3 @@
1
1
  module Wizdog
2
- VERSION = "0.0.2"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wizdog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - songgz
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-04-12 00:00:00.000000000 Z
11
+ date: 2015-06-12 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Flexible authentication solution for Rails
15
14
  email:
@@ -18,7 +17,7 @@ executables: []
18
17
  extensions: []
19
18
  extra_rdoc_files: []
20
19
  files:
21
- - .gitignore
20
+ - ".gitignore"
22
21
  - Gemfile
23
22
  - Rakefile
24
23
  - lib/wizdog.rb
@@ -47,26 +46,25 @@ files:
47
46
  - wizdog.gemspec
48
47
  homepage: http://github.com/songgz/wizdog
49
48
  licenses: []
49
+ metadata: {}
50
50
  post_install_message:
51
51
  rdoc_options: []
52
52
  require_paths:
53
53
  - lib
54
54
  required_ruby_version: !ruby/object:Gem::Requirement
55
- none: false
56
55
  requirements:
57
- - - ! '>='
56
+ - - ">="
58
57
  - !ruby/object:Gem::Version
59
58
  version: '0'
60
59
  required_rubygems_version: !ruby/object:Gem::Requirement
61
- none: false
62
60
  requirements:
63
- - - ! '>='
61
+ - - ">="
64
62
  - !ruby/object:Gem::Version
65
63
  version: '0'
66
64
  requirements: []
67
65
  rubyforge_project: wizdog
68
- rubygems_version: 1.8.21
66
+ rubygems_version: 2.2.3
69
67
  signing_key:
70
- specification_version: 3
68
+ specification_version: 4
71
69
  summary: Flexible authentication solution for Rails
72
70
  test_files: []