vimgolf 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +11 -13
- data/lib/vimgolf/cli.rb +1 -1
- data/lib/vimgolf/version.rb +1 -1
- metadata +10 -10
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# [VimGolf.com](http://www.vimgolf.com) Client
|
2
2
|
|
3
|
-
Real Vim ninjas count every keystroke - do you? Head on over to vimgolf.com, pick a challenge, and show us what you've got!
|
3
|
+
Real Vim ninjas count every keystroke - do you? Head on over to vimgolf.com, pick a challenge, and show us what you've got!
|
4
4
|
|
5
5
|
* Each challenge provides an input file, and an output file
|
6
6
|
* Your goal is to modify the input file such that it matches the output
|
@@ -8,23 +8,21 @@ Real Vim ninjas count every keystroke - do you? Head on over to vimgolf.com, pic
|
|
8
8
|
|
9
9
|
When you launch a challenge from the command line, it will be downloaded from the site and a local Vim session will be launched, which will log every keystroke you make. Once you're done, simply *:wq* (write and quit) the session and we will score your input and upload it back to the site!
|
10
10
|
|
11
|
-
Let the games begin.
|
12
|
-
|
13
11
|
## Setup & Play
|
14
12
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
</pre>
|
13
|
+
```bash
|
14
|
+
$> gem install vimgolf
|
15
|
+
|
16
|
+
(Go to vimgolf.com, sign in, and grab your API key)
|
17
|
+
$> vimgolf setup
|
21
18
|
|
22
|
-
|
19
|
+
(Pick a challenge on vimgolf.com)
|
20
|
+
$> vimgolf put [challenge ID]
|
21
|
+
```
|
23
22
|
|
24
|
-
|
25
|
-
* Vim script parser - distinguish between different modes, keystrokes, etc.
|
23
|
+
**Emacs**: yes, it is true, you can [play vimgolf in emacs too](https://github.com/igrigorik/vimgolf/tree/master/emacs)!
|
26
24
|
|
27
|
-
|
25
|
+
Patches, tips and ideas are welcome!
|
28
26
|
|
29
27
|
## License
|
30
28
|
|
data/lib/vimgolf/cli.rb
CHANGED
@@ -75,7 +75,7 @@ module VimGolf
|
|
75
75
|
# - --noplugin - don't load any plugins, lets be fair!
|
76
76
|
# -i NONE - don't load .viminfo (for saved macros and the like)
|
77
77
|
# - u - load vimgolf .vimrc to level the playing field
|
78
|
-
vimcmd = "#{GOLFVIM} -Z -n --noplugin -i NONE +0 -u \"#{
|
78
|
+
vimcmd = "#{GOLFVIM} -Z -n --noplugin -i NONE +0 -u \"#{challenge.vimrc_path}\" -W \"#{challenge.log_path}\" \"#{challenge.work_path}\""
|
79
79
|
debug(vimcmd)
|
80
80
|
system(vimcmd)
|
81
81
|
|
data/lib/vimgolf/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vimgolf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &2157019460 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.14.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2157019460
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: highline
|
27
|
-
requirement: &
|
27
|
+
requirement: &2157018980 !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: *
|
35
|
+
version_requirements: *2157018980
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &2157018480 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2157018480
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
|
-
requirement: &
|
49
|
+
requirement: &2157017900 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2157017900
|
58
58
|
description: CLI client for vimgolf.com
|
59
59
|
email:
|
60
60
|
- ilya@igvita.com
|
@@ -96,7 +96,7 @@ post_install_message: ! '
|
|
96
96
|
|
97
97
|
------------------------------------------------------------------------------
|
98
98
|
|
99
|
-
Thank you for installing vimgolf-0.4.
|
99
|
+
Thank you for installing vimgolf-0.4.1.
|
100
100
|
|
101
101
|
|
102
102
|
0.1.3: custom vimgolf .vimrc file to help level the playing field
|