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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/denv.gemspec +2 -1
- data/exe/denv +0 -5
- data/lib/denv/rails.rb +5 -2
- data/lib/denv/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb3c23fc8d74e9c088f48d4b60f0f9409c3b2753
|
4
|
+
data.tar.gz: 63f81ac4cece85d1858bc4838b0bfdc91e5addad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73a5f8dfc8838af45199b4c565f8edeb35333cff496fac65e8d57563e57e383b9c4709f33ba164e82ad964dd4e659837476cd3ceb999e7b7aa6238e20824898e
|
7
|
+
data.tar.gz: fdb6d15ff73f9dae28d04d2673d2bf517bc8f90ffff560e9be582099c306f6be15906f5167db479e8301ce42f881a873c4577c1dc0bb7bdc92b45d1f655bf85e
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/denv.gemspec
CHANGED
@@ -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.
|
data/lib/denv/rails.rb
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
# Watch all loaded env files with Spring
|
2
2
|
begin
|
3
3
|
require 'spring/watcher'
|
4
|
-
|
5
|
-
|
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
|
data/lib/denv/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
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:
|