smartshack_simple_login 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23087f208fe2c5d0c245699e792392a73f44ce49
4
- data.tar.gz: 058bd4ba3a425f684f2d4c30ffa2bec2c3a059da
3
+ metadata.gz: 28f5f0453b657b418e8c475129230417d748541f
4
+ data.tar.gz: 8a6efc85b21409b96574560431484d27feee3ede
5
5
  SHA512:
6
- metadata.gz: 3cdc9467697973b41c4b7c512698ab92e46e5b55bcd6120c4fc33a4a0fd097c78a2e4815c95922b998909bfa914870e1f2a58652549c41d69df132894792e0a1
7
- data.tar.gz: bd6fb14a20f5bc0e57196d7668f4296b01d8ab44da9e18669a2d8fe157b77f7fcc19dbfd4f241e27ffba8d2451577a26db594aa175cfd1c7a844182c84815f7b
6
+ metadata.gz: 09e1162a7b6ff4afa5409e225450a43a21d883fc91d6043e0d2c8170b748d4e0b1476d4b2851f64cc8c5bfbabd9145880c9b3781c506cdae3cbadbfbfb8c9f81
7
+ data.tar.gz: 7a0610f19f3804159e4f857ed71cc55aa95781a687f4618350ba042ec9b2ad9bd0e3e5e3cb2d0c62dcc4226c2bb55ca2c4443b02f30bacb04e9765ca6b0ed083
@@ -11,6 +11,25 @@ module SimpleLogin
11
11
 
12
12
  def mailers
13
13
  template 'mailers/user_mailer.rb', 'app/mailers/user_mailer.rb'
14
+
15
+ application nil, env: "development" do
16
+ "config.action_mailer.default_url_options = { :host => 'localhost:3000' }"
17
+ end
18
+
19
+
20
+ append_to_file "config/environment.rb" do
21
+ "\n\nActionMailer::Base.delivery_method = :smtp\n" +
22
+ "ActionMailer::Base.raise_delivery_errors = true\n" +
23
+ "ActionMailer::Base.smtp_settings = {\n" +
24
+ " :enable_starttls_auto => true,\n" +
25
+ " :address => 'jellyfish.megiteam.pl',\n" +
26
+ " :port => 587,\n" +
27
+ " :user_name => 'zaloga@jellyfish.megiteam.pl',\n" +
28
+ " :password => '',\n" +
29
+ " :authentication => :login \n" +
30
+ " }\n"
31
+ end
32
+
14
33
  end
15
34
  def models
16
35
  template 'models/user.rb', 'app/models/user.rb'
@@ -25,7 +44,7 @@ module SimpleLogin
25
44
  end
26
45
 
27
46
 
28
- def application
47
+ def application_controller
29
48
  inject_into_file 'app/controllers/application_controller.rb', before: "end" do
30
49
  "\n\nprivate\n" +
31
50
  "def current_user\n" +
@@ -1,5 +1,5 @@
1
1
  class UserMailer < ActionMailer::Base
2
- default from: "kontakt@jellyfish.megiteam.pl"
2
+ default from: "zaloga@jellyfish.megiteam.pl"
3
3
 
4
4
  # Subject can be set in your I18n file at config/locales/en.yml
5
5
  # with the following lookup:
@@ -2,10 +2,14 @@
2
2
  <table>
3
3
  <tr>
4
4
  <th>email</th>
5
+ <th></th>
6
+ <th></th>
5
7
  </tr>
6
8
  <%@users.each do |u|%>
7
9
  <tr>
8
10
  <td><%= link_to u.email, u %></td>
11
+ <td><%= link_to "edytuj", edit_user_path(u) %></td>
12
+ <td><%= link_to "usuń", user_path(u), method: :delete %></td>
9
13
  </tr>
10
14
  <% end%>
11
15
  </table>
@@ -1,2 +1,2 @@
1
- <%= @user.name%>
2
- <%= @user.email%>
1
+ <h1>Użytkownik</h1>
2
+ <p><%= @user.email%></p>
@@ -1,3 +1,3 @@
1
1
  module SimpleLogin
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartshack_simple_login
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - jerzy czepiel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-19 00:00:00.000000000 Z
11
+ date: 2014-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler