Skip to content

Commit d413983

Browse files
committed
Merge pull request #6 from plaid/dc-ramda
ramda@0.17.x
2 parents 4556817 + 87ac7cf commit d413983

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

bin/transcribe

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,24 @@ var formatSignature = R.curry(function(options, filename, line, signature) {
3636
var parseLine = R.curry(function(options, filename, line, value) {
3737
return R.pipe(
3838
R.replace(/^\s+/, ''),
39-
R.cond([R.pipe(R.indexOf(options.headingPrefix), R.equals(0)),
40-
R.pipe(R.drop(R.length(options.headingPrefix)),
41-
R.replace(/^[ ]/, ''),
42-
formatSignature(options, filename, line))],
43-
[R.pipe(R.indexOf(options.prefix), R.equals(0)),
44-
R.pipe(R.drop(R.length(options.prefix)),
45-
R.replace(/^[ ]/, ''),
46-
R.concat(R.__, '\n'))],
47-
[R.T,
48-
R.always('\n')])
39+
R.cond([[R.pipe(R.indexOf(options.headingPrefix), R.equals(0)),
40+
R.pipe(R.drop(R.length(options.headingPrefix)),
41+
R.replace(/^[ ]/, ''),
42+
formatSignature(options, filename, line))],
43+
[R.pipe(R.indexOf(options.prefix), R.equals(0)),
44+
R.pipe(R.drop(R.length(options.prefix)),
45+
R.replace(/^[ ]/, ''),
46+
R.concat(R.__, '\n'))],
47+
[R.T,
48+
R.always('\n')]])
4949
)(value);
5050
});
5151

5252

5353
//. parseFile :: Options -> String -> String
5454
var parseFile = R.curry(function(options, filename) {
5555
return R.pipe(
56-
fs.readFileSync,
56+
R.unary(fs.readFileSync),
5757
String,
5858
R.match(/^.*$/gm),
5959
R.converge(R.zip,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"dependencies": {
2020
"commander": "2.8.x",
21-
"ramda": "0.15.x"
21+
"ramda": "0.17.x"
2222
},
2323
"devDependencies": {
2424
"jscs": "1.12.x",

0 commit comments

Comments
 (0)