chamber 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/chamber +12 -0
  3. data/lib/chamber/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45190228b04d972843307478d7ec6c554c410104
4
- data.tar.gz: 0ae3b7e089da7835cbed2f236532a3687f1fa77f
3
+ metadata.gz: 4e991dd80673beb3645505e5b5571cf8c6529edc
4
+ data.tar.gz: eb74b4013f2bec9a18957ef9c527ee11954e10d0
5
5
  SHA512:
6
- metadata.gz: 73f4b1d67681e62bb68b8ddf0380511cce61e0c5272f8e09cf906dd99be708779b83d2b97d54ecf37ea1256f9538cdd6de3541a09028057d11f57be603328578
7
- data.tar.gz: 599f876aa12fa1fcaa16b4771c02984c0f7ddad1cdb2bb7821e71bbec39cf8db853fb5038e45ea582aabec78526dda33546124107cefd3c357a1aede972ac28f
6
+ metadata.gz: 7b6cd7b23ebd25a196e304de3106fb1679c30c0b01c19a9fedccddfe83ee6340198ec1f21526f5a741d5ef3fbec9d440035845a2edf6d3feb43e2e557a39597a
7
+ data.tar.gz: d39a4b31520431a209bacf8e11973b12981d5a24067f34d14a19bff860ac8e720825cda04762241e4dc82e4b566c834c6ee129c020da27bced522bd83dcb59bb
data/bin/chamber CHANGED
@@ -85,9 +85,21 @@ module Commands
85
85
  end
86
86
 
87
87
  desc 'diff', 'Displays the difference between what is currently stored in the Heroku application\'s config and what Chamber knows about locally'
88
+ method_option :only_ignored,
89
+ type: :boolean,
90
+ aliases: '-o',
91
+ default: true,
92
+ desc: 'When enabled, the diff will only consider settings contained in files which have been gitignored, the rest will be accessed directly'
88
93
  def diff
89
94
  ::Chamber::Commands::Chamber.init(options)
90
95
 
96
+ if options[:only_ignored]
97
+ ignored_settings_files = `git ls-files --other --ignored --exclude-from=.gitignore | sed -e "s|^|${PWD}/|" | grep --colour=never -E '#{::Chamber.filenames.join('|')}'`
98
+
99
+ ::Chamber.load files: ignored_settings_files.split("\n"),
100
+ namespaces: options[:namespaces]
101
+ end
102
+
91
103
  current_heroku_config = heroku("config --shell")
92
104
  current_local_config = ::Chamber.to_s(pair_separator: "\n",
93
105
  value_surrounder: '')
@@ -1,3 +1,3 @@
1
1
  class Chamber
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chamber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - stevenhallen