contentful_bootstrap 1.3.1 → 1.3.2

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: 0c8f5028be1c1d1e37215d532d158a66610aa4de
4
- data.tar.gz: 7f84282c0791de5fc2d442a577e2eb2e972c4228
3
+ metadata.gz: 00487575f09a6dfe3af3a99f3cf513a25b92367e
4
+ data.tar.gz: 8e11cbdf36b3ff2c209320599af1a286950c29d9
5
5
  SHA512:
6
- metadata.gz: f06b2166edf6174bdd540f0cd20fab451813ac678480565a1717f815e6efd394b2ee963f964579094d97c4a805eb76a933430a1516a7b917226e43019404e5d5
7
- data.tar.gz: 6b3b7ebaef6faee10ca617d9673dda15c8520dfe336308d09e6b43515699f9c5bf72c108f49dad3cbf1aca7308b623ae8805a8cb84743ccb00f3511d706e9400
6
+ metadata.gz: 57236d509671acce081efd40072314f18ec027c0c325f051c854693fa853d7bd0652541dabae3ce2fd0a92dba9ff6b0b84b0c12ec230f494bf475f167167f65b
7
+ data.tar.gz: 689805aad50d61560c9eb51d9e78678ec058d461e433cbc7397c2c9872efdadc628f5a22835f2397694c39a13721b7a6d7ab8a83578c9052ec19f0affe96f071
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Change Log
2
2
  ## Unreleased
3
3
 
4
+ ## v1.3.2
5
+ ### Added
6
+ * Error out when no STDIN is detected
7
+
4
8
  ## v1.3.1
5
9
  ### Fixed
6
10
  * Fix help messages. [#5](https://github.com/contentful-labs/contentful-bootstrap.rb/issues/5)
@@ -50,6 +50,12 @@ command = ARGV.shift
50
50
  is_help = ARGV.include?("-h") || ARGV.include?("--help")
51
51
  space = ARGV.shift unless is_help
52
52
 
53
+ unless STDIN.tty? && STDOUT.tty?
54
+ $stderr.write "This tool requires user interaction\n"
55
+ $stderr.write "Exiting!\n"
56
+ exit
57
+ end
58
+
53
59
  if subcommands.has_key? command
54
60
  subcommands[command].order!
55
61
 
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Bootstrap
3
- VERSION = "1.3.1"
3
+ VERSION = "1.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Litvak Bruno