vim-flavor 2.2.2 → 4.0.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.
Files changed (68) hide show
  1. checksums.yaml +5 -5
  2. data/.github/dependabot.yml +12 -0
  3. data/.github/workflows/ci.yml +35 -0
  4. data/.gitmodules +2 -2
  5. data/.ruby-version +1 -0
  6. data/CHANGELOG.md +178 -0
  7. data/README.md +133 -45
  8. data/Rakefile +11 -0
  9. data/config/cucumber.yml +1 -0
  10. data/features/.nav +2 -1
  11. data/features/backward_compatibilities/flavorfile.feature +166 -0
  12. data/features/backward_compatibilities/lockfile.feature +22 -0
  13. data/features/branches/changing_tracking_branches.feature +0 -3
  14. data/features/branches/detect_incompatible_declarations.feature +0 -2
  15. data/features/branches/install.feature +0 -2
  16. data/features/branches/update.feature +0 -1
  17. data/features/caching/deployment.feature +1 -0
  18. data/features/flavorfile/README.md +1 -1
  19. data/features/flavorfile/comments.feature +0 -1
  20. data/features/flavorfile/groups.feature +0 -3
  21. data/features/flavorfile/repository_name.feature +2 -5
  22. data/features/flavorfile/version_constraint.feature +3 -7
  23. data/features/install_vim_flavor.md +6 -12
  24. data/features/news.md +1 -0
  25. data/features/philosophy.md +4 -4
  26. data/features/resolve_dependencies/README.md +4 -3
  27. data/features/resolve_dependencies/basics.feature +0 -4
  28. data/features/resolve_dependencies/upgrade_outdated_dependencies.feature +0 -2
  29. data/features/resolve_dependencies/version_conflict.feature +0 -2
  30. data/features/step_definitions/cli_steps.rb +6 -1
  31. data/features/step_definitions/dependency_steps.rb +2 -1
  32. data/features/step_definitions/directory_steps.rb +1 -1
  33. data/features/step_definitions/file_steps.rb +2 -2
  34. data/features/step_definitions/flavor_steps.rb +25 -9
  35. data/features/step_definitions/flavorfile_steps.rb +10 -1
  36. data/features/step_definitions/lockfile_steps.rb +14 -5
  37. data/features/support/env.rb +22 -12
  38. data/features/testing_vim_plugins/README.md +7 -6
  39. data/features/testing_vim_plugins/dependencies.feature +14 -15
  40. data/features/testing_vim_plugins/failures.feature +6 -6
  41. data/features/testing_vim_plugins/specifying_test_scripts.feature +12 -12
  42. data/features/testing_vim_plugins/typical_usage.feature +33 -10
  43. data/features/typical_usage/README.md +7 -7
  44. data/features/typical_usage/deploy_to_arbitrary_place.feature +0 -1
  45. data/features/typical_usage/install_vim_plugins.feature +0 -1
  46. data/features/typical_usage/uninstall_vim_plugins.feature +0 -1
  47. data/features/typical_usage/update_vim_plugins.feature +0 -3
  48. data/features/uninstall_vim_flavor.md +3 -4
  49. data/features/version_lock.feature +0 -1
  50. data/features/version_tag_format.feature +0 -4
  51. data/lib/vim-flavor/cli.rb +2 -2
  52. data/lib/vim-flavor/console.rb +22 -0
  53. data/lib/vim-flavor/env.rb +1 -1
  54. data/lib/vim-flavor/facade.rb +17 -48
  55. data/lib/vim-flavor/flavor.rb +1 -1
  56. data/lib/vim-flavor/flavorfile.rb +24 -1
  57. data/lib/vim-flavor/lockfile.rb +16 -1
  58. data/lib/vim-flavor/stringextension.rb +3 -11
  59. data/lib/vim-flavor/version.rb +1 -1
  60. data/lib/vim-flavor.rb +1 -1
  61. data/spec/branchversion_spec.rb +4 -4
  62. data/spec/stringextension_spec.rb +33 -2
  63. data/vim-flavor.gemspec +8 -5
  64. metadata +70 -26
  65. data/.travis.yml +0 -7
  66. data/features/news.md +0 -65
  67. data/features/step_definitions/bootstrap_script_steps.rb +0 -6
  68. data/spec/facade_spec.rb +0 -57
@@ -1,12 +1,26 @@
1
+ require 'fileutils'
2
+
1
3
  module Vim
2
4
  module Flavor
3
5
  class LockFile
4
6
  def self.load_or_new(lockfile_path)
5
7
  l = new(lockfile_path)
6
- l.load() if File.exists?(lockfile_path)
8
+ l.load() if File.exist?(lockfile_path)
7
9
  l
8
10
  end
9
11
 
12
+ def self.path_from(dir_path, error)
13
+ lockfile_path = dir_path.to_lockfile_path
14
+ new_path = Pathname.new(lockfile_path).relative_path_from(Pathname.getwd())
15
+ old_path = new_path.dirname() / 'VimFlavor.lock'
16
+
17
+ if error and FileTest.exist?(old_path)
18
+ Console::error "#{old_path} is no longer used. Rename it to #{new_path}."
19
+ end
20
+
21
+ new_path.to_s
22
+ end
23
+
10
24
  def initialize(path)
11
25
  @path = path
12
26
  end
@@ -38,6 +52,7 @@ module Vim
38
52
  end
39
53
 
40
54
  def save()
55
+ FileUtils.mkdir_p(File.dirname(@path))
41
56
  File.open(@path, 'w') do |io|
42
57
  lines = flavors.flat_map {|f| self.class.serialize_lock_status(f)}
43
58
  lines.each do |line|
@@ -1,24 +1,16 @@
1
1
  module Vim
2
2
  module Flavor
3
3
  module StringExtension
4
- def to_bootstrap_path
5
- "#{self}/bootstrap.vim"
6
- end
7
-
8
- def to_deps_path
9
- "#{self}/deps"
10
- end
11
-
12
4
  def to_flavorfile_path
13
- "#{self}/VimFlavor"
5
+ "#{self}/Flavorfile"
14
6
  end
15
7
 
16
8
  def to_flavors_path
17
- "#{self}/flavors"
9
+ "#{self}/pack/flavors/start"
18
10
  end
19
11
 
20
12
  def to_lockfile_path
21
- "#{self}/VimFlavor.lock"
13
+ "#{self}/Flavorfile.lock"
22
14
  end
23
15
 
24
16
  def to_stash_path
@@ -1,6 +1,6 @@
1
1
  module Vim
2
2
  module Flavor
3
- VERSION = '2.2.2'
3
+ VERSION = '4.0.2'
4
4
 
5
5
  class Version
6
6
  def self.create(arg)
data/lib/vim-flavor.rb CHANGED
@@ -1,4 +1,3 @@
1
- require 'bundler/setup'
2
1
  require 'vim-flavor/enumerableextension'
3
2
 
4
3
  module Vim
@@ -6,6 +5,7 @@ module Vim
6
5
  [
7
6
  :BranchVersion,
8
7
  :CLI,
8
+ :Console,
9
9
  :Env,
10
10
  :Facade,
11
11
  :Flavor,
@@ -18,10 +18,10 @@ module Vim
18
18
  end
19
19
 
20
20
  it 'is not comparable' do
21
- expect {v1 < v2}.to raise_error
22
- expect {v1 <= v2}.to raise_error
23
- expect {v1 > v2}.to raise_error
24
- expect {v1 >= v2}.to raise_error
21
+ expect {v1 < v2}.to raise_error(NoMethodError)
22
+ expect {v1 <= v2}.to raise_error(NoMethodError)
23
+ expect {v1 > v2}.to raise_error(NoMethodError)
24
+ expect {v1 >= v2}.to raise_error(NoMethodError)
25
25
  expect(v1 <=> v2).to be_nil
26
26
  end
27
27
 
@@ -3,12 +3,43 @@ require 'spec_helper'
3
3
  module Vim
4
4
  module Flavor
5
5
  describe StringExtension do
6
+ describe '#to_flavorfile_path' do
7
+ it 'extends a given path to a flavorfile' do
8
+ expect('cwd'.to_flavorfile_path).to be == 'cwd/Flavorfile'
9
+ end
10
+ end
11
+
12
+ describe '#to_flavors_path' do
13
+ it 'extends a given path to a flavors path' do
14
+ expect('home/.vim'.to_flavors_path).to be == 'home/.vim/pack/flavors/start'
15
+ end
16
+ end
17
+
18
+ describe '#to_lockfile_path' do
19
+ it 'extends a given path to a lockfile' do
20
+ expect('cwd'.to_lockfile_path).to be == 'cwd/Flavorfile.lock'
21
+ end
22
+ end
23
+
24
+ describe '#to_stash_path' do
25
+ it 'extends a given path to a stash path' do
26
+ expect('home'.to_stash_path).to be == 'home/.vim-flavor'
27
+ expect('cwd'.to_stash_path).to be == 'cwd/.vim-flavor'
28
+ end
29
+ end
30
+
31
+ describe '#to_vimfiles_path' do
32
+ it 'extends a given path to a vimfiles path' do
33
+ expect('home'.to_vimfiles_path).to be == 'home/.vim'
34
+ end
35
+ end
36
+
6
37
  describe '#zap' do
7
38
  it 'replace unsafe characters with "_"' do
8
39
  expect('fakeclip'.zap).to be == 'fakeclip'
9
40
  expect('kana/vim-altr'.zap).to be == 'kana_vim-altr'
10
- expect('git://example.com/foo.git'.zap).to be ==
11
- 'git___example.com_foo.git'
41
+ expect('https://example.com/foo.git'.zap).to be ==
42
+ 'https___example.com_foo.git'
12
43
  end
13
44
  end
14
45
  end
data/vim-flavor.gemspec CHANGED
@@ -17,12 +17,15 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
+ spec.required_ruby_version = '~> 3.0'
20
21
 
21
- spec.add_dependency('parslet', '~> 1.7')
22
- spec.add_dependency('thor', '~> 0.19')
22
+ spec.add_dependency('parslet', '>= 1.8', '< 3.0')
23
+ spec.add_dependency('pastel', '~> 0.7')
24
+ spec.add_dependency('thor', '>= 0.20', '< 2.0')
23
25
 
24
- spec.add_development_dependency('aruba', '~> 0.6.0')
25
- spec.add_development_dependency('cucumber', '~> 1.3.0')
26
+ spec.add_development_dependency('aruba', '~> 2.0')
27
+ spec.add_development_dependency('cucumber', '~> 7.0')
26
28
  spec.add_development_dependency('pry')
27
- spec.add_development_dependency('rspec', '~> 2.99')
29
+ spec.add_development_dependency('relish', '~> 0.7')
30
+ spec.add_development_dependency('rspec', '~> 3.7')
28
31
  end
metadata CHANGED
@@ -1,71 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vim-flavor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kana Natsuno
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-31 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.8'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: pastel
15
35
  requirement: !ruby/object:Gem::Requirement
16
36
  requirements:
17
37
  - - "~>"
18
38
  - !ruby/object:Gem::Version
19
- version: '1.7'
39
+ version: '0.7'
20
40
  type: :runtime
21
41
  prerelease: false
22
42
  version_requirements: !ruby/object:Gem::Requirement
23
43
  requirements:
24
44
  - - "~>"
25
45
  - !ruby/object:Gem::Version
26
- version: '1.7'
46
+ version: '0.7'
27
47
  - !ruby/object:Gem::Dependency
28
48
  name: thor
29
49
  requirement: !ruby/object:Gem::Requirement
30
50
  requirements:
31
- - - "~>"
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0.20'
54
+ - - "<"
32
55
  - !ruby/object:Gem::Version
33
- version: '0.19'
56
+ version: '2.0'
34
57
  type: :runtime
35
58
  prerelease: false
36
59
  version_requirements: !ruby/object:Gem::Requirement
37
60
  requirements:
38
- - - "~>"
61
+ - - ">="
39
62
  - !ruby/object:Gem::Version
40
- version: '0.19'
63
+ version: '0.20'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '2.0'
41
67
  - !ruby/object:Gem::Dependency
42
68
  name: aruba
43
69
  requirement: !ruby/object:Gem::Requirement
44
70
  requirements:
45
71
  - - "~>"
46
72
  - !ruby/object:Gem::Version
47
- version: 0.6.0
73
+ version: '2.0'
48
74
  type: :development
49
75
  prerelease: false
50
76
  version_requirements: !ruby/object:Gem::Requirement
51
77
  requirements:
52
78
  - - "~>"
53
79
  - !ruby/object:Gem::Version
54
- version: 0.6.0
80
+ version: '2.0'
55
81
  - !ruby/object:Gem::Dependency
56
82
  name: cucumber
57
83
  requirement: !ruby/object:Gem::Requirement
58
84
  requirements:
59
85
  - - "~>"
60
86
  - !ruby/object:Gem::Version
61
- version: 1.3.0
87
+ version: '7.0'
62
88
  type: :development
63
89
  prerelease: false
64
90
  version_requirements: !ruby/object:Gem::Requirement
65
91
  requirements:
66
92
  - - "~>"
67
93
  - !ruby/object:Gem::Version
68
- version: 1.3.0
94
+ version: '7.0'
69
95
  - !ruby/object:Gem::Dependency
70
96
  name: pry
71
97
  requirement: !ruby/object:Gem::Requirement
@@ -80,20 +106,34 @@ dependencies:
80
106
  - - ">="
81
107
  - !ruby/object:Gem::Version
82
108
  version: '0'
109
+ - !ruby/object:Gem::Dependency
110
+ name: relish
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '0.7'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '0.7'
83
123
  - !ruby/object:Gem::Dependency
84
124
  name: rspec
85
125
  requirement: !ruby/object:Gem::Requirement
86
126
  requirements:
87
127
  - - "~>"
88
128
  - !ruby/object:Gem::Version
89
- version: '2.99'
129
+ version: '3.7'
90
130
  type: :development
91
131
  prerelease: false
92
132
  version_requirements: !ruby/object:Gem::Requirement
93
133
  requirements:
94
134
  - - "~>"
95
135
  - !ruby/object:Gem::Version
96
- version: '2.99'
136
+ version: '3.7'
97
137
  description: A tool to manage your favorite Vim plugins
98
138
  email:
99
139
  - dev@whileimautomaton.net
@@ -102,17 +142,23 @@ executables:
102
142
  extensions: []
103
143
  extra_rdoc_files: []
104
144
  files:
145
+ - ".github/dependabot.yml"
146
+ - ".github/workflows/ci.yml"
105
147
  - ".gitignore"
106
148
  - ".gitmodules"
107
149
  - ".rspec"
108
- - ".travis.yml"
150
+ - ".ruby-version"
151
+ - CHANGELOG.md
109
152
  - Gemfile
110
153
  - LICENSE
111
154
  - README.md
112
155
  - Rakefile
113
156
  - bin/vim-flavor
157
+ - config/cucumber.yml
114
158
  - features/.nav
115
159
  - features/README.md
160
+ - features/backward_compatibilities/flavorfile.feature
161
+ - features/backward_compatibilities/lockfile.feature
116
162
  - features/branches/README.md
117
163
  - features/branches/changing_tracking_branches.feature
118
164
  - features/branches/detect_incompatible_declarations.feature
@@ -137,7 +183,6 @@ files:
137
183
  - features/resolve_dependencies/basics.feature
138
184
  - features/resolve_dependencies/upgrade_outdated_dependencies.feature
139
185
  - features/resolve_dependencies/version_conflict.feature
140
- - features/step_definitions/bootstrap_script_steps.rb
141
186
  - features/step_definitions/cli_steps.rb
142
187
  - features/step_definitions/dependency_steps.rb
143
188
  - features/step_definitions/directory_steps.rb
@@ -162,6 +207,7 @@ files:
162
207
  - lib/vim-flavor.rb
163
208
  - lib/vim-flavor/branchversion.rb
164
209
  - lib/vim-flavor/cli.rb
210
+ - lib/vim-flavor/console.rb
165
211
  - lib/vim-flavor/enumerableextension.rb
166
212
  - lib/vim-flavor/env.rb
167
213
  - lib/vim-flavor/facade.rb
@@ -176,7 +222,6 @@ files:
176
222
  - lib/vim-flavor/versionconstraint.rb
177
223
  - spec/branchversion_spec.rb
178
224
  - spec/enumerableextension_spec.rb
179
- - spec/facade_spec.rb
180
225
  - spec/flavor_spec.rb
181
226
  - spec/flavorfile_spec.rb
182
227
  - spec/lockfile_spec.rb
@@ -190,29 +235,30 @@ homepage: https://github.com/kana/vim-flavor
190
235
  licenses:
191
236
  - MIT
192
237
  metadata: {}
193
- post_install_message:
238
+ post_install_message:
194
239
  rdoc_options: []
195
240
  require_paths:
196
241
  - lib
197
242
  required_ruby_version: !ruby/object:Gem::Requirement
198
243
  requirements:
199
- - - ">="
244
+ - - "~>"
200
245
  - !ruby/object:Gem::Version
201
- version: '0'
246
+ version: '3.0'
202
247
  required_rubygems_version: !ruby/object:Gem::Requirement
203
248
  requirements:
204
249
  - - ">="
205
250
  - !ruby/object:Gem::Version
206
251
  version: '0'
207
252
  requirements: []
208
- rubyforge_project:
209
- rubygems_version: 2.4.5.1
210
- signing_key:
253
+ rubygems_version: 3.2.27
254
+ signing_key:
211
255
  specification_version: 4
212
256
  summary: A tool to manage your favorite Vim plugins
213
257
  test_files:
214
258
  - features/.nav
215
259
  - features/README.md
260
+ - features/backward_compatibilities/flavorfile.feature
261
+ - features/backward_compatibilities/lockfile.feature
216
262
  - features/branches/README.md
217
263
  - features/branches/changing_tracking_branches.feature
218
264
  - features/branches/detect_incompatible_declarations.feature
@@ -237,7 +283,6 @@ test_files:
237
283
  - features/resolve_dependencies/basics.feature
238
284
  - features/resolve_dependencies/upgrade_outdated_dependencies.feature
239
285
  - features/resolve_dependencies/version_conflict.feature
240
- - features/step_definitions/bootstrap_script_steps.rb
241
286
  - features/step_definitions/cli_steps.rb
242
287
  - features/step_definitions/dependency_steps.rb
243
288
  - features/step_definitions/directory_steps.rb
@@ -261,7 +306,6 @@ test_files:
261
306
  - features/version_tag_format.feature
262
307
  - spec/branchversion_spec.rb
263
308
  - spec/enumerableextension_spec.rb
264
- - spec/facade_spec.rb
265
309
  - spec/flavor_spec.rb
266
310
  - spec/flavorfile_spec.rb
267
311
  - spec/lockfile_spec.rb
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1.5
4
- before_script:
5
- - git config --global 'user.name' 'Travis CI'
6
- - git config --global 'user.email' 'user@example.com'
7
- script: rake test
data/features/news.md DELETED
@@ -1,65 +0,0 @@
1
- ## vim-flavor 2.2.2
2
-
3
- ### Bug Fixes
4
-
5
- * Fix `install`, `update` and `test` to work even if these commands are invoked
6
- from non-bash shell.
7
-
8
-
9
-
10
-
11
- ## vim-flavor 2.2.1
12
-
13
- ### Bug Fixes
14
-
15
- * Fix not to fail fetching repositories which have non-fastforward updates.
16
-
17
-
18
-
19
-
20
- ## vim-flavor 2.2.0
21
-
22
- ### Enhancements
23
-
24
- * `test` runs `*.vim` and `*.t` in a single step, to get a simplified result.
25
- * `test` uses [vim-vspec](https://github.com/kana/vim-vspec) 1.5 or later by
26
- default.
27
- * `test` supports `--update-dependencies` to update dependencies before running
28
- tests.
29
-
30
-
31
-
32
-
33
- ## vim-flavor 2.1.1
34
-
35
- ### Enhancements
36
-
37
- * `install` and `update` skip checking versions of plugins which are
38
- development dependencies.
39
-
40
-
41
-
42
-
43
- ## vim-flavor 2.1.0
44
-
45
- ### Enhancements
46
-
47
- * `update` command is added. It is an alias of existing `upgrade` command.
48
- Now it is recommended to use `update` rather than `upgrade`.
49
- `upgrade` will be removed in a future version.
50
- * `update` and `upgrade` learned to update specific plugins if repository names
51
- are given as command-line arguments.
52
-
53
-
54
-
55
-
56
- ## vim-flavor 2.0.0
57
-
58
- ### Enhancements
59
-
60
- * [Branches](./branches) are supported.
61
-
62
-
63
- ### Incompatible changes
64
-
65
- * Ruby 2.0.0 or later is required to run vim-flavor.
@@ -1,6 +0,0 @@
1
- Then /^a bootstrap script (is|is not) created in "(.+)"$/ do |mode, v_vimfiles_path|
2
- p = expand(v_vimfiles_path).to_flavors_path.to_bootstrap_path
3
- steps %Q{
4
- Then a file named "#{p}" #{mode == 'is' ? 'should' : 'should not'} exist
5
- }
6
- end
data/spec/facade_spec.rb DELETED
@@ -1,57 +0,0 @@
1
- require 'fileutils'
2
- require 'spec_helper'
3
- require 'tmpdir'
4
-
5
- module Vim
6
- module Flavor
7
- describe Facade do
8
- describe '#create_vim_script_for_bootstrap' do
9
- around :each do |example|
10
- Dir.mktmpdir do |tmp_path|
11
- @tmp_path = tmp_path
12
- example.run
13
- end
14
- end
15
-
16
- it 'creates a bootstrap script to configure runtimepath for flavors' do
17
- flavors_path = @tmp_path.to_vimfiles_path.to_flavors_path
18
- Facade.new().create_vim_script_for_bootstrap(flavors_path)
19
-
20
- expect(File).to exist(flavors_path.to_bootstrap_path)
21
-
22
- _rtp = %x{
23
- for plugin_name in 'foo' 'bar' 'baz'
24
- do
25
- mkdir -p "#{flavors_path}/$plugin_name"
26
- done
27
- HOME='#{@tmp_path}' vim -u NONE -i NONE -n -N -e -s -c '
28
- set verbose=1
29
- let vimfiles_path = split(&runtimepath, ",")[0]
30
- runtime flavors/bootstrap.vim
31
- for path in split(&runtimepath, ",")
32
- if stridx(path, vimfiles_path) == 0
33
- echo substitute(path, vimfiles_path, "!", "")
34
- endif
35
- endfor
36
- qall!
37
- ' 2>&1
38
- }
39
- rtps =
40
- _rtp.
41
- split(/[\r\n]/).
42
- select {|p| p != ''}
43
- expect(rtps).to be == [
44
- '!',
45
- '!/flavors/bar',
46
- '!/flavors/baz',
47
- '!/flavors/foo',
48
- '!/flavors/foo/after',
49
- '!/flavors/baz/after',
50
- '!/flavors/bar/after',
51
- '!/after',
52
- ]
53
- end
54
- end
55
- end
56
- end
57
- end