rails_db 0.7 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -3
- data/Gemfile.lock +2 -5
- data/app/views/rails_db/dashboard/index.html.erb +11 -11
- data/app/views/rails_db/sql/index.html.erb +2 -2
- data/app/views/rails_db/tables/_data.html.erb +1 -4
- data/lib/rails_db.rb +1 -0
- data/lib/rails_db/table.rb +0 -2
- data/lib/rails_db/version.rb +1 -1
- data/rails_db.gemspec +4 -3
- data/test/dummy/db/rails_db.sqlite3 +0 -0
- data/test/standalone/Gemfile +0 -3
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7db952e64adf7352763846fe3ee0729033df187
|
4
|
+
data.tar.gz: 2d3aafcdda5c714411b0e8cc17645e3a213cb682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b23a3bc2d93e7d65579c40ff0c6aefc57834860b1461632dadc374954056aeffc9848a69d7fe942acfbe339fc64afa08ada146ead3c91f4729e3ef95558f34f7
|
7
|
+
data.tar.gz: 6aa089d9616706822ea9497b278bf9ecd33ccf3a6eff4281d0c699809e598d34d0de5dd6030827b4514b4b644b19e01a02068a4f039f591400edf9fb6034d4a8
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,17 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rails_db (0.7)
|
4
|
+
rails_db (0.7.1)
|
5
5
|
codemirror-rails
|
6
6
|
font-awesome-rails
|
7
7
|
jquery-rails
|
8
8
|
launchy
|
9
|
-
mysql2 (<= 0.3.20)
|
10
|
-
pg
|
11
9
|
rails (>= 3.1.0)
|
12
10
|
sass
|
13
11
|
sass-rails
|
14
|
-
sqlite3
|
15
12
|
terminal-table
|
16
13
|
therubyracer
|
17
14
|
|
@@ -147,7 +144,7 @@ DEPENDENCIES
|
|
147
144
|
codemirror-rails
|
148
145
|
font-awesome-rails
|
149
146
|
jquery-rails
|
150
|
-
mysql2
|
147
|
+
mysql2 (<= 0.3.20)
|
151
148
|
pg
|
152
149
|
rails
|
153
150
|
rails_db!
|
@@ -3,32 +3,32 @@
|
|
3
3
|
<br/>
|
4
4
|
<br/>
|
5
5
|
|
6
|
-
<p>Welcome, in Rails DB you can
|
6
|
+
<p>Welcome, in Rails DB you can :</p>
|
7
7
|
|
8
8
|
<ul>
|
9
|
-
<li>command line tools `railsdb` and `runsql` to run app and sql for your apps.</li>
|
9
|
+
<li>use command line tools `railsdb` and `runsql` to run app and sql for your apps.</li>
|
10
10
|
<li>view content and schema of DB tables (including indexes)</li>
|
11
11
|
<li>sort content of DB tables</li>
|
12
12
|
<li>execute SQL queries</li>
|
13
|
-
<li>autocomplete for your SQL queries</li>
|
13
|
+
<li>enjoy autocomplete for your SQL queries</li>
|
14
14
|
<li>filter tables for easier navigation</li>
|
15
|
-
<li>use history of
|
15
|
+
<li>use history of your SQL queries</li>
|
16
16
|
<li>see EXPLAIN results for your queries</li>
|
17
17
|
<li>export data to CSV</li>
|
18
18
|
<li>import SQL files</li>
|
19
19
|
<li>expand/collapse sidebar</li>
|
20
|
-
<li>added HTTP_BASIC auth for Rails DB</li>
|
20
|
+
<li>experience added HTTP_BASIC auth for Rails DB</li>
|
21
21
|
<li>ability to turn on/off using initializer</li>
|
22
|
-
<li>white/black lists</li>
|
23
|
-
<li>data-tables inside your app</li>
|
22
|
+
<li>include white/black lists</li>
|
23
|
+
<li>explore data-tables inside your app</li>
|
24
24
|
<li>ajax-ify Rails DB</li>
|
25
25
|
<li>delete records, truncate tables</li>
|
26
|
-
<li>
|
27
|
-
<li>
|
26
|
+
<li>__visualize SQL schema (future)__</li>
|
27
|
+
<li>__CRUD for table records (future)__</li>
|
28
28
|
</ul>
|
29
29
|
|
30
30
|
<br/>
|
31
31
|
|
32
32
|
<p>
|
33
|
-
<span class='label alert'
|
34
|
-
</p>
|
33
|
+
<span class='label alert'><=== NOW: Select any table in the sidebar to start ...</span>
|
34
|
+
</p>
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<div class="large-11">
|
32
32
|
<div class='panel execute_panel'>
|
33
33
|
<p>
|
34
|
-
<span class="radius secondary label">* be careful with your SQL. You may corrupt your DB. Make sure you have DB backup if
|
34
|
+
<span class="radius secondary label">* be careful with your SQL. You may corrupt your DB. Make sure you have DB backup if making modifications.</span>
|
35
35
|
<br/>
|
36
36
|
<span class="radius secondary label">** you can autocomplete your SQL (Esc, Ctrl-Space or Ctrl)</span>
|
37
37
|
</p>
|
@@ -58,4 +58,4 @@
|
|
58
58
|
window.onload = function() {
|
59
59
|
init_sql_editor("<%= RailsDb::Database.adapter.mime %>", <%= raw db_hint_options.to_json %>);
|
60
60
|
};
|
61
|
-
</script>
|
61
|
+
</script>
|
@@ -44,7 +44,7 @@
|
|
44
44
|
<tr>
|
45
45
|
<% if @table.primary_key.present? %>
|
46
46
|
<td>
|
47
|
-
<%= link_to fa_icon('minus-circle'), delete_row_path(@table, record), remote: true, title: 'Delete Record', confirm: 'Are you sure you want to delete this record?', data: {confirm: 'Are you sure you want to delete this record?'} %>
|
47
|
+
<%= link_to fa_icon('minus-circle'), delete_row_path(@table, record), :class => 'red', remote: true, title: 'Delete Record', confirm: 'Are you sure you want to delete this record?', data: {confirm: 'Are you sure you want to delete this record?'} %>
|
48
48
|
</td>
|
49
49
|
<% end %>
|
50
50
|
|
@@ -97,6 +97,3 @@
|
|
97
97
|
<% end %>
|
98
98
|
|
99
99
|
<div class='clear'></div>
|
100
|
-
|
101
|
-
|
102
|
-
|
data/lib/rails_db.rb
CHANGED
data/lib/rails_db/table.rb
CHANGED
data/lib/rails_db/version.rb
CHANGED
data/rails_db.gemspec
CHANGED
@@ -24,9 +24,10 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.add_dependency "jquery-rails"
|
25
25
|
s.add_dependency 'codemirror-rails'
|
26
26
|
s.add_dependency 'launchy'
|
27
|
-
s.add_dependency "sqlite3"
|
28
|
-
s.add_dependency "mysql2", '<= 0.3.20'
|
29
|
-
s.add_dependency "pg"
|
30
27
|
s.add_dependency 'terminal-table'
|
31
28
|
s.add_dependency 'therubyracer'
|
29
|
+
|
30
|
+
s.add_development_dependency "sqlite3"
|
31
|
+
s.add_development_dependency "mysql2", '<= 0.3.20'
|
32
|
+
s.add_development_dependency "pg"
|
32
33
|
end
|
Binary file
|
data/test/standalone/Gemfile
CHANGED
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: 0.7.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: 2015-11-
|
11
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: terminal-table
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -123,27 +123,27 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: therubyracer
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0
|
131
|
+
version: '0'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0
|
138
|
+
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: sqlite3
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
|
-
type: :
|
146
|
+
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
@@ -151,27 +151,27 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: mysql2
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - "<="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
160
|
-
type: :
|
159
|
+
version: 0.3.20
|
160
|
+
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - "<="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 0.3.20
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: pg
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
|
-
type: :
|
174
|
+
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|