tabulatr2 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/assets/javascripts/tabulatr/application.js +2 -2
- data/app/views/tabulatr/_tabulatr_info_string.html.slim +1 -1
- data/app/views/tabulatr/_tabulatr_table.html.slim +1 -1
- data/lib/tabulatr/data/dsl.rb +0 -1
- data/lib/tabulatr/version.rb +1 -1
- data/spec/features/tabulatrs_spec.rb +2 -1
- data/tabulatr.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cc4debf2b6d55472335e0bce1a41af9ce855bff
|
4
|
+
data.tar.gz: 2f6fdf210d8b71c6f0029cd135865de72724b9d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50320b1a4f0a32e6b2c475b6b338c9797a2785a0cee523b9850469fdb1579b1d8b0fdc45b7f3f77501eefeceb04321081b904a1ea7ab03753c0e081cf405d0c7
|
7
|
+
data.tar.gz: 352e67cf460c0476d90691c65cbfc91fde96af45b15730e48fc2a1c8f2e2e90d89aa531c182eacc0f9eb117da3d9580a8261206d8d92f169e9bb4bfcf145a7f9
|
data/CHANGELOG.md
CHANGED
@@ -278,8 +278,8 @@ $(document).on('ready page:load', function(){
|
|
278
278
|
};
|
279
279
|
|
280
280
|
$('.tabulatr_table').each(function(ix, el){
|
281
|
-
if($('.pagination[data-table='+ $(el).attr('id') +']').length == 0){
|
282
|
-
$('.pagination_trigger[data-table='+ $(el).attr('id') +']').bind('inview', cbfn);
|
281
|
+
if($('.pagination[data-table="'+ $(el).attr('id') +'"]').length == 0){
|
282
|
+
$('.pagination_trigger[data-table="'+ $(el).attr('id') +'"]').bind('inview', cbfn);
|
283
283
|
}
|
284
284
|
});
|
285
285
|
|
@@ -19,5 +19,5 @@
|
|
19
19
|
/ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
20
|
/ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
21
|
|
22
|
-
div.tabulatr_count data-table="#{klass.to_s.downcase}_table" data-format-string=I18n.t('tabulatr.count')
|
22
|
+
div.tabulatr_count data-table="#{klass.to_s.gsub(/::/, '--').downcase}_table" data-format-string=I18n.t('tabulatr.count')
|
23
23
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
/ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
20
|
/ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
21
|
|
22
|
-
- table_id = "#{klass.to_s.downcase}_table"
|
22
|
+
- table_id = "#{klass.to_s.gsub(/::/, '--').downcase}_table"
|
23
23
|
- opts = { columns: columns, table_options: table_options, \
|
24
24
|
klass: klass, classname: classname, table_id: table_id }
|
25
25
|
|
data/lib/tabulatr/data/dsl.rb
CHANGED
@@ -39,7 +39,6 @@ module Tabulatr::Data::DSL
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def association(assoc, name, sort_sql: nil, filter_sql: nil, sql: nil, table_column_options: {}, &block)
|
42
|
-
@table_columns ||= Tabulatr::Renderer::Columns.new
|
43
42
|
@assocs ||= HashWithIndifferentAccess.new
|
44
43
|
@assocs[assoc.to_sym] ||= {}
|
45
44
|
@table_columns ||= Tabulatr::Renderer::Columns.new(nil)
|
data/lib/tabulatr/version.rb
CHANGED
@@ -223,8 +223,9 @@ describe "Tabulatr" do
|
|
223
223
|
end
|
224
224
|
Product.count.should > 10
|
225
225
|
visit simple_index_products_path
|
226
|
+
l = names.count
|
226
227
|
(1..10).each do |i|
|
227
|
-
page.should have_content names[i
|
228
|
+
page.should have_content names[l-i]
|
228
229
|
end
|
229
230
|
within('.tabulatr_table thead') do
|
230
231
|
find('th[data-tabulatr-column-name=title]').click
|
data/tabulatr.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
"Tries to do for tables what formtastic and simple_form did "+
|
18
18
|
"for forms."
|
19
19
|
s.authors = ['Peter Horn', 'René Sprotte', 'Florian Thomas']
|
20
|
-
|
20
|
+
s.license = 'MIT'
|
21
21
|
s.files = `git ls-files`.split("\n")
|
22
22
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
23
23
|
s.rdoc_options = ['--charset=UTF-8']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabulatr2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Horn
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-11-
|
13
|
+
date: 2013-11-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -181,7 +181,8 @@ files:
|
|
181
181
|
- spec/spec_helper.rb
|
182
182
|
- tabulatr.gemspec
|
183
183
|
homepage: http://github.com/provideal/tabulatr2
|
184
|
-
licenses:
|
184
|
+
licenses:
|
185
|
+
- MIT
|
185
186
|
metadata: {}
|
186
187
|
post_install_message:
|
187
188
|
rdoc_options:
|