mvpkit 1.1.1 → 1.1.2

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: c162cb1e5e1dc7884dbaa1c9a3d8f267054fe949
4
- data.tar.gz: 0b6aed35d6042068bf99ab7df56f49114e9eaa14
3
+ metadata.gz: 3f5dad34406e94f651ff8f30f5abd9e19ed10f2d
4
+ data.tar.gz: 0da4f9e1dd83bd0db759d260d90bc3fbe1419380
5
5
  SHA512:
6
- metadata.gz: de5976a3750d82e90a875959330c72c53a31366bc0cb9feb07bb5debac54bc893909b5f567d8fa55c3a49376a75a3073760a9f6d358f4eff3a7db366bc109af1
7
- data.tar.gz: bc596c2170ec5ed445f0cfc289586d98fc788bedea36f5ecbc6e61d4c07a314ed65a24d61f78150942268a170d546cfdc68c0a7bf07a9caa3487a6969c1cd519
6
+ metadata.gz: dde9d299c2141bb4c2fdf59f134a6539d665c13496a380177e406e65a87ff0d06062e812b4e6a0e9fd573401af3138563e5869a4d4ee8a7f9b922c44f1171f96
7
+ data.tar.gz: 6e9b51d6f06d877dbda9ed3e77eaea1bd44ec2278d167f8a3ecdb3ad13778b187e47ba755d37a482235cc58811712795197c87ae263f44d15b042eec5ddb6286
data/Gemfile.lock CHANGED
@@ -262,7 +262,7 @@ GEM
262
262
  http-cookie (>= 1.0.2, < 2.0)
263
263
  mime-types (>= 1.16, < 3.0)
264
264
  netrc (~> 0.7)
265
- rollbar (2.14.0)
265
+ rollbar (2.14.1)
266
266
  multi_json
267
267
  sass (3.4.23)
268
268
  sass-rails (5.0.6)
@@ -326,4 +326,4 @@ DEPENDENCIES
326
326
  web-console (~> 2.0)
327
327
 
328
328
  BUNDLED WITH
329
- 1.14.3
329
+ 1.14.6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
data/mvpkit.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: mvpkit 1.1.1 ruby lib
5
+ # stub: mvpkit 1.1.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "mvpkit".freeze
9
- s.version = "1.1.1"
9
+ s.version = "1.1.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Ian Hunter".freeze]
14
- s.date = "2017-04-23"
14
+ s.date = "2017-06-07"
15
15
  s.description = "Built for Developers. Ideal for MVPs, product ideation and validation.".freeze
16
16
  s.email = "ianhunter@gmail.com".freeze
17
17
  s.executables = ["mvp".freeze]
data/project/Gemfile CHANGED
@@ -17,7 +17,7 @@ gem "dotenv-rails"
17
17
  gem 'identicon'
18
18
  gem 'jbuilder', '~> 2.5'
19
19
  gem 'mustache'
20
- gem 'mvpkit', '~> 1.0.0'#, path: '../../mvpkit'
20
+ gem 'mvpkit', '~> 1.1.1'#, path: '../../mvpkit'
21
21
  gem 'pg'
22
22
  gem 'postmark-rails'
23
23
  gem 'puma', '~> 3.0'
data/project/Gemfile.lock CHANGED
@@ -96,7 +96,7 @@ GEM
96
96
  client_side_validations-simple_form (6.1.0)
97
97
  client_side_validations (~> 9.0)
98
98
  simple_form (~> 3.4)
99
- cloudinary (1.6.0)
99
+ cloudinary (1.7.0)
100
100
  aws_cf_signer
101
101
  rest-client
102
102
  coderay (1.1.1)
@@ -109,7 +109,7 @@ GEM
109
109
  railties (>= 4.1.0, < 5.1)
110
110
  responders
111
111
  warden (~> 1.2.3)
112
- domain_name (0.5.20170223)
112
+ domain_name (0.5.20170404)
113
113
  unf (>= 0.0.5, < 1.0.0)
114
114
  dotenv (2.2.0)
115
115
  dotenv-rails (2.2.0)
@@ -118,7 +118,7 @@ GEM
118
118
  erubis (2.7.0)
119
119
  excon (0.55.0)
120
120
  execjs (2.7.0)
121
- faraday (0.12.0.1)
121
+ faraday (0.12.1)
122
122
  multipart-post (>= 1.2, < 3)
123
123
  ffi (1.9.18)
124
124
  fission (0.5.0)
@@ -216,7 +216,7 @@ GEM
216
216
  fog-profitbricks (3.0.0)
217
217
  fog-core (~> 1.42)
218
218
  fog-json (~> 1.0)
219
- fog-rackspace (0.1.4)
219
+ fog-rackspace (0.1.5)
220
220
  fog-core (>= 1.35)
221
221
  fog-json (>= 1.0)
222
222
  fog-xml (>= 0.1)
@@ -308,7 +308,7 @@ GEM
308
308
  multi_json (1.12.1)
309
309
  multipart-post (2.0.0)
310
310
  mustache (1.0.5)
311
- mvpkit (1.0.4)
311
+ mvpkit (1.1.1)
312
312
  carrierwave
313
313
  cloudinary
314
314
  faraday
@@ -339,7 +339,7 @@ GEM
339
339
  public_suffix (2.0.5)
340
340
  puma (3.8.2)
341
341
  rack (2.0.1)
342
- rack-canonical-host (0.2.2)
342
+ rack-canonical-host (0.2.3)
343
343
  addressable (> 0, < 3)
344
344
  rack (>= 1.0.0, < 3)
345
345
  rack-protection (1.5.3)
@@ -439,7 +439,7 @@ GEM
439
439
  execjs (>= 0.3.0, < 3)
440
440
  unf (0.1.4)
441
441
  unf_ext
442
- unf_ext (0.0.7.2)
442
+ unf_ext (0.0.7.4)
443
443
  warden (1.2.7)
444
444
  rack (>= 1.0)
445
445
  web-console (3.5.0)
@@ -474,7 +474,7 @@ DEPENDENCIES
474
474
  letter_opener
475
475
  listen (~> 3.0.5)
476
476
  mustache
477
- mvpkit (~> 1.0.0)
477
+ mvpkit (~> 1.1.1)
478
478
  pg
479
479
  postmark-rails
480
480
  puma (~> 3.0)
@@ -6,7 +6,8 @@ module Admin
6
6
 
7
7
  # GET /users
8
8
  def index
9
- @users = User.all
9
+ @q = User.ransack(params[:q])
10
+ @users = @q.result(distinct: true)
10
11
  end
11
12
 
12
13
  # GET /users/1
@@ -1,27 +1,31 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <h1>Users</h1>
1
+ <div class="mt20">
2
+ <div class="mb20">
3
+ <%= search_form_for @q, class: 'form-inline pull-right' do |f| %>
4
+ <%= f.search_field :email_cont, class: 'form-control mr10', placeholder: 'Search ...' %>
5
+ <%= f.submit class: 'btn btn-primary' %>
6
+ <% end %>
7
+ <h4>Users</h4>
8
+ </div>
4
9
 
5
- <table>
6
- <thead>
10
+ <%= content_tag :table, class: 'table table-flush' do %>
7
11
  <tr>
8
- <th>Email</th>
12
+ <th><%= sort_link(@q, :email) %></th>
13
+ <th><%= sort_link(@q, :created_at) %></th>
9
14
  <th colspan="3"></th>
10
15
  </tr>
11
- </thead>
12
-
13
- <tbody>
14
16
  <% @users.each do |user| %>
15
17
  <tr>
16
18
  <td><%= user.email %></td>
17
- <td><%= link_to 'Show', user %></td>
18
- <td><%= link_to 'Edit', edit_user_path(user) %></td>
19
- <td><%= link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' } %></td>
19
+ <td><%= user.created_at %></td>
20
+ <td class="text-right">
21
+ <%= link_to edit_user_path(user), class: 'btn btn-warning btn-sm' do %>
22
+ <i class="fa fa-edit"></i>
23
+ <% end %>
24
+ <%= link_to user, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger btn-sm' do %>
25
+ <i class="fa fa-remove"></i>
26
+ <% end %>
27
+ </td>
20
28
  </tr>
21
29
  <% end %>
22
- </tbody>
23
- </table>
24
-
25
- <br>
26
-
27
- <%= link_to 'New User', new_user_path %>
30
+ <% end %>
31
+ </div>
@@ -16,6 +16,22 @@
16
16
  <%= link_to 'Admin', admin_path, class: 'nav-link' %>
17
17
  </li>
18
18
  </ul>
19
+ <ul class="navbar-nav">
20
+ <% if user_signed_in? %>
21
+ <li class="nav-item dropdown">
22
+ <a class="nav-link dropdown-toggle" href="http://example.com" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
23
+ <%= current_user.email %>
24
+ </a>
25
+ <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
26
+ <%= link_to 'Log Out', destroy_user_session_path, method: :delete, class: 'nav-link' %>
27
+ </div>
28
+ </li>
29
+ <% else %>
30
+ <li class="nav-item">
31
+ <%= link_to 'Log In / Register', new_user_session_path, class: 'nav-link' %>
32
+ </li>
33
+ <% end %>
34
+ </ul>
19
35
  </div>
20
36
  </div>
21
37
  </nav>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mvpkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-23 00:00:00.000000000 Z
11
+ date: 2017-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave