extensionator 1.0.0 → 1.0.1
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 +22 -29
- data/extensionator.gemspec +5 -4
- data/lib/extensionator/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c159fab576ebc4eee9fafc8e9c67cb3c057acf9f
|
4
|
+
data.tar.gz: 67917fd1539033b7bfdc84a55e80f7b58b4e71d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 430508a2a39100f6fe3b34357d6e323bc85e8fe4d08548a967cfa6b94adc7c74c19147c0d787daf43a29ee60101258ba397a3616812297d5a5cbb8aaf13f0bf8
|
7
|
+
data.tar.gz: 7dc51d6fd2646d24ea6dbc1b8eb1bfcbfb2495cf2ea592898c0e07a0636517fb7c03732fcdc8d692dd459b347af7464d32f7ce1d8b7f609d2cdb0e718dcd02c8
|
data/README.md
CHANGED
@@ -1,17 +1,22 @@
|
|
1
|
-
|
1
|
+
# Extensionator
|
2
|
+
|
3
|
+
Package Chrome extensions. Inspired by [crxmake][crxmake-url], but with an eye towards simplicity and supportability. Use the CLI or the Ruby API.
|
2
4
|
|
3
5
|
[![Gem Version][gem-img]][gem-url]
|
6
|
+
[![License][license-img]][license]
|
4
7
|
[![Gem Downloads][gem-dl-img]][gem-url]
|
8
|
+
[![Build Status][travis-image]][travis-url]
|
5
9
|
[![Code Climate][code-climate-img]][code-climate-url]
|
6
|
-
[![
|
10
|
+
[![Dependencies][gemnasium-image]][gemnasium-url]
|
11
|
+
![Phasers to stun][phasers-image]
|
7
12
|
|
8
|
-
|
13
|
+
## Install
|
9
14
|
|
10
15
|
```
|
11
16
|
gem install extensionator
|
12
17
|
```
|
13
18
|
|
14
|
-
|
19
|
+
## What you need
|
15
20
|
|
16
21
|
You need a private key so sign the extension with, and this is a BYOK (bring your own key) library. So first, you need a PEM file. If you have one, cool. If not, do this:
|
17
22
|
|
@@ -21,7 +26,7 @@ openssl genrsa -out key.pem 2048
|
|
21
26
|
|
22
27
|
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.
|
23
28
|
|
24
|
-
|
29
|
+
## Command line
|
25
30
|
|
26
31
|
```
|
27
32
|
extensionator -d directory/with/extension -i key.pem -o output.crx
|
@@ -46,7 +51,7 @@ usage: /Users/isaac/.gem/ruby/2.1.5/bin/extensionator [options]
|
|
46
51
|
-h, --help Print this message.
|
47
52
|
```
|
48
53
|
|
49
|
-
|
54
|
+
## Programmatically
|
50
55
|
|
51
56
|
Same as above, but:
|
52
57
|
|
@@ -61,32 +66,12 @@ Or with an `exclude` option:
|
|
61
66
|
Extensionator.create("dir", "key.pem", "output_file.crx", exclude: /\.md$/)
|
62
67
|
```
|
63
68
|
|
64
|
-
|
65
|
-
|
66
|
-
The MIT License (MIT)
|
67
|
-
|
68
|
-
Copyright (c) 2015 Zensight
|
69
|
-
|
70
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
71
|
-
of this software and associated documentation files (the "Software"), to deal
|
72
|
-
in the Software without restriction, including without limitation the rights
|
73
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
74
|
-
copies of the Software, and to permit persons to whom the Software is
|
75
|
-
furnished to do so, subject to the following conditions:
|
69
|
+
## License
|
76
70
|
|
77
|
-
|
78
|
-
all copies or substantial portions of the Software.
|
79
|
-
|
80
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
81
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
82
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
83
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
84
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
85
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
86
|
-
THE SOFTWARE.
|
71
|
+
Copyright 2015 Zensight. Distributed under the MIT License. See the [LICENSE][] file for more details.
|
87
72
|
|
88
73
|
[license-img]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
|
89
|
-
[license
|
74
|
+
[license]: LICENSE.md
|
90
75
|
|
91
76
|
[code-climate-img]: https://img.shields.io/codeclimate/github/Zensight/extensionator.svg?style=flat-square
|
92
77
|
[code-climate-url]: https://codeclimate.com/github/Zensight/extensionator
|
@@ -95,4 +80,12 @@ THE SOFTWARE.
|
|
95
80
|
[gem-dl-img]: https://img.shields.io/gem/dt/extensionator.svg?style=flat-square
|
96
81
|
[gem-url]: https://rubygems.org/gems/extensionator
|
97
82
|
|
83
|
+
[travis-url]: http://travis-ci.org/zensight/extensionator
|
84
|
+
[travis-image]: http://img.shields.io/travis/zensight/extensionator.svg?style=flat-square
|
85
|
+
|
86
|
+
[gemnasium-url]: https://gemnasium.com/zensight/extensionator
|
87
|
+
[gemnasium-image]: https://img.shields.io/gemnasium/Zensight/extensionator.svg?style=flat-square
|
88
|
+
|
98
89
|
[crxmake-url]: https://github.com/Constellation/crxmake
|
90
|
+
|
91
|
+
[phasers-image]: https://img.shields.io/badge/phasers-stun-green.svg?style=flat-square
|
data/extensionator.gemspec
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
lib = File.expand_path("../lib", __FILE__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "extensionator"
|
4
3
|
|
5
4
|
Gem::Specification.new do |spec|
|
6
|
-
spec.
|
7
|
-
spec.
|
8
|
-
spec.
|
5
|
+
spec.add_development_dependency "bundler", "~> 1.1"
|
6
|
+
spec.add_runtime_dependency "rubyzip", "~> 1.1"
|
7
|
+
spec.add_runtime_dependency "slop", "~> 4.2"
|
9
8
|
spec.authors = ["Isaac Cambron"]
|
10
9
|
spec.description = "A tool for packaging Chrome extensions"
|
11
10
|
spec.email = %w(isaac@isaaccambron.com)
|
@@ -18,5 +17,7 @@ Gem::Specification.new do |spec|
|
|
18
17
|
spec.required_ruby_version = ">= 2.0.0"
|
19
18
|
spec.required_rubygems_version = ">= 1.3.5"
|
20
19
|
spec.summary = "Build and sign Chrome extensions (.crx files), either from the command line or using a Ruby API."
|
20
|
+
|
21
|
+
require "extensionator/version"
|
21
22
|
spec.version = Extensionator::VERSION
|
22
23
|
end
|
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extensionator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Cambron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
20
|
-
type: :
|
19
|
+
version: '1.1'
|
20
|
+
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rubyzip
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: slop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
type: :
|
47
|
+
version: '4.2'
|
48
|
+
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '4.2'
|
55
55
|
description: A tool for packaging Chrome extensions
|
56
56
|
email:
|
57
57
|
- isaac@isaaccambron.com
|