vimgolf 0.4.0 → 0.4.1

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
@@ -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! The rules are simple:
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
- <pre>
16
- 1. $> gem install vimgolf
17
- 2. $> vimgolf setup (go to vimgolf.com, sign in, and grab your API key)
18
- 3. Pick a challenge on vimgolf.com
19
- 4. $> vimgolf put [challenge ID]
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
- ## Todo's & Wishlist
19
+ (Pick a challenge on vimgolf.com)
20
+ $> vimgolf put [challenge ID]
21
+ ```
23
22
 
24
- * At the moment, scoring is done based on the simplest possible model: bytesize of your Vim script file. Instead, we'd like to assign a score based on shortcuts and key-combinations used. Ex: visual mode gets you extra x points, etc.
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
- Other patches, tips & ideas are welcome!
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 \"#{vimrc(id)}\" -W \"#{log(id)}\" \"#{input(id, type)}\""
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
 
@@ -1,3 +1,3 @@
1
1
  module Vimgolf
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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: &2153464140 !ruby/object:Gem::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: *2153464140
24
+ version_requirements: *2157019460
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: highline
27
- requirement: &2153463680 !ruby/object:Gem::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: *2153463680
35
+ version_requirements: *2157018980
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &2153463180 !ruby/object:Gem::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: *2153463180
46
+ version_requirements: *2157018480
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &2153462600 !ruby/object:Gem::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: *2153462600
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.0.
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