fastlane-plugin-dotenv_vault 0.10.0.beta.1 → 0.10.0

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
2
  SHA256:
3
- metadata.gz: 011f004c887229bb0b01e7a79de00a32c91ea0c5bc6209ba0ceaf50543a285a3
4
- data.tar.gz: fe9d61227d2087bf7f10274f1227a60d94a107998410939cc18707220b5c0315
3
+ metadata.gz: 20991f863c06c111f6d1c6a14cd2efb08c805a2919b8399bc736588ad3ec122b
4
+ data.tar.gz: 8738f90928a527d241fe0ddbc8090659878c21ab95bb93ccfe877584548ad6f9
5
5
  SHA512:
6
- metadata.gz: 17bb7c602037a5512d83eb33835451b0050776ef89d054e9ae8b546cc8d2d6490411401b6d30cf4a16d954b8b7d5a360fc479b41d670bcbde08796728ad57fca
7
- data.tar.gz: dc30fd159b09e760eca846e98784ac65e52ff9f11f3c103f7da4c3a7d508027d69595384bac688b5a97d5cf3cc6c8c691c7349e7a17e7f4b6b39a9a4c1afc0d0
6
+ metadata.gz: 6f3ad5619f4a79eca3e8e136abb42e1a8c398f3a13658c3d90768bfc0d2ce2c6bc8ae3d001bd113b2f904c5052f2b22e3bacce422108022b6230e4f773da9938
7
+ data.tar.gz: 5fe0d7796adbeb5a5caaa946d003ec8f77e800b1367a324f9fffe648a962978f63b8ec48c0f96634d444264dcc93e6362691c3fafe563effdadb36c7c4f79865
data/README.md CHANGED
@@ -10,28 +10,56 @@ This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To
10
10
  fastlane add_plugin dotenv_vault
11
11
  ```
12
12
 
13
+ then at the top of your `Fastfile`:
14
+
15
+ ```ruby
16
+ # Fastfile
17
+ dotenv_vault
18
+
19
+ # or if you want to configure non-standard path to .env.vault file
20
+ dotenv_vault(
21
+ # vault_path: ".env.vault",
22
+ )
23
+ ```
24
+
25
+ You can also set the `VAULT_PATH` environment variable to configure the path to the `.env.vault` file:
26
+
27
+ ```bash
28
+ $ DOTENV_VAULT_PATH="../.env.vault" \
29
+ fastlane some_lane
30
+ ```
31
+
13
32
  ## About dotenv_vault
14
33
 
15
34
  Decrypt .env.vault file.
16
35
 
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.
36
+ ## Actions
37
+
38
+ ### dotenv_vault
39
+
40
+ Decrypt .env.vault file.
41
+
42
+ #### Parameters
43
+
44
+ | Parameter | Environment Variable | Default |
45
+ | ------------- | -------------------- | ------------ |
46
+ | `:vault_path` | `DOTENV_VAULT_PATH` | `.env.vault` |
18
47
 
19
48
  ## Example
20
49
 
21
50
  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
51
 
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
52
  ## Run tests for this plugin
26
53
 
27
54
  To run both the tests, and code style validation, run
28
55
 
29
- ```
56
+ ```bash
30
57
  rake
31
58
  ```
32
59
 
33
60
  To automatically fix many of the styling issues, use
34
- ```
61
+
62
+ ```bash
35
63
  rubocop -a
36
64
  ```
37
65
 
@@ -1,13 +1,16 @@
1
1
  require 'fastlane/action'
2
+ require 'fastlane_core/configuration/config_item'
2
3
  require 'dotenv-vault'
3
4
  require_relative '../helper/dotenv_vault_helper'
4
5
 
5
6
  module Fastlane
6
7
  module Actions
7
8
  class DotenvVaultAction < Action
8
- def self.run(_params)
9
+ def self.run(params)
10
+ params.values
11
+
9
12
  if defined?(::DotenvVault)
10
- ::DotenvVault.load
13
+ ::DotenvVault.load(params[:vault_path])
11
14
  end
12
15
  end
13
16
 
@@ -30,11 +33,11 @@ module Fastlane
30
33
 
31
34
  def self.available_options
32
35
  [
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)
36
+ FastlaneCore::ConfigItem.new(key: :vault_path,
37
+ env_name: "DOTENV_VAULT_PATH",
38
+ description: "Path to .env.vault file (default is ./.env.vault)",
39
+ default_value: ".env.vault",
40
+ type: String)
38
41
  ]
39
42
  end
40
43
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module DotenvVault
3
- VERSION = "0.10.0.beta.1"
3
+ VERSION = "0.10.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-dotenv_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0.beta.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mileszim
@@ -227,9 +227,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
227
227
  version: 2.6.0
228
228
  required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  requirements:
230
- - - ">"
230
+ - - ">="
231
231
  - !ruby/object:Gem::Version
232
- version: 1.3.1
232
+ version: '0'
233
233
  requirements: []
234
234
  rubygems_version: 3.3.7
235
235
  signing_key: