rails_db 1.1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/Gemfile.lock +3 -1
- data/app/controllers/rails_db/tables_controller.rb +1 -1
- data/app/views/rails_db/shared/_footer.html.erb +3 -1
- data/app/views/rails_db/shared/_header.html.erb +2 -0
- data/config/initializers/will_paginate_fix.rb +15 -0
- data/lib/rails_db/version.rb +1 -1
- data/rails_db.gemspec +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 343cb080b3bc03e4a19c62be335bac1efc6eaf28
|
4
|
+
data.tar.gz: 7320bc1da67869161c141f91844ec81da81805c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b108845168d465cedc6acea96b924e809667452a75e1342008ae9905dd4e7f78d3b14c2d7cd6cd19e2b80cec798c170c2de6cc0a372346eeaf91792bf8965bf7
|
7
|
+
data.tar.gz: 119723036d9862956623750a3d2163e9acf1341e57761f4cd1d250a22f686d4f3f0df09646a17da344cbb3da5119ee97ca859bfb2826cece4118e0c22f909331
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rails_db (1.1)
|
4
|
+
rails_db (1.1.1)
|
5
5
|
codemirror-rails
|
6
6
|
font-awesome-rails
|
7
7
|
jquery-rails
|
@@ -156,6 +156,7 @@ GEM
|
|
156
156
|
uglifier (2.7.2)
|
157
157
|
execjs (>= 0.3.0)
|
158
158
|
json (>= 1.8.0)
|
159
|
+
will_paginate (3.0.7)
|
159
160
|
|
160
161
|
PLATFORMS
|
161
162
|
ruby
|
@@ -177,6 +178,7 @@ DEPENDENCIES
|
|
177
178
|
sqlite3
|
178
179
|
terminal-table
|
179
180
|
uglifier
|
181
|
+
will_paginate (~> 3.0.6)
|
180
182
|
|
181
183
|
BUNDLED WITH
|
182
184
|
1.10.6
|
@@ -6,13 +6,15 @@
|
|
6
6
|
</div>
|
7
7
|
<div class="large-6 columns">
|
8
8
|
<ul class="inline-list right">
|
9
|
+
<% if defined? main_app.root_url %>
|
9
10
|
<li>
|
10
|
-
<%= link_to
|
11
|
+
<%= link_to main_app.root_url do %>
|
11
12
|
<%= fa_icon 'home' %>
|
12
13
|
Home
|
13
14
|
<% end %>
|
14
15
|
</li>
|
15
16
|
<li>|</li>
|
17
|
+
<% end %>
|
16
18
|
<li>
|
17
19
|
<%= link_to rails_db.root_path do %>
|
18
20
|
<%= fa_icon 'list-ul' %>
|
@@ -39,6 +39,7 @@
|
|
39
39
|
<% end %>
|
40
40
|
</li>
|
41
41
|
</ul>
|
42
|
+
<% if defined? main_app.root_url %>
|
42
43
|
<ul class="inline-list right main_nav">
|
43
44
|
<li>
|
44
45
|
<%= link_to main_app.root_url do %>
|
@@ -47,6 +48,7 @@
|
|
47
48
|
<% end %>
|
48
49
|
</li>
|
49
50
|
</ul>
|
51
|
+
<% end %>
|
50
52
|
<div class='clear'></div>
|
51
53
|
</div>
|
52
54
|
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
if defined?(WillPaginate)
|
2
|
+
module WillPaginate
|
3
|
+
module ActiveRecord
|
4
|
+
module RelationMethods
|
5
|
+
def per(value = nil) per_page(value); self end
|
6
|
+
def total_count() count end
|
7
|
+
def first_page?() self == first end
|
8
|
+
def last_page?() self == last end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
module CollectionMethods
|
12
|
+
alias_method :num_pages, :total_pages
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/rails_db/version.rb
CHANGED
data/rails_db.gemspec
CHANGED
@@ -33,6 +33,7 @@ Gem::Specification.new do |s|
|
|
33
33
|
s.add_development_dependency "mysql2", '<= 0.3.20'
|
34
34
|
s.add_development_dependency "pg"
|
35
35
|
s.add_development_dependency "axlsx_rails"
|
36
|
+
s.add_development_dependency 'will_paginate', '~> 3.0.6'
|
36
37
|
# s.add_development_dependency 'populator'
|
37
38
|
# s.add_development_dependency 'faker'
|
38
39
|
# s.add_development_dependency 'pry'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Kasyanchuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -220,6 +220,20 @@ dependencies:
|
|
220
220
|
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: will_paginate
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 3.0.6
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 3.0.6
|
223
237
|
description: Quick way to inspect your Rails database, see content of tables, filter,
|
224
238
|
export them to CSV, Excel, EXPLAIN SQL and run SQL queries.
|
225
239
|
email:
|
@@ -332,6 +346,7 @@ files:
|
|
332
346
|
- bin/runsql
|
333
347
|
- config/database.travis.yml
|
334
348
|
- config/initializers/mime_types.rb
|
349
|
+
- config/initializers/will_paginate_fix.rb
|
335
350
|
- config/routes.rb
|
336
351
|
- lib/ext/string_ext.rb
|
337
352
|
- lib/generators/USAGE
|