marty 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9eca20c44c4ac0d2d1aee885ad3f191084430fcb
4
- data.tar.gz: bb1d9ade2b3762cd8498d059e3d7dba62eb247a9
3
+ metadata.gz: b3706e10b3963927d93e8fe86eb70aa4b78e05cb
4
+ data.tar.gz: 9aaa8850f9ae36f04d4e1199f5514a6a20f1bba4
5
5
  SHA512:
6
- metadata.gz: 1e34d45e691a904e1823b386b8f0b0141c7b03662847706eb951375bc4a210d3d6fb1f9197f21de70601969f4028ee7fe7debdcece2d9c4f91e11f6c2e963200
7
- data.tar.gz: d25b19be0b9a86e1fbbfe2fd617d8b64d0202d2ef1c0a21ca9136e5ccc5d0bd007ccda1f2b107bda101a9881d2954ac72595957fdd0aa6c9aeef0a050dae1eba
6
+ metadata.gz: 52d297b24f77a152fafbad2bd27af1b1053b31862b9262d611f427984184e344878194b73e9da811667df30a7e880a30cf51fe359218f1fa6c7ada97c567fa25
7
+ data.tar.gz: fbe6d7c752d6adcd8c83657c983d18c05701d63bb99d0bb12f6af40469796d5f1bfc334957d8237b891f25203ec2b19e1294f7caef6dfbad65518780e88a9b49
File without changes
@@ -133,8 +133,8 @@ require 'netzke/basepack/data_adapters/active_record_adapter'
133
133
  module Netzke::Basepack::DataAdapters
134
134
  class ActiveRecordAdapter < AbstractAdapter
135
135
  # FIXME: another giant hack to handle lazy_load columns.
136
- # Modified original count_records to call count('*') instead of
137
- # count when lazy-loaded. Otherwise, we run into issues with
136
+ # Modified original count_records to call count on first passed column.name
137
+ # when lazy-loaded. Otherwise, we run into issues with
138
138
  # counting records in the default_scope placed by the lazy_load
139
139
  # module.
140
140
  def count_records(params, columns=[])
@@ -145,7 +145,7 @@ module Netzke::Basepack::DataAdapters
145
145
  relation = relation.includes(assoc.to_sym).references(assoc.to_sym) if method
146
146
  end
147
147
 
148
- @model.const_defined?(:LAZY_LOADED) ? relation.unscoped.count :
148
+ @model.const_defined?(:LAZY_LOADED) ? relation.count(columns.first.name) :
149
149
  relation.count
150
150
  end
151
151
 
@@ -1,3 +1,3 @@
1
1
  module Marty
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arman Bostani
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2016-07-14 00:00:00.000000000 Z
17
+ date: 2016-07-19 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: pg
@@ -1538,7 +1538,6 @@ files:
1538
1538
  - spec/features/data_import_spec.rb
1539
1539
  - spec/features/javascripts/job_dashboard_live_search.js.coffee
1540
1540
  - spec/features/javascripts/login.js.coffee
1541
- - spec/features/jobs_dashboard_netzke_spec.rb
1542
1541
  - spec/features/jobs_dashboard_spec.rb
1543
1542
  - spec/features/reporting_spec.rb
1544
1543
  - spec/features/scripting_spec.rb
@@ -1,24 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'Jobs Dashboard - Netzke::Testing', type: :feature, js: true,
4
- capybara: true, netzke_testing: true do
5
- it 'filters out usernames other than the one specified in the search box' do
6
- other_user = Marty::User.create(login: 'other',
7
- firstname: 'other',
8
- lastname: 'other',
9
- active: true)
10
- Marty::Promise.create title: "Test Job 1",
11
- user: Marty::User.find_by(login: 'marty'),
12
- cformat: 'csv',
13
- start_dt: Time.now
14
- Marty::Promise.create title: "Test Job 2",
15
- user: other_user,
16
- cformat: 'csv',
17
- start_dt: Time.now
18
-
19
- run_mocha_spec 'login', component: 'marty__auth_app'
20
-
21
- run_mocha_spec 'job_dashboard_live_search',
22
- component: 'Marty::PromiseView'
23
- end
24
- end