zanzibar 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDUyMjI4YjkzMGY3ZTRjMDVhNGQ2Nzg0MjU0MTQ3YmYyOTlmOGRhYw==
4
+ YzNhZjM1YjJkMTBhNjVkYWVlY2ZkZWFlYWZkNmY5NzNlZGQ0MWMyNQ==
5
5
  data.tar.gz: !binary |-
6
- M2NkNzBmN2M0Y2Q2OThjOGI4YmM4OTQwMzlmMjJiNjhhNmE5ZGNmZg==
6
+ NDQwZDE4MWUxNGZhOGY0YmZhNWEyNzMwNmUxNjIzN2VkMzE2YzFjOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OThjNTE0YjFiYjdiMDI2NTI1N2Q3NDNlNzc4N2ZmYzM0MzE3ZGIyYTEyMDZm
10
- YmQ5MzgwNGEwODBkNzBkOTliMDBjNzQzMDgwOGQxMDA0Mzk4YjZjYjMzODg1
11
- MDM0MGZiOWE0ZjYyZDY5NjE2MjRmOTM3YmIzYzMyNThjYWJkZTI=
9
+ NWY5YzcyMzg4MGE2ZDk3ODEwZGJjZTVlZDRhMWJkOWI0MWI1NDBlMTdkYTNk
10
+ MzYyZWY4NGM5MzVhZWQ0NDBiOGM5ZGViMjU1ZGMxN2E0YzliNWJkOTEzMGNh
11
+ YzZhZDdkNjJkNTQwYmMwNWRjMGVkYzc2N2UxZDZjMjVkZTEwMGU=
12
12
  data.tar.gz: !binary |-
13
- NjBkMjA0MWJlMDM0MzBjYWM1ZGY5OGM2NWE3NGU5NDYyNzkwN2Y1YzYzMzZj
14
- NzI0NWZiY2UxNDI4YjcyYzM0MDVlYzc4MjVkNjM5ODFhYTA4YjYxMjE1OTFm
15
- NmIzNjJhY2VjZTEwNTI4NTVhN2I1OTk5MTIyNjZjYjhmZjNmYzk=
13
+ OWE1NTI4MTEwNWI4ZGJhZjcyNDFkMDYyNjUyYmMyZDI5NGIzNzUxNjg0OGUy
14
+ ZjBjZmQ5ODc0NGQ2MzA0YzlmMDY0NDBkYWNkYTY0MTE1MzQ5ZGUwOGE5Y2M4
15
+ MzQxMjFjZTAyOGIyNmU0YmVmN2E4MTliY2NlMmQzNGViMTExZTk=
data/README.md CHANGED
@@ -106,7 +106,7 @@ Sample `Zanzifile`:
106
106
  ```yaml
107
107
  ---
108
108
  settings:
109
- wsdl: my.scrt.srvr.com/webservices/sswebservice.asmx?wdsl
109
+ wsdl: my.scrt.srvr.com/webservices/sswebservice.asmx?wsdl
110
110
  domain: my.domain.net
111
111
  secret_dir: secrets/
112
112
  ignore_ssl: true
@@ -44,7 +44,14 @@ module Zanzibar
44
44
  end
45
45
 
46
46
  def ensure_secrets_path
47
- FileUtils.mkdir_p(@settings['secret_dir']) unless @settings['secret_dir'] == nil
47
+ ## Make sure the directory exists and that a .gitignore is there to ignore it
48
+ if @settings['secret_dir']
49
+ FileUtils.mkdir_p(@settings['secret_dir'])
50
+ File.open("#{@settings['secret_dir']}/.gitignore", 'w') do |file|
51
+ file.puts '*'
52
+ file.puts '!.gitignore'
53
+ end
54
+ end
48
55
  end
49
56
 
50
57
  def resolved_file?
@@ -1,4 +1,4 @@
1
1
  # The version of the gem
2
2
  module Zanzibar
3
- VERSION = '0.1.17'
3
+ VERSION = '0.1.18'
4
4
  end
@@ -50,6 +50,12 @@ describe Zanzibar::Cli do
50
50
  expect(FakeFS::FileTest.file? File.join('secrets', 'zanzi_key')).to be(true)
51
51
  end
52
52
 
53
+ it 'should create a .gitignore' do
54
+ expect(FakeFS::FileTest.file? File.join('secrets', '.gitignore')).to be(false)
55
+ expect { subject.bundle }.to output(/Finished downloading secrets/).to_stdout
56
+ expect(FakeFS::FileTest.file? File.join('secrets', '.gitignore')).to be(true)
57
+ end
58
+
53
59
  it 'should create a resolved file' do
54
60
  expect(FakeFS::FileTest.file? Zanzibar::RESOLVED_NAME).to be(false)
55
61
  expect { subject.bundle }.to output(/Finished downloading secrets/).to_stdout
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zanzibar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Davis-Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-26 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler