afterlife 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92e4638508e3ce213a3fa2153f379d4ec46f4853f2e3e5e51de581ce67895c2a
4
- data.tar.gz: 8f390b018a8317bbd7c34be245e7515ed86da8305b1c8277ef8845def65e5b87
3
+ metadata.gz: 39b1dc76a5dcf45f83fcde8b8d8198b0d8d9849915f7e80cab37f82fbc6621b6
4
+ data.tar.gz: 806c05f05b5c7729bd765b1f66757a45daa3f17e425a2a1aecb6d951d62e8813
5
5
  SHA512:
6
- metadata.gz: 4393072985a2d8ed6d91cd33dc46ccb2c9ab14474f42aaedc7925e4623ff690a465059799b7dcbf1e59111350e0b7c5368520b68fd0b5909d155ea49e907dabb
7
- data.tar.gz: 1331c720e2f79068e2ea72734b92336f9cf6468e24f64d94c8bbfcd5511b40f556d7c0dacda9f4562a6221542caafaf4e62297fcabf9511a9971e43eefc224f8
6
+ metadata.gz: 2d57810ac8356dd463d272ece6bf10dc06c2cefd47ec0d1248d0799a9dd95048dc665bdd2b49f38e3efeefe28955671dbb3f5266fed965869be8024a42924c5c
7
+ data.tar.gz: '0393f5f21e8fc2a6e79f8c345f803579681f3aa07a796a280ee7ac1267eb7ccef19dd506bdfcccdc2e6f985057a82514c151b967ca60549763e97a81d792fd83'
@@ -39,7 +39,7 @@ module Afterlife
39
39
  end
40
40
 
41
41
  def repo_method
42
- @repo_method ||= path.first.to_s.gsub('-', '_').to_sym
42
+ @repo_method ||= path.to_s.gsub('-', '_').to_sym
43
43
  end
44
44
 
45
45
  def repo
@@ -91,7 +91,7 @@ module Afterlife
91
91
  end
92
92
 
93
93
  def full_name
94
- package_json[:name]
94
+ package_json[:name] || File.basename(full_path)
95
95
  end
96
96
 
97
97
  # Files that define versions
@@ -114,6 +114,8 @@ module Afterlife
114
114
 
115
115
  def package_json
116
116
  @pkg_path ||= conf.dig(:cdn, :package_json) || full_path.join('package.json')
117
+ return {} unless File.exist?(@pkg_path)
118
+
117
119
  @package_json ||= JSON.parse(File.read(@pkg_path), symbolize_names: true)
118
120
  end
119
121
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Afterlife
4
- VERSION = '1.6.0'
4
+ VERSION = '1.6.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: afterlife
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genaro Madrid
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-28 00:00:00.000000000 Z
11
+ date: 2024-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport