cloudcannon-jekyll-bookshop 2.0.0.pre.alpha.53 → 2.0.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cloudcannon-jekyll-bookshop/version.rb +1 -1
- data/node_modules/@bookshop/cloudcannon-structures/main.js +3 -2
- data/node_modules/@bookshop/cloudcannon-structures/package.json +8 -14
- data/node_modules/@bookshop/cloudcannon-structures/{node_modules/pluralize/pluralize.js → vendored-pluralize.js} +0 -0
- data/node_modules/@bookshop/toml-narrator/package.json +5 -7
- metadata +3 -6
- data/node_modules/@bookshop/cloudcannon-structures/node_modules/pluralize/LICENSE +0 -21
- data/node_modules/@bookshop/cloudcannon-structures/node_modules/pluralize/Readme.md +0 -100
- data/node_modules/@bookshop/cloudcannon-structures/node_modules/pluralize/package.json +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd8c2ba588f6b89fcf9cb861edf99800e194f5934d27f73d9d15dc2088d3913f
|
4
|
+
data.tar.gz: 4d8cd72ed22f8fe5906f46d4883be86b4f024aa3cbafc3df42e39d0133324e98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f6397f010efe1ce2a280cd9acb06646a685dfbb2c7ca6ed8037d3fd901ac58b577319683c3f653bbbfd67646d7bd553be9eb0a775583f168569313d80c5bf39
|
7
|
+
data.tar.gz: f87628966e928f57f30973a3fa99bf512fd603bc48e29a4a468f10e2a4a6dd9c68b5fe1df5a133c2739038efc0f81b796a67831e4c5ef6d8d6fadc19580d1194
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
var pkg = require('./package.json');
|
2
|
-
|
2
|
+
// Pluralize is vendored for distribution to the generator plugins
|
3
|
+
const pluralize = require('./vendored-pluralize.js');
|
3
4
|
|
4
5
|
// Generates the bookshop key used to reference this component
|
5
6
|
// Turns "a/b/b.bookshop.toml" into "a/b"
|
6
7
|
const GetComponentKey = (componentPath) => {
|
7
|
-
let base = componentPath.split(".")[0];
|
8
|
+
let base = componentPath.replace(/^.*components\//, '').split(".")[0];
|
8
9
|
let parts = base.split("/");
|
9
10
|
const l = parts.length;
|
10
11
|
if (l >= 2 && parts[l-1] === parts[l-2]) {
|
@@ -1,13 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bookshop/cloudcannon-structures",
|
3
|
-
"version": "2.0.0-
|
3
|
+
"version": "2.0.0-beta.1",
|
4
4
|
"description": "Convert a Bookshop object into a CloudCannon structure",
|
5
5
|
"main": "main.js",
|
6
6
|
"scripts": {
|
7
|
-
"test": "
|
7
|
+
"test": "ava -v"
|
8
8
|
},
|
9
9
|
"files": [
|
10
|
-
"main.js"
|
10
|
+
"main.js",
|
11
|
+
"vendored-pluralize.js"
|
11
12
|
],
|
12
13
|
"author": "@bglw",
|
13
14
|
"license": "MIT",
|
@@ -17,17 +18,10 @@
|
|
17
18
|
"devDependencies": {
|
18
19
|
"@bookshop/toml-narrator": "file:../toml-narrator",
|
19
20
|
"@ltd/j-toml": "^1.12.2",
|
20
|
-
"
|
21
|
-
},
|
22
|
-
"jest": {
|
23
|
-
"setupFiles": [
|
24
|
-
"./util/test-helpers.js"
|
25
|
-
]
|
26
|
-
},
|
27
|
-
"dependencies": {
|
21
|
+
"ava": "^3.15.0",
|
28
22
|
"pluralize": "^8.0.0"
|
29
23
|
},
|
30
|
-
"
|
31
|
-
"
|
32
|
-
|
24
|
+
"engines": {
|
25
|
+
"npm": "please-use-yarn"
|
26
|
+
}
|
33
27
|
}
|
File without changes
|
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bookshop/toml-narrator",
|
3
|
-
"version": "2.0.0-
|
3
|
+
"version": "2.0.0-beta.1",
|
4
4
|
"description": "Rewrite Bookshop TOML files to preserve comments",
|
5
5
|
"main": "main.js",
|
6
6
|
"scripts": {
|
7
|
-
"test": "
|
7
|
+
"test": "ava -v"
|
8
8
|
},
|
9
9
|
"files": [
|
10
10
|
"main.js"
|
@@ -15,11 +15,9 @@
|
|
15
15
|
"access": "public"
|
16
16
|
},
|
17
17
|
"devDependencies": {
|
18
|
-
"
|
18
|
+
"ava": "^3.15.0"
|
19
19
|
},
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"./util/test-helpers.js"
|
23
|
-
]
|
20
|
+
"engines": {
|
21
|
+
"npm": "please-use-yarn"
|
24
22
|
}
|
25
23
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudcannon-jekyll-bookshop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.pre.
|
4
|
+
version: 2.0.0.pre.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liam Bigelow
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -155,11 +155,8 @@ files:
|
|
155
155
|
- lib/cloudcannon-jekyll-bookshop/structures.rb
|
156
156
|
- lib/cloudcannon-jekyll-bookshop/version.rb
|
157
157
|
- node_modules/@bookshop/cloudcannon-structures/main.js
|
158
|
-
- node_modules/@bookshop/cloudcannon-structures/node_modules/pluralize/LICENSE
|
159
|
-
- node_modules/@bookshop/cloudcannon-structures/node_modules/pluralize/Readme.md
|
160
|
-
- node_modules/@bookshop/cloudcannon-structures/node_modules/pluralize/package.json
|
161
|
-
- node_modules/@bookshop/cloudcannon-structures/node_modules/pluralize/pluralize.js
|
162
158
|
- node_modules/@bookshop/cloudcannon-structures/package.json
|
159
|
+
- node_modules/@bookshop/cloudcannon-structures/vendored-pluralize.js
|
163
160
|
- node_modules/@bookshop/toml-narrator/main.js
|
164
161
|
- node_modules/@bookshop/toml-narrator/package.json
|
165
162
|
homepage: https://github.com/cloudcannon/bookshop
|
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2013 Blake Embrey (hello@blakeembrey.com)
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
@@ -1,100 +0,0 @@
|
|
1
|
-
# Pluralize
|
2
|
-
|
3
|
-
[![NPM version][npm-image]][npm-url]
|
4
|
-
[![NPM downloads][downloads-image]][downloads-url]
|
5
|
-
[![Build status][travis-image]][travis-url]
|
6
|
-
[![Test coverage][coveralls-image]][coveralls-url]
|
7
|
-
![File Size][filesize-url]
|
8
|
-
[![CDNJS][cdnjs-image]][cdnjs-url]
|
9
|
-
|
10
|
-
> Pluralize and singularize any word.
|
11
|
-
|
12
|
-
## Installation
|
13
|
-
|
14
|
-
```
|
15
|
-
npm install pluralize --save
|
16
|
-
yarn add pluralize
|
17
|
-
bower install pluralize --save
|
18
|
-
```
|
19
|
-
|
20
|
-
### Node
|
21
|
-
|
22
|
-
```javascript
|
23
|
-
var pluralize = require('pluralize')
|
24
|
-
```
|
25
|
-
|
26
|
-
### AMD
|
27
|
-
|
28
|
-
```javascript
|
29
|
-
define(function (require, exports, module) {
|
30
|
-
var pluralize = require('pluralize')
|
31
|
-
})
|
32
|
-
```
|
33
|
-
|
34
|
-
### `<script>` tag
|
35
|
-
|
36
|
-
```html
|
37
|
-
<script src="pluralize.js"></script>
|
38
|
-
```
|
39
|
-
|
40
|
-
## Why?
|
41
|
-
|
42
|
-
This module uses a pre-defined list of rules, applied in order, to singularize or pluralize a given word. There are many cases where this is useful, such as any automation based on user input. For applications where the word(s) are known ahead of time, you can use a simple ternary (or function) which would be a much lighter alternative.
|
43
|
-
|
44
|
-
## Usage
|
45
|
-
|
46
|
-
* `word: string` The word to pluralize
|
47
|
-
* `count: number` How many of the word exist
|
48
|
-
* `inclusive: boolean` Whether to prefix with the number (e.g. 3 ducks)
|
49
|
-
|
50
|
-
Examples:
|
51
|
-
|
52
|
-
```javascript
|
53
|
-
pluralize('test') //=> "tests"
|
54
|
-
pluralize('test', 0) //=> "tests"
|
55
|
-
pluralize('test', 1) //=> "test"
|
56
|
-
pluralize('test', 5) //=> "tests"
|
57
|
-
pluralize('test', 1, true) //=> "1 test"
|
58
|
-
pluralize('test', 5, true) //=> "5 tests"
|
59
|
-
pluralize('蘋果', 2, true) //=> "2 蘋果"
|
60
|
-
|
61
|
-
// Example of new plural rule:
|
62
|
-
pluralize.plural('regex') //=> "regexes"
|
63
|
-
pluralize.addPluralRule(/gex$/i, 'gexii')
|
64
|
-
pluralize.plural('regex') //=> "regexii"
|
65
|
-
|
66
|
-
// Example of new singular rule:
|
67
|
-
pluralize.singular('singles') //=> "single"
|
68
|
-
pluralize.addSingularRule(/singles$/i, 'singular')
|
69
|
-
pluralize.singular('singles') //=> "singular"
|
70
|
-
|
71
|
-
// Example of new irregular rule, e.g. "I" -> "we":
|
72
|
-
pluralize.plural('irregular') //=> "irregulars"
|
73
|
-
pluralize.addIrregularRule('irregular', 'regular')
|
74
|
-
pluralize.plural('irregular') //=> "regular"
|
75
|
-
|
76
|
-
// Example of uncountable rule (rules without singular/plural in context):
|
77
|
-
pluralize.plural('paper') //=> "papers"
|
78
|
-
pluralize.addUncountableRule('paper')
|
79
|
-
pluralize.plural('paper') //=> "paper"
|
80
|
-
|
81
|
-
// Example of asking whether a word looks singular or plural:
|
82
|
-
pluralize.isPlural('test') //=> false
|
83
|
-
pluralize.isSingular('test') //=> true
|
84
|
-
```
|
85
|
-
|
86
|
-
## License
|
87
|
-
|
88
|
-
MIT
|
89
|
-
|
90
|
-
[npm-image]: https://img.shields.io/npm/v/pluralize.svg?style=flat
|
91
|
-
[npm-url]: https://npmjs.org/package/pluralize
|
92
|
-
[downloads-image]: https://img.shields.io/npm/dm/pluralize.svg?style=flat
|
93
|
-
[downloads-url]: https://npmjs.org/package/pluralize
|
94
|
-
[travis-image]: https://img.shields.io/travis/blakeembrey/pluralize.svg?style=flat
|
95
|
-
[travis-url]: https://travis-ci.org/blakeembrey/pluralize
|
96
|
-
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/pluralize.svg?style=flat
|
97
|
-
[coveralls-url]: https://coveralls.io/r/blakeembrey/pluralize?branch=master
|
98
|
-
[filesize-url]: https://img.shields.io/github/size/blakeembrey/pluralize/pluralize.js.svg?style=flat
|
99
|
-
[cdnjs-image]: https://img.shields.io/cdnjs/v/pluralize.svg
|
100
|
-
[cdnjs-url]: https://cdnjs.com/libraries/pluralize
|
@@ -1,40 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "pluralize",
|
3
|
-
"version": "8.0.0",
|
4
|
-
"description": "Pluralize and singularize any word",
|
5
|
-
"main": "pluralize.js",
|
6
|
-
"files": [
|
7
|
-
"pluralize.js"
|
8
|
-
],
|
9
|
-
"scripts": {
|
10
|
-
"lint": "semistandard",
|
11
|
-
"test-spec": "mocha -R spec --bail",
|
12
|
-
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --bail",
|
13
|
-
"test": "npm run lint && npm run test-cov"
|
14
|
-
},
|
15
|
-
"repository": "https://github.com/blakeembrey/pluralize.git",
|
16
|
-
"keywords": [
|
17
|
-
"plural",
|
18
|
-
"plurals",
|
19
|
-
"pluralize",
|
20
|
-
"singular",
|
21
|
-
"singularize",
|
22
|
-
"inflection"
|
23
|
-
],
|
24
|
-
"author": {
|
25
|
-
"name": "Blake Embrey",
|
26
|
-
"email": "hello@blakeembrey.com",
|
27
|
-
"url": "http://blakeembrey.me"
|
28
|
-
},
|
29
|
-
"license": "MIT",
|
30
|
-
"readmeFilename": "Readme.md",
|
31
|
-
"engines": {
|
32
|
-
"node": ">=4"
|
33
|
-
},
|
34
|
-
"devDependencies": {
|
35
|
-
"chai": "^4.0.0",
|
36
|
-
"istanbul": "^0.4.5",
|
37
|
-
"mocha": "^5.0.0",
|
38
|
-
"semistandard": "^12.0.0"
|
39
|
-
}
|
40
|
-
}
|