crxmake 2.0.7 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/README.rdoc +1 -3
  3. data/bin/crxmake +6 -1
  4. data/lib/crxmake.rb +5 -4
  5. metadata +13 -12
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2ad2a4a2c4f898aec967a9ee58425e5dfa7b4843
4
+ data.tar.gz: 2370dec570b5115a0887b472506f3609b9025b43
5
+ SHA512:
6
+ metadata.gz: d35bc741754b194db233b5983748898296cbf3fc183fde44ce1d9c7c596a4aa85e356d7d1fefaf91b378d2cdc4bd3530317c1e9cbd3f32293fcd11f5c68feeb8
7
+ data.tar.gz: 346317665146ac43f42e4cbb858a544fb50a499d4681edd0060a39f390f6a2eaeb5481a4c60a68a503f66cd5b22483b81a2619f8e81f527739ae6b4aadb1683f
data/README.rdoc CHANGED
@@ -6,8 +6,6 @@
6
6
 
7
7
  make chromium extensions
8
8
 
9
- ** Using 'zip' gem instead of 'zipruby' to support RubyInstaller for Windows.
10
-
11
9
  == SYNOPSIS:
12
10
  ruby code
13
11
  require 'crxmake'
@@ -64,7 +62,7 @@ command line
64
62
  == REQUIREMENTS:
65
63
 
66
64
  * openssl
67
- * zip
65
+ * rubyzip
68
66
 
69
67
  == INSTALL:
70
68
 
data/bin/crxmake CHANGED
@@ -2,7 +2,12 @@
2
2
  # vim: fileencoding=utf-8
3
3
  require 'rubygems'
4
4
  require 'optparse'
5
- require 'crxmake'
5
+ begin
6
+ require 'crxmake'
7
+ rescue LoadError
8
+ # require_relative is 1.9 only
9
+ require File.expand_path("../../lib/crxmake", __FILE__)
10
+ end
6
11
 
7
12
  data = {}
8
13
  usage = <<-EOS
data/lib/crxmake.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby
2
2
  # vim: fileencoding=utf-8
3
3
  require 'rubygems'
4
- require 'zip'
4
+ require 'zip/zip'
5
5
  require 'openssl'
6
6
  require 'digest/sha1'
7
7
  require 'fileutils'
@@ -9,7 +9,7 @@ require 'find'
9
9
  require 'pathname'
10
10
 
11
11
  class CrxMake < Object
12
- VERSION = '2.0.7'
12
+ VERSION = '2.1.0'
13
13
  # thx masover
14
14
  MAGIC = 'Cr24'
15
15
 
@@ -35,7 +35,7 @@ class CrxMake < Object
35
35
  sign_zip
36
36
  write_crx
37
37
  ensure
38
- final
38
+ remove_zip
39
39
  end
40
40
 
41
41
  def zip
@@ -44,6 +44,7 @@ class CrxMake < Object
44
44
  generate_key
45
45
  @pkey = @pkey_o
46
46
  end
47
+ remove_zip
47
48
  create_zip do |zip|
48
49
  puts "include pem key: \"#{@pkey}\"" if @verbose
49
50
  zip.add('key.pem', @pkey)
@@ -214,7 +215,7 @@ zip file at \"#{@zip}\"
214
215
  return [num].pack('V')
215
216
  end
216
217
 
217
- def final
218
+ def remove_zip
218
219
  FileUtils.rm_rf(@zip) if @zip && File.exist?(@zip)
219
220
  end
220
221
 
metadata CHANGED
@@ -1,27 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crxmake
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7
5
- prerelease:
4
+ version: 2.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Constellation
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-02-17 00:00:00.000000000Z
11
+ date: 2013-07-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: zip
16
- requirement: &70312869004100 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.0.2
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70312869004100
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 2.0.2
25
27
  description: command line tool for making chromium extension
26
28
  email: utatane.tea@gmail.com
27
29
  executables:
@@ -37,6 +39,7 @@ files:
37
39
  - lib/crxmake.rb
38
40
  homepage: http://github.com/Constellation/crxmake/tree/master
39
41
  licenses: []
42
+ metadata: {}
40
43
  post_install_message:
41
44
  rdoc_options:
42
45
  - --main
@@ -48,22 +51,20 @@ rdoc_options:
48
51
  require_paths:
49
52
  - lib
50
53
  required_ruby_version: !ruby/object:Gem::Requirement
51
- none: false
52
54
  requirements:
53
- - - ! '>='
55
+ - - '>='
54
56
  - !ruby/object:Gem::Version
55
57
  version: '0'
56
58
  required_rubygems_version: !ruby/object:Gem::Requirement
57
- none: false
58
59
  requirements:
59
- - - ! '>='
60
+ - - '>='
60
61
  - !ruby/object:Gem::Version
61
62
  version: '0'
62
63
  requirements: []
63
64
  rubyforge_project: crxmake
64
- rubygems_version: 1.8.15
65
+ rubygems_version: 2.0.0
65
66
  signing_key:
66
- specification_version: 3
67
+ specification_version: 4
67
68
  summary: make chromium extension
68
69
  test_files:
69
70
  - test/crxmake_test.rb