1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00

updated bunch of file paths and changed the way posts are loaded

This commit is contained in:
2016-01-05 12:28:04 -06:00
parent 4bb8cae81e
commit 6ab45fe935
13249 changed files with 317868 additions and 2101398 deletions

2
node_modules/regexp-clone/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,2 @@
*.sw*
node_modules/

5
node_modules/regexp-clone/.travis.yml generated vendored Normal file
View File

@@ -0,0 +1,5 @@
language: node_js
node_js:
- 0.6
- 0.8
- 0.10

5
node_modules/regexp-clone/History.md generated vendored Normal file
View File

@@ -0,0 +1,5 @@
0.0.1 / 2013-04-17
==================
* initial commit

22
node_modules/regexp-clone/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,22 @@
(The MIT License)
Copyright (c) 2013 [Aaron Heckmann](aaron.heckmann+github@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

5
node_modules/regexp-clone/Makefile generated vendored Normal file
View File

@@ -0,0 +1,5 @@
test:
@./node_modules/.bin/mocha $(T) --async-only $(TESTS)
.PHONY: test

18
node_modules/regexp-clone/README.md generated vendored Normal file
View File

@@ -0,0 +1,18 @@
#regexp-clone
==============
Clones RegExps with flag preservation
```js
var regexpClone = require('regexp-clone');
var a = /somethin/g;
console.log(a.global); // true
var b = regexpClone(a);
console.log(b.global); // true
```
## License
[MIT](https://github.com/aheckmann/regexp-clone/blob/master/LICENSE)

20
node_modules/regexp-clone/index.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
var toString = Object.prototype.toString;
function isRegExp (o) {
return 'object' == typeof o
&& '[object RegExp]' == toString.call(o);
}
module.exports = exports = function (regexp) {
if (!isRegExp(regexp)) {
throw new TypeError('Not a RegExp');
}
var flags = [];
if (regexp.global) flags.push('g');
if (regexp.multiline) flags.push('m');
if (regexp.ignoreCase) flags.push('i');
return new RegExp(regexp.source, flags.join(''));
}

78
node_modules/regexp-clone/package.json generated vendored Normal file
View File

@@ -0,0 +1,78 @@
{
"_args": [
[
"regexp-clone@0.0.1",
"/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/mongoose"
]
],
"_from": "regexp-clone@0.0.1",
"_id": "regexp-clone@0.0.1",
"_inCache": true,
"_installable": true,
"_location": "/regexp-clone",
"_npmUser": {
"email": "aaron.heckmann+github@gmail.com",
"name": "aaron"
},
"_npmVersion": "1.2.14",
"_phantomChildren": {},
"_requested": {
"name": "regexp-clone",
"raw": "regexp-clone@0.0.1",
"rawSpec": "0.0.1",
"scope": null,
"spec": "0.0.1",
"type": "version"
},
"_requiredBy": [
"/mongoose",
"/mquery"
],
"_resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-0.0.1.tgz",
"_shasum": "a7c2e09891fdbf38fbb10d376fb73003e68ac589",
"_shrinkwrap": null,
"_spec": "regexp-clone@0.0.1",
"_where": "/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/mongoose",
"author": {
"email": "aaron.heckmann+github@gmail.com",
"name": "Aaron Heckmann"
},
"bugs": {
"url": "https://github.com/aheckmann/regexp-clone/issues"
},
"dependencies": {},
"description": "Clone RegExps with options",
"devDependencies": {
"mocha": "1.8.1"
},
"directories": {},
"dist": {
"shasum": "a7c2e09891fdbf38fbb10d376fb73003e68ac589",
"tarball": "http://registry.npmjs.org/regexp-clone/-/regexp-clone-0.0.1.tgz"
},
"homepage": "https://github.com/aheckmann/regexp-clone#readme",
"keywords": [
"RegExp",
"clone"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "aaron",
"email": "aaron.heckmann+github@gmail.com"
}
],
"name": "regexp-clone",
"optionalDependencies": {},
"readme": "#regexp-clone\n==============\n\nClones RegExps with flag preservation\n\n```js\nvar regexpClone = require('regexp-clone');\n\nvar a = /somethin/g;\nconsole.log(a.global); // true\n\nvar b = regexpClone(a);\nconsole.log(b.global); // true\n```\n\n## License\n\n[MIT](https://github.com/aheckmann/regexp-clone/blob/master/LICENSE)\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/aheckmann/regexp-clone.git"
},
"scripts": {
"test": "make test"
},
"version": "0.0.1"
}

112
node_modules/regexp-clone/test/index.js generated vendored Normal file
View File

@@ -0,0 +1,112 @@
var assert = require('assert')
var clone = require('../');
describe('regexp-clone', function(){
function hasEqualSource (a, b) {
assert.ok(a !== b);
assert.equal(a.source, b.source);
}
function isInsensitive (a) {
assert.ok(a.ignoreCase);
}
function isGlobal (a) {
assert.ok(a.global);
}
function isMultiline (a) {
assert.ok(a.multiline);
}
function insensitiveFlag (a) {
var b = clone(a);
hasEqualSource(a, b);
isInsensitive(a);
isInsensitive(b);
}
function globalFlag (a) {
var b = clone(a);
hasEqualSource(a, b);
isGlobal(a);
isGlobal(b);
}
function multilineFlag (a) {
var b = clone(a);
hasEqualSource(a, b);
isMultiline(a);
isMultiline(b);
}
describe('literals', function(){
it('insensitive flag', function(done){
var a = /hello/i;
insensitiveFlag(a);
done();
})
it('global flag', function(done){
var a = /hello/g;
globalFlag(a);
done();
})
it('multiline flag', function(done){
var a = /hello/m;
multilineFlag(a);
done();
})
it('no flags', function(done){
var a = /hello/;
var b = clone(a);
hasEqualSource(a, b);
assert.ok(!a.insensitive);
assert.ok(!a.global);
assert.ok(!a.global);
done();
})
it('all flags', function(done){
var a = /hello/gim;
insensitiveFlag(a);
globalFlag(a);
multilineFlag(a);
done();
})
})
describe('instances', function(){
it('insensitive flag', function(done){
var a = new RegExp('hello', 'i');
insensitiveFlag(a);
done();
})
it('global flag', function(done){
var a = new RegExp('hello', 'g');
globalFlag(a);
done();
})
it('multiline flag', function(done){
var a = new RegExp('hello', 'm');
multilineFlag(a);
done();
})
it('no flags', function(done){
var a = new RegExp('hmm');
var b = clone(a);
hasEqualSource(a, b);
assert.ok(!a.insensitive);
assert.ok(!a.global);
assert.ok(!a.global);
done();
})
it('all flags', function(done){
var a = new RegExp('hello', 'gim');
insensitiveFlag(a);
globalFlag(a);
multilineFlag(a);
done();
})
})
})