extensionator 1.1.10 → 2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/extensionator.rb +6 -7
- data/lib/extensionator/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e50ddfd9d6dfc0748f35a7e97a7455c5dfbcffe9
|
4
|
+
data.tar.gz: 470f5fde346ad56b8120f259315a78f0c5551730
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b63933ccfbf9bd7c4902449a4826fa34397d68a63be0110867fc61c010f1a4df9eb112ab9f186d7cfeb89d02241f2dc098ded3a2661deedabce87964801942b2
|
7
|
+
data.tar.gz: 7ace7335cc5e7f5c1252066f8391e2bcd823e10e3667c4297089c4312b90fae7bb2d111f1499d875ac1b85a17d9140424ef002229c8eabf01af352e9101d0d96
|
data/README.md
CHANGED
@@ -67,7 +67,7 @@ Create a CRX:
|
|
67
67
|
|
68
68
|
```rb
|
69
69
|
require "extensionator"
|
70
|
-
Extensionator.crx("directory/with/extension", "
|
70
|
+
Extensionator.crx("directory/with/extension", "output_file.crx", identity: "identity.pem")
|
71
71
|
```
|
72
72
|
|
73
73
|
Or to create a zip:
|
@@ -86,8 +86,8 @@ Options go at the end of any method call, and just look just like the CLI ones,
|
|
86
86
|
|
87
87
|
```rb
|
88
88
|
Extensionator.crx("dir",
|
89
|
-
"identity.pem",
|
90
89
|
"output.crx",
|
90
|
+
identity: "identity.pem",
|
91
91
|
inject_version: "4.5.1",
|
92
92
|
strip_key: true,
|
93
93
|
inject_key: true,
|
data/lib/extensionator.rb
CHANGED
@@ -5,12 +5,16 @@ require_relative "extensionator/creator"
|
|
5
5
|
|
6
6
|
module Extensionator
|
7
7
|
|
8
|
+
def self.create(kind, dir, dest, opts={})
|
9
|
+
Creator.new(dir, opts).send(kind, dest)
|
10
|
+
end
|
11
|
+
|
8
12
|
def self.validate(dir, opts={})
|
9
13
|
Creator.new(dir, opts).validate
|
10
14
|
end
|
11
15
|
|
12
|
-
def self.crx(dir,
|
13
|
-
Creator.new(dir, opts
|
16
|
+
def self.crx(dir, dest_filename, opts)
|
17
|
+
Creator.new(dir, opts).crx(dest_filename)
|
14
18
|
end
|
15
19
|
|
16
20
|
def self.zip(dir, dest_filename, opts= {})
|
@@ -20,9 +24,4 @@ module Extensionator
|
|
20
24
|
def self.copy(dir, dest_directory, opts= {})
|
21
25
|
Creator.new(dir, opts).copy(dest_directory)
|
22
26
|
end
|
23
|
-
|
24
|
-
##deprecated, reverse compat
|
25
|
-
def self.create(dir, identity_file, dest_filename, opts = {})
|
26
|
-
crx(dir, identity_file, dest_filename, opts)
|
27
|
-
end
|
28
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extensionator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: '2.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Cambron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: 1.3.5
|
91
91
|
requirements: []
|
92
92
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.
|
93
|
+
rubygems_version: 2.5.1
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: Build and sign Chrome extensions (.crx files), either from the command line
|