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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34d74a94b44c930d4a8dd20516ed4910a5555583c1b3b205fa7130f286731036
4
- data.tar.gz: efae60241fcfdff735901d9509b1fda72044d2c45d70a8707bd5234f363a120a
3
+ metadata.gz: 4594951e7754c86bb5d2793b74a3ab831e3de57174aafbad7478c2848cd9d3ae
4
+ data.tar.gz: e9540341ad4400e0a03f825693c21ad9f057ef20cff52e02082cd7f26fb6d787
5
5
  SHA512:
6
- metadata.gz: 3145c5a04aca6acf20caf78e4e5ba16bd84cfccb77a96b0a3c7ac6b18e5233232febb464648b5c5978e3909d8d86cca836b89ffaf76b999f868cc4a79b0a328a
7
- data.tar.gz: f9f72c04b30026bcfcb8f70250030a29def661ae8dea295020050f9a3e4ddd163a9caeebe129c5096c45eb2117ec1c2e7f4db9c6b78091253a602d0a775ab453
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
  [![Tests](https://github.com/philiprehberger/rb-env-diff/actions/workflows/ci.yml/badge.svg)](https://github.com/philiprehberger/rb-env-diff/actions/workflows/ci.yml)
4
4
  [![Gem Version](https://badge.fury.io/rb/philiprehberger-env_diff.svg)](https://rubygems.org/gems/philiprehberger-env_diff)
5
- [![License](https://img.shields.io/github/license/philiprehberger/rb-env-diff)](LICENSE)
6
- [![Sponsor](https://img.shields.io/badge/sponsor-GitHub%20Sponsors-ec6cb9)](https://github.com/sponsors/philiprehberger)
5
+ [![Last updated](https://img.shields.io/github/last-commit/philiprehberger/rb-env-diff)](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)
@@ -42,7 +42,7 @@ module Philiprehberger
42
42
  append_added(lines)
43
43
  append_removed(lines)
44
44
  append_changed(lines)
45
- lines.empty? ? "No differences found." : lines.join("\n")
45
+ lines.empty? ? 'No differences found.' : lines.join("\n")
46
46
  end
47
47
 
48
48
  private
@@ -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)]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Philiprehberger
4
4
  module EnvDiff
5
- VERSION = "0.1.6"
5
+ VERSION = '0.1.7'
6
6
  end
7
7
  end
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "env_diff/version"
4
- require_relative "env_diff/diff"
5
- require_relative "env_diff/parser"
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.6
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-27 00:00:00.000000000 Z
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.