denv 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf22cb5ee036914c0ff04f38de957502cc96861a
4
- data.tar.gz: e848b7552e5f071a1cf15304d8d721c1645829a4
3
+ metadata.gz: cb3c23fc8d74e9c088f48d4b60f0f9409c3b2753
4
+ data.tar.gz: 63f81ac4cece85d1858bc4838b0bfdc91e5addad
5
5
  SHA512:
6
- metadata.gz: 76cc50146b6345ea0ecb712aaeaa0804d5a365d868eb226a6555d2172fcd47f60cd7edfcbcad398ffb76bfcb4a36318ac3fbe108371393cdae3cce6f12fa1843
7
- data.tar.gz: 9179d78fe86aedd2a744db9495f29aec65d8eaed3806e7519223285c031c9498cd63c031c20f758f1c66bf0fb6cc2941b8208599c3e4647d17e32f3f29919146
6
+ metadata.gz: 73a5f8dfc8838af45199b4c565f8edeb35333cff496fac65e8d57563e57e383b9c4709f33ba164e82ad964dd4e659837476cd3ceb999e7b7aa6238e20824898e
7
+ data.tar.gz: fdb6d15ff73f9dae28d04d2673d2bf517bc8f90ffff560e9be582099c306f6be15906f5167db479e8301ce42f881a873c4577c1dc0bb7bdc92b45d1f655bf85e
@@ -1,4 +1,7 @@
1
1
  # CHANGELOG.md for denv
2
+ ## 0.2.4
3
+ - Work around for old spring gem (< 0.0.8)
4
+
2
5
  ## 0.2.3
3
6
  - Improve help message of CLI tool.
4
7
 
data/README.md CHANGED
@@ -45,7 +45,7 @@ denv automatically sets initializer for your Rails application, so you only have
45
45
  ```
46
46
  denv --help
47
47
  echo 'XXX=1' > .env
48
- denv env |grep XXX #=> XXX=1
48
+ denv -- env | grep XXX #=> XXX=1
49
49
  ```
50
50
 
51
51
  ## Development
@@ -19,7 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_development_dependency 'bundler'
22
- spec.add_development_dependency 'rake'
23
22
  spec.add_development_dependency 'rails'
23
+ spec.add_development_dependency 'rake'
24
24
  spec.add_development_dependency 'rspec', '~> 3'
25
+ spec.add_development_dependency 'spring'
25
26
  end
data/exe/denv CHANGED
@@ -3,11 +3,6 @@ lib = File.expand_path('../lib', __dir__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'denv'
5
5
 
6
- def puts_version!
7
- puts Denv::VERSION
8
- exit
9
- end
10
-
11
6
  require 'optparse'
12
7
  filename = Denv::DEFAULT_ENV_FILENAME
13
8
  opt = OptionParser.new.
@@ -1,8 +1,11 @@
1
1
  # Watch all loaded env files with Spring
2
2
  begin
3
3
  require 'spring/watcher'
4
- Denv.callback = -> (filename) do
5
- Spring.watch(filename) if Rails.application
4
+
5
+ if Spring.respond_to?(:watch)
6
+ Denv.callback = -> (filename) do
7
+ Spring.watch(filename) if Rails.application
8
+ end
6
9
  end
7
10
  rescue LoadError
8
11
  # Spring is not available
@@ -1,3 +1,3 @@
1
1
  module Denv
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
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.3
4
+ version: 0.2.4
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-21 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rails
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: spring
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: Loads environment variables to `ENV` from `.env` file. No special treatments
70
84
  about shell meta characters.
71
85
  email: