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 +4 -4
- data/lib/instrumental-components.rb +6 -14
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1416256b1a95faf104d9a5e722b1f1b10e7f9846b5ef95c0f09745d7b0728c59
|
4
|
+
data.tar.gz: 7c2428bd981c7c39591a30ad1de1a36529891512d9d21498205bab6fd23b7238
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
62
|
-
#
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
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
|