doppler_rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5da3eec0d029fbbe57387461123680c74694fc82582679839ea3046746397016
4
+ data.tar.gz: 82aa886544e4609b326a6a25ed56ebe2bd141e96ee38aa5a4a9ecc212f3b4497
5
+ SHA512:
6
+ metadata.gz: 1f7674e17a4ebae33f36a1387dc130c9601480424d4ec8d6085b5486aea3b6da65ff7bcbc9c759d93764f3b67558673afa40b0bd0f7055c94dd77e2ba9ae7d1d
7
+ data.tar.gz: f4b3e95641b33e2ca21223a5b1728ed9bc7758da9d5ca91a275c03e89dbfbce7f18aa8c0397ae61e4acd67cb64fe5489cb8bd10a9470e4a2f01d637f91bc34d1
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.2
data/.standard.yml ADDED
@@ -0,0 +1,3 @@
1
+ # For available configuration options, see:
2
+ # https://github.com/testdouble/standard
3
+ ruby_version: 2.6
@@ -0,0 +1,8 @@
1
+ {
2
+ "ruby.lint": {
3
+ "standard": true
4
+ },
5
+ "ruby.format": "standard",
6
+ "editor.formatOnSave": true,
7
+ "ruby.useLanguageServer": true
8
+ }
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-12-15
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at jonas@brusman.se. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in doppler_rails.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "standard", "~> 1.3"
13
+
14
+ gem "webmock", require: "webmock/rspec"
data/Gemfile.lock ADDED
@@ -0,0 +1,246 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ doppler_rails (0.1.0)
5
+ faraday (>= 1.0, < 2.0)
6
+ rails (>= 6.0, < 7.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (6.1.7)
12
+ actionpack (= 6.1.7)
13
+ activesupport (= 6.1.7)
14
+ nio4r (~> 2.0)
15
+ websocket-driver (>= 0.6.1)
16
+ actionmailbox (6.1.7)
17
+ actionpack (= 6.1.7)
18
+ activejob (= 6.1.7)
19
+ activerecord (= 6.1.7)
20
+ activestorage (= 6.1.7)
21
+ activesupport (= 6.1.7)
22
+ mail (>= 2.7.1)
23
+ actionmailer (6.1.7)
24
+ actionpack (= 6.1.7)
25
+ actionview (= 6.1.7)
26
+ activejob (= 6.1.7)
27
+ activesupport (= 6.1.7)
28
+ mail (~> 2.5, >= 2.5.4)
29
+ rails-dom-testing (~> 2.0)
30
+ actionpack (6.1.7)
31
+ actionview (= 6.1.7)
32
+ activesupport (= 6.1.7)
33
+ rack (~> 2.0, >= 2.0.9)
34
+ rack-test (>= 0.6.3)
35
+ rails-dom-testing (~> 2.0)
36
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
37
+ actiontext (6.1.7)
38
+ actionpack (= 6.1.7)
39
+ activerecord (= 6.1.7)
40
+ activestorage (= 6.1.7)
41
+ activesupport (= 6.1.7)
42
+ nokogiri (>= 1.8.5)
43
+ actionview (6.1.7)
44
+ activesupport (= 6.1.7)
45
+ builder (~> 3.1)
46
+ erubi (~> 1.4)
47
+ rails-dom-testing (~> 2.0)
48
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
+ activejob (6.1.7)
50
+ activesupport (= 6.1.7)
51
+ globalid (>= 0.3.6)
52
+ activemodel (6.1.7)
53
+ activesupport (= 6.1.7)
54
+ activerecord (6.1.7)
55
+ activemodel (= 6.1.7)
56
+ activesupport (= 6.1.7)
57
+ activestorage (6.1.7)
58
+ actionpack (= 6.1.7)
59
+ activejob (= 6.1.7)
60
+ activerecord (= 6.1.7)
61
+ activesupport (= 6.1.7)
62
+ marcel (~> 1.0)
63
+ mini_mime (>= 1.1.0)
64
+ activesupport (6.1.7)
65
+ concurrent-ruby (~> 1.0, >= 1.0.2)
66
+ i18n (>= 1.6, < 2)
67
+ minitest (>= 5.1)
68
+ tzinfo (~> 2.0)
69
+ zeitwerk (~> 2.3)
70
+ addressable (2.8.1)
71
+ public_suffix (>= 2.0.2, < 6.0)
72
+ ast (2.4.2)
73
+ builder (3.2.4)
74
+ concurrent-ruby (1.1.10)
75
+ crack (0.4.5)
76
+ rexml
77
+ crass (1.0.6)
78
+ date (3.3.3)
79
+ diff-lcs (1.5.0)
80
+ erubi (1.11.0)
81
+ faraday (1.10.2)
82
+ faraday-em_http (~> 1.0)
83
+ faraday-em_synchrony (~> 1.0)
84
+ faraday-excon (~> 1.1)
85
+ faraday-httpclient (~> 1.0)
86
+ faraday-multipart (~> 1.0)
87
+ faraday-net_http (~> 1.0)
88
+ faraday-net_http_persistent (~> 1.0)
89
+ faraday-patron (~> 1.0)
90
+ faraday-rack (~> 1.0)
91
+ faraday-retry (~> 1.0)
92
+ ruby2_keywords (>= 0.0.4)
93
+ faraday-em_http (1.0.0)
94
+ faraday-em_synchrony (1.0.0)
95
+ faraday-excon (1.1.0)
96
+ faraday-httpclient (1.0.1)
97
+ faraday-multipart (1.0.4)
98
+ multipart-post (~> 2)
99
+ faraday-net_http (1.0.1)
100
+ faraday-net_http_persistent (1.2.0)
101
+ faraday-patron (1.0.0)
102
+ faraday-rack (1.0.0)
103
+ faraday-retry (1.0.3)
104
+ globalid (1.0.0)
105
+ activesupport (>= 5.0)
106
+ hashdiff (1.0.1)
107
+ i18n (1.12.0)
108
+ concurrent-ruby (~> 1.0)
109
+ json (2.6.3)
110
+ language_server-protocol (3.17.0.2)
111
+ loofah (2.19.1)
112
+ crass (~> 1.0.2)
113
+ nokogiri (>= 1.5.9)
114
+ mail (2.8.0)
115
+ mini_mime (>= 0.1.1)
116
+ net-imap
117
+ net-pop
118
+ net-smtp
119
+ marcel (1.0.2)
120
+ method_source (1.0.0)
121
+ mini_mime (1.1.2)
122
+ minitest (5.16.3)
123
+ multipart-post (2.2.3)
124
+ net-imap (0.3.3)
125
+ date
126
+ net-protocol
127
+ net-pop (0.1.2)
128
+ net-protocol
129
+ net-protocol (0.2.1)
130
+ timeout
131
+ net-smtp (0.3.3)
132
+ net-protocol
133
+ nio4r (2.5.8)
134
+ nokogiri (1.13.10-arm64-darwin)
135
+ racc (~> 1.4)
136
+ nokogiri (1.13.10-x86_64-darwin)
137
+ racc (~> 1.4)
138
+ nokogiri (1.13.10-x86_64-linux)
139
+ racc (~> 1.4)
140
+ parallel (1.22.1)
141
+ parser (3.1.3.0)
142
+ ast (~> 2.4.1)
143
+ public_suffix (5.0.1)
144
+ racc (1.6.1)
145
+ rack (2.2.4)
146
+ rack-test (2.0.2)
147
+ rack (>= 1.3)
148
+ rails (6.1.7)
149
+ actioncable (= 6.1.7)
150
+ actionmailbox (= 6.1.7)
151
+ actionmailer (= 6.1.7)
152
+ actionpack (= 6.1.7)
153
+ actiontext (= 6.1.7)
154
+ actionview (= 6.1.7)
155
+ activejob (= 6.1.7)
156
+ activemodel (= 6.1.7)
157
+ activerecord (= 6.1.7)
158
+ activestorage (= 6.1.7)
159
+ activesupport (= 6.1.7)
160
+ bundler (>= 1.15.0)
161
+ railties (= 6.1.7)
162
+ sprockets-rails (>= 2.0.0)
163
+ rails-dom-testing (2.0.3)
164
+ activesupport (>= 4.2.0)
165
+ nokogiri (>= 1.6)
166
+ rails-html-sanitizer (1.4.4)
167
+ loofah (~> 2.19, >= 2.19.1)
168
+ railties (6.1.7)
169
+ actionpack (= 6.1.7)
170
+ activesupport (= 6.1.7)
171
+ method_source
172
+ rake (>= 12.2)
173
+ thor (~> 1.0)
174
+ rainbow (3.1.1)
175
+ rake (13.0.6)
176
+ regexp_parser (2.6.1)
177
+ rexml (3.2.5)
178
+ rspec (3.12.0)
179
+ rspec-core (~> 3.12.0)
180
+ rspec-expectations (~> 3.12.0)
181
+ rspec-mocks (~> 3.12.0)
182
+ rspec-core (3.12.0)
183
+ rspec-support (~> 3.12.0)
184
+ rspec-expectations (3.12.0)
185
+ diff-lcs (>= 1.2.0, < 2.0)
186
+ rspec-support (~> 3.12.0)
187
+ rspec-mocks (3.12.1)
188
+ diff-lcs (>= 1.2.0, < 2.0)
189
+ rspec-support (~> 3.12.0)
190
+ rspec-support (3.12.0)
191
+ rubocop (1.39.0)
192
+ json (~> 2.3)
193
+ parallel (~> 1.10)
194
+ parser (>= 3.1.2.1)
195
+ rainbow (>= 2.2.2, < 4.0)
196
+ regexp_parser (>= 1.8, < 3.0)
197
+ rexml (>= 3.2.5, < 4.0)
198
+ rubocop-ast (>= 1.23.0, < 2.0)
199
+ ruby-progressbar (~> 1.7)
200
+ unicode-display_width (>= 1.4.0, < 3.0)
201
+ rubocop-ast (1.24.0)
202
+ parser (>= 3.1.1.0)
203
+ rubocop-performance (1.15.1)
204
+ rubocop (>= 1.7.0, < 2.0)
205
+ rubocop-ast (>= 0.4.0)
206
+ ruby-progressbar (1.11.0)
207
+ ruby2_keywords (0.0.5)
208
+ sprockets (4.2.0)
209
+ concurrent-ruby (~> 1.0)
210
+ rack (>= 2.2.4, < 4)
211
+ sprockets-rails (3.4.2)
212
+ actionpack (>= 5.2)
213
+ activesupport (>= 5.2)
214
+ sprockets (>= 3.0.0)
215
+ standard (1.19.1)
216
+ language_server-protocol (~> 3.17.0.2)
217
+ rubocop (= 1.39.0)
218
+ rubocop-performance (= 1.15.1)
219
+ thor (1.2.1)
220
+ timeout (0.3.1)
221
+ tzinfo (2.0.5)
222
+ concurrent-ruby (~> 1.0)
223
+ unicode-display_width (2.3.0)
224
+ webmock (3.18.1)
225
+ addressable (>= 2.8.0)
226
+ crack (>= 0.3.2)
227
+ hashdiff (>= 0.4.0, < 2.0.0)
228
+ websocket-driver (0.7.5)
229
+ websocket-extensions (>= 0.1.0)
230
+ websocket-extensions (0.1.5)
231
+ zeitwerk (2.6.6)
232
+
233
+ PLATFORMS
234
+ arm64-darwin-21
235
+ x86_64-darwin-21
236
+ x86_64-linux
237
+
238
+ DEPENDENCIES
239
+ doppler_rails!
240
+ rake (~> 13.0)
241
+ rspec (~> 3.0)
242
+ standard (~> 1.3)
243
+ webmock
244
+
245
+ BUNDLED WITH
246
+ 2.3.12
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Jonas Brusman
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # DopplerRails
2
+
3
+ DopplerRails is a Ruby on Rails gem that allows you to easily load environment variables from doppler.com into your Rails app. It stores an encrypted backup/fallback file in case of connection errors with doppler's API.
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ $ bundle add doppler_rails
10
+
11
+
12
+ ## Usage
13
+
14
+ Once you have installed the gem, you will need to provide it with a service token from doppler. This should be done using an environment variable named `DOPPLER_TOKEN`.
15
+
16
+ That's it! DopplerRails will automatically load your environment variables from doppler.com and store a backup in case of connection errors.
17
+
18
+ ## Development
19
+
20
+ 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.
21
+
22
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
23
+
24
+ ## Contributing
25
+
26
+ Bug reports and pull requests are welcome on GitHub at https://github.com/teamtailor/doppler_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/teamtailor/doppler_rails/blob/main/CODE_OF_CONDUCT.md).
27
+
28
+ ## License
29
+
30
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
31
+
32
+ ## Code of Conduct
33
+
34
+ Everyone interacting in the DopplerRails project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/teamtailor/doppler_rails/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "standard/rake"
9
+
10
+ task default: %i[spec standard]
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DopplerRails
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "doppler_rails/version"
4
+ require "faraday"
5
+ require "rails"
6
+
7
+ module DopplerRails
8
+ RETRY_EXCEPTIONS = [Faraday::ConnectionFailed, *Faraday::Request::Retry::DEFAULT_EXCEPTIONS].freeze
9
+ TOKEN = ENV["DOPPLER_TOKEN"]
10
+ FALLBACK_FILE_PATH = ENV["DOPPLER_FALLBACK_FILE_PATH"]
11
+
12
+ module_function
13
+
14
+ def load_secrets
15
+ Operations.fetch_enviroment_variables
16
+ end
17
+
18
+ module Operations
19
+ module_function
20
+
21
+ def fetch_enviroment_variables
22
+ return if TOKEN.blank?
23
+ response = connection.get("configs/config/secrets/download?format=json")
24
+ if response.success?
25
+ store_fallback(response.body)
26
+ ENV.update(JSON.parse(response.body))
27
+ else
28
+ use_fallback_if_present
29
+ end
30
+ rescue Faraday::Error
31
+ use_fallback_if_present
32
+ end
33
+
34
+ def store_fallback(secrets)
35
+ return unless FALLBACK_FILE_PATH.present?
36
+ File.write(FALLBACK_FILE_PATH, encrypt(secrets), encoding: "ascii-8bit")
37
+ end
38
+
39
+ def use_fallback_if_present
40
+ return unless FALLBACK_FILE_PATH.present?
41
+ return unless File.exist?(FALLBACK_FILE_PATH)
42
+ secrets = decrypt(File.read(FALLBACK_FILE_PATH, encoding: "ascii-8bit"))
43
+ ENV.update(JSON.parse(secrets))
44
+ end
45
+
46
+ def connection
47
+ Faraday.new("https://api.doppler.com/v3/") do |conn|
48
+ conn.request :basic_auth, TOKEN, ""
49
+ conn.request :retry, max: 3, interval: 0.3, backoff_factor: 2, exceptions: RETRY_EXCEPTIONS
50
+ end
51
+ end
52
+
53
+ def decrypt(message)
54
+ encrypted, salt = message.split("\n", 2)
55
+ key = ActiveSupport::KeyGenerator.new(TOKEN).generate_key(Base64.urlsafe_decode64(salt), ActiveSupport::MessageEncryptor.key_len)
56
+ ActiveSupport::MessageEncryptor.new(key).decrypt_and_verify(encrypted)
57
+ end
58
+
59
+ def encrypt(secrets)
60
+ salt = SecureRandom.random_bytes(ActiveSupport::MessageEncryptor.key_len)
61
+ key = ActiveSupport::KeyGenerator.new(TOKEN).generate_key(salt, ActiveSupport::MessageEncryptor.key_len)
62
+ ActiveSupport::MessageEncryptor.new(key).encrypt_and_sign(secrets) + "\n" + Base64.urlsafe_encode64(salt)
63
+ end
64
+ end
65
+
66
+ class Railtie < Rails::Railtie
67
+ config.before_configuration do
68
+ DopplerRails.load_secrets
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,6 @@
1
+ module Doppler
2
+ module Rails
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: doppler_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jonas Brusman
8
+ - Björn Nordstrand
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2022-12-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: faraday
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '1.0'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '2.0'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '1.0'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ - !ruby/object:Gem::Dependency
35
+ name: rails
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '6.0'
41
+ - - "<"
42
+ - !ruby/object:Gem::Version
43
+ version: '7.0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '6.0'
51
+ - - "<"
52
+ - !ruby/object:Gem::Version
53
+ version: '7.0'
54
+ description:
55
+ email:
56
+ executables: []
57
+ extensions: []
58
+ extra_rdoc_files: []
59
+ files:
60
+ - ".rspec"
61
+ - ".ruby-version"
62
+ - ".standard.yml"
63
+ - ".vscode/settings.json"
64
+ - CHANGELOG.md
65
+ - CODE_OF_CONDUCT.md
66
+ - Gemfile
67
+ - Gemfile.lock
68
+ - LICENSE.txt
69
+ - README.md
70
+ - Rakefile
71
+ - lib/doppler_rails.rb
72
+ - lib/doppler_rails/version.rb
73
+ - sig/doppler/rails.rbs
74
+ homepage: https://github.com/teamtailor/doppler_rails
75
+ licenses:
76
+ - MIT
77
+ metadata:
78
+ homepage_uri: https://github.com/teamtailor/doppler_rails
79
+ source_code_uri: https://github.com/teamtailor/doppler_rails
80
+ changelog_uri: https://github.com/teamtailor/doppler_rails/blob/main/CHANGELOG.md
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 2.6.0
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements: []
96
+ rubygems_version: 3.3.7
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: Fetch environment variables from Doppler and inject them into your Rails
100
+ application.
101
+ test_files: []