extensionator 1.1.2 → 1.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34b0852a6d42009d75d441cc59c6cabf0f47f9d8
4
- data.tar.gz: eb4906c2334a657a92734ea2834fe5e491ce2345
3
+ metadata.gz: 4bf7e02a6a12e734151b7043da79f1600ab9373b
4
+ data.tar.gz: 2e8e6f6a12e16e305020d66899980218543c501c
5
5
  SHA512:
6
- metadata.gz: 200ae8728c7e48af75e1c1207d42e98b36204efcdc2f57d60676eb3222c1f2490f648ee8b9b772c5ad66dd74be40a8c388ef0bf0daf20cd15f522e06c98d31e8
7
- data.tar.gz: 2b5fca0e073b0914598a862f5f7015868eb3573489e5c44c13a28e8f29126a5c8d26fe14a8d0e4fc824df3306c56e5d16f44da6fcdd3ad81d2f5dda91dbc7724
6
+ metadata.gz: 4431d363669af1ca47e214a014a3b010f12b5c610955c5d3347177eb75b8a5cb583a39c2a92b24d7d0edfee59964a2ac0bfd398a5654198d54dbb0b7739bafd3
7
+ data.tar.gz: 42616df5374054cd5994366d231a68a06864e4312205382f2b981c66fd65a82706ed856e62557351e9232bc077a49cde49ec8dd755575772c3c2d6e7192e00ab
@@ -5,7 +5,7 @@ begin
5
5
  require_relative "../lib/extensionator/cli"
6
6
  rescue LoadError
7
7
  require "extensionator"
8
- require "../lib/extensionator/cli"
8
+ require "extensionator/cli"
9
9
  end
10
10
 
11
11
  Extensionator::CLI.start
@@ -12,7 +12,7 @@ module Extensionator
12
12
  o.string "-f", "--format", "Type of file to produce, either zip or crx. (Default: crx)"
13
13
  o.string "--inject-version", "Inject a version number into the manifest file. (Default: none)"
14
14
  o.bool "--inject-key", "Inject a key parameter into the manifest file. (Default: no)"
15
- #o.string "--skip-validation", "Don't try to validate this extension."
15
+ o.string "--skip-validation", "Don't try to validate this extension. Currently just checks that the manifest is parsable."
16
16
  o.on "-v", "--version", "Extensionator version info." do
17
17
  puts Extensionator::VERSION
18
18
  exit
@@ -23,7 +23,12 @@ module Extensionator
23
23
  end
24
24
  end
25
25
 
26
- creator = Creator.new(opts[:directory], opts)
26
+ if opts.used_options.empty?
27
+ puts opts
28
+ exit
29
+ end
30
+
31
+ creator = Creator.new(opts[:directory] || ".", opts)
27
32
  if opts[:format] == "zip"
28
33
  creator.zip(opts[:output] || "output.zip")
29
34
  else
@@ -1,3 +1,3 @@
1
1
  module Extensionator
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
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.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Cambron