dorsale 3.11.0 → 3.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/app/controllers/dorsale/alexandrie/attachments_controller.rb +5 -5
- data/app/models/dorsale/billing_machine/quotation.rb +1 -1
- data/features/step_definitions/expense_gun_expenses_steps.rb +2 -2
- data/features/support/env.rb +1 -1
- data/lib/dorsale/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2929616b8560e74343ed527fd6ede62bc2ee0bfa66e7629390ef8c0963bfd27f
|
4
|
+
data.tar.gz: b3d12ad8b3c19316706583baebe2790b8f26e94e263806781fe6622beb1947fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3817c01b04ff4a47bb5a87f0a9073314a4a1ceae7c55018ddddeb1ed1c692e8d4ab647f1931876bf657d20355557174a2cec19aaa9d99f6a1fd0c6ee2990a888
|
7
|
+
data.tar.gz: 8621383721811a53a903e7c214163ef12ae2919fbec6c05304b1e0af5a1d0a7ddd4d32f9b0c36b5fe922f66ef3c48ed83e500e8e5db76c351ca4fcf6b6bfd9f0
|
data/CHANGELOG.md
CHANGED
@@ -23,7 +23,7 @@ class Dorsale::Alexandrie::AttachmentsController < ::Dorsale::ApplicationControl
|
|
23
23
|
authorize @attachment, :create?
|
24
24
|
|
25
25
|
if @attachment.save
|
26
|
-
notify_attachable
|
26
|
+
notify_attachable(:create)
|
27
27
|
else
|
28
28
|
flash.now[:alert] = t("messages.attachments.create_error")
|
29
29
|
end
|
@@ -41,7 +41,7 @@ class Dorsale::Alexandrie::AttachmentsController < ::Dorsale::ApplicationControl
|
|
41
41
|
authorize @attachment, :update?
|
42
42
|
|
43
43
|
if @attachment.update(attachment_params_for_update)
|
44
|
-
notify_attachable
|
44
|
+
notify_attachable(:update)
|
45
45
|
else
|
46
46
|
flash.now[:alert] = t("messages.attachments.update_error")
|
47
47
|
end
|
@@ -53,7 +53,7 @@ class Dorsale::Alexandrie::AttachmentsController < ::Dorsale::ApplicationControl
|
|
53
53
|
authorize @attachment, :delete?
|
54
54
|
|
55
55
|
if @attachment.destroy
|
56
|
-
notify_attachable
|
56
|
+
notify_attachable(:delete)
|
57
57
|
else
|
58
58
|
flash.now[:alert] = t("messages.attachments.delete_error")
|
59
59
|
end
|
@@ -117,7 +117,7 @@ class Dorsale::Alexandrie::AttachmentsController < ::Dorsale::ApplicationControl
|
|
117
117
|
render :index
|
118
118
|
end
|
119
119
|
|
120
|
-
def notify_attachable
|
121
|
-
@attachment.attachable.send(:try, :
|
120
|
+
def notify_attachable(action)
|
121
|
+
@attachment.attachable.send(:try, :on_attachment_action, @attachment, action)
|
122
122
|
end
|
123
123
|
end
|
@@ -15,7 +15,7 @@ When(/^I create a new expense$/) do
|
|
15
15
|
|
16
16
|
within all(".nested-fields").first do
|
17
17
|
find("input[id$='_name']").set "ExpenseLine1Name"
|
18
|
-
find("input[id$='_date']").set "21
|
18
|
+
find("input[id$='_date']").set "2015-06-21"
|
19
19
|
select @category.name
|
20
20
|
find("input[id$='_total_all_taxes']").set "100"
|
21
21
|
find("input[id$='_vat']").set "20"
|
@@ -26,7 +26,7 @@ When(/^I create a new expense$/) do
|
|
26
26
|
|
27
27
|
within all(".nested-fields").last do
|
28
28
|
find("input[id$='_name']").set "ExpenseLine2Name"
|
29
|
-
find("input[id$='_date']").set "12
|
29
|
+
find("input[id$='_date']").set "2015-06-12"
|
30
30
|
select @category.name
|
31
31
|
find("input[id$='_total_all_taxes']").set "200"
|
32
32
|
find("input[id$='_vat']").set "40"
|
data/features/support/env.rb
CHANGED
data/lib/dorsale/version.rb
CHANGED
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.
|
4
|
+
version: 3.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agilidée
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|