extensionator 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +29 -3
- data/lib/extensionator.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ac98c3c64b6524dd08f0a50fe0248e3aea73de2
|
4
|
+
data.tar.gz: d6966877565e304c44487f752590fa383c65f247
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 523fd453f76791fce831db4682c6266aef652eccb1686831e3a04013133297fddbf1a8d8cc18f8fa5e0839f5ab0809ef0bd10bdaa3d6539328d9c3acd4d7da96
|
7
|
+
data.tar.gz: 8c9c2078287b693b64cd002ee18e7ab57753df4608e3fcea88777603ed8f7ef430ba994e55dae93a4795ebc74fccb256ed07fdee6d9164f9d96b750ffb7f9dd1
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Package Chrome extensions with Ruby.
|
1
|
+
Package Chrome extensions with Ruby. Inspired by (Loosely based on? Stolen from?) [crxmake](https://github.com/Constellation/crxmake).
|
2
2
|
|
3
3
|
# Install
|
4
4
|
|
@@ -14,14 +14,40 @@ You need a private key so sign the extension with, and this is a BYOK (bring you
|
|
14
14
|
openssl genrsa -out key.pem 2048
|
15
15
|
```
|
16
16
|
|
17
|
-
You'll also need a directory to package up. Extensionator doesn't pay any attention to the contents; it just repackages them. So if you're misssing a `manifest.json` or your files are encoded wrong or whatever, you won't find out until you
|
17
|
+
You'll also need a directory to package up. Extensionator doesn't pay any attention to the contents; it just repackages them. So if you're misssing a `manifest.json` or your files are encoded wrong or whatever, you won't find out until you try to load the packed extension into Chrome.
|
18
|
+
|
19
|
+
OK, ready:
|
18
20
|
|
19
21
|
```rb
|
20
22
|
Extensionator.create("directory_with_extension", "key.pem", "output_file.crx")
|
21
23
|
```
|
22
24
|
|
23
|
-
You can also exclude files with a regex:
|
25
|
+
You can also exclude files with a regex, which will be applied to each level of the path (so if you have `foo/bar/baz.stuff`, we compare the regex to "foo", "foo/bar", and "foo/bar/baz.stuff"):
|
24
26
|
|
25
27
|
```rb
|
26
28
|
Extensionator.create("dir", "key.pem", "output_file.crx", exclude: /\.md$/)
|
27
29
|
```
|
30
|
+
|
31
|
+
# License
|
32
|
+
|
33
|
+
The MIT License (MIT)
|
34
|
+
|
35
|
+
Copyright (c) 2015 Isaac Cambron
|
36
|
+
|
37
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
38
|
+
of this software and associated documentation files (the "Software"), to deal
|
39
|
+
in the Software without restriction, including without limitation the rights
|
40
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
41
|
+
copies of the Software, and to permit persons to whom the Software is
|
42
|
+
furnished to do so, subject to the following conditions:
|
43
|
+
|
44
|
+
The above copyright notice and this permission notice shall be included in
|
45
|
+
all copies or substantial portions of the Software.
|
46
|
+
|
47
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
48
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
49
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
50
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
51
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
52
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
53
|
+
THE SOFTWARE.
|
data/lib/extensionator.rb
CHANGED