puffer 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.17
1
+ 0.0.18
@@ -10,8 +10,8 @@ class Puffer::SessionsBase < ApplicationController
10
10
  respond_to :html
11
11
 
12
12
  create do
13
- field :email
14
- field :password
13
+ field :email, :type => :string
14
+ field :password, :type => :password
15
15
  end
16
16
 
17
17
  end
@@ -5,6 +5,9 @@
5
5
  <meta http-equiv="content-type" content="text/html;charset=utf-8" />
6
6
  <%= csrf_meta_tag %>
7
7
  <%= puffer_stylesheets %>
8
+ <%= yield :stylesheets %>
9
+ <%= puffer_javascripts %>
10
+ <%= yield :javascripts %>
8
11
  </head>
9
12
  <body>
10
13
  <div class="body">
@@ -5,6 +5,9 @@
5
5
  <meta http-equiv="content-type" content="text/html;charset=utf-8" />
6
6
  <%= csrf_meta_tag %>
7
7
  <%= puffer_stylesheets %>
8
+ <%= yield :stylesheets %>
9
+ <%= puffer_javascripts %>
10
+ <%= yield :javascripts %>
8
11
  </head>
9
12
  <body>
10
13
  <div class="body">
@@ -11,6 +11,7 @@ class Puffer::SessionsController < Puffer::SessionsBase
11
11
  # end
12
12
  #
13
13
  # By default defined <tt>email<tt> and <tt>password<tt> fields.
14
+ # If puffer can`t calculate field type, just set it manually.
14
15
 
15
16
  def new
16
17
  # @record = UserSession.new
@@ -18,12 +19,16 @@ class Puffer::SessionsController < Puffer::SessionsBase
18
19
 
19
20
  def create
20
21
  # @record = UserSession.new params[:user_session]
21
- # respond_with record, :location => puffer_root_url
22
+ # if @record.save
23
+ # redirect_back_or_default puffer_root_url
24
+ # else
25
+ # render 'new'
26
+ # end
22
27
  end
23
28
 
24
29
  def destroy
25
- # @record = UserSession.find
26
- # @record.destroy
30
+ # current_user_session.destroy
31
+ # redirect_to new_puffer_session_url
27
32
  end
28
33
 
29
34
  end
data/puffer.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{puffer}
8
- s.version = "0.0.17"
8
+ s.version = "0.0.18"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["pyromaniac"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puffer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 17
10
- version: 0.0.17
9
+ - 18
10
+ version: 0.0.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - pyromaniac