esp-auth 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,12 @@
1
+ # encoding: utf-8
2
+
1
3
  class EspAuth::OmniauthCallbacksController < Devise::OmniauthCallbacksController
2
4
  def identity
3
5
  user = User.find_or_initialize_by_uid(request.env['omniauth.auth']['uid']).tap do |user|
4
6
  user.update_attributes request.env['omniauth.auth']['info']
5
7
  end
6
8
 
7
- flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Identity"
9
+ flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "системы аутентификации"
8
10
  sign_in user, :event => :authentication
9
11
  redirect_to stored_location_for(:user) || main_app.root_path
10
12
  end
@@ -9,12 +9,8 @@
9
9
  <%= form.input :user_name, :as => :hidden %>
10
10
  <%= form.input :user_email, :as => :hidden %>
11
11
  <%= form.input :user_search, :as => :string unless @user %>
12
- <%= form.input :polimorphic_context, :as => :select,
13
- :collection => current_user.contexts_tree,
14
- :member_value => ->(c) { [c.class.model_name.underscore, c.id].join('_') },
15
- :member_label => ->(c) { ('&nbsp;' * 2 * c.depth + c.title).html_safe },
16
- :include_blank => t('permissions.not_selected') %>
17
- <%= form.input :role, :as => :select, :collection => Permission.human_enums[:role].invert, :include_blank => t('permissions.not_selected') %>
12
+ <%= polymorphic_context_tree_for form %>
13
+ <%= form.input :role, :as => :select, :collection => Permission.human_enums[:role].invert, :include_blank => t('commons.not_selected') %>
18
14
  <% end %>
19
15
  <%= form.buttons :class => 'button-group' do %>
20
16
  <li><%= button_tag t('permissions.create'), :class => 'button icon approve' %></li>
@@ -1,18 +1,22 @@
1
1
  <div class='esp_auth_header_wrapper'>
2
2
  <div class='esp_auth_header'>
3
3
  <% if current_user %>
4
- <% current = controller_path.match(/^([a-z_]+)/)[0].inquiry %>
4
+ <% controller_namespace = controller_path.split('/').map(&:inquiry) %>
5
5
  <div class='navigation'>
6
6
  <% if can? :manage, :application %>
7
- <%= link_to 'Публичный вид', '/', :class => current.manage? || current.esp_auth? ? nil : 'selected' %>
8
- <%= link_to 'Система управления', '/manage', :class => current.manage? ? 'selected' : nil %>
7
+ <%= link_to 'Публичный вид', '/', :class => controller_namespace[0].manage? || controller_namespace[0].esp_auth? ? nil : 'selected' %>
8
+ <% if content_for?(:esp_auth_manage_links) %>
9
+ <%= yield(:esp_auth_manage_links) %>
10
+ <% else %>
11
+ <%= link_to 'Система управления', '/manage', :class => controller_namespace[0].manage? ? 'selected' : nil %>
12
+ <% end %>
9
13
  <% end %>
10
14
  <% if can? :manage, :permissions %>
11
- <%= link_to 'Права доступа', esp_auth.root_path, :class => current.esp_auth? ? 'selected' : nil %>
15
+ <%= link_to 'Права доступа', esp_auth.root_path, :class => controller_namespace[0].esp_auth? ? 'selected' : nil %>
12
16
  <% end %>
13
17
  </div>
14
18
  <div class='auth'>
15
- <span class='current_user'><%= current_user.name %></span>
19
+ <span class='current_user'><%= current_user %></span>
16
20
  <%= link_to('Выход', esp_auth.destroy_user_session_path) %>
17
21
  </div>
18
22
  <% else %>
@@ -34,10 +34,10 @@
34
34
  <% permissions.each do |permission| %>
35
35
  <li>
36
36
  <%= permission.context %>
37
- <%= link_to t('permissions.delete'),
37
+ <%= link_to t('commons.delete'),
38
38
  esp_auth.permission_path(permission),
39
39
  :method => :delete,
40
- :confirm => t('permissions.Are you sure?'),
40
+ :confirm => t('commons.confirm'),
41
41
  :class => 'buttton icon remove danger' if can?(:destroy, permission) %>
42
42
  </li>
43
43
  <% end %>
@@ -19,8 +19,6 @@ ru:
19
19
  truncate: ...
20
20
 
21
21
  permissions:
22
- 'Are you sure?': Вы уверены, в том что хотите удалить запись?
23
- 'You are sign in as': Вы вошли как
24
22
  'You are adding role to': Вы добавляете роль для
25
23
  back_to_manage: Назад в раздел управления контентом
26
24
  cancel: Отмена
@@ -28,7 +26,6 @@ ru:
28
26
  create_permission: Создать право доступа
29
27
  delete: Удалить
30
28
  new: Добавить право доступа
31
- not_selected: -- не выбрано --
32
29
  search: Поиск
33
30
  show_permissions: Показать права доступа
34
31
  sign_out: Выход
@@ -12,11 +12,6 @@ module EspAuth
12
12
 
13
13
  initializer "sso_client.devise", :before => 'devise.omniauth' do |app|
14
14
  require File.expand_path("../../../lib/omniauth/strategies/identity", __FILE__)
15
-
16
- Settings.define 'sso.url', :env_var => 'SSO_URL', :required => true
17
- Settings.define 'sso.key', :env_var => 'SSO_KEY', :required => true
18
- Settings.define 'sso.secret', :env_var => 'SSO_SECRET', :required => true
19
-
20
15
  Devise.setup do |config|
21
16
  config.omniauth :identity, Settings['sso.key'], Settings['sso.secret'], :client_options => {:site => Settings['sso.url']}
22
17
  end
@@ -24,22 +19,34 @@ module EspAuth
24
19
 
25
20
  config.to_prepare do
26
21
  ActionController::Base.class_eval do
22
+ helper_method :polymorphic_context_tree_for
23
+
27
24
  def self.esp_load_and_authorize_resource
28
25
  before_filter :authenticate_user!
29
26
  before_filter :authorize_user_can_manage_application!
30
27
  inherit_resources
31
28
  load_and_authorize_resource
29
+ skip_load_and_authorize_resource :only => :index
32
30
  rescue_from CanCan::AccessDenied do |exception|
33
31
  render :file => "#{Rails.root}/public/403", :formats => [:html], :status => 403, :layout => false
34
32
  end
35
33
  end
34
+
36
35
  protected
37
- def authorize_user_can_manage_application!
38
- authorize! :manage, :application
39
- end
36
+ def authorize_user_can_manage_application!
37
+ authorize! :manage, :application
38
+ end
39
+
40
+ def polymorphic_context_tree_for(form)
41
+ form.input :polymorphic_context, :as => :select,
42
+ :collection => current_user.contexts_tree,
43
+ :member_value => ->(c) { [c.class.model_name.underscore, c.id].join('_') },
44
+ :member_label => ->(c) { ('&nbsp;' * 2 * c.depth + c.title).html_safe },
45
+ :include_blank => t('commons.not_selected')
46
+ end
40
47
  end
41
48
  ActiveRecord::Base.class_eval do
42
- def self.esp_authable
49
+ def self.esp_auth_user
43
50
 
44
51
  attr_accessible :name, :email, :nickname, :name, :first_name, :last_name, :location, :description, :image, :phone, :urls, :raw_info, :uid
45
52
 
@@ -81,6 +88,87 @@ module EspAuth
81
88
  .uniq
82
89
  end
83
90
 
91
+ define_method :to_s do
92
+ email? ? "#{name} <#{email}>" : name
93
+ end
94
+ end
95
+
96
+ def self.esp_auth_permission
97
+ attr_accessor :user_search, :user_uid, :user_name, :user_email, :polimorphic_context
98
+
99
+ belongs_to :context, :polymorphic => true
100
+ belongs_to :user
101
+
102
+ scope :for_role, ->(role) { where(:role => role) }
103
+ scope :for_context_ancestors, ->(context, ids=context.ancestor_ids) do
104
+ where(:context_id => ids,
105
+ :context_type => (context.class.ancestors - context.class.included_modules).map(&:name))
106
+ end
107
+ scope :for_context, ->(context) { where(:context_id => context.id, :context_type => context.class) }
108
+
109
+ scope :for_context_type, ->(context_type) { where(:context_type => context_type) }
110
+
111
+ scope :for_context_and_ancestors, ->(context) do
112
+ if context.respond_to?(:ancestor_ids)
113
+ for_context_ancestors(context, context.ancestor_ids + [context.id])
114
+ else
115
+ for_context(context)
116
+ end
117
+ end
118
+
119
+ after_initialize :set_user, :if => :user_uid_present?
120
+ after_initialize :set_context, :if => :polimorphic_context_present?
121
+
122
+ after_create :user_index!
123
+ after_destroy :user_index!
124
+
125
+ validates_presence_of :polimorphic_context, :unless => :context
126
+
127
+ validates_presence_of :role, :user, :context
128
+
129
+ validates_presence_of :user_search, :unless => :user
130
+
131
+ validates_uniqueness_of :role, :scope => [:user_id, :context_id, :context_type]
132
+
133
+ has_enum :role
134
+
135
+
136
+ private
137
+ delegate :index!, :to => :user, :prefix => true
138
+ delegate :present?, :to => :polimorphic_context, :prefix => true
139
+ delegate :present?, :to => :user_uid, :prefix => true
140
+
141
+ define_method :set_user do
142
+ self.user = User.find_or_initialize_by_uid(user_uid).tap do |user|
143
+ user.update_attributes :name => user_name, :email => user_email
144
+ end
145
+ end
146
+
147
+ define_method :set_context do
148
+ underscored_context_type, self.context_id = polimorphic_context.match(/(\w+)_(\d+)/)[1..2]
149
+ self.context_type = underscored_context_type.camelize
150
+ end
151
+ end
152
+
153
+ def self.esp_auth_context(options={})
154
+ default_scope order('weight')
155
+ attr_accessible :id, :title, :ancestry, :weight, :parent
156
+ has_many :subcontexts, options
157
+ has_many :permissions, :as => :context
158
+ has_ancestry
159
+
160
+ alias_attribute :to_s, :title
161
+ end
162
+
163
+ def self.esp_auth_subcontext
164
+ belongs_to :context
165
+ has_many :permissions, :as => :context
166
+
167
+ alias_attribute :to_s, :title
168
+
169
+ def depth
170
+ context.depth + 1
171
+ end
84
172
  end
85
173
  end
86
174
  end
@@ -52,7 +52,7 @@ module EspAuth
52
52
  Permission.enums[:role].each do | role |
53
53
  define_method "#{role}_of" do |context|
54
54
  user.tap do | user |
55
- user.permissions.create! :context => context, :role => role
55
+ user.permissions.create!(:context => context, :role => role) unless user.send("#{role}_of?", context)
56
56
  end
57
57
  end
58
58
  end
@@ -1,3 +1,3 @@
1
1
  module EspAuth
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
@@ -38,10 +38,10 @@ module EspAuth
38
38
  end
39
39
 
40
40
  def create_migrations
41
- migration_template 'db/migrate/esp_auth_create_users.rb'
42
- migration_template 'db/migrate/esp_auth_create_contexts.rb'
43
- migration_template 'db/migrate/esp_auth_create_permissions.rb'
44
- migration_template 'db/migrate/esp_auth_create_subcontexts.rb'
41
+ migration_template 'db/migrate/create_users.rb'
42
+ migration_template 'db/migrate/create_contexts.rb'
43
+ migration_template 'db/migrate/create_permissions.rb'
44
+ migration_template 'db/migrate/create_subcontexts.rb'
45
45
  end
46
46
 
47
47
  end
@@ -1,18 +1,7 @@
1
1
  class Context < ActiveRecord::Base
2
-
3
- default_scope order('weight')
4
-
5
- attr_accessible :id, :title, :ancestry, :weight, :parent
6
-
7
- has_many :subcontexts
8
- has_many :permissions, :as => :context
9
-
10
-
11
- alias_attribute :to_s, :title
12
-
13
- has_ancestry
14
-
2
+ esp_auth_context
15
3
  end
4
+
16
5
  # == Schema Information
17
6
  #
18
7
  # Table name: contexts
@@ -1,57 +1,5 @@
1
1
  class Permission < ActiveRecord::Base
2
- attr_accessor :user_search, :user_uid, :user_name, :user_email, :polimorphic_context
3
-
4
- belongs_to :context, :polymorphic => true
5
- belongs_to :user
6
-
7
- scope :for_role, ->(role) { where(:role => role) }
8
- scope :for_context_ancestors, ->(context, ids=context.ancestor_ids) do
9
- where(:context_id => ids,
10
- :context_type => (context.class.ancestors - context.class.included_modules).map(&:name))
11
- end
12
- scope :for_context, ->(context) { where(:context_id => context.id, :context_type => context.class) }
13
-
14
- scope :for_context_and_ancestors, ->(context) do
15
- if context.respond_to?(:ancestor_ids)
16
- for_context_ancestors(context, context.ancestor_ids + [context.id])
17
- else
18
- for_context(context)
19
- end
20
- end
21
-
22
- after_initialize :set_user, :if => :user_uid_present?
23
- after_initialize :set_context, :if => :polimorphic_context_present?
24
-
25
- after_create :user_index!
26
- after_destroy :user_index!
27
-
28
- validates_presence_of :polimorphic_context, :unless => :context
29
-
30
- validates_presence_of :role, :user, :context
31
-
32
- validates_presence_of :user_search, :unless => :user
33
-
34
- validates_uniqueness_of :role, :scope => [:user_id, :context_id, :context_type]
35
-
36
- has_enum :role
37
-
38
-
39
- private
40
-
41
- def set_user
42
- self.user = User.find_or_initialize_by_uid(user_uid).tap do |user|
43
- user.update_attributes :name => user_name, :email => user_email
44
- end
45
- end
46
-
47
- def set_context
48
- underscored_context_type, self.context_id = polimorphic_context.match(/(\w+)_(\d+)/)[1..2]
49
- self.context_type = underscored_context_type.camelize
50
- end
51
-
52
- delegate :index!, :to => :user, :prefix => true
53
- delegate :present?, :to => :polimorphic_context, :prefix => true
54
- delegate :present?, :to => :user_uid, :prefix => true
2
+ esp_auth_permission
55
3
  end
56
4
 
57
5
  # == Schema Information
@@ -1,13 +1,7 @@
1
1
  class Subcontext < ActiveRecord::Base
2
- belongs_to :context
3
- has_many :permissions, :as => :context
4
-
5
- alias_attribute :to_s, :title
6
-
7
- def depth
8
- context.depth + 1
9
- end
2
+ esp_auth_subcontext
10
3
  end
4
+
11
5
  # == Schema Information
12
6
  #
13
7
  # Table name: subcontexts
@@ -1,11 +1,7 @@
1
1
  class User < ActiveRecord::Base
2
-
3
- esp_authable
4
-
2
+ esp_auth_user
5
3
  end
6
4
 
7
-
8
-
9
5
  # == Schema Information
10
6
  #
11
7
  # Table name: users
@@ -1,4 +1,4 @@
1
- class EspAuthCreateContexts < ActiveRecord::Migration
1
+ class CreateContexts < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :contexts do |t|
4
4
  t.string :title
@@ -1,4 +1,4 @@
1
- class EspAuthCreatePermissions < ActiveRecord::Migration
1
+ class CreatePermissions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :permissions do |t|
4
4
  t.references :user
@@ -1,4 +1,4 @@
1
- class EspAuthCreateSubcontexts < ActiveRecord::Migration
1
+ class CreateSubcontexts < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :subcontexts do |t|
4
4
  t.string :title
@@ -1,4 +1,4 @@
1
- class EspAuthCreateUsers < ActiveRecord::Migration
1
+ class CreateUsers < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :users do | t |
4
4
  t.string :uid # omniauth[:uid]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esp-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-07 00:00:00.000000000 Z
12
+ date: 2012-02-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ancestry
16
- requirement: &19520500 !ruby/object:Gem::Requirement
16
+ requirement: &26067780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19520500
24
+ version_requirements: *26067780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: cancan
27
- requirement: &19520080 !ruby/object:Gem::Requirement
27
+ requirement: &26067300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *19520080
35
+ version_requirements: *26067300
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: compass
38
- requirement: &19519540 !ruby/object:Gem::Requirement
38
+ requirement: &26083120 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.12.alpha.4
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *19519540
46
+ version_requirements: *26083120
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: curb
49
- requirement: &19519080 !ruby/object:Gem::Requirement
49
+ requirement: &26082700 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *19519080
57
+ version_requirements: *26082700
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: default_value_for
60
- requirement: &19518600 !ruby/object:Gem::Requirement
60
+ requirement: &26082240 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *19518600
68
+ version_requirements: *26082240
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: devise
71
- requirement: &19518140 !ruby/object:Gem::Requirement
71
+ requirement: &26081820 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *19518140
79
+ version_requirements: *26081820
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: devise-russian
82
- requirement: &19517700 !ruby/object:Gem::Requirement
82
+ requirement: &26081400 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *19517700
90
+ version_requirements: *26081400
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: omniauth
93
- requirement: &19533640 !ruby/object:Gem::Requirement
93
+ requirement: &26080980 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *19533640
101
+ version_requirements: *26080980
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: omniauth-oauth2
104
- requirement: &19533200 !ruby/object:Gem::Requirement
104
+ requirement: &26076760 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *19533200
112
+ version_requirements: *26076760
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: formtastic
115
- requirement: &19532760 !ruby/object:Gem::Requirement
115
+ requirement: &26076340 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *19532760
123
+ version_requirements: *26076340
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: has_enum
126
- requirement: &19532320 !ruby/object:Gem::Requirement
126
+ requirement: &26075920 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *19532320
134
+ version_requirements: *26075920
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: has_scope
137
- requirement: &19531880 !ruby/object:Gem::Requirement
137
+ requirement: &26075500 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :runtime
144
144
  prerelease: false
145
- version_requirements: *19531880
145
+ version_requirements: *26075500
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: has_searcher
148
- requirement: &19531440 !ruby/object:Gem::Requirement
148
+ requirement: &26099580 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: '0'
154
154
  type: :runtime
155
155
  prerelease: false
156
- version_requirements: *19531440
156
+ version_requirements: *26099580
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: inherited_resources
159
- requirement: &19531020 !ruby/object:Gem::Requirement
159
+ requirement: &26099160 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :runtime
166
166
  prerelease: false
167
- version_requirements: *19531020
167
+ version_requirements: *26099160
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: kaminari
170
- requirement: &19530580 !ruby/object:Gem::Requirement
170
+ requirement: &26098720 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,10 +175,10 @@ dependencies:
175
175
  version: '0'
176
176
  type: :runtime
177
177
  prerelease: false
178
- version_requirements: *19530580
178
+ version_requirements: *26098720
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: progress_bar
181
- requirement: &19530160 !ruby/object:Gem::Requirement
181
+ requirement: &26098280 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ! '>='
@@ -186,10 +186,10 @@ dependencies:
186
186
  version: '0'
187
187
  type: :runtime
188
188
  prerelease: false
189
- version_requirements: *19530160
189
+ version_requirements: *26098280
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: rails
192
- requirement: &19529720 !ruby/object:Gem::Requirement
192
+ requirement: &26097820 !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
195
  - - ! '>='
@@ -197,10 +197,10 @@ dependencies:
197
197
  version: '0'
198
198
  type: :runtime
199
199
  prerelease: false
200
- version_requirements: *19529720
200
+ version_requirements: *26097820
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: sass
203
- requirement: &19529280 !ruby/object:Gem::Requirement
203
+ requirement: &26097380 !ruby/object:Gem::Requirement
204
204
  none: false
205
205
  requirements:
206
206
  - - ! '>='
@@ -208,10 +208,10 @@ dependencies:
208
208
  version: '0'
209
209
  type: :runtime
210
210
  prerelease: false
211
- version_requirements: *19529280
211
+ version_requirements: *26097380
212
212
  - !ruby/object:Gem::Dependency
213
213
  name: sass-rails
214
- requirement: &19528840 !ruby/object:Gem::Requirement
214
+ requirement: &26096920 !ruby/object:Gem::Requirement
215
215
  none: false
216
216
  requirements:
217
217
  - - ! '>='
@@ -219,10 +219,10 @@ dependencies:
219
219
  version: '0'
220
220
  type: :runtime
221
221
  prerelease: false
222
- version_requirements: *19528840
222
+ version_requirements: *26096920
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: sunspot_rails
225
- requirement: &19528400 !ruby/object:Gem::Requirement
225
+ requirement: &26096480 !ruby/object:Gem::Requirement
226
226
  none: false
227
227
  requirements:
228
228
  - - ! '>='
@@ -230,10 +230,10 @@ dependencies:
230
230
  version: '0'
231
231
  type: :runtime
232
232
  prerelease: false
233
- version_requirements: *19528400
233
+ version_requirements: *26096480
234
234
  - !ruby/object:Gem::Dependency
235
235
  name: whenever
236
- requirement: &19527940 !ruby/object:Gem::Requirement
236
+ requirement: &26096040 !ruby/object:Gem::Requirement
237
237
  none: false
238
238
  requirements:
239
239
  - - ! '>='
@@ -241,10 +241,10 @@ dependencies:
241
241
  version: '0'
242
242
  type: :runtime
243
243
  prerelease: false
244
- version_requirements: *19527940
244
+ version_requirements: *26096040
245
245
  - !ruby/object:Gem::Dependency
246
246
  name: guard
247
- requirement: &19527500 !ruby/object:Gem::Requirement
247
+ requirement: &26095580 !ruby/object:Gem::Requirement
248
248
  none: false
249
249
  requirements:
250
250
  - - ! '>='
@@ -252,10 +252,10 @@ dependencies:
252
252
  version: '0'
253
253
  type: :development
254
254
  prerelease: false
255
- version_requirements: *19527500
255
+ version_requirements: *26095580
256
256
  - !ruby/object:Gem::Dependency
257
257
  name: guard-rspec
258
- requirement: &19527060 !ruby/object:Gem::Requirement
258
+ requirement: &26095140 !ruby/object:Gem::Requirement
259
259
  none: false
260
260
  requirements:
261
261
  - - ! '>='
@@ -263,10 +263,10 @@ dependencies:
263
263
  version: '0'
264
264
  type: :development
265
265
  prerelease: false
266
- version_requirements: *19527060
266
+ version_requirements: *26095140
267
267
  - !ruby/object:Gem::Dependency
268
268
  name: guard-spork
269
- requirement: &19526600 !ruby/object:Gem::Requirement
269
+ requirement: &26094680 !ruby/object:Gem::Requirement
270
270
  none: false
271
271
  requirements:
272
272
  - - ! '>='
@@ -274,10 +274,10 @@ dependencies:
274
274
  version: '0'
275
275
  type: :development
276
276
  prerelease: false
277
- version_requirements: *19526600
277
+ version_requirements: *26094680
278
278
  - !ruby/object:Gem::Dependency
279
279
  name: rspec-rails
280
- requirement: &19526140 !ruby/object:Gem::Requirement
280
+ requirement: &26094240 !ruby/object:Gem::Requirement
281
281
  none: false
282
282
  requirements:
283
283
  - - ! '>='
@@ -285,10 +285,10 @@ dependencies:
285
285
  version: '0'
286
286
  type: :development
287
287
  prerelease: false
288
- version_requirements: *19526140
288
+ version_requirements: *26094240
289
289
  - !ruby/object:Gem::Dependency
290
290
  name: russian
291
- requirement: &19525720 !ruby/object:Gem::Requirement
291
+ requirement: &26093800 !ruby/object:Gem::Requirement
292
292
  none: false
293
293
  requirements:
294
294
  - - ! '>='
@@ -296,10 +296,10 @@ dependencies:
296
296
  version: '0'
297
297
  type: :development
298
298
  prerelease: false
299
- version_requirements: *19525720
299
+ version_requirements: *26093800
300
300
  - !ruby/object:Gem::Dependency
301
301
  name: shoulda-matchers
302
- requirement: &19541640 !ruby/object:Gem::Requirement
302
+ requirement: &26093360 !ruby/object:Gem::Requirement
303
303
  none: false
304
304
  requirements:
305
305
  - - ! '>='
@@ -307,10 +307,10 @@ dependencies:
307
307
  version: '0'
308
308
  type: :development
309
309
  prerelease: false
310
- version_requirements: *19541640
310
+ version_requirements: *26093360
311
311
  - !ruby/object:Gem::Dependency
312
312
  name: spork
313
- requirement: &19541200 !ruby/object:Gem::Requirement
313
+ requirement: &26092920 !ruby/object:Gem::Requirement
314
314
  none: false
315
315
  requirements:
316
316
  - - ! '>='
@@ -318,10 +318,10 @@ dependencies:
318
318
  version: '0'
319
319
  type: :development
320
320
  prerelease: false
321
- version_requirements: *19541200
321
+ version_requirements: *26092920
322
322
  - !ruby/object:Gem::Dependency
323
323
  name: sqlite3
324
- requirement: &19540760 !ruby/object:Gem::Requirement
324
+ requirement: &26092480 !ruby/object:Gem::Requirement
325
325
  none: false
326
326
  requirements:
327
327
  - - ! '>='
@@ -329,10 +329,10 @@ dependencies:
329
329
  version: '0'
330
330
  type: :development
331
331
  prerelease: false
332
- version_requirements: *19540760
332
+ version_requirements: *26092480
333
333
  - !ruby/object:Gem::Dependency
334
334
  name: sunspot_solr
335
- requirement: &19540300 !ruby/object:Gem::Requirement
335
+ requirement: &26092040 !ruby/object:Gem::Requirement
336
336
  none: false
337
337
  requirements:
338
338
  - - ! '>='
@@ -340,10 +340,10 @@ dependencies:
340
340
  version: '0'
341
341
  type: :development
342
342
  prerelease: false
343
- version_requirements: *19540300
343
+ version_requirements: *26092040
344
344
  - !ruby/object:Gem::Dependency
345
345
  name: therubyracer
346
- requirement: &19539860 !ruby/object:Gem::Requirement
346
+ requirement: &26091580 !ruby/object:Gem::Requirement
347
347
  none: false
348
348
  requirements:
349
349
  - - ! '>='
@@ -351,10 +351,10 @@ dependencies:
351
351
  version: '0'
352
352
  type: :development
353
353
  prerelease: false
354
- version_requirements: *19539860
354
+ version_requirements: *26091580
355
355
  - !ruby/object:Gem::Dependency
356
356
  name: uglifier
357
- requirement: &19539420 !ruby/object:Gem::Requirement
357
+ requirement: &26107540 !ruby/object:Gem::Requirement
358
358
  none: false
359
359
  requirements:
360
360
  - - ! '>='
@@ -362,7 +362,7 @@ dependencies:
362
362
  version: '0'
363
363
  type: :development
364
364
  prerelease: false
365
- version_requirements: *19539420
365
+ version_requirements: *26107540
366
366
  description: Description of EspAuth.
367
367
  email:
368
368
  - mail@openteam.ru
@@ -407,10 +407,10 @@ files:
407
407
  - lib/generators/esp_auth/install/templates/app/controllers/manage/application_controller.rb
408
408
  - lib/generators/esp_auth/install/templates/config/schedule.rb
409
409
  - lib/generators/esp_auth/install/templates/config/locales/permissions_enum.ru.yml
410
- - lib/generators/esp_auth/install/templates/db/migrate/esp_auth_create_users.rb
411
- - lib/generators/esp_auth/install/templates/db/migrate/esp_auth_create_contexts.rb
412
- - lib/generators/esp_auth/install/templates/db/migrate/esp_auth_create_subcontexts.rb
413
- - lib/generators/esp_auth/install/templates/db/migrate/esp_auth_create_permissions.rb
410
+ - lib/generators/esp_auth/install/templates/db/migrate/create_users.rb
411
+ - lib/generators/esp_auth/install/templates/db/migrate/create_subcontexts.rb
412
+ - lib/generators/esp_auth/install/templates/db/migrate/create_contexts.rb
413
+ - lib/generators/esp_auth/install/templates/db/migrate/create_permissions.rb
414
414
  - lib/generators/esp_auth/install/templates/db/seeds.rb
415
415
  - lib/tasks/sync.rake
416
416
  - lib/esp_auth/engine.rb
@@ -434,7 +434,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
434
434
  version: '0'
435
435
  segments:
436
436
  - 0
437
- hash: -3144382037214944273
437
+ hash: -1606857420949617094
438
438
  required_rubygems_version: !ruby/object:Gem::Requirement
439
439
  none: false
440
440
  requirements:
@@ -443,7 +443,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
443
443
  version: '0'
444
444
  segments:
445
445
  - 0
446
- hash: -3144382037214944273
446
+ hash: -1606857420949617094
447
447
  requirements: []
448
448
  rubyforge_project:
449
449
  rubygems_version: 1.8.15