crxmake 2.0.0 → 2.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.
Files changed (3) hide show
  1. data/README.rdoc +20 -1
  2. data/lib/crxmake.rb +1 -1
  3. metadata +1 -1
data/README.rdoc CHANGED
@@ -9,6 +9,7 @@ make chromium extensions
9
9
  == SYNOPSIS:
10
10
  ruby code
11
11
  require 'crxmake'
12
+ # create crx
12
13
  CrxMake.make(
13
14
  :ex_dir => "./src",
14
15
  :pkey => "./test.pem",
@@ -18,16 +19,31 @@ ruby code
18
19
  :ignoredir => /\.(?:svn|git|cvs)/
19
20
  )
20
21
 
22
+ # create zip for Google Extension Gallery
23
+ CrxMake.zip(
24
+ :ex_dir => "./src",
25
+ :pkey => "./test.pem",
26
+ :zip_output => "./package/test.zip",
27
+ :verbose => true,
28
+ :ignorefile => /\.swp/,
29
+ :ignoredir => /\.(?:svn|git|cvs)/
30
+ )
31
+
21
32
  command line
22
33
  $ crxmake --pack-extension=<extension dir> --extension-output=<extension output path> --pack-extension-key=<pem path>
23
34
 
35
+
24
36
  required opt
25
37
  --pack-extension=<extension dir>
26
38
  extension source directory
27
-
28
39
  optional opt
29
40
  --extension-output=<extension output path>
30
41
  crx output path (default: ./<extension dirname>.crx)
42
+ --zip-output=<zip output path>
43
+ zip output path (default: ./<extension dirname>.zip)
44
+ if it isn't defined, crxmake is working on crx mode.
45
+ --mode=<zip or crx>
46
+ if it is defined, this value mode is priority.
31
47
  --pack-extension-key=<pem path>
32
48
  pem key path
33
49
  --key-output=<key path>
@@ -39,6 +55,9 @@ command line
39
55
  --ignore-dir=<pattern>
40
56
  pattern to ignore directories
41
57
  pattern is compiled by Regexp.new(<pattern>)
58
+ required opt
59
+ --pack-extension=<extension dir>
60
+ extension source directory
42
61
 
43
62
  == REQUIREMENTS:
44
63
 
data/lib/crxmake.rb CHANGED
@@ -9,7 +9,7 @@ require 'find'
9
9
  require 'pathname'
10
10
 
11
11
  class CrxMake < Object
12
- VERSION = '2.0.0'
12
+ VERSION = '2.0.1'
13
13
  @@magic = [?C, ?r, ?2, ?4].pack('C*')
14
14
  # this is chromium extension version
15
15
  @@version = [2].pack('L')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crxmake
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Constellation