instrumental-components 0.1.0 → 0.1.1
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 +9 -2
- 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: e9134d8994b32c063ea2afc84d6d29bf66bbef20ce5801969d1974f51764deaa
|
4
|
+
data.tar.gz: cb22ab02231caf65280bff6155e77d66d1ca4882fcd359cca39fbd31f54c7ab0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 610931e9290c712d7c03e9dd47beae6ff8b57c1905b7ac844ecda96bb86040d27245623d7cbac268b7f7a310c4439638eaaf489b1a8f2d5d0b4d51375d734cf6
|
7
|
+
data.tar.gz: 62092b9ff3f040cb39a747c559c723b25c65d47f1780a21b0086fccc1f08407d38ada17f6110b2b272fea451edf611f4ec57829aaa5c9f93429cb0cd0e2ca5a6
|
@@ -12,10 +12,15 @@ module InstrumentalComponents
|
|
12
12
|
|
13
13
|
def install
|
14
14
|
puts "📥 Downloading the latest version of Instrumental Components..."
|
15
|
+
puts "Debug: Starting installation process..."
|
15
16
|
|
16
17
|
begin
|
17
|
-
# Load .env file if it exists
|
18
|
-
|
18
|
+
# Load .env file if it exists (for local development only)
|
19
|
+
if File.exist?('.env')
|
20
|
+
puts "Debug: Loading local .env file..."
|
21
|
+
Dotenv.load
|
22
|
+
end
|
23
|
+
puts "Debug: Environment variables - INSTRUMENTAL_DOMAIN = #{ENV['INSTRUMENTAL_DOMAIN'].inspect}"
|
19
24
|
|
20
25
|
# Download the latest version of the gem
|
21
26
|
download_gem
|
@@ -45,8 +50,10 @@ module InstrumentalComponents
|
|
45
50
|
private
|
46
51
|
|
47
52
|
def download_gem
|
53
|
+
puts "Debug: Starting download_gem method..."
|
48
54
|
# For local development, set INSTRUMENTAL_DOMAIN=http://localhost:3000 in .env
|
49
55
|
# This allows testing against a local server while developing the gem
|
56
|
+
puts "Debug: INSTRUMENTAL_DOMAIN = #{ENV['INSTRUMENTAL_DOMAIN'].inspect}"
|
50
57
|
domain = ENV['INSTRUMENTAL_DOMAIN'] || 'https://instrumental.dev'
|
51
58
|
unless 'https://instrumental.dev' == domain
|
52
59
|
puts "Using domain: #{domain}" # Confirm that we're in local development mode
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instrumental-components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Casel
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-05-
|
10
|
+
date: 2025-05-13 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: open-uri
|