dorsale 3.10.1 → 3.10.2

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
- SHA1:
3
- metadata.gz: 6559b13a1111e750335152391d9ad213511c9ff0
4
- data.tar.gz: dff3aeadb39a076fdbde226fab8be96655a36a9b
2
+ SHA256:
3
+ metadata.gz: eb501f49f1e2bacff0bd52c7ca459c03a99e76d327fe64331e9c98b5d60713f3
4
+ data.tar.gz: 77b9d0b8aa7329a03c1d8a409e8ff2a7a1bf3ef6bc35b1379f6a5b0fc4cfdf41
5
5
  SHA512:
6
- metadata.gz: 2d68ee55bcee6d19c132bab307068d404c01c8e297332d806b8c58bae0bc529c6ea3c8f93f406b15aadf2d2a253e0d506a18543cae11566f4b9c8f7e3f748576
7
- data.tar.gz: 10287be7d16627f1a5f74cd8821dcd23e14e97f46ed6c50ff3d74355dbc0858501fe6ef13891f15657beaba7132f809f5d3ebbc9470b9ffed4dd813801094b0c
6
+ metadata.gz: f6fd21636445c35357995909f32141b88b8020a302a669ad290ccdfaf5d3930ab30b55265372274a84ede4153af303b5a634d14a3dea312c1e506cec76c1302b
7
+ data.tar.gz: ac081c8289bb853f72957a473d1585031affd16fa2fedf2e411000d5759e894f3b873c6604acecf6033ff6f9f60b9fa00ad46aaa0a47dc5b7f8d2008599021de
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## 3.10.2
6
+
7
+ - Update Ruby and Gems
8
+
5
9
  ## 3.10.1
6
10
 
7
11
  - Email fixes and improvements
@@ -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
@@ -18,7 +18,7 @@ class Dorsale::Flyboy::Task::Snoozer < ::Dorsale::Service
18
18
  task.reminder_date = task.reminder_date + snooze_reminder_value
19
19
  end
20
20
 
21
- task.save
21
+ return task.save
22
22
  end
23
23
 
24
24
  def snoozable?
@@ -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|
@@ -7,7 +7,7 @@ Then(/^the file is downloaded$/) do
7
7
  end
8
8
 
9
9
  Given(/^a very long comment on this person$/) do
10
- text = Faker::Lorem.paragraph(10)
10
+ text = Faker::Lorem.paragraph(30)
11
11
  @comment = create(:customer_vault_event_comment, person: @person, text: text)
12
12
  end
13
13
 
@@ -1,3 +1,3 @@
1
1
  module Dorsale
2
- VERSION = "3.10.1"
2
+ VERSION = "3.10.2"
3
3
  end
@@ -1,7 +1,6 @@
1
1
  FactoryBot.define do
2
2
  factory :billing_machine_invoice_line, class: ::Dorsale::BillingMachine::InvoiceLine do
3
3
  invoice { create(:billing_machine_invoice) }
4
-
5
4
  label { "Invoice line" + Faker::Lorem.words.join(" ") }
6
5
  quantity { 10 }
7
6
  unit { "€" }
@@ -1,7 +1,6 @@
1
1
  FactoryBot.define do
2
2
  factory :billing_machine_quotation_line, class: ::Dorsale::BillingMachine::QuotationLine do
3
3
  quotation { create(:billing_machine_quotation) }
4
-
5
4
  label { "Quotation line" + Faker::Lorem.words.join(" ") }
6
5
  quantity { 10 }
7
6
  unit { "€" }
@@ -2,6 +2,6 @@ FactoryBot.define do
2
2
  factory :customer_vault_link, class: ::Dorsale::CustomerVault::Link do
3
3
  association :alice, factory: :customer_vault_individual
4
4
  association :bob, factory: :customer_vault_corporation
5
- title "Manager"
5
+ title { "Manager" }
6
6
  end
7
7
  end
@@ -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.1
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-09-28 00:00:00.000000000 Z
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.13
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