remotenv 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplecov +0 -8
- data/.travis.yml +6 -1
- data/CHANGELOG.md +48 -0
- data/README.md +6 -1
- data/lib/remotenv.rb +1 -1
- data/lib/remotenv/adapters/http.rb +2 -2
- data/lib/remotenv/adapters/s3.rb +1 -1
- data/lib/remotenv/utils.rb +1 -1
- data/lib/remotenv/version.rb +1 -1
- data/remotenv.gemspec +1 -2
- metadata +5 -20
- data/circle.yml +0 -9
- data/codecov.yml +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34e8b925fdebc09cccdca3976cdc3f722e4a2b99
|
4
|
+
data.tar.gz: 353d45507d9a069d520982fa90cb9c6c61d80d9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47d9050626342e95cdf9a1077b54dca5379b1a61741dd13a493fb8b00f6f6d4d431957fc47c4ee8343ea875b178247b96a667ec18802e22cffd8b4a328f6b678
|
7
|
+
data.tar.gz: e833ec93f75d4a11669e7ef9ce37600a882181a82845f506910b31dd6b426f9b6b14b746269c29225b06e3fafa2b8d9551fa43edb5a97800726e0669c883e85d
|
data/.simplecov
CHANGED
@@ -1,11 +1,3 @@
|
|
1
|
-
require "codeclimate-test-reporter"
|
2
|
-
require 'codecov'
|
3
|
-
|
4
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
5
|
-
(CodeClimate::TestReporter::Formatter if ENV['CODECLIMATE_REPO_TOKEN']),
|
6
|
-
(SimpleCov::Formatter::Codecov if ENV['CODECOV_TOKEN']),
|
7
|
-
SimpleCov::Formatter::HTMLFormatter,
|
8
|
-
].compact)
|
9
1
|
SimpleCov.start do
|
10
2
|
add_filter "spec"
|
11
3
|
add_group "Adapters", "lib/remotenv/adapters/"
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
6
|
+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
## [Unreleased]
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
|
14
|
+
- Support for ruby 2.3
|
15
|
+
- Use TravisCI as test runner for multiple ruby releases
|
16
|
+
|
17
|
+
|
18
|
+
## [0.4.1] - 2017-07-07
|
19
|
+
|
20
|
+
### Fixed
|
21
|
+
|
22
|
+
- No longer crashes if REMOTENV_URL is not set when loading
|
23
|
+
|
24
|
+
|
25
|
+
## [0.4.0] - 2017-07-07
|
26
|
+
|
27
|
+
### Added
|
28
|
+
|
29
|
+
- Extensible Adapter Framework
|
30
|
+
- HTTP Adapter
|
31
|
+
- S3 Adapter (Authed HTTP Adapter wrapper)
|
32
|
+
- Full test coverage and 4.0 GPA quality
|
33
|
+
- Ruby 2.4 support
|
34
|
+
- Rake tasks utilities for debugging integrations
|
35
|
+
|
36
|
+
### Changed
|
37
|
+
|
38
|
+
- Moved from personal account to business for official support
|
39
|
+
- Renamed from Envoku to Remotenv
|
40
|
+
|
41
|
+
### Removed
|
42
|
+
|
43
|
+
- Features are no longer a feature. Do one thing and do it well.
|
44
|
+
|
45
|
+
|
46
|
+
[Unreleased]: https://github.com/signisto/remotenv-ruby/compare/v0.4.1...HEAD
|
47
|
+
[0.4.1]: https://github.com/signisto/remotenv-ruby/compare/v0.4.0...v0.4.1
|
48
|
+
[0.4.0]: https://github.com/signisto/remotenv-ruby/compare/v0.3.0...v0.4.0
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Remotenv
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/remotenv.svg)](https://badge.fury.io/rb/remotenv)
|
4
|
-
[![
|
4
|
+
[![Build Status](https://travis-ci.org/signisto/remotenv-ruby.svg?branch=master)](https://travis-ci.org/signisto/remotenv-ruby)
|
5
5
|
[![Test Coverage](https://codeclimate.com/github/signisto/remotenv-ruby/badges/coverage.svg)](https://codeclimate.com/github/signisto/remotenv-ruby/coverage)
|
6
6
|
[![Code Climate](https://codeclimate.com/github/signisto/remotenv-ruby/badges/gpa.svg)](https://codeclimate.com/github/signisto/remotenv-ruby)
|
7
7
|
[![Issue Count](https://codeclimate.com/github/signisto/remotenv-ruby/badges/issue_count.svg)](https://codeclimate.com/github/signisto/remotenv-ruby)
|
@@ -59,6 +59,11 @@ Contributions welcome.
|
|
59
59
|
- Encrypted variables
|
60
60
|
|
61
61
|
|
62
|
+
## Changelog
|
63
|
+
|
64
|
+
https://github.com/signisto/remotenv-ruby/blob/master/CHANGELOG.md
|
65
|
+
|
66
|
+
|
62
67
|
## Development
|
63
68
|
|
64
69
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/remotenv.rb
CHANGED
@@ -7,7 +7,7 @@ module Remotenv
|
|
7
7
|
module Adapters
|
8
8
|
class Http < Base
|
9
9
|
def load
|
10
|
-
Remotenv.logger.debug("Downloading HTTP File: #{remote_uri
|
10
|
+
Remotenv.logger.debug("Downloading HTTP File: #{remote_uri}")
|
11
11
|
download_file
|
12
12
|
end
|
13
13
|
|
@@ -19,7 +19,7 @@ module Remotenv
|
|
19
19
|
|
20
20
|
def download_file
|
21
21
|
@content = http_get_content
|
22
|
-
Remotenv.logger.error("Error Downloading HTTP File: #{remote_uri
|
22
|
+
Remotenv.logger.error("Error Downloading HTTP File: #{remote_uri}") unless @content
|
23
23
|
end
|
24
24
|
|
25
25
|
def http_get_content
|
data/lib/remotenv/adapters/s3.rb
CHANGED
data/lib/remotenv/utils.rb
CHANGED
@@ -15,7 +15,7 @@ module Remotenv
|
|
15
15
|
parser = ::URI::RFC2396_Parser.new
|
16
16
|
uri = parser.parse(parsed_url)
|
17
17
|
uri
|
18
|
-
rescue
|
18
|
+
rescue StandardError => error
|
19
19
|
Remotenv.logger.error("URI Parse Error: URL = #{parsed_url || '[not set]'}")
|
20
20
|
Remotenv.logger.error(" #{error.message}")
|
21
21
|
(0..2).each do |index|
|
data/lib/remotenv/version.rb
CHANGED
data/remotenv.gemspec
CHANGED
@@ -20,8 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency "dotenv", "~> 2.2"
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.
|
24
|
-
spec.add_development_dependency "codecov", "~> 0.1.10"
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
25
24
|
spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0"
|
26
25
|
spec.add_development_dependency "rake", "~> 12.0"
|
27
26
|
spec.add_development_dependency "rspec", "~> 3.6"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remotenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc Qualie
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -30,28 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.15'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: codecov
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 0.1.10
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 0.1.10
|
40
|
+
version: '1.15'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: codeclimate-test-reporter
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,13 +106,12 @@ files:
|
|
120
106
|
- ".ruby-version"
|
121
107
|
- ".simplecov"
|
122
108
|
- ".travis.yml"
|
109
|
+
- CHANGELOG.md
|
123
110
|
- Gemfile
|
124
111
|
- LICENSE
|
125
112
|
- README.md
|
126
113
|
- Rakefile
|
127
114
|
- bin/setup
|
128
|
-
- circle.yml
|
129
|
-
- codecov.yml
|
130
115
|
- lib/remotenv.rb
|
131
116
|
- lib/remotenv/adapters.rb
|
132
117
|
- lib/remotenv/adapters/base.rb
|
data/circle.yml
DELETED