dorsale 3.1.2 → 3.1.3
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/app/views/dorsale/_contextual.html.slim +11 -5
- data/app/views/dorsale/customer_vault/people/edit.html.slim +11 -5
- data/app/views/dorsale/customer_vault/people/new.html.slim +6 -3
- data/features/customer_vault_corporations.feature +7 -0
- data/features/step_definitions/customer_vault_corporations_steps.rb +15 -0
- data/lib/dorsale/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 08ea421dff0447a4f834775e045e2b91b0378936
|
|
4
|
+
data.tar.gz: 8ea32993c3887dd757d64edad7d33638b7ad4cfe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 385f3412fc7b8b6d345b7186e9a09361f8245f0bdad7d3da429ec345ecf7c387771b1a7ca7e4415c36046d0aea4ee68034cd0c4b9c9e323d947604a1e99d058d
|
|
7
|
+
data.tar.gz: 67965fbe7b24540d6055754bffd8790525a7a45c76d46669c9c687487b0cd732c912ad4b4386f425e9622cbce45bce36f602ee6398cdfc071ac3a7fd7776c922
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
- if content_for?(:context) && content_for?(:main)
|
|
2
|
+
.row
|
|
3
|
+
aside#context.col-sm-4.col-xs-12
|
|
4
|
+
= yield :context
|
|
5
|
+
#context-main.col-sm-8.col-xs-12
|
|
6
|
+
= yield :main
|
|
7
|
+
|
|
8
|
+
- elsif content_for?(:main)
|
|
9
|
+
.row
|
|
10
|
+
#context-main.col-sm-8.col-sm-offset-2.col-xs-12
|
|
11
|
+
= yield :main
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
.customer_vault
|
|
2
|
-
|
|
3
|
-
=
|
|
4
|
-
= " : "
|
|
5
|
-
= @person
|
|
2
|
+
- content_for :context
|
|
3
|
+
= render "dorsale/customer_vault/people/context", person: @person
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
- content_for :main
|
|
6
|
+
.panel.panel-default: .panel-heading: .panel-title
|
|
7
|
+
= t("actions.update")
|
|
8
|
+
= " : "
|
|
9
|
+
= @person
|
|
10
|
+
|
|
11
|
+
= render "dorsale/customer_vault/people/form"
|
|
12
|
+
|
|
13
|
+
= render_contextual
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
.customer_vault
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
- content_for :main
|
|
3
|
+
.panel.panel-default: .panel-heading: .panel-title
|
|
4
|
+
= t("actions.new_#{@person.person_type}")
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
= render "dorsale/customer_vault/people/form"
|
|
7
|
+
|
|
8
|
+
= render_contextual
|
|
@@ -16,6 +16,13 @@ Feature: Manage corporations
|
|
|
16
16
|
Then the corporation is created
|
|
17
17
|
And I am on the corporation page
|
|
18
18
|
|
|
19
|
+
Scenario: Delete a corporation
|
|
20
|
+
Given an existing corporation
|
|
21
|
+
When I go on this corporation
|
|
22
|
+
And I delete this corporation
|
|
23
|
+
Then the corporation is deleted
|
|
24
|
+
And I am on the people page
|
|
25
|
+
|
|
19
26
|
Scenario: Add tags
|
|
20
27
|
Given an existing corporation
|
|
21
28
|
When I edit this corporation
|
|
@@ -197,3 +197,18 @@ end
|
|
|
197
197
|
Then(/^I am on the corporation page$/) do
|
|
198
198
|
wait_for { current_path }.to eq dorsale.customer_vault_corporation_path(@corporation)
|
|
199
199
|
end
|
|
200
|
+
|
|
201
|
+
When(/^I delete this corporation$/) do
|
|
202
|
+
@corporations_count = ::Dorsale::CustomerVault::Corporation.count
|
|
203
|
+
|
|
204
|
+
find(".context [href$=edit]").click
|
|
205
|
+
find(".context [data-method=delete]").click
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
Then(/^the corporation is deleted$/) do
|
|
209
|
+
expect(::Dorsale::CustomerVault::Corporation.count).to eq (@corporations_count - 1)
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
Then(/^I am on the people page$/) do
|
|
213
|
+
expect(current_path).to eq dorsale.customer_vault_people_path
|
|
214
|
+
end
|
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.1.
|
|
4
|
+
version: 3.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- agilidée
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-09-
|
|
11
|
+
date: 2016-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|