dorsale 3.10.1 → 3.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/app/models/dorsale/customer_vault/person.rb +2 -0
- data/app/services/dorsale/flyboy/task/snoozer.rb +1 -1
- data/features/step_definitions/billing_machine_invoices_steps.rb +2 -2
- data/features/step_definitions/billing_machine_quotations_steps.rb +1 -1
- data/features/step_definitions/customer_vault_people_steps.rb +1 -1
- data/lib/dorsale/version.rb +1 -1
- data/spec/factories/billing_machine_invoice_lines.rb +0 -1
- data/spec/factories/billing_machine_quotation_lines.rb +0 -1
- data/spec/factories/customer_vault_links.rb +1 -1
- data/spec/factories/flyboy_task_comments.rb +2 -2
- data/spec/factories/flyboy_tasks.rb +2 -2
- data/spec/models/dorsale/billing_machine/invoice_spec.rb +1 -1
- data/spec/models/dorsale/billing_machine/quotation_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: eb501f49f1e2bacff0bd52c7ca459c03a99e76d327fe64331e9c98b5d60713f3
|
4
|
+
data.tar.gz: 77b9d0b8aa7329a03c1d8a409e8ff2a7a1bf3ef6bc35b1379f6a5b0fc4cfdf41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6fd21636445c35357995909f32141b88b8020a302a669ad290ccdfaf5d3930ab30b55265372274a84ede4153af303b5a634d14a3dea312c1e506cec76c1302b
|
7
|
+
data.tar.gz: ac081c8289bb853f72957a473d1585031affd16fa2fedf2e411000d5759e894f3b873c6604acecf6033ff6f9f60b9fa00ad46aaa0a47dc5b7f8d2008599021de
|
data/CHANGELOG.md
CHANGED
@@ -107,11 +107,13 @@ class Dorsale::CustomerVault::Person < ::Dorsale::ApplicationRecord
|
|
107
107
|
a = ::Dorsale::CustomerVault::Link
|
108
108
|
.where(alice_id: id)
|
109
109
|
.preload(:alice => :taggings, :bob => :taggings)
|
110
|
+
.to_a
|
110
111
|
.each { |l| l.person = l.alice; l.other_person = l.bob }
|
111
112
|
|
112
113
|
b = ::Dorsale::CustomerVault::Link
|
113
114
|
.where(bob_id: id)
|
114
115
|
.preload(:alice => :taggings, :bob => :taggings)
|
116
|
+
.to_a
|
115
117
|
.each { |l| l.person = l.bob; l.other_person = l.alice }
|
116
118
|
|
117
119
|
return a + b
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Given(/^an existing emtpy invoice$/) do
|
2
2
|
@invoice = create(:billing_machine_invoice, label: nil, customer: nil, payment_term_id: nil)
|
3
3
|
@invoice.due_date = nil
|
4
|
-
@invoice.save
|
4
|
+
@invoice.save!
|
5
5
|
end
|
6
6
|
|
7
7
|
Given(/^(\d+) existing invoices$/) do |count|
|
@@ -10,7 +10,7 @@ end
|
|
10
10
|
|
11
11
|
Given(/^an existing invoice$/) do
|
12
12
|
@invoice = create(:billing_machine_invoice, customer: @customer)
|
13
|
-
@invoice.lines.create(quantity: 1, unit_price: 9.99)
|
13
|
+
@invoice.lines.create!(quantity: 1, unit_price: 9.99)
|
14
14
|
end
|
15
15
|
|
16
16
|
Given(/^an existing invoice with a "(.*?)"% VAT rate$/) do |rate|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Given(/^an existing quotation$/) do
|
2
2
|
@quotation = create(:billing_machine_quotation, customer: @customer)
|
3
|
-
@quotation.lines.create(quantity: 1, unit_price: 9.99)
|
3
|
+
@quotation.lines.create!(quantity: 1, unit_price: 9.99)
|
4
4
|
end
|
5
5
|
|
6
6
|
Given(/^(\d+) existing quotations$/) do |nb|
|
data/lib/dorsale/version.rb
CHANGED
@@ -2,8 +2,8 @@ FactoryBot.define do
|
|
2
2
|
factory :flyboy_task_comment, class: ::Dorsale::Flyboy::TaskComment do
|
3
3
|
task { create(:flyboy_task) }
|
4
4
|
date { Time.zone.now }
|
5
|
-
progress 95
|
6
|
-
description "I-am-a-task-comment"
|
5
|
+
progress { 95 }
|
6
|
+
description { "I-am-a-task-comment" }
|
7
7
|
author { create(:user) }
|
8
8
|
end
|
9
9
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
FactoryBot.define do
|
2
2
|
factory :flyboy_task, class: ::Dorsale::Flyboy::Task do
|
3
|
-
name { "I-am-a-task#{Kernel.rand(1_000..9_999)}"
|
3
|
+
name { "I-am-a-task#{Kernel.rand(1_000..9_999)}" }
|
4
4
|
description { "I-am-the-task-description_#{Kernel.rand(1_000..9_999)}" }
|
5
5
|
progress { Kernel.rand(0..99) }
|
6
|
-
done false
|
6
|
+
done { false }
|
7
7
|
end
|
8
8
|
end
|
@@ -107,7 +107,7 @@ describe Dorsale::BillingMachine::Invoice, type: :model do
|
|
107
107
|
invoice = build(:billing_machine_invoice)
|
108
108
|
invoice.lines << ::Dorsale::BillingMachine::InvoiceLine.new(quantity: 1, unit_price: 10)
|
109
109
|
invoice.lines << ::Dorsale::BillingMachine::InvoiceLine.new(quantity: 1, unit_price: 10)
|
110
|
-
invoice.save
|
110
|
+
invoice.save!
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
@@ -44,7 +44,7 @@ describe Dorsale::BillingMachine::Quotation do
|
|
44
44
|
quotation = build(:billing_machine_quotation)
|
45
45
|
quotation.lines << ::Dorsale::BillingMachine::QuotationLine.new(quantity: 1, unit_price: 10)
|
46
46
|
quotation.lines << ::Dorsale::BillingMachine::QuotationLine.new(quantity: 1, unit_price: 10)
|
47
|
-
quotation.save
|
47
|
+
quotation.save!
|
48
48
|
end
|
49
49
|
|
50
50
|
describe "unique_index" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dorsale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.10.
|
4
|
+
version: 3.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agilidée
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -1024,7 +1024,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1024
1024
|
version: '0'
|
1025
1025
|
requirements: []
|
1026
1026
|
rubyforge_project:
|
1027
|
-
rubygems_version: 2.6
|
1027
|
+
rubygems_version: 2.7.6
|
1028
1028
|
signing_key:
|
1029
1029
|
specification_version: 4
|
1030
1030
|
summary: Modular ERP made with Ruby on Rails
|