fastlane-plugin-dotenv_vault 0.10.0.beta.1

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: 011f004c887229bb0b01e7a79de00a32c91ea0c5bc6209ba0ceaf50543a285a3
4
+ data.tar.gz: fe9d61227d2087bf7f10274f1227a60d94a107998410939cc18707220b5c0315
5
+ SHA512:
6
+ metadata.gz: 17bb7c602037a5512d83eb33835451b0050776ef89d054e9ae8b546cc8d2d6490411401b6d30cf4a16d954b8b7d5a360fc479b41d670bcbde08796728ad57fca
7
+ data.tar.gz: dc30fd159b09e760eca846e98784ac65e52ff9f11f3c103f7da4c3a7d508027d69595384bac688b5a97d5cf3cc6c8c691c7349e7a17e7f4b6b39a9a4c1afc0d0
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Miles Zimmerman <miles@houseninja.co>
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # dotenv_vault plugin
2
+
3
+ [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-dotenv_vault)
4
+
5
+ ## Getting Started
6
+
7
+ This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-dotenv_vault`, add it to your project by running:
8
+
9
+ ```bash
10
+ fastlane add_plugin dotenv_vault
11
+ ```
12
+
13
+ ## About dotenv_vault
14
+
15
+ Decrypt .env.vault file.
16
+
17
+ **Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
18
+
19
+ ## Example
20
+
21
+ Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
22
+
23
+ **Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
24
+
25
+ ## Run tests for this plugin
26
+
27
+ To run both the tests, and code style validation, run
28
+
29
+ ```
30
+ rake
31
+ ```
32
+
33
+ To automatically fix many of the styling issues, use
34
+ ```
35
+ rubocop -a
36
+ ```
37
+
38
+ ## Issues and Feedback
39
+
40
+ For any other issues and feedback about this plugin, please submit it to this repository.
41
+
42
+ ## Troubleshooting
43
+
44
+ If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
45
+
46
+ ## Using _fastlane_ Plugins
47
+
48
+ For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
49
+
50
+ ## About _fastlane_
51
+
52
+ _fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
@@ -0,0 +1,50 @@
1
+ require 'fastlane/action'
2
+ require 'dotenv-vault'
3
+ require_relative '../helper/dotenv_vault_helper'
4
+
5
+ module Fastlane
6
+ module Actions
7
+ class DotenvVaultAction < Action
8
+ def self.run(_params)
9
+ if defined?(::DotenvVault)
10
+ ::DotenvVault.load
11
+ end
12
+ end
13
+
14
+ def self.description
15
+ "Decrypt .env.vault file."
16
+ end
17
+
18
+ def self.authors
19
+ ["mileszim", "motdotla"]
20
+ end
21
+
22
+ def self.return_value
23
+ # If your method provides a return value, you can describe here what it does
24
+ end
25
+
26
+ def self.details
27
+ # Optional:
28
+ "Extends the proven & trusted foundation of dotenv, with a .env.vault file."
29
+ end
30
+
31
+ def self.available_options
32
+ [
33
+ # FastlaneCore::ConfigItem.new(key: :your_option,
34
+ # env_name: "DOTENV_VAULT_YOUR_OPTION",
35
+ # description: "A description of your option",
36
+ # optional: false,
37
+ # type: String)
38
+ ]
39
+ end
40
+
41
+ def self.is_supported?(platform)
42
+ # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
43
+ # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
44
+ #
45
+ # [:ios, :mac, :android].include?(platform)
46
+ true
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,31 @@
1
+ require 'dotenv-vault'
2
+
3
+ module Fastlane
4
+ module Helper
5
+ class DotenvVaultHelper
6
+ def self.load(*filenames)
7
+ ::DotenvVault.load(*filenames)
8
+ end
9
+
10
+ # same as `load`, but raises Errno::ENOENT if any files don't exist
11
+ def self.load!(*filenames)
12
+ ::DotenvVault.load!(*filenames)
13
+ end
14
+
15
+ # same as `load`, but will override existing values in `ENV`
16
+ def self.overload(*filenames)
17
+ ::DotenvVault.overload(*filenames)
18
+ end
19
+
20
+ # same as `overload`, but raises Errno:ENOENT if any files don't exist
21
+ def self.overload!(*filenames)
22
+ ::DotenvVault.overload!(*filenames)
23
+ end
24
+
25
+ # returns a hash of parsed key/value pairs but does not modify ENV
26
+ def self.parse(*filenames)
27
+ ::DotenvVault.parse(*filenames)
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,62 @@
1
+ require 'fastlane_core/ui/ui'
2
+
3
+ # Monkeypatch DotenvVault to use fastlane_core ui
4
+ module Fastlane
5
+ UI = FastlaneCore::UI unless Fastlane.const_defined?(:UI)
6
+
7
+ module DotenvVault
8
+ class Logger
9
+ def debug(message)
10
+ UI.verbose(message)
11
+ end
12
+
13
+ def info(message)
14
+ UI.message(message)
15
+ end
16
+
17
+ def warn(message)
18
+ UI.important(message)
19
+ end
20
+
21
+ def error(message)
22
+ UI.error(message)
23
+ end
24
+
25
+ def fatal(message)
26
+ UI.error(message)
27
+ end
28
+
29
+ def unknown(message)
30
+ UI.message(message)
31
+ end
32
+
33
+ def log(_level, message)
34
+ UI.message(message)
35
+ end
36
+
37
+ def <<(message)
38
+ UI.message(message)
39
+ end
40
+
41
+ def close
42
+ # noop
43
+ end
44
+
45
+ def reopen
46
+ # noop
47
+ end
48
+
49
+ def flush
50
+ # noop
51
+ end
52
+
53
+ def level
54
+ # noop
55
+ end
56
+
57
+ def level=(level)
58
+ # noop
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,5 @@
1
+ module Fastlane
2
+ module DotenvVault
3
+ VERSION = "0.10.0.beta.1"
4
+ end
5
+ end
@@ -0,0 +1,26 @@
1
+ require 'fastlane/plugin/dotenv_vault/version'
2
+ require 'fastlane/plugin/dotenv_vault/logger'
3
+
4
+ module Fastlane
5
+ module DotenvVault
6
+ # Return all .rb files inside the "actions" and "helper" directory
7
+ def self.all_classes
8
+ Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
9
+ end
10
+ end
11
+ end
12
+
13
+ # By default we want to import all available actions and helpers
14
+ # A plugin can contain any number of actions and plugins
15
+ Fastlane::DotenvVault.all_classes.each do |current|
16
+ require current
17
+ end
18
+
19
+ # Monkeypatch DotenvVault.logger
20
+ module DotenvVault
21
+ class << self
22
+ def logger
23
+ @logger ||= Fastlane::DotenvVault::Logger.new
24
+ end
25
+ end
26
+ end
metadata ADDED
@@ -0,0 +1,238 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fastlane-plugin-dotenv_vault
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.10.0.beta.1
5
+ platform: ruby
6
+ authors:
7
+ - mileszim
8
+ - motdotla
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2023-02-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: dotenv-vault
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 0.10.0
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 0.10.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: bundler
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: fastlane
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: 2.211.0
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 2.211.0
56
+ - !ruby/object:Gem::Dependency
57
+ name: pry
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: rake
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: rspec
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: rspec_junit_formatter
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: rubocop
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - '='
117
+ - !ruby/object:Gem::Version
118
+ version: 1.12.1
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - '='
124
+ - !ruby/object:Gem::Version
125
+ version: 1.12.1
126
+ - !ruby/object:Gem::Dependency
127
+ name: rubocop-performance
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: rubocop-rake
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ - !ruby/object:Gem::Dependency
155
+ name: rubocop-require_tools
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ - !ruby/object:Gem::Dependency
169
+ name: rubocop-rspec
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ - !ruby/object:Gem::Dependency
183
+ name: simplecov
184
+ requirement: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ type: :development
190
+ prerelease: false
191
+ version_requirements: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ description:
197
+ email:
198
+ - miles@zim.dev
199
+ - mot@mot.la
200
+ executables: []
201
+ extensions: []
202
+ extra_rdoc_files: []
203
+ files:
204
+ - LICENSE
205
+ - README.md
206
+ - lib/fastlane/plugin/dotenv_vault.rb
207
+ - lib/fastlane/plugin/dotenv_vault/actions/dotenv_vault_action.rb
208
+ - lib/fastlane/plugin/dotenv_vault/helper/dotenv_vault_helper.rb
209
+ - lib/fastlane/plugin/dotenv_vault/logger.rb
210
+ - lib/fastlane/plugin/dotenv_vault/version.rb
211
+ homepage: https://github.com/dotenv-org/dotenv-vault-ruby
212
+ licenses:
213
+ - MIT
214
+ metadata:
215
+ homepage_uri: https://github.com/dotenv-org/dotenv-vault-ruby
216
+ source_code_uri: https://github.com/dotenv-org/dotenv-vault-ruby
217
+ changelog_uri: https://github.com/dotenv-org/dotenv-vault-ruby
218
+ rubygems_mfa_required: 'true'
219
+ post_install_message:
220
+ rdoc_options: []
221
+ require_paths:
222
+ - lib
223
+ required_ruby_version: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - ">="
226
+ - !ruby/object:Gem::Version
227
+ version: 2.6.0
228
+ required_rubygems_version: !ruby/object:Gem::Requirement
229
+ requirements:
230
+ - - ">"
231
+ - !ruby/object:Gem::Version
232
+ version: 1.3.1
233
+ requirements: []
234
+ rubygems_version: 3.3.7
235
+ signing_key:
236
+ specification_version: 4
237
+ summary: Decrypt .env.vault file.
238
+ test_files: []