instrumental-components 0.1.31 → 0.1.32

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: fe12474095d5a24ed6024f13ad07fc09a1c06ff1975cc593ca1143c957b78203
4
- data.tar.gz: be82faed7a3f4873cf1050d68b154614f3154b4b2a611a261a0385d92814694d
3
+ metadata.gz: b91fde31945f313b326f37ab1e9a389ac04e4c0011ee6820a6801219d74fb0d1
4
+ data.tar.gz: a2b3ed177b1a2f8e5ffac6aaf6f7cba990e7b5eb4c1bf7ad8f7de50886f31e20
5
5
  SHA512:
6
- metadata.gz: 83d8efe650aee61417a7655a759c4010270c6caf1dff170a7db7cb29ae3c72171ae455a3fa1ace78c0a7ede0018fb205c5a894211e83ed5653388813c70099dc
7
- data.tar.gz: 69d5beb80cf48f029ede27496e16fedb7cc96eec8a026444c4dd339bb190d1073adf382a4f6890a1ebedeb1f6cc46bc48e950e5ffc6de895d3d9b8cdad3a03f0
6
+ metadata.gz: 53aa3cbb0722c5916fb4437daac97a0ad53944a2b340e63f3a2c036234370b95a9ed9eb2b3e336722f922578fa3336f55be6afffa0f063a70dab399518ea0912
7
+ data.tar.gz: f4e90aabce528ea02e1352c3f920365f2ba604867a0f944b5fbc2df78d61cdb034781b8b82ac4d8d4c960cc1e109693b7d45d8b7132c04bf57d5b3662a51da4d
@@ -133,14 +133,8 @@ module InstrumentalComponents
133
133
  # Check if the gem is already in any development group
134
134
  unless gemfile_content.match?(/^\s*gem\s+['"]instrumental-components-library['"]/)
135
135
  if gemfile_content.include?("group :development")
136
- # Find the last development group and add the gem there
137
- gemfile_content.gsub!(/(group :development\s+do.*?)(?=group|$)/m) do |match|
138
- if match.end_with?("end")
139
- match.sub(/end\s*$/, " gem 'instrumental-components-library'\nend")
140
- else
141
- match + " gem 'instrumental-components-library'\n"
142
- end
143
- end
136
+ # Find the first development group and add the gem after the 'do'
137
+ gemfile_content.sub!(/(group :development\s+do)/, "\\1\n gem 'instrumental-components-library'")
144
138
  else
145
139
  # Create new development group
146
140
  gemfile_content += "\n\ngroup :development do\n gem 'instrumental-components-library'\nend\n"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instrumental-components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.31
4
+ version: 0.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Casel