macros4cuke 0.4.06 → 0.4.07

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODgyOWE2YmMzMzg4Mzg1OGI2OWJlNzFjZDAxOWZhZWQwYzJjY2EyYg==
4
+ ZDJhOGYwNDM3NTRiYjMwZGFlZDA4MmUxMGRlMzM2YjUzODM2NDM3ZA==
5
5
  data.tar.gz: !binary |-
6
- ZDI4MTNlYmVmMzIyMTE1YjcwZDEyYTk3NzFhMTY5OWMwMDgxYWZkZQ==
6
+ ODU0NDllNDUxM2I5NDI4OTdhYWY2MDJmOTBiNjY5ODZhNDNlYWMyNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OWJkOGExZjdjYmNmOWU1Mjg4ZmFmZjM5MTNlZGI1OWM2MGZhZjEwODlkZmI4
10
- NjQzOWY5MWFkMmM3YzdkZjM5ZTI1ZGU4MGRkNDI2MzBlYzcxNjc5N2EwMDRm
11
- ZTA4MWY0YjRiMTY5YzJmNGJlYWFkODNkYjg3OTViN2ZhNzE0NzI=
9
+ M2NkODM4ZDRmNzA0YWViZjAwZTExM2M3M2I0YThmYTcxY2E1YThlYzYzMmUz
10
+ YzE0OGFiNzE2NWRiMmUwMWFhNzQ5MmY5Y2E4YTNkY2M4MzU3ODNhMDNkNjUy
11
+ ZWI4ZjdiOTU2OTVmZGVjOTIxYzU2ZmQ5ZmE3NTg4MWM0N2IzMTk=
12
12
  data.tar.gz: !binary |-
13
- OTQ1ZWVhYjAyYzA0Mjc3ODdhZmE5MzcyYzA5ZjVkODNhM2M1OGFlODJkM2I5
14
- MWY4YjlkNjUzZDlhMWRiNmFjMTlmNGVjYTY0ZmI4NzBkMzJhNjJjYzE4NGU4
15
- ZGQyN2FiM2JmZjRmNDg0MTQxZTljY2IyZGFlMzNmMmViODdlNzE=
13
+ YjZmMmZhOGI0MjdhMjFkM2QyYmYwMmZiNDE3OWRjOGE0YzQ1ODAyNmNiZTkz
14
+ ZTRhODk4MjJiNzE4MDkyZmU0ZmY2ZTZhZmZmYjc2M2RkZjYxYjcxMGU2MWRi
15
+ NDc1NzU0M2Q0NGIxOGJmZTBhMjVjMmFkYzIzNjBmY2Y1YzlhMjU=
data/.rubocop.yml CHANGED
@@ -4,10 +4,6 @@ AllCops:
4
4
  - '*/features/**'
5
5
  - '*/gems/**'
6
6
 
7
-
8
- AccessControl:
9
- Enabled: false
10
-
11
7
  # This is disabled because some demos use UTF-8
12
8
  AsciiComments:
13
9
  Enabled: false
@@ -44,8 +40,6 @@ Encoding:
44
40
  IndentationWidth :
45
41
  Enabled: false
46
42
 
47
- MethodDefinition:
48
- EnforcedStyle: parentheses
49
43
 
50
44
  # Avoid methods longer than 50 lines of code
51
45
  MethodLength:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 0.4.07 / 2014-02-04
2
+ * [FIX] Addressed Rubocop 0.18 complains string concatenation over multiple lines.
3
+ * [CHANGE] File `formatting-service_spec.rb`: Replaced string operators + by newline escapes
4
+ * [CHANGE] File `engine_spec.rb`: Replaced string operators + by newline escapes
5
+ * [CHANGE] File `.rubocop.yml`: Removed two unsupported Cop settings
6
+
1
7
  ### 0.4.06 / 2014-01-27
2
8
  * [FIX] Addressed Rubocop 0.17 complains about bad indentation in some spec files.
3
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Macros4Cuke # Module used as a namespace
5
5
  # The version number of the gem.
6
- Version = '0.4.06'
6
+ Version = '0.4.07'
7
7
 
8
8
  # Brief description of the gem.
9
9
  Description = 'Macro-steps for Cucumber'
@@ -196,7 +196,7 @@ class MacroStep
196
196
  args = raw_result.flatten.compact
197
197
 
198
198
  # Replace escaped quotes by quote character.
199
- args.map! { |a| a.sub(/\\"/, '"') } if mode == :invokation
199
+ args.map! { |arg| arg.sub(/\\"/, '"') } if mode == :invokation
200
200
 
201
201
  return args
202
202
  end
@@ -59,8 +59,8 @@ describe FormattingService do
59
59
  formatter1 = double('formatter')
60
60
  formatter1.should_receive(:implements).once.and_return([])
61
61
  err_type = Macros4Cuke::NoFormattingEventForFormatter
62
- err_msg = 'Formatter RSpec::Mocks::Mock does not ' +
63
- 'support any formatting event.'
62
+ err_msg = 'Formatter RSpec::Mocks::Mock does not'\
63
+ ' support any formatting event.'
64
64
  expect { subject.register(formatter1) }.to raise_error(err_type, err_msg)
65
65
  end
66
66
 
@@ -75,8 +75,8 @@ describe FormattingService do
75
75
  formatter = double('formatter')
76
76
  formatter.should_receive(:implements).once.and_return(notifications)
77
77
  err_type = Macros4Cuke::UnknownFormattingEvent
78
- err_msg = 'Formatter RSpec::Mocks::Mock uses ' +
79
- "the unknown formatting event 'non_standard'."
78
+ err_msg = "Formatter RSpec::Mocks::Mock uses\
79
+ the unknown formatting event 'non_standard'."
80
80
  expect { subject.register(formatter) }.to raise_error(err_type, err_msg)
81
81
  end
82
82
 
@@ -208,8 +208,8 @@ SNIPPET
208
208
 
209
209
  it 'should complain when a placeholder is empty or blank' do
210
210
  text_w_empty_arg = sample_template.sub(/userid/, '')
211
- msg = 'An empty or blank argument occurred in ' +
212
- %Q('And I fill in "Username" with "<>"'.)
211
+ msg = %Q(An empty or blank argument occurred in\
212
+ 'And I fill in "Username" with "<>"'.)
213
213
  expect { Engine.new text_w_empty_arg }.to raise_error(
214
214
  Macros4Cuke::EmptyArgumentError, msg)
215
215
  end
@@ -242,8 +242,8 @@ SNIPPET
242
242
  it 'should complain when a closing tag is found without opening tag' do
243
243
  # Replacing an end of section tag by another...
244
244
  wrong_end = sophisticated_template.sub(/<\?birthdate>/, '</foobar>')
245
- msg = 'End of section</foobar> found' +
246
- ' while no corresponding section is open.'
245
+ msg = 'End of section</foobar> found'\
246
+ ' while no corresponding section is open.'
247
247
  expect { Engine.new wrong_end }.to raise_error(StandardError, msg)
248
248
  end
249
249
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macros4cuke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.06
4
+ version: 0.4.07
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitri Geshef
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-27 00:00:00.000000000 Z
11
+ date: 2014-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber