plutus 0.14 → 0.15

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
  SHA256:
3
- metadata.gz: 0aaa19cffdd4a91c7dbfefce4263711e8b8731a53510ee4a96963b07f113b0ae
4
- data.tar.gz: 9778f6eda822dda5db140b40b50c206dc96e1e9a921a0e64ffd1d660e29d5db3
3
+ metadata.gz: f8065148547846775eb69a045ab294f98229eba48276fdeff5db760534264d6b
4
+ data.tar.gz: a1ccfe5713169766bc4ff1582489b91113e404b47ee345f7cb809dfa155718c9
5
5
  SHA512:
6
- metadata.gz: 5171b284aa177e22422da572f29c01c624463c5e609ca010e700a3cf134de999fc29cd7ceafb36df43a5b530a3c3a8821ed0f7dccac75aa1b94461f123d4e668
7
- data.tar.gz: ba4f84dc1529509892c61ae4d83dd226b8168fde4e4b73bddfe40e416e35fb56ac302a96b47b373c8fde3b8e2daa557864a27fdc970c5f7b1ee41df8b1809e27
6
+ metadata.gz: abd85e610d29aa6ec688a89b6cc739aa6c3a8aae484908fa5fc85c65b1e162e1d2342316c2c282cfe4b773299251fcc0187776f9c14a04d9b07cd54546970490
7
+ data.tar.gz: 6df2d57b5a8972f40e2b065b94cb6b7cacd1edfba519d07105917c52dadf20a7b57f03a50d9060e5a37409c5e87e67d409ae7e111916739cfa2900af5c258fbb
@@ -12,5 +12,5 @@
12
12
  //
13
13
  //= require jquery
14
14
  //= require jquery_ujs
15
- //= require jquery-ui/datepicker
15
+ //= require jquery-ui/widgets/datepicker
16
16
  //= require_tree .
@@ -0,0 +1,12 @@
1
+ class AddDateToPlutusEntries < ActiveRecord::Migration[4.2]
2
+ def change
3
+ add_column :plutus_entries, :date, :date
4
+ add_index :plutus_entries, :date
5
+
6
+ execute <<-SQL
7
+ UPDATE plutus_entries
8
+ SET date = created_at
9
+ WHERE date is null
10
+ SQL
11
+ end
12
+ end
@@ -0,0 +1,17 @@
1
+ class UpdatePlutusTables < ActiveRecord::Migration
2
+ def change
3
+ # we have to remove these indexes because the temporary
4
+ # table index name is too long
5
+ remove_index :plutus_amounts, [:account_id, :transaction_id]
6
+ remove_index :plutus_amounts, [:transaction_id, :account_id]
7
+ remove_index :plutus_transactions, column: [:commercial_document_id, :commercial_document_type], :name => "index_transactions_on_commercial_doc"
8
+
9
+ rename_table :plutus_transactions, :plutus_entries
10
+ rename_column :plutus_amounts, :transaction_id, :entry_id
11
+
12
+ # adding the indexes back
13
+ add_index :plutus_amounts, [:account_id, :entry_id]
14
+ add_index :plutus_amounts, [:entry_id, :account_id]
15
+ add_index :plutus_entries, [:commercial_document_id, :commercial_document_type], :name => "index_entries_on_commercial_doc"
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Plutus
2
- VERSION = "0.14"
2
+ VERSION = "0.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plutus
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.14'
4
+ version: '0.15'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bulat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-31 00:00:00.000000000 Z
11
+ date: 2020-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -152,7 +152,9 @@ files:
152
152
  - lib/generators/plutus/add_date_upgrade_generator.rb
153
153
  - lib/generators/plutus/base_generator.rb
154
154
  - lib/generators/plutus/plutus_generator.rb
155
+ - lib/generators/plutus/templates/add_date_migration.rb
155
156
  - lib/generators/plutus/templates/tenant_migration.rb
157
+ - lib/generators/plutus/templates/update_migration.rb
156
158
  - lib/generators/plutus/tenancy_generator.rb
157
159
  - lib/generators/plutus/upgrade_plutus_generator.rb
158
160
  - lib/plutus.rb