rails_db 1.3.4 → 1.4.0

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: 871386765d383d2556399ccff8d4a81776597723
4
- data.tar.gz: e466f81b832529505fc7af1420fd1d912613342a
3
+ metadata.gz: d69068ac0940f8b57d7f83facac4403ba63968e6
4
+ data.tar.gz: 66c4b58c74345f425dc3e26044ad139ff3610e96
5
5
  SHA512:
6
- metadata.gz: a2d883eac41a805378c2a03917bab11d60788555942dc6f2f110a81b07d8117353225048e1deab9b609af79ebd382c8267f285af7a67c31f3d31050253aaf26a
7
- data.tar.gz: 1974addeaa8121969468410dc171df8d2db46f2a15fb1d9e50ab0bd173ddda21ae5922dd4980cf45806504f22907155039eab5240035f144bb9ab8f8b6cce7eb
6
+ metadata.gz: 9966cabe5e612fd78340c354589dc39de13a72eb9c71b7a8185450e086f768e634f70eb2a0f9973c96e7f37f98d536643ce8691c643e7fcfaadc2a551cb9c143
7
+ data.tar.gz: a02209e3b2afdfd858d4101c12f46af31f86e10e8c78fc177dc107d263f47c79d67efcb6cb61160d0524e7b2e40b5ba37c795fe7981450430e1f22c660f0acdd
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ gem 'jquery-rails'
7
7
  gem 'codemirror-rails'
8
8
  gem 'terminal-table'
9
9
  gem 'simple_form'
10
- gem 'ransack', '<= 1.7.0'
10
+ gem 'ransack'
11
11
  gem 'kaminari', '>= 0.17.0'
12
12
 
13
13
  group :assets do
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_db (1.3.3)
4
+ rails_db (1.3.4)
5
5
  codemirror-rails
6
6
  jquery-rails
7
7
  kaminari
8
8
  rails (>= 3.1.0)
9
- ransack (<= 1.7.0)
9
+ ransack
10
10
  sass
11
11
  simple_form
12
12
  terminal-table
@@ -50,7 +50,7 @@ GEM
50
50
  thread_safe (~> 0.3, >= 0.3.4)
51
51
  tzinfo (~> 1.1)
52
52
  addressable (2.4.0)
53
- arel (6.0.3)
53
+ arel (6.0.4)
54
54
  axlsx (2.0.1)
55
55
  htmlentities (~> 4.3.1)
56
56
  nokogiri (>= 1.4.1)
@@ -58,7 +58,7 @@ GEM
58
58
  axlsx_rails (0.4.0)
59
59
  axlsx (>= 2.0.1)
60
60
  rails (>= 3.1)
61
- builder (3.2.2)
61
+ builder (3.2.3)
62
62
  codemirror-rails (5.6)
63
63
  railties (>= 3.0, < 5)
64
64
  erubis (2.7.0)
@@ -71,7 +71,7 @@ GEM
71
71
  rails-dom-testing (~> 1.0)
72
72
  railties (>= 4.2.0)
73
73
  thor (>= 0.14, < 2.0)
74
- json (1.8.3)
74
+ json (1.8.6)
75
75
  kaminari (0.17.0)
76
76
  actionpack (>= 3.0.0)
77
77
  activesupport (>= 3.0.0)
@@ -83,16 +83,14 @@ GEM
83
83
  mime-types (>= 1.16, < 3)
84
84
  mime-types (2.6.2)
85
85
  mini_portile2 (2.1.0)
86
- minitest (5.9.0)
86
+ minitest (5.10.1)
87
87
  mysql2 (0.3.20)
88
- nokogiri (1.6.8)
88
+ nokogiri (1.7.0.1)
89
89
  mini_portile2 (~> 2.1.0)
90
- pkg-config (~> 1.1.7)
91
90
  pg (0.18.3)
92
- pkg-config (1.1.7)
93
91
  polyamorous (1.3.1)
94
92
  activerecord (>= 3.0)
95
- rack (1.6.4)
93
+ rack (1.6.5)
96
94
  rack-test (0.6.3)
97
95
  rack (>= 1.0)
98
96
  rails (4.2.4)
@@ -108,9 +106,9 @@ GEM
108
106
  sprockets-rails
109
107
  rails-deprecated_sanitizer (1.0.3)
110
108
  activesupport (>= 4.2.0.alpha)
111
- rails-dom-testing (1.0.7)
109
+ rails-dom-testing (1.0.8)
112
110
  activesupport (>= 4.2.0.beta, < 5.0)
113
- nokogiri (~> 1.6.0)
111
+ nokogiri (~> 1.6)
114
112
  rails-deprecated_sanitizer (>= 1.0.1)
115
113
  rails-html-sanitizer (1.0.3)
116
114
  loofah (~> 2.0)
@@ -120,14 +118,14 @@ GEM
120
118
  rake (>= 0.8.7)
121
119
  thor (>= 0.18.1, < 2.0)
122
120
  rake (10.4.2)
123
- ransack (1.7.0)
121
+ ransack (1.8.2)
124
122
  actionpack (>= 3.0)
125
123
  activerecord (>= 3.0)
126
124
  activesupport (>= 3.0)
127
125
  i18n
128
- polyamorous (~> 1.2)
126
+ polyamorous (~> 1.3)
129
127
  rubyzip (1.0.0)
130
- sass (3.4.22)
128
+ sass (3.4.23)
131
129
  simple_form (3.2.0)
132
130
  actionpack (~> 4.0)
133
131
  activemodel (~> 4.0)
@@ -162,7 +160,7 @@ DEPENDENCIES
162
160
  pg
163
161
  rails
164
162
  rails_db!
165
- ransack (<= 1.7.0)
163
+ ransack
166
164
  simple_form
167
165
  sqlite3
168
166
  terminal-table
@@ -170,4 +168,4 @@ DEPENDENCIES
170
168
  will_paginate (~> 3.0.6)
171
169
 
172
170
  BUNDLED WITH
173
- 1.11.2
171
+ 1.13.6
@@ -124,4 +124,4 @@
124
124
 
125
125
  <div class='clear'></div>
126
126
 
127
- <%= render 'sql', sql: @sql %>
127
+ <%= render 'sql', sql: @sql %>
@@ -58,9 +58,13 @@ module RailsDb
58
58
  end
59
59
 
60
60
  def as_model
61
- @model ||= create_model(name)
61
+ begin
62
+ @model ||= name.classify.constantize
63
+ rescue
64
+ @model ||= create_model(name)
65
+ end
62
66
  end
63
67
 
64
68
  end # module
65
69
 
66
- end
70
+ end
@@ -1,3 +1,3 @@
1
1
  module RailsDb
2
- VERSION = "1.3.4"
2
+ VERSION = "1.4.0"
3
3
  end
@@ -22,8 +22,12 @@ Gem::Specification.new do |s|
22
22
  s.add_dependency 'codemirror-rails'
23
23
  s.add_dependency 'terminal-table'
24
24
  s.add_dependency 'simple_form'
25
- s.add_dependency 'ransack', '<= 1.7.0'
26
- s.add_dependency 'kaminari'
25
+ s.add_dependency 'ransack'
26
+ if RUBY_VERSION == '1.9.3'
27
+ s.add_dependency 'kaminari', '< 1.0.0'
28
+ else
29
+ s.add_dependency 'kaminari'
30
+ end
27
31
  s.add_dependency 'sass'
28
32
 
29
33
  s.add_development_dependency "launchy"
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: 1.3.4
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-30 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: ransack
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "<="
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 1.7.0
89
+ version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "<="
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: 1.7.0
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: kaminari
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -529,7 +529,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
529
529
  version: '0'
530
530
  requirements: []
531
531
  rubyforge_project:
532
- rubygems_version: 2.4.7
532
+ rubygems_version: 2.6.8
533
533
  signing_key:
534
534
  specification_version: 4
535
535
  summary: Inspect your Rails DB (table content viewer, execute sql queries, export