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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf7fb38ba36ea9c1ed7c10e43bed141ceac3611f
4
- data.tar.gz: 7bba9cbf1d2a4a50b494142aa176063b72199a93
3
+ metadata.gz: 34e8b925fdebc09cccdca3976cdc3f722e4a2b99
4
+ data.tar.gz: 353d45507d9a069d520982fa90cb9c6c61d80d9e
5
5
  SHA512:
6
- metadata.gz: 0307e3dcdb9fc18a9dc07be37e77c0b76428052498d01c074675cc19ad1b497e557bf43e77002718ac5eb01d586543fe22a2c4467373028a88208e814c411363
7
- data.tar.gz: 85c9b1548027934a27614f2041a92bf402c7891d38036d248cde188d6ae6c34bca6d30b1c0af78816fbc4e839d349ce616af337db9ed5a274bf7354a8b9759c4
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
@@ -1,5 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.4.1
4
+ - 2.3.4
4
5
 
5
- before_install: gem install bundler -v 1.14.6
6
+ before_install: gem install bundler -v 1.15.3
7
+
8
+ script:
9
+ - bundle exec rspec --format documentation
10
+ - bundle exec codeclimate-test-reporter
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
- [![Circle CI](https://circleci.com/gh/signisto/remotenv-ruby/tree/master.svg?style=shield)](https://circleci.com/gh/signisto/remotenv-ruby/tree/master)
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
@@ -22,7 +22,7 @@ module Remotenv
22
22
  @_uri ||= Remotenv::Utils.parsed_uri
23
23
  end
24
24
 
25
- def load(options = {})
25
+ def load(*)
26
26
  return unless self.uri
27
27
  adapter = Remotenv::Adapters.for(self.uri)
28
28
  adapter.load!
@@ -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.to_s}")
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.to_s}") unless @content
22
+ Remotenv.logger.error("Error Downloading HTTP File: #{remote_uri}") unless @content
23
23
  end
24
24
 
25
25
  def http_get_content
@@ -21,7 +21,7 @@ module Remotenv
21
21
  'bucket_name' => uri.host,
22
22
  'access_key_id' => uri.user,
23
23
  'secret_access_key' => uri.password ? ::URI.unescape(uri.password) : nil,
24
- }.compact
24
+ }.reject { |_, v| v.nil? }
25
25
  end
26
26
  end
27
27
 
@@ -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 Exception => error
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|
@@ -1,3 +1,3 @@
1
1
  module Remotenv
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
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.14"
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.1
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-07-07 00:00:00.000000000 Z
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.14'
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.14'
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
@@ -1,9 +0,0 @@
1
- machine:
2
- ruby:
3
- version: 2.4.1
4
-
5
- dependencies:
6
- cache_directories:
7
- - vendor/bundle
8
- pre:
9
- - gem install bundler:1.14.6
data/codecov.yml DELETED
@@ -1,13 +0,0 @@
1
- codecov:
2
- notify:
3
- require_ci_to_pass: true
4
-
5
- comment: off
6
-
7
- coverage:
8
- precision: 2
9
- range: "80...100"
10
- round: down
11
- status:
12
- patch: auto
13
- project: auto