Skip to content

Commit f897370

Browse files
committed
Merge pull request #95 from patricklodder/1.3.0-prep
Release preparation for 1.3.0
2 parents 99d74e8 + 9385b17 commit f897370

File tree

7 files changed

+28
-13
lines changed

7 files changed

+28
-13
lines changed

HISTORY.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 1.3.0 / 2015-01-09
2+
3+
* Reworked DateFormatter to improve ISO-8601 implementation.
4+
* Updates XMLBuilder to 2.4.
5+
* Updates sax to 0.6.
6+
* Adds more detail to Client request errors to ease debugging.
7+
18
## 1.2.0 / 2014-01-12
29

310
* Adds (tested) support for Node v0.10 and v0.11.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2011 Brandon Ace Alexander
1+
Copyright (c) 2011-2015 Brandon Ace Alexander
22

33
Permission is hereby granted, free of charge, to any person
44
obtaining a copy of this software and associated documentation

README.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,24 @@ xmlrpc.dateFormatter.setOpts({
119119

120120
### Cookies support
121121

122-
It is possible to turn on cookies support for XML-RPC client by special options flag.
123-
If turned on then all the cookies received from server will be bounced back with subsequent calls to the server.
124-
You also may manipulate cookies manually by the setCookie/getCookie call.
122+
It is possible to turn on cookies support for XML-RPC client by special options
123+
flag. If turned on then all the cookies received from server will be bounced
124+
back with subsequent calls to the server. You also may manipulate cookies
125+
manually by the setCookie/getCookie call.
125126

126127
```javascript
127-
var client = xmlrpc.createClient({host: 'localhost', port: 9090, cookies: true});
128+
var client = xmlrpc.createClient({
129+
host: 'localhost',
130+
port: 9090,
131+
cookies: true
132+
});
133+
128134
client.setCookie('login', 'bilbo');
135+
129136
//This call will send provided cookie to the server
130137
client.methodCall('someAction', [], function(error, value) {
131-
//Here we may get cookie received from server if we know its name
132-
console.log(client.getCookie('session'));
138+
//Here we may get cookie received from server if we know its name
139+
console.log(client.getCookie('session'));
133140
});
134141

135142
```

lib/date_formatter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ DateFormatter.ISO8601 = new RegExp(
5252
DateFormatter.prototype.setOpts = function (opts) {
5353
if (!opts) opts = DateFormatter.DEFAULT_OPTIONS
5454

55-
var ctx = this;
55+
var ctx = this
5656
Object.keys(DateFormatter.DEFAULT_OPTIONS).forEach(function (k) {
5757
ctx.opts[k] = opts.hasOwnProperty(k) ?
5858
opts[k] : DateFormatter.DEFAULT_OPTIONS[k]

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ "name" : "xmlrpc"
22
, "description" : "A pure JavaScript XML-RPC client and server."
33
, "keywords" : [ "xml-rpc", "xmlrpc", "xml", "rpc" ]
4-
, "version" : "1.2.0"
4+
, "version" : "1.3.0"
55
, "preferGlobal" : false
66
, "homepage" : "https://github.com/baalexander/node-xmlrpc"
77
, "author" : "Brandon Alexander <[email protected]> (https://github.com/baalexander)"

test/client_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var vows = require('vows')
55
, fs = require('fs')
66

77
const VALID_RESPONSE = fs.readFileSync(__dirname + '/fixtures/good_food/string_response.xml')
8-
const BROKEN_XML= fs.readFileSync(__dirname + '/fixtures/bad_food/broken_xml.xml')
8+
const BROKEN_XML = fs.readFileSync(__dirname + '/fixtures/bad_food/broken_xml.xml')
99

1010
vows.describe('Client').addBatch({
1111
//////////////////////////////////////////////////////////////////////

test/date_formatter.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ vows.describe('Date Formatter').addBatch({
3737
assert.isString(str)
3838
assert.match(str, new RegExp())
3939
}
40-
, teardown: function () { date_formatter.setOpts(); }
40+
, teardown: function () { date_formatter.setOpts() }
4141
}
4242
, "to utc representation": {
4343
topic: function (d) {
@@ -65,7 +65,7 @@ vows.describe('Date Formatter').addBatch({
6565
assert.isString(str)
6666
assert.match(str, new RegExp(reStr))
6767
}
68-
, teardown: function () { date_formatter.setOpts(); }
68+
, teardown: function () { date_formatter.setOpts() }
6969
}
7070
}
7171
}
@@ -118,6 +118,7 @@ vows.describe('Date Formatter').addBatch({
118118
}
119119
}).export(module)
120120

121+
// HELPERS
121122
function encodeCase (opts, reStr) {
122123
return {
123124
topic: function (d) {
@@ -129,7 +130,7 @@ function encodeCase (opts, reStr) {
129130
assert.isString(str)
130131
assert.match(str, new RegExp(reStr))
131132
}
132-
, teardown: function () { date_formatter.setOpts(); }
133+
, teardown: function () { date_formatter.setOpts() }
133134
}
134135
}
135136

0 commit comments

Comments
 (0)