Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use lipsum.com as hostname instead of lipsum.lipsum.com

  • Loading branch information...
commit 4c7d53c90f1d056faceb44895c8fe658381c3ddd 1 parent 9294360
Travis Kaufman authored
2  lib/cli.js
View
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
/*
# Lipsum Command-line Interface
2  lib/lipsum.js
View
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
/*
# Lorem Ipsum Wrapper
2  lib/parser.js
View
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
/*
# Lipsum Parser
4 lib/service.js
View
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
/*
# Web Service for lipsum.org
@@ -31,7 +31,7 @@ Service = (function() {
var endpoint, req, urlopts;
urlopts = {
protocol: 'http:',
- hostname: 'lipsum.lipsum.com',
+ hostname: 'lipsum.com',
pathname: "/feed/" + format
};
if (queryOpts != null) {
4 spec/service.spec.coffee
View
@@ -16,13 +16,13 @@ describe "The lipsum service", ->
stubOutHTTP()
lipsumService.get(defaultFormat, callback)
expect(http.request.mostRecentCall.args[0]).toEqual(
- "http://lipsum.lipsum.com/feed/json")
+ "http://lipsum.com/feed/json")
it "should be able to accept different query params", ->
stubOutHTTP()
lipsumService.get(defaultFormat, callback, {amount: 2, what: "paras"})
expect(http.request.mostRecentCall.args[0]).toEqual(
- "http://lipsum.lipsum.com/feed/json?amount=2&what=paras")
+ "http://lipsum.com/feed/json?amount=2&what=paras")
it "should be able to accept a callback that gets a payload", ->
runs ->
2  src/service.coffee
View
@@ -23,7 +23,7 @@ class Service
###
urlopts =
protocol: 'http:'
- hostname: 'lipsum.lipsum.com'
+ hostname: 'lipsum.com'
pathname: "/feed/#{format}"
if queryOpts?
Please sign in to comment.
Something went wrong with that request. Please try again.