card 1.18.2 → 1.18.3

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: 040ce812a1f8d7900a5c5e742871133e90225ff0
4
- data.tar.gz: e03884ae6c5850eeec5b6456cdaa202c4f6da9c2
3
+ metadata.gz: 79f534a7d9b3208b5b7143640ad679318942a002
4
+ data.tar.gz: 14cf3b61c892dda96b7f2ac8bf722adc852f1e87
5
5
  SHA512:
6
- metadata.gz: d6de0ea37ead3e1e4de679e46e2d013e9707303550e43d3c44a111c83a857d1483e0ace41ea9c31cbf92f109713391ab5f8f49518353cbd429517aeabb5de277
7
- data.tar.gz: 0b923c3dd12e2ef9df97c19d5fae2c0a198dddc8b032bc70fea8a82637aba4eacecb0765e177427828976f469847512fe36b7f148b669cb521afce246acc955f
6
+ metadata.gz: 439daf4172199571908880128f72ed6ee9beac8f4be926c3235e2802104909abc945838eac4a0268fa2fa4dcb794112dd6326f184be12009baeb3a4cb1829db5
7
+ data.tar.gz: 309648a222f5583ffba3c83055e20357f705fd2edc3d08d3a126609466505a6f9f12bdbc6c60f1c88f469bf17383e76049a53db3c5a95e37e84613e113f72653
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.18.2
1
+ 1.18.3
@@ -3,7 +3,9 @@ class MoveRevisionsToActions < ActiveRecord::Migration
3
3
  belongs_to :tmp_card, foreign_key: :card_id
4
4
  self.table_name = 'card_revisions'
5
5
  def self.delete_cardless
6
- TmpRevision.where(TmpCard.where(id: arel_table[:card_id]).exists.not).delete_all
6
+ left_join = 'LEFT JOIN card_revisions '\
7
+ 'ON card_revisions.card_id = cards.id'
8
+ TmpRevision.joins(left_join).where('cards.id IS NULL').delete_all
7
9
  end
8
10
  end
9
11
  class TmpAct < ActiveRecord::Base
@@ -78,7 +78,7 @@ class Card::Migration < ActiveRecord::Migration
78
78
  end
79
79
 
80
80
  def import_json filename, merge_opts={}
81
- Card.config.action_mailer.perform_deliveries = false
81
+ Card::Mailer.perform_deliveries = false
82
82
  output_file = File.join data_path, "unmerged_#{filename}"
83
83
  merge_opts[:output_file] ||= output_file
84
84
  Card.merge_list read_json(filename), merge_opts
@@ -1,3 +1,7 @@
1
1
  format :html do
2
2
  include AddHelp::HtmlFormat
3
3
  end
4
+
5
+ def empty_ok?
6
+ true
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.2
4
+ version: 1.18.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-03-03 00:00:00.000000000 Z
14
+ date: 2016-03-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: smartname