constructor-core 0.6.1 → 0.6.2

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: 52dde476a1565fde0a74cfb89096a56966cbc1f5
4
- data.tar.gz: bdea8c8bdd14418e8753e3f1777b0f80117ac2fe
3
+ metadata.gz: 70eef55d07664da4e1d52479a5483394b92e812b
4
+ data.tar.gz: 227e2397a54addfa82e3395d990e5aab2c852a7b
5
5
  SHA512:
6
- metadata.gz: 1b87602a9b32ebb9523efab654acd74480913eb0d76da0ee44d7abc9e06286782bece32b96d75b6aa0ceabf00401bbe4f597361219f464c212ac9c4472cdab06
7
- data.tar.gz: 92d9b6a98c5dc5f7480fe2af732ce52877509926894b325f8186fd6120e02ba66878c9e52bbca42bcb5d6e78c4bea8b34c389decf49b8822f354daa14c0166cd
6
+ metadata.gz: b84cbcfb9c6c6a5b6c486aacb26714e9386c6f34e3979645677c65bc4928ff67cb57427b89f145467bb2c02fb5ebace67f5bb41375c5ef0f57b5c691935ddddf
7
+ data.tar.gz: c2c5bd1ff6dbf9a1cd52bd5dafd857f29bf9793b76c2727ed6df54394bce7db851f174abdcbacc8f97ab8b1e5976c1e45a9f6f00e52a229c5614d81bad9bd5bc
@@ -2,8 +2,6 @@
2
2
 
3
3
  module ConstructorCore
4
4
  class UsersController < ConstructorCore::ApplicationController
5
- layout 'constructor_core/application'
6
-
7
5
  def profile
8
6
  @user = current_user
9
7
  end
@@ -1,22 +1,22 @@
1
1
  - content_for :page_title do
2
2
  =t :login
3
3
 
4
- = form_for(resource, :as => resource_name, :url => '/login') do |f|
4
+ = form_for(resource, as: resource_name, url: '/login') do |f|
5
5
  .form-horizontal
6
6
  .control-group
7
- = f.label :email, :class => 'control-label'
7
+ = f.label :email, class: 'control-label'
8
8
  .controls
9
9
  = f.email_field :email
10
10
  .control-group
11
- = f.label :password, :class => 'control-label'
11
+ = f.label :password, class: 'control-label'
12
12
  .controls
13
13
  = f.password_field :password
14
14
 
15
15
  - if devise_mapping.rememberable?
16
16
  .control-group
17
17
  .controls
18
- %label.checkbox.inline{:for => 'remember_me'}
18
+ %label.checkbox.inline{for: 'remember_me'}
19
19
  = f.check_box :remember_me
20
20
  =t :remember_me
21
21
  .controls
22
- = f.submit t(:login), :class => "btn btn-primary"
22
+ = f.submit t(:login), class: 'btn btn-primary'
@@ -4,13 +4,13 @@
4
4
  = form_for @current_user, method: :post do |f|
5
5
  .form-horizontal
6
6
  .control-group
7
- = f.label :password, :class => 'control-label'
7
+ = f.label :password, class: 'control-label'
8
8
  .controls
9
9
  = f.password_field :password, required: true
10
10
  .control-group
11
- = f.label :password_confirmation, :class => 'control-label'
11
+ = f.label :password_confirmation, class: 'control-label'
12
12
  .controls
13
13
  = f.password_field :password_confirm, required: true
14
14
  .control-group
15
15
  .controls
16
- = f.submit t(:save_password), :class => "btn btn-primary"
16
+ = f.submit t(:save_password), class: 'btn btn-primary'
@@ -1,12 +1,12 @@
1
1
  !!!
2
- %html{:lang => 'ru'}
2
+ %html{lang: 'ru'}
3
3
  %head
4
- %meta{:charset => 'utf-8'}/
5
- %meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge,chrome=1'}/
4
+ %meta{charset: 'utf-8'}/
5
+ %meta{'http-equiv' => 'X-UA-Compatible', content: 'IE=edge,chrome=1'}/
6
6
  %title=t :dashboard
7
7
 
8
8
  / [if lt IE 9]
9
- %script{:src => 'http://html5shim.googlecode.com/svn/trunk/html5.js'}
9
+ %script{src: 'http://html5shim.googlecode.com/svn/trunk/html5.js'}
10
10
 
11
11
  :javascript
12
12
  var CKEDITOR_BASEPATH = '/assets/ckeditor/'
@@ -16,15 +16,15 @@
16
16
  = csrf_meta_tag
17
17
  = favicon_link_tag
18
18
 
19
- %link{:rel => 'apple-touch-icon', :href => 'images/apple-touch-icon.png'}
20
- %link{:rel => 'apple-touch-icon', :sizes => '72x72', :href => 'images/apple-touch-icon-72x72.png'}
21
- %link{:rel => 'apple-touch-icon', :sizes => '114x114', :href => 'images/apple-touch-icon-114x114.png'}
19
+ %link{rel: 'apple-touch-icon', href: 'images/apple-touch-icon.png'}
20
+ %link{rel: 'apple-touch-icon', sizes: '72x72', href: 'images/apple-touch-icon-72x72.png'}
21
+ %link{rel: 'apple-touch-icon', sizes: '114x114', href: 'images/apple-touch-icon-114x114.png'}
22
22
 
23
23
  %body
24
24
  .navbar.navbar-constructor
25
25
  .navbar-inner
26
26
  .container-fluid
27
- = link_to t(:homepage), '/', :class => 'brand'
27
+ = link_to t(:homepage), '/', class: 'brand'
28
28
  %a.btn.btn-navbar{'data-toggle' => 'collapse', 'data-target' => '.nav-collapse'}
29
29
  %span.icon-bar
30
30
  %span.icon-bar
@@ -63,7 +63,7 @@
63
63
  %i.icon-question-sign
64
64
  =t :help
65
65
  %li
66
- = link_to core.destroy_user_session_path, method: :delete do
66
+ = link_to core.logout_path, method: :delete do
67
67
  %i.icon-signout
68
68
  =t :logout
69
69
 
@@ -75,11 +75,11 @@
75
75
  .span4
76
76
  - unless notice.nil?
77
77
  .alert.fade.in
78
- = link_to '×', '#', :class => 'close', 'data-dismiss' => 'alert'
78
+ = link_to '×', '#', class: 'close', 'data-dismiss' => 'alert'
79
79
  = notice
80
80
  - unless alert.nil?
81
81
  .alert.alert-error.fade.in
82
- = link_to '×', '#', :class => 'close', 'data-dismiss' => 'alert'
82
+ = link_to '×', '#', class: 'close', 'data-dismiss' => 'alert'
83
83
  = alert
84
84
 
85
85
  = yield :actions
@@ -88,6 +88,6 @@
88
88
  = yield
89
89
 
90
90
  / [if lt IE 7 ]
91
- %script{:src => '//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js'}
91
+ %script{src: '//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js'}
92
92
  %script
93
93
  window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})
data/config/routes.rb CHANGED
@@ -13,6 +13,6 @@ ConstructorCore::Engine.routes.draw do
13
13
  get '/admin' => 'sessions#new'
14
14
  get '/login' => 'sessions#new'
15
15
  post '/login' => 'sessions#create'
16
- delete '/logout' => 'sessions#destroy'
16
+ delete '/logout' => 'sessions#destroy', as: :logout
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module ConstructorCore
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: constructor-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Zotov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-19 00:00:00.000000000 Z
11
+ date: 2013-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails