instrumental-components 0.1.32 → 0.1.33

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: b91fde31945f313b326f37ab1e9a389ac04e4c0011ee6820a6801219d74fb0d1
4
- data.tar.gz: a2b3ed177b1a2f8e5ffac6aaf6f7cba990e7b5eb4c1bf7ad8f7de50886f31e20
3
+ metadata.gz: 1416256b1a95faf104d9a5e722b1f1b10e7f9846b5ef95c0f09745d7b0728c59
4
+ data.tar.gz: 7c2428bd981c7c39591a30ad1de1a36529891512d9d21498205bab6fd23b7238
5
5
  SHA512:
6
- metadata.gz: 53aa3cbb0722c5916fb4437daac97a0ad53944a2b340e63f3a2c036234370b95a9ed9eb2b3e336722f922578fa3336f55be6afffa0f063a70dab399518ea0912
7
- data.tar.gz: f4e90aabce528ea02e1352c3f920365f2ba604867a0f944b5fbc2df78d61cdb034781b8b82ac4d8d4c960cc1e109693b7d45d8b7132c04bf57d5b3662a51da4d
6
+ metadata.gz: 86027e0adad984f579c27362a0ade99e8c5031174139848b1ff3be020a4128477d018f156245e4297949be48ce5e1b1feaadf9800e193737c4d6409bec80413e
7
+ data.tar.gz: 99c1f082032511a7c110691e4c8e43921e637f1c7b6215db694d9ade0462f291d3d9578aa5aaba89ba0e43b2a24dffbd012d4079bb88560e8f735d0398690b30
@@ -58,20 +58,12 @@ module InstrumentalComponents
58
58
  private
59
59
 
60
60
  def updating?
61
- # Only consider it updating if the gem is in the current project's Gemfile
62
- # and Gemfile.lock, not just installed system-wide
63
- gemfile_has_gem? && gemfile_lock_has_gem? && File.exist?('Gemfile.lock')
64
- end
65
-
66
- def gemfile_has_gem?
67
- return false unless File.exist?('Gemfile')
68
- # Use a more precise regex to match the gem declaration
69
- File.read('Gemfile').match?(/^\s*gem\s+['"]instrumental-components-library['"]/)
70
- end
71
-
72
- def gemfile_lock_has_gem?
73
- return false unless File.exist?('Gemfile.lock')
74
- File.read('Gemfile.lock').include?('instrumental-components-library (')
61
+ # It's an update if:
62
+ # 1. The gem is in the Gemfile
63
+ # 2. The .instrumental/license.yml file exists (indicating a previous installation)
64
+ File.exist?('Gemfile') &&
65
+ File.read('Gemfile').include?("instrumental-components-library") &&
66
+ File.exist?('.instrumental/license.yml')
75
67
  end
76
68
 
77
69
  def download_gem
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.32
4
+ version: 0.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Casel