fastlane-plugin-properties 1.1.0 → 1.1.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
2
  SHA256:
3
- metadata.gz: 83cc41668123748946ece3e9a6130b567b791f198cbd56ecfafe413179e4f17d
4
- data.tar.gz: 1632a72d065d56d10b2e823ce07111918ffd9393e76b0a5b0e89030d1b786a4a
3
+ metadata.gz: 2aa93e94b2bcf6b8d84a1b9f2c2249c16bc418b3bc3f8ad2d44be5aba2823b7d
4
+ data.tar.gz: a88eace38425870d601b2d8f92b0a6bf343d52fd46c28db6f6b08598db516572
5
5
  SHA512:
6
- metadata.gz: 04d8ab1e6b020cb59c14234b6b7598ff74622421add28ad4b94130642e9431230f80fee805c1a71f394b3925f447ef4f68dadeee3647bf72f978e995ebac29e5
7
- data.tar.gz: bdd607dd1f1c7025d327dbf68878cc81d3564b4f4a2d42edbad6afb33650d190b5f869a20dfe7f1aca4dc806c7b1d5ec1e6f154f959731285b7247ac2036e50d
6
+ metadata.gz: 97498e511ed97cb975277690c4b2a02c2ea6bac6998b9cc171c96959f277a35beed9a5c540ddc9a95c9e41b529390539bd79c1f60618fa806009b9b4cca72bc3
7
+ data.tar.gz: b7dd159b6ff260a2118afca6e7b96bffea619adb0501f75beb066664b10f3fd252e98e3fbf28e6b7a5d68b25ac06d3dadf05ef2354cea1bb14df77336797f50a
data/README.md CHANGED
@@ -16,6 +16,8 @@ Adds 2 actions to fastlane to read and update properties files.
16
16
  Adds 2 actions to read/write the whole properties file.
17
17
  Adds 2 more actions to increase versionCode and versionName fast.
18
18
 
19
+ Your file does not require to be `.properties`. This plugin can work with any file which content is in the `KEY=VALUE` format, ie `.env` files or etc.
20
+
19
21
  ## Example
20
22
 
21
23
  ```ruby
@@ -49,14 +51,15 @@ lane :test do
49
51
  update_type: "minor"
50
52
  )
51
53
 
54
+ # Read the versions.properties file and sttore it as a hash-map in the content variable
52
55
  content = parse_properties_file(
53
56
  path: "./Configs/versions.properties"
54
57
  )
55
58
 
56
- increment_version_name_in_properties_file(
57
- key: "VERSION_NAME",
59
+ # Rewrites your versions.properties with new data, generated from some_hash
60
+ write_properties_file(
58
61
  path: "./Configs/versions.properties",
59
- update_type: "minor"
62
+ hash: some_hash
60
63
  )
61
64
 
62
65
  end
@@ -3,7 +3,7 @@ require 'java-properties'
3
3
 
4
4
  module Fastlane
5
5
  module Actions
6
- class ParsePropertiesFileAction < Action
6
+ class WritePropertiesFileAction < Action
7
7
  def self.run(params)
8
8
  content = JavaProperties.write(params[:hash], params[:path])
9
9
  return content
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Properties
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-properties
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavlo Pakholka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-05 00:00:00.000000000 Z
11
+ date: 2019-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: java-properties