denv 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/exe/denv +2 -3
  4. data/lib/denv/version.rb +1 -1
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 687c210305951dcf6b7629568a0769fc0c283c40
4
- data.tar.gz: a57f042d16d9074bb1f5008d7110aa0f75695534
3
+ metadata.gz: cf22cb5ee036914c0ff04f38de957502cc96861a
4
+ data.tar.gz: e848b7552e5f071a1cf15304d8d721c1645829a4
5
5
  SHA512:
6
- metadata.gz: 60b454fce0770b1c271bb91d81fbfb70492e8af458aa75f845dae147aa92c11160fda50c732d88ad9d82581b7a1c592c24c082db6c7239cce819341480083e7c
7
- data.tar.gz: 8d173935d50cc23b8744f03641e5b01bcc6cc14165d4470cf7d24fbc442db12bf4261e890c029f64e4b86fc771b540090ed166ed234b5c0a4dabe803e5fe7ea6
6
+ metadata.gz: 76cc50146b6345ea0ecb712aaeaa0804d5a365d868eb226a6555d2172fcd47f60cd7edfcbcad398ffb76bfcb4a36318ac3fbe108371393cdae3cce6f12fa1843
7
+ data.tar.gz: 9179d78fe86aedd2a744db9495f29aec65d8eaed3806e7519223285c031c9498cd63c031c20f758f1c66bf0fb6cc2941b8208599c3e4647d17e32f3f29919146
@@ -1,4 +1,7 @@
1
1
  # CHANGELOG.md for denv
2
+ ## 0.2.3
3
+ - Improve help message of CLI tool.
4
+
2
5
  ## 0.2.2
3
6
  - Env vars are removed on loading when they are removed from `.env` file. This is useful when use unicorn's graceful reloading.
4
7
 
data/exe/denv CHANGED
@@ -13,7 +13,7 @@ filename = Denv::DEFAULT_ENV_FILENAME
13
13
  opt = OptionParser.new.
14
14
  on('-f', '--filename FILENAME') {|v| filename = v }
15
15
  opt.version = Denv::VERSION
16
- opt.banner = "Usage: #{opt.program_name} [options] command [argument ...]"
16
+ opt.banner = "Usage: #{opt.program_name} [options] -- command [argument ...]"
17
17
 
18
18
  begin
19
19
  command = opt.parse(ARGV)
@@ -22,11 +22,10 @@ rescue OptionParser::InvalidOption
22
22
  exit 1
23
23
  end
24
24
 
25
- Denv.load(filename)
26
-
27
25
  if command.empty?
28
26
  puts opt.help
29
27
  exit 1
30
28
  else
29
+ Denv.load(filename)
31
30
  exec(*command)
32
31
  end
@@ -1,3 +1,3 @@
1
1
  module Denv
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: denv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taiki Ono
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-13 00:00:00.000000000 Z
11
+ date: 2016-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.4.5
115
+ rubygems_version: 2.5.1
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Loads environment variables to `ENV` from `.env` file. No special treatments