Skip to content

Commit

Permalink
Merge pull request #68 from garyb/updates
Browse files Browse the repository at this point in the history
Update dependencies and build
  • Loading branch information
garyb committed Mar 12, 2016
2 parents ae83d93 + 86e8568 commit 8bc1dbf
Show file tree
Hide file tree
Showing 24 changed files with 102 additions and 761 deletions.
5 changes: 5 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"preset": "grunt",
"disallowSpacesInFunctionExpression": null,
"requireSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInAnonymousFunctionExpression": null,
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true,
Expand Down
5 changes: 3 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"freeze": true,
"funcscope": true,
"futurehostile": true,
"globalstrict": true,
"strict": "global",
"latedef": true,
"maxparams": 1,
"noarg": true,
Expand All @@ -15,5 +15,6 @@
"singleGroups": true,
"undef": true,
"unused": true,
"eqnull": true
"eqnull": true,
"predef": ["exports"]
}
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
language: node_js
sudo: false
node_js:
- 4
dist: trusty
sudo: required
node_js: 5
install:
- npm install bower gulp -g
- npm install && bower install
- npm install bower -g
- npm install
- bower install
script:
- gulp
- node ./test-server.js &
- sleep 2 && node tmp/test.js
- sleep 2 && pulp test
after_success:
- >-
test $TRAVIS_TAG &&
Expand Down
19 changes: 3 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,10 @@ main = launchAff $ do
liftEff $ log $ "POST /api response: " ++ res2.response
```

See the module documentation for a [full list of these helpers](docs/Network.HTTP.Affjax.md#get).
See the module documentation for a full list of these helpers.

When sending data in a request the [`Requestable`](docs/Network.HTTP.Affjax.Request.md#requestable) class enables automatic conversion into a format that is acceptable for an XHR request. Correspondingly there is a [`Respondable`](docs/Network.HTTP.Affjax.Response.md#respondable) class for reading data that comes back from the server.
When sending data in a request the Requestable class enables automatic conversion into a format that is acceptable for an XHR request. Correspondingly there is a Respondable class for reading data that comes back from the server.

## Module documentation

- [Network.HTTP.Affjax](docs/Network.HTTP.Affjax.md)
- [Network.HTTP.Affjax.Request](docs/Network.HTTP.Affjax.Request.md)
- [Network.HTTP.Affjax.Response](docs/Network.HTTP.Affjax.Response.md)

### General HTTP

Note: these values and types will most likely be moved into separate libraries at a later date.

- [Network.HTTP.Method](docs/Network.HTTP.Method.md)
- [Network.HTTP.RequestHeader](docs/Network.HTTP.RequestHeader.md)
- [Network.HTTP.ResponseHeader](docs/Network.HTTP.ResponseHeader.md)
- [Network.HTTP.MimeType](docs/Network.HTTP.MimeType.md)
- [Network.HTTP.MimeType.Common](docs/Network.HTTP.MimeType.Common.md)
- [Network.HTTP.StatusCode](docs/Network.HTTP.StatusCode.md)
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-affjax).
8 changes: 5 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,19 @@
"package.json"
],
"dependencies": {
"purescript-aff": "^0.14.1",
"purescript-aff": "^0.16.0",
"purescript-argonaut-core": "^0.2.0",
"purescript-arraybuffer-types": "^0.2.0",
"purescript-dom": "^0.2.0",
"purescript-foreign": "^0.7.0",
"purescript-form-urlencoded": "^0.3.0",
"purescript-http-methods": "^0.1.1",
"purescript-integers": "^0.2.0",
"purescript-math": "^0.2.0",
"purescript-media-types": "^0.1.1",
"purescript-nullable": "^0.2.0",
"purescript-refs": "^0.2.0",
"purescript-unsafe-coerce": "^0.1.0",
"purescript-form-urlencoded": "^0.3.0"
"purescript-unsafe-coerce": "^0.1.0"
},
"devDependencies": {
"purescript-console": "^0.1.0"
Expand Down
48 changes: 0 additions & 48 deletions docs/Network.HTTP.Affjax.Request.md

This file was deleted.

60 changes: 0 additions & 60 deletions docs/Network.HTTP.Affjax.Response.md

This file was deleted.

187 changes: 0 additions & 187 deletions docs/Network.HTTP.Affjax.md

This file was deleted.

Loading

0 comments on commit 8bc1dbf

Please sign in to comment.