crxmake 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/crxmake.rb +3 -2
- data/test/crxmake_test.rb +0 -1
- metadata +5 -7
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.
|
12
|
+
VERSION = '2.0.7'
|
13
13
|
# thx masover
|
14
14
|
MAGIC = 'Cr24'
|
15
15
|
|
@@ -194,7 +194,8 @@ zip file at \"#{@zip}\"
|
|
194
194
|
|
195
195
|
def write_crx
|
196
196
|
print "write crx..." if @verbose
|
197
|
-
key =
|
197
|
+
key = @key.public_key.to_der
|
198
|
+
key.index(KEY) != 0 and key = KEY + key
|
198
199
|
File.open(@crx, 'wb') do |file|
|
199
200
|
file << MAGIC
|
200
201
|
file << EXT_VERSION
|
data/test/crxmake_test.rb
CHANGED
@@ -46,7 +46,6 @@ class CrxMakeTest < Test::Unit::TestCase
|
|
46
46
|
assert(File.exist?(File.join(@dir, 'test_zip.pem')))
|
47
47
|
end
|
48
48
|
def test_create_crx_command
|
49
|
-
puts `pwd`
|
50
49
|
system("ruby #{@command} --pack-extension='#{File.join(@dir, 'src')}' --extension-output='#{File.join(@dir, 'test_crx.crx')}' --key-output='#{File.join(@dir, 'test_crx.pem')}' --verbose")
|
51
50
|
assert(File.exist?(File.join(@dir, 'test_crx.crx')))
|
52
51
|
assert(File.exist?(File.join(@dir, 'test_crx.pem')))
|
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.
|
4
|
+
version: 2.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
default_executable:
|
12
|
+
date: 2012-02-17 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: zip
|
17
|
-
requirement: &
|
16
|
+
requirement: &70312869004100 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ~>
|
@@ -22,7 +21,7 @@ dependencies:
|
|
22
21
|
version: 2.0.2
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *70312869004100
|
26
25
|
description: command line tool for making chromium extension
|
27
26
|
email: utatane.tea@gmail.com
|
28
27
|
executables:
|
@@ -36,7 +35,6 @@ files:
|
|
36
35
|
- bin/crxmake
|
37
36
|
- test/crxmake_test.rb
|
38
37
|
- lib/crxmake.rb
|
39
|
-
has_rdoc: true
|
40
38
|
homepage: http://github.com/Constellation/crxmake/tree/master
|
41
39
|
licenses: []
|
42
40
|
post_install_message:
|
@@ -63,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
61
|
version: '0'
|
64
62
|
requirements: []
|
65
63
|
rubyforge_project: crxmake
|
66
|
-
rubygems_version: 1.
|
64
|
+
rubygems_version: 1.8.15
|
67
65
|
signing_key:
|
68
66
|
specification_version: 3
|
69
67
|
summary: make chromium extension
|