extensionator 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 932da97eea38c1207d1288f3a32a98e32ebf6a0b
4
- data.tar.gz: cbb0a86e76854a7e4c1098c96a85c062b5deaa2e
3
+ metadata.gz: d0cb816b7ddd6b4c25dd868bf822331c7fa6c241
4
+ data.tar.gz: 0b2ae54a538f26f1613454157d37af563c6653e8
5
5
  SHA512:
6
- metadata.gz: 88a270feae97929d993953c8c661ce61d84405d94d77f23ce281fb69e3c18a95a62d95b73a4b211f281917f46fccc1a294735ded32b8e4ee56794c2a18b48860
7
- data.tar.gz: 646ab147c2deefa856dd17154dc2ae1a3aae98f308ac9077682c6274b1767e2243c02de2f16e2bee65366ff537070e2ec140c53fe4f99596e1083cdc42bbfb44
6
+ metadata.gz: a22d9dd5b6210f75a0ec272b0c457e0ddf39ad58c8dc5279b46040233d49c294a391c290db9c594d8ce4d0043f108705f754cfef6319696ce56452cc458e83f9
7
+ data.tar.gz: acac8a3d5fb8a45e99dc4ee121bbc886a54a1dc973073c316090e4522c7f2e3d7e65281d8010c446c2a35609e3b25f4f025292b2aaf7a6415dc692657b8d135d
data/README.md CHANGED
@@ -39,6 +39,8 @@ Useful options!
39
39
 
40
40
  * `--inject-key`. If you have an extension in the store, you know you can't have a "key" property in your manifest file. But if you do local unpacked development and want to keep your extension ID the same, you need that property in there. This is because Google hates you and wants to make your life hard. Fortunately, Extensionator can take your pem file, generate the public key, and put it in the manifest file before writing the extension. Yay!
41
41
 
42
+ * `--strip-key`. Alternatively, your workflow may make more sense leaving the key in your source file and stripping it out when you build your zip. Up to you!
43
+
42
44
  * `--inject-version`. Use this to override the "version" property in your manifest.
43
45
 
44
46
  Here's the whole shebang:
@@ -75,7 +77,7 @@ Extensionator.zip("directory/with/extension", "output_file.zip")
75
77
 
76
78
  Or a directory:
77
79
 
78
- ```
80
+ ```rb
79
81
  Extensionator.dir("directory/with/extension", "output_dir")
80
82
  ```
81
83
 
@@ -42,7 +42,6 @@ module Extensionator
42
42
 
43
43
  def self.fixup_options(in_opts)
44
44
  opts = in_opts.clone
45
- opts[:output] = output.to_sym if opts[:output]
46
45
  opts[:exclude] = Regexp.new(opts[:exclude]) if opts[:exclude]
47
46
  opts
48
47
  end
@@ -45,7 +45,7 @@ module Extensionator
45
45
 
46
46
  def write
47
47
  file = Tempfile.new("crx-manifest.json")
48
- File.open(file, "w"){|f| f.write(JSON.dump(@manifest))}
48
+ File.open(file, "w"){|f| f.write(JSON.pretty_generate(@manifest))}
49
49
  ["manifest.json", file.path]
50
50
  end
51
51
  end
@@ -1,3 +1,3 @@
1
1
  module Extensionator
2
- VERSION = "1.1.5"
2
+ VERSION = "1.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extensionator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Cambron