blinkist-config 1.2.2 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 353a2346a48c19ef03b27e92acf5886003889968
4
- data.tar.gz: bbddc8979580d2d1c7d8c3d472723ad2be28a000
2
+ SHA256:
3
+ metadata.gz: 7868467c713d2e0e0b123ac62d14f02d3a56455bf9040739eb22f328a6f6f7d2
4
+ data.tar.gz: 53e8be79f97294c44fe95134a31d1658d526bf9ea7514f4310881ab261860341
5
5
  SHA512:
6
- metadata.gz: 7f837b33a8be95107bd0b0b9b64db641956a780375c915f35a989735fdba3d7994c3a7859e29e74facd06dde47de9516369db6713a8e154f119d60be0a0bbc55
7
- data.tar.gz: 5ef268065e9c25eebc044665a8bf6be2938d9e6351b6cc8fb95879ae3a339b04dd9329d90509d1ad962e35f30123585b49bbe09b641a9cdfa1f4e960aa060a64
6
+ metadata.gz: 88d3c68372a36670303fb7d2268d8bd5b57fab6735310e49fa578f9bd4fb9e6326999cdff380f0739ceb09ab67605eba091b11d4eaf0a8f5761d0bc997dfd9b7
7
+ data.tar.gz: a45d7dc3d5f72a38cfa2e747ae3a6d4c06f3234bea9a0476d98d722d1367f03ae022be1acbc1866f786e223ddacfd4c7c7144933285da7b9a743db394975fe0b
@@ -0,0 +1,26 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ working_directory: ~/blinkist/blinkist-config
5
+ parallelism: 1
6
+ docker:
7
+ - image: cimg/ruby:2.7.3-browsers
8
+ steps:
9
+ - checkout
10
+ - restore_cache:
11
+ keys:
12
+ - gem-cache-{{ checksum "Gemfile.lock" }}
13
+ - gem-cache-
14
+ - run:
15
+ name: Bundle Install
16
+ command: bundle install --jobs=4 --retry=3 --path=vendor/bundle
17
+ - save_cache:
18
+ key: gem-cache-{{ checksum "Gemfile.lock" }}
19
+ paths:
20
+ - vendor/bundle
21
+ - run:
22
+ name: RSpec
23
+ command: bundle exec rspec --format progress spec
24
+ environment:
25
+ RAILS_ENV: test
26
+ RACK_ENV: test
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ruby:2.3.1-slim
1
+ FROM ruby:2.5.1-slim
2
2
 
3
3
  ENV RAILS_ENV=test
4
4
  ENV LANG en_US.UTF-8
@@ -14,7 +14,7 @@ ADD . /tmp/tmpapp
14
14
 
15
15
  RUN echo 'gem: --no-document' >> ~/.gemrc && \
16
16
  apt-get clean && apt-get update -qq && apt-get install -y build-essential $RUNTIME_PACKAGES && \
17
- gem install bundler --version 1.12.5 && \
17
+ gem install bundler --version 2.2.10 && \
18
18
  gem install gem-release && \
19
19
  bundle update && bundle install --jobs 20 --retry 5 && \
20
20
  rm -Rf /tmp/tmpapp/ && \
@@ -29,4 +29,4 @@ RUN bundle install -j1
29
29
  RUN chown -R nobody:nogroup /app
30
30
  RUN whoami
31
31
  USER nobody
32
- RUN whoami
32
+ RUN whoami
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Blinkist::Config
2
2
 
3
3
  [![CircleCI](https://circleci.com/gh/blinkist/blinkist-config.svg?style=shield)](https://circleci.com/gh/blinkist/blinkist-config)
4
- [![Dependency Status](https://www.versioneye.com/user/projects/58abf0e4b4d2a20036950ef0/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/58abf0e4b4d2a20036950ef0)
5
4
  [![Code Climate](https://codeclimate.com/github/blinkist/blinkist-config/badges/gpa.svg)](https://codeclimate.com/github/blinkist/blinkist-config)
6
5
 
7
6
  This GEM allows you to access configuration stores with different adapters. Here're some examples of usage:
@@ -10,6 +9,11 @@ This GEM allows you to access configuration stores with different adapters. Here
10
9
 
11
10
  ```ruby
12
11
  # First setup the Config to use the ENV as config store
12
+
13
+ Diplomat.configure do |config|
14
+ config.url = "http://172.17.0.1:8500"
15
+ end
16
+
13
17
  Blinkist::Config.env = ENV["RAILS_ENV"]
14
18
  Blinkist::Config.app_name = "my_nice_app"
15
19
  Blinkist::Config.adapter_type = :env
@@ -158,10 +162,9 @@ You'll have to have proper rights to access rubygems.org
158
162
 
159
163
  ## Contributing
160
164
 
161
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/blinkist-config.
165
+ Bug reports and pull requests are welcome on GitHub at https://github.com/blinkist/blinkist-config.
162
166
 
163
167
 
164
168
  ## License
165
169
 
166
170
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
167
-
@@ -17,10 +17,10 @@ Gem::Specification.new do |spec|
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
18
  spec.require_paths = %w(lib)
19
19
 
20
- spec.add_development_dependency "bundler", "~> 1.12"
20
+ spec.add_development_dependency "bundler", "~> 2.2.10"
21
21
  spec.add_development_dependency "rake", "~> 12.0"
22
22
  spec.add_development_dependency "rspec", "~> 3.0"
23
23
 
24
- spec.add_runtime_dependency "diplomat", "~> 1"
24
+ spec.add_runtime_dependency "diplomat", "~> 2"
25
25
  spec.add_runtime_dependency "aws-sdk-ssm", "~> 1"
26
26
  end
@@ -8,10 +8,6 @@ module Blinkist
8
8
  super env, app_name
9
9
 
10
10
  @items_cache = {}
11
-
12
- Diplomat.configure do |config|
13
- config.url = "http://172.17.0.1:8500"
14
- end
15
11
  end
16
12
 
17
13
  def get(key, default=nil, scope: nil)
@@ -1,5 +1,5 @@
1
1
  module Blinkist
2
2
  class Config
3
- VERSION = "1.2.2".freeze
3
+ VERSION = "1.3.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blinkist-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Schleicher, Blinks Labs GmbH
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-28 00:00:00.000000000 Z
11
+ date: 2021-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.12'
19
+ version: 2.2.10
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.12'
26
+ version: 2.2.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1'
61
+ version: '2'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1'
68
+ version: '2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: aws-sdk-ssm
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -90,6 +90,7 @@ executables: []
90
90
  extensions: []
91
91
  extra_rdoc_files: []
92
92
  files:
93
+ - ".circleci/config.yml"
93
94
  - ".gitignore"
94
95
  - ".rubocop.yml"
95
96
  - Dockerfile
@@ -121,7 +122,7 @@ homepage: https://github.com/blinkist/blinkist-config
121
122
  licenses:
122
123
  - MIT
123
124
  metadata: {}
124
- post_install_message:
125
+ post_install_message:
125
126
  rdoc_options: []
126
127
  require_paths:
127
128
  - lib
@@ -136,9 +137,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
137
  - !ruby/object:Gem::Version
137
138
  version: '0'
138
139
  requirements: []
139
- rubyforge_project:
140
- rubygems_version: 2.6.10
141
- signing_key:
140
+ rubygems_version: 3.2.22
141
+ signing_key:
142
142
  specification_version: 4
143
143
  summary: Simple adapter based configuration handler (supports ENV and Consul/Diplomat).
144
144
  test_files: []