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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +29 -3
  3. data/lib/extensionator.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0982a1e409bdfb2925c89460766736c640d197f
4
- data.tar.gz: eb3265de4354a1d3ed035b9133abfceae6ecda6f
3
+ metadata.gz: 1ac98c3c64b6524dd08f0a50fe0248e3aea73de2
4
+ data.tar.gz: d6966877565e304c44487f752590fa383c65f247
5
5
  SHA512:
6
- metadata.gz: da1f07552fecc765f2ae2fccec22465cdfaaf777b6435a7f3c4744a54b601f23373e40a614c4acf73bc1746fba13c26eb8e399f3d89e9830c02be24836c1b6c0
7
- data.tar.gz: 669a3f6f9cef4f9a0883cefb00718c7c0b81f561111dc111b8baa53668db577bd71d5bbae972c0eb8a4cb1d354d31a4bfd70380138fd77242374eb8355cd26fe
6
+ metadata.gz: 523fd453f76791fce831db4682c6266aef652eccb1686831e3a04013133297fddbf1a8d8cc18f8fa5e0839f5ab0809ef0bd10bdaa3d6539328d9c3acd4d7da96
7
+ data.tar.gz: 8c9c2078287b693b64cd002ee18e7ab57753df4608e3fcea88777603ed8f7ef430ba994e55dae93a4795ebc74fccb256ed07fdee6d9164f9d96b750ffb7f9dd1
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Package Chrome extensions with Ruby. Based on [crxmake](https://github.com/Constellation/crxmake).
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 tried to load the packed extension into Chrome. Then:
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
@@ -5,7 +5,7 @@ require "pathname"
5
5
  require "zip"
6
6
 
7
7
  module Extensionator
8
- VERSION = "0.0.1"
8
+ VERSION = "0.0.2"
9
9
 
10
10
  def self.create(dir, key_file, dest_filename, opts = {})
11
11
  priv_key = read_key(key_file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extensionator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Cambron