Skip to content

Commit 269c5a4

Browse files
committed
[misc] Removed errant code. Cleaning up whitespace
1 parent 6016e10 commit 269c5a4

File tree

5 files changed

+22
-31
lines changed

5 files changed

+22
-31
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# INSTALLATION
55
npm install xp
6-
6+
77
# USAGE
88
xp [tool] [options]
99

@@ -13,7 +13,6 @@
1313
xp -help
1414
xp --help
1515

16-
1716
# TOOLS
1817

1918
## pair - Pair Programing tools for source control commit messages
@@ -23,7 +22,6 @@
2322
xp pair nr nk
2423
( pairs are currently hard-coded in pair.coffee)
2524

26-
2725
### Reset to default user
2826

2927
xp pair
@@ -42,7 +40,6 @@
4240
xp ws ../
4341
xp ws ./foo
4442

45-
4643
## Authors
4744

4845
Marak Squires, Feisty Studios

lib/tools/loc.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fs = require 'fs'
77
exports.exec = (options, callback) ->
88
line_count = 0
99
file_count = 0
10-
10+
1111
# Cheating a bit for the async iteration here
1212
for glob in options._[1...]
1313
files = util.paths glob

lib/tools/pair.coffee

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ exports.exec = (options) ->
1313

1414
fs.stat path.join(process.cwd(), '.git'), (error, stats) ->
1515
throw '.git found but not a directory' unless stats.isDirectory()
16-
16+
1717
authors = new Array
18-
18+
1919
for initials in options._[1...]
2020
authors.push CONFIG.AUTHORS[initials]
21-
21+
2222
author = authors.join ' and '
23-
23+
2424
end = ->
2525
exec 'git config --get-regexp user.*', (error, stdout, stderr) ->
2626
console.log stdout
27-
27+
2828
if authors.length > 1
2929
exec """git config user.name '#{author}'""", ->
3030
exec """git config user.email '#{CONFIG.EMAIL}'""", ->

lib/tools/ws.coffee

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ eyes = require 'eyes'
77
fs = require 'fs'
88

99
exports.exec = (options, callback) ->
10-
line_count = 0
1110
file_count = 0
12-
11+
1312
# Cheating a bit for the async iteration here
1413
for glob in options._[1...]
1514
files = util.paths glob
@@ -19,25 +18,20 @@ exports.exec = (options, callback) ->
1918
files = util.paths glob
2019

2120
files.forEach (v,i) ->
22-
21+
2322
((v,i) -> fs.readFile v, (err, data) ->
2423
if err
2524
# throw err
2625
return
27-
28-
line_count += data.toString().split('\n').length
29-
26+
3027
# Process the file's contents and then re-save it
3128
# Regex by Fedor Induty
3229
# I've got to assume there are bugs in this Regex, we made it quickly
3330
stripped = data.toString().replace(/(^|\r|\n|\r\n)+\s+(\r|\n|\r\n|$)+/g,'$1$2').replace(/(\r|\n\n|\r\n\n)+/g, '$1')
34-
35-
36-
37-
31+
3832
fs.writeFile v, stripped, (err, result) ->
3933
file_count = file_count - 1
4034
if file_count == 0
4135
callback null, 'Stripped'
42-
36+
4337
)(v,i)

package.coffee

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
{
22
name: 'xp'
33
description: '''Handy tools for eXtreme Programming'''
4-
4+
55
keywords: ['xp', 'extreme', 'programming', 'git', 'tools', 'utility', 'utilities', 'tool', 'pair']
6-
6+
77
version: '0.1.0'
8-
8+
99
author: 'Feisty Studios <xp@feistystudios.com> (http://feistystudios.com/)'
10-
10+
1111
licenses: [
1212
{
1313
type: 'FEISTY'
1414
url: 'https://github.com/feisty/license/raw/master/LICENSE'
1515
}
1616
]
17-
17+
1818
contributors: [
1919
'Nicholas Kinsey <nicholas.kinsey@feistystudios.com>'
2020
]
21-
21+
2222
repository:
2323
type: 'git'
2424
url: 'https://github.com/feisty/xp.git'
2525
private: 'git@github.com:feisty/xp.git'
2626
web: 'https://github.com/feisty/xp'
27-
27+
2828
bugs:
2929
mail: 'xp@feistystudios.com'
3030
web: 'https://github.com/feisty/xp/issues'
31-
31+
3232
directories:
3333
lib: './lib'
3434
doc: './doc'
3535
bin: './bin'
36-
36+
3737
dependencies:
3838
'coffee-script': '>= 1.0.0'
3939
'optimist': '>= 0.1.3'
40-
40+
4141
engines:
4242
node: '>= 0.3.4'
4343
}

0 commit comments

Comments
 (0)