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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c394199af7cd91afcc3d220282f9c71e3b14b8a
4
- data.tar.gz: 06b5d864aa55794ea9265b632192ccaf2ba4288d
3
+ metadata.gz: 9cc4debf2b6d55472335e0bce1a41af9ce855bff
4
+ data.tar.gz: 2f6fdf210d8b71c6f0029cd135865de72724b9d5
5
5
  SHA512:
6
- metadata.gz: 75f35fd84725b18e824da1c48bcca3cdd375814353fd720bfff8634c8b95185cc1e3c5c413225f5bb6ee97c62ac2b97334b2bae3c66c438031e73516412c9ab4
7
- data.tar.gz: 36fbc0c0b6bd9796273e56a1dc75a073b2d29996daae39b113471517947529cff28d33cdfccde39ce0bb85ab27f50e97ef9eefccc7127272024ba7721609f646
6
+ metadata.gz: 50320b1a4f0a32e6b2c475b6b338c9797a2785a0cee523b9850469fdb1579b1d8b0fdc45b7f3f77501eefeceb04321081b904a1ea7ab03753c0e081cf405d0c7
7
+ data.tar.gz: 352e67cf460c0476d90691c65cbfc91fde96af45b15730e48fc2a1c8f2e2e90d89aa531c182eacc0f9eb117da3d9580a8261206d8d92f169e9bb4bfcf145a7f9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.8.7
2
+
3
+ * fixed bug in association call
4
+
5
+ * support namespaced rails models
6
+
1
7
  ## 0.8.5
2
8
 
3
9
  * Added `order_by` option to `table_for` for default sorting.
@@ -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
 
@@ -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)
@@ -22,5 +22,5 @@
22
22
  #++
23
23
 
24
24
  module Tabulatr
25
- VERSION = "0.8.6"
25
+ VERSION = "0.8.7"
26
26
  end
@@ -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-1]
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.6
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-11 00:00:00.000000000 Z
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: