cucumber-vimscript 0.0.1 → 0.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.
data/README.md CHANGED
@@ -2,5 +2,33 @@ This project contains step definitions that can be used to spawn a Vim instance
2
2
  and control it through code. The actual work is done by the
3
3
  [vimrunner gem](https://github.com/AndrewRadev/vimrunner).
4
4
 
5
- The steps are still only a few and will be updated as I use them in my own vim
6
- projects, but of course, any contributions are more than welcome.
5
+ Here's an example feature from my plugin
6
+ [splitjoin](https://github.com/AndrewRadev/splitjoin.vim):
7
+
8
+ Feature: CSS support
9
+
10
+ Scenario: Splitting single-line style definitions
11
+ Given Vim is running
12
+ And the splitjoin plugin is loaded
13
+ And I'm editing a file named "example.css" with the following contents:
14
+ """
15
+ h2 { font-size: 18px; font-weight: bold }
16
+ """
17
+ And the cursor is positioned on "h2"
18
+ And "expandtab" is set
19
+ And "shiftwidth" is set to "2"
20
+ When I split the line
21
+ And I save
22
+ Then the file "example.css" should contain the following text:
23
+ """
24
+ h2 {
25
+ font-size: 18px;
26
+ font-weight: bold;
27
+ }
28
+ """
29
+
30
+ It's a bit verbose, but it's work in progress.
31
+
32
+ For now, there are only a few steps in `lib/cucumber/vimscript.rb`. I'll add
33
+ more and organize them as I attempt to use this project for testing some of my
34
+ own scripts. Any contributions are more than welcome, though.
@@ -0,0 +1,5 @@
1
+ module Cucumber
2
+ module Vimscript
3
+ VERSION = '0.0.2'
4
+ end
5
+ end
@@ -41,7 +41,6 @@ end
41
41
 
42
42
  When /^I save$/ do
43
43
  @vim.write
44
- @vim.wait_until_ready
45
44
  end
46
45
 
47
46
  Then /^the file "([^"]*)" should contain "([^"]*)"$/ do |filename, text|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-vimscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-28 00:00:00.000000000Z
12
+ date: 2011-10-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
16
- requirement: &7464100 !ruby/object:Gem::Requirement
16
+ requirement: &25621180 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *7464100
24
+ version_requirements: *25621180
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: vimrunner
27
- requirement: &7463700 !ruby/object:Gem::Requirement
27
+ requirement: &25620720 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *7463700
35
+ version_requirements: *25620720
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &7463240 !ruby/object:Gem::Requirement
38
+ requirement: &25620260 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *7463240
46
+ version_requirements: *25620260
47
47
  description: Provides step definitions to spawn and command a vim instance
48
48
  email:
49
49
  - andrey.radev@gmail.com
@@ -51,6 +51,7 @@ executables: []
51
51
  extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
+ - lib/cucumber/vimscript/version.rb
54
55
  - lib/cucumber/vimscript.rb
55
56
  - LICENSE
56
57
  - README.md
@@ -69,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
70
  version: '0'
70
71
  segments:
71
72
  - 0
72
- hash: -3761319605953647252
73
+ hash: -4356108419472435465
73
74
  required_rubygems_version: !ruby/object:Gem::Requirement
74
75
  none: false
75
76
  requirements:
@@ -78,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
79
  version: '0'
79
80
  segments:
80
81
  - 0
81
- hash: -3761319605953647252
82
+ hash: -4356108419472435465
82
83
  requirements: []
83
84
  rubyforge_project:
84
85
  rubygems_version: 1.8.11