marty 0.5.29 → 0.5.30

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: 0eb409a0b5479f611d8ee7f84c28ee00198af598
4
- data.tar.gz: 938c7c8e7d944f883d212800c6944d80c7382755
3
+ metadata.gz: a6f6ae3f8de45632f30c956f678af08c47b405b1
4
+ data.tar.gz: e2ba5a92b204f703bb8c9ef805a89c13b0ddecfd
5
5
  SHA512:
6
- metadata.gz: 4d81bb14296b79c16a5ce0d1b78f85a81d4128210d17b166e87d449aa4dab61a66d1c624584c855a72e6c3fa068dc930d81f86fcfb342224eb44edf4dd891a0b
7
- data.tar.gz: 3f58c2706f595e2e0c491c0fedf633f3abf5aa2925623d5d5f3ba30c52f4fa83a3578ef9555f193355dbb1414e6c3f5f38b4d09e775beed0728d2ac0230ed492
6
+ metadata.gz: 5a748aaab77334c1b2ec3fd11deb42158c4ff517372047d397fc7093d85cea40f282a7046ae6549298ec997b9cef50a6a2be5be60c0c19fe0f4d59b761e812a9
7
+ data.tar.gz: 07246a3ec714c4ead02182ef21603c3b672c774b4d8fc16b5b77156aa6b98c845488608301f9c10dfa6cfbb51680fd47898d46f64841bf9746b1b4f6453cfcbf
data/.travis.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
- - 2.2.2
4
+ - 2.3.0
5
5
 
6
6
  before_script:
7
7
  - cp config/database.yml.travis spec/dummy/config/database.yml
@@ -102,9 +102,9 @@ module Marty::Migrations
102
102
  "= #{tn_alias}.id"
103
103
  target_name = c.gsub(/_id$/,'_name')
104
104
  columns.push "#{tn_alias}.name as #{target_name}"
105
- extras.select { |(table, column)| table_name == table }.each do
106
- |(table, column)|
107
- columns.push "#{tn_alias}.#{column} as #{table_name}_#{column}"
105
+ extras.each do |(table, column, new_colname)|
106
+ columns.push "#{tn_alias}.#{column} as #{new_colname}" if
107
+ table == table_name
108
108
  end
109
109
  else
110
110
  columns.push "main.#{c}"
data/lib/marty/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Marty
2
- VERSION = "0.5.29"
2
+ VERSION = "0.5.30"
3
3
  end
@@ -15,7 +15,7 @@ select
15
15
  main.obsoleted_dt,
16
16
  main.name,
17
17
  marty_posting_types1.name as posting_type_name,
18
- marty_posting_types1.id as marty_posting_types_id
18
+ marty_posting_types1.id as post_type_id
19
19
  from marty_postings main
20
20
  join marty_users u on main.user_id = u.id
21
21
  left join marty_users ou on main.o_user_id = ou.id
@@ -7,7 +7,8 @@ module Marty
7
7
  Marty::Migrations.write_view(tdir,
8
8
  'vw_marty_postings',
9
9
  Marty::Posting, {}, ["comment"],
10
- [["marty_posting_types", "id"]])
10
+ [["marty_posting_types", "id",
11
+ "post_type_id"]])
11
12
  filename = "vw_marty_postings.sql"
12
13
  genfile = File.join(tdir,filename)
13
14
  generated = File.read(genfile)
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.29
4
+ version: 0.5.30
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-02-18 00:00:00.000000000 Z
17
+ date: 2016-02-19 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: pg