defmastership 1.0.14 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 942362543576801349518b2d73e49abb5cfb076b246df05a7e28fe86814b506e
4
- data.tar.gz: 1a351eadc8b3583df8f31b590225a4b8e5207d7db089b3a62ac644f03fa02c08
3
+ metadata.gz: 615339b09506e076db9c98a773e115daaa9914bafebef1029af8c4c9e8266dc0
4
+ data.tar.gz: 14b7cf352d495dc847cdd9fbdfff6abd821ebc0e6a8f6f2334ecb16c7bc87de2
5
5
  SHA512:
6
- metadata.gz: 6151951967b1d4b0e2108b2b11f101045780d6ec3f8ba4505078dbb1c240f2795bd56cce0f177187c58b2d8dacd3d63c1cfce6ca8969cb5f54d972d32d61e42b
7
- data.tar.gz: 6836a23ffae998a9a1b54716941b0e9bb661e81f18a4422ad984af1ee41218b685ba937c108298f8a02cf348af434ddd1138f81c5644017193c5d72d6ad2cbdd
6
+ metadata.gz: ebd3eb769920a15442d8a048e55b5fb124aa4a5c2916a85378d5d9f07c20b29b160c94b12e783d5d4a4f89f9aa5d80342065d533b66c6972de74eb1adaecbc59
7
+ data.tar.gz: ad72f426a240eda86b517a9d5e7bd8f28cc037acef3a7a391880a2e9c4e4432309a962b810086aed081c97bdc63a2fd4709dd4de261828e520bd93649b7cb55e
@@ -130,7 +130,7 @@ Feature: The extract command
130
130
  ----
131
131
  """
132
132
  When I successfully run `defmastership export toto.adoc`
133
- Then the file "toto.csv" should not contain:
133
+ Then the file "toto.csv" should contain:
134
134
  """
135
135
  something_else
136
136
  """
@@ -10,7 +10,7 @@ module DefMastership
10
10
 
11
11
  def enabled?(line)
12
12
  line = line.dup.chomp
13
- if ['....', '----', '////'].include?(line)
13
+ if ['....', '////'].include?(line)
14
14
  if @last_disabling_line == line
15
15
  @last_disabling_line = nil
16
16
  elsif @last_disabling_line.nil?
@@ -2,6 +2,6 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module DefMastership
5
- VERSION = '1.0.14'
5
+ VERSION = '1.0.15'
6
6
  public_constant :VERSION
7
7
  end
@@ -15,41 +15,31 @@ RSpec.describe(DefMastership::ParsingState) do
15
15
  describe '#enabled_with?' do
16
16
  context 'when starting' do
17
17
  it { expect(parsing_state.enabled?("whatever\n")).to(eq(true)) }
18
- it { expect(parsing_state.enabled?("----\n")).to(eq(false)) }
19
18
  it { expect(parsing_state.enabled?("....\n")).to(eq(false)) }
20
19
  it { expect(parsing_state.enabled?("////\n")).to(eq(false)) }
21
20
  it { expect(parsing_state.enabled?('....')).to(eq(false)) }
22
21
  end
23
22
 
24
23
  context 'when disabled' do
25
- before { parsing_state.enabled?("----\n") }
24
+ before { parsing_state.enabled?("....\n") }
26
25
 
27
26
  it { expect(parsing_state.enabled?("whatever\n")).to(eq(false)) }
28
- it { expect(parsing_state.enabled?("----\n")).to(eq(true)) }
29
- it { expect(parsing_state.enabled?("....\n")).to(eq(false)) }
30
27
  it { expect(parsing_state.enabled?("////\n")).to(eq(false)) }
28
+ it { expect(parsing_state.enabled?("....\n")).to(eq(true)) }
31
29
  end
32
30
 
33
31
  context 'with intricated disables starting with "...."' do
34
32
  before do
35
- ["....\n", "----\n", "whatever\n"].each { |line| parsing_state.enabled?(line) }
33
+ ["....\n", "////\n", "whatever\n"].each { |line| parsing_state.enabled?(line) }
36
34
  end
37
35
 
38
36
  it { expect(parsing_state.enabled?("----\n")).to(eq(false)) }
39
37
  it { expect(parsing_state.enabled?("....\n")).to(eq(true)) }
40
38
  end
41
39
 
42
- context 'with intricated disables starting with "----"' do
43
- before do
44
- ["....\n", "----\n", "whatever\n"].each { |line| parsing_state.enabled?(line) }
45
- end
46
-
47
- it { expect(parsing_state.enabled?("....\n")).to(eq(true)) }
48
- end
49
-
50
40
  context 'with intricated disables starting with "////"' do
51
41
  before do
52
- ["////\n", "----\n", "whatever\n"].each { |line| parsing_state.enabled?(line) }
42
+ ["////\n", "....\n", "whatever\n"].each { |line| parsing_state.enabled?(line) }
53
43
  end
54
44
 
55
45
  it { expect(parsing_state.enabled?("////\n")).to(eq(true)) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: defmastership
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérôme Arbez-Gindre
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-05 00:00:00.000000000 Z
11
+ date: 2021-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aruba