philiprehberger-env_diff 0.1.6 → 0.1.7
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +19 -2
- data/lib/philiprehberger/env_diff/diff.rb +1 -1
- data/lib/philiprehberger/env_diff/parser.rb +3 -3
- data/lib/philiprehberger/env_diff/version.rb +1 -1
- data/lib/philiprehberger/env_diff.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4594951e7754c86bb5d2793b74a3ab831e3de57174aafbad7478c2848cd9d3ae
|
|
4
|
+
data.tar.gz: e9540341ad4400e0a03f825693c21ad9f057ef20cff52e02082cd7f26fb6d787
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5735362de38190a82ce601a78cb3dfddfdc51a9bddd74ef7f67f432acf9a275e82e2c6601d32534e1d5f6aae56911a08cb83ab7eb567e52bb589b9977be60433
|
|
7
|
+
data.tar.gz: 1bd5999f51acb2ea3930aa3d0ae7ec62884915c8715d1ea4bf5f78c430eb29314a705215fa062d8236f28a798734b92e13e6346419eb1ecc66a1c52a9019b15c
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.7] - 2026-03-31
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Standardize README badges, support section, and license format
|
|
14
|
+
|
|
10
15
|
## [0.1.6] - 2026-03-26
|
|
11
16
|
|
|
12
17
|
### Changed
|
data/README.md
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/philiprehberger/rb-env-diff/actions/workflows/ci.yml)
|
|
4
4
|
[](https://rubygems.org/gems/philiprehberger-env_diff)
|
|
5
|
-
[](https://github.com/sponsors/philiprehberger)
|
|
5
|
+
[](https://github.com/philiprehberger/rb-env-diff/commits/main)
|
|
7
6
|
|
|
8
7
|
Compare environment variables across environments and report differences
|
|
9
8
|
|
|
@@ -90,6 +89,24 @@ bundle exec rspec
|
|
|
90
89
|
bundle exec rubocop
|
|
91
90
|
```
|
|
92
91
|
|
|
92
|
+
## Support
|
|
93
|
+
|
|
94
|
+
If you find this project useful:
|
|
95
|
+
|
|
96
|
+
⭐ [Star the repo](https://github.com/philiprehberger/rb-env-diff)
|
|
97
|
+
|
|
98
|
+
🐛 [Report issues](https://github.com/philiprehberger/rb-env-diff/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
|
|
99
|
+
|
|
100
|
+
💡 [Suggest features](https://github.com/philiprehberger/rb-env-diff/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement)
|
|
101
|
+
|
|
102
|
+
❤️ [Sponsor development](https://github.com/sponsors/philiprehberger)
|
|
103
|
+
|
|
104
|
+
🌐 [All Open Source Projects](https://philiprehberger.com/open-source-packages)
|
|
105
|
+
|
|
106
|
+
💻 [GitHub Profile](https://github.com/philiprehberger)
|
|
107
|
+
|
|
108
|
+
🔗 [LinkedIn Profile](https://www.linkedin.com/in/philiprehberger)
|
|
109
|
+
|
|
93
110
|
## License
|
|
94
111
|
|
|
95
112
|
[MIT](LICENSE)
|
|
@@ -31,10 +31,10 @@ module Philiprehberger
|
|
|
31
31
|
# @param line [String] a stripped line
|
|
32
32
|
# @return [Array(String, String), nil] key-value pair or nil
|
|
33
33
|
def self.parse_line(line)
|
|
34
|
-
return nil if line.empty? || line.start_with?(
|
|
34
|
+
return nil if line.empty? || line.start_with?('#')
|
|
35
35
|
|
|
36
|
-
line = line.sub(/\Aexport\s+/,
|
|
37
|
-
key, _, value = line.partition(
|
|
36
|
+
line = line.sub(/\Aexport\s+/, '')
|
|
37
|
+
key, _, value = line.partition('=')
|
|
38
38
|
return nil if key.empty? || value.nil?
|
|
39
39
|
|
|
40
40
|
[key.strip, unquote(value.strip)]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative
|
|
4
|
-
require_relative
|
|
5
|
-
require_relative
|
|
3
|
+
require_relative 'env_diff/version'
|
|
4
|
+
require_relative 'env_diff/diff'
|
|
5
|
+
require_relative 'env_diff/parser'
|
|
6
6
|
|
|
7
7
|
module Philiprehberger
|
|
8
8
|
module EnvDiff
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: philiprehberger-env_diff
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Philip Rehberger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Parse .env files or environment hashes, compare them, and get a clear
|
|
14
14
|
report of added, removed, changed, and unchanged variables.
|