marty 0.5.13 → 0.5.14

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: 4f79a79cfdce773e4530e872d06e272617fcaa9e
4
- data.tar.gz: f48be0761efff0640be9ac9d2402d99d9f2918dc
3
+ metadata.gz: 62e4573c0a62c67a00f1496bb2a994392e5362d9
4
+ data.tar.gz: 7f62a9c6a5a130e171a9e1959c1af0e08d9ad74d
5
5
  SHA512:
6
- metadata.gz: 9b897b88b9cba53aca91ac002021c13aedc9f666be21a98355c0911e7a97bb4c708c534637e57f955eeb3073aae41c008b6bf5146ff33a44ec7faf1a4faf9353
7
- data.tar.gz: 4539977273f8848e235876209f1e1148267bc84cb5bbb5536ea623bcb40cc6c40a27bd69fa031008d5f2bae3cd34985d420ebc9f1c11fc3949d7be7a70f110ed
6
+ metadata.gz: 96a9afe241c9b14a31588bf7c695c274b6ded6f873d98b7e8d68d1f0c2de6b6a15ebdca15eaadd87b4ad5139c83a7ba3e5959d30390732cc5b5724f555495da2
7
+ data.tar.gz: ad6da4446e1f074da66997fb00b8efa9e9bcd36d425bdc130b68fdf51199a0ef4fadacfdb9db44cdc9a126099bcb5ea39c844177d1d4cecb04a8ff31af661eb0
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Build Status](https://travis-ci.org/arman000/marty.svg)](https://travis-ci.org/arman000/marty)
1
2
  # Marty
2
3
 
3
4
  Marty is a framework for viewing and reporting on versioned data.
@@ -51,7 +52,7 @@ $ rake marty:delete_scripts
51
52
 
52
53
  # Testing
53
54
 
54
- Make sure that extjs is installed (or symbolically linked) in the
55
+ Make sure that extjs is installed (or symbolically linked) in the
55
56
  dummy app at spec/dummy/public.
56
57
 
57
58
  Marty currently only runs with postgresql. To be able to run the tests
data/Rakefile CHANGED
@@ -27,3 +27,4 @@ load 'rails/tasks/engine.rake'
27
27
 
28
28
  Bundler::GemHelper.install_tasks
29
29
 
30
+ task default: 'app:spec'
@@ -0,0 +1,4 @@
1
+ test:
2
+ adapter: postgresql
3
+ database: travis_ci_test
4
+ username: postgres
@@ -153,7 +153,8 @@ class Marty::DataConversion
153
153
 
154
154
  # unscope klass since we're sometimes sent lazy column classes
155
155
  q = klass.unscoped.where(find_options)
156
- q = q.where('obsoleted_dt >= ?', dt) if dt && Mcfly.has_mcfly?(klass)
156
+ q = q.where("obsoleted_dt >= ? AND created_dt < ?", dt, dt) if
157
+ dt && Mcfly.has_mcfly?(klass)
157
158
 
158
159
  # q.count is almost always 0 or 1 => hopefully it's not too slow on PG.
159
160
  raise "too many results for: #{klass} -- #{options}" if q.count > 1
data/lib/marty/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Marty
2
- VERSION = "0.5.13"
2
+ VERSION = "0.5.14"
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: 0.5.13
4
+ version: 0.5.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arman Bostani
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-10-13 00:00:00.000000000 Z
15
+ date: 2015-10-16 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: pg
@@ -420,6 +420,7 @@ files:
420
420
  - app/models/marty/user_role.rb~
421
421
  - app/views/layouts/marty/application.html.erb
422
422
  - app/views/layouts/marty/application.html.erb~
423
+ - config/database.yml.travis
423
424
  - config/locales/en.yml
424
425
  - config/routes.rb
425
426
  - config/routes.rb~