scout-essentials 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/scout/named_array.rb +7 -0
- data/lib/scout/path/find.rb +14 -1
- data/lib/scout/resource/scout.rb +2 -0
- data/scout-essentials.gemspec +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b0a00cab2e80f5ac221c5b89ba51ac9d2e179108523533ccff04bcffa28b621
|
4
|
+
data.tar.gz: 59658780d237328a638a962d9645de6994534015c932deddd7c7b55ddad394c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88d48ab2416e00f99db24211774c93841e3aab8bbe14d9a495358f77771aaf3fa03e08d9864a81e5e9818de13bc0bcafe94e975a2d8186312909dc1934750906
|
7
|
+
data.tar.gz: 2cdc543433977a1901f6cc15ad92d30acbb3718bc70919829912083f4cd71e8e18fe9bc63bc396625a78946d15450802b38fd564f6ba63dcd8b2723393db4d84
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
data/lib/scout/named_array.rb
CHANGED
@@ -70,6 +70,13 @@ module NamedArray
|
|
70
70
|
super(pos)
|
71
71
|
end
|
72
72
|
|
73
|
+
def []=(key, value)
|
74
|
+
pos = NamedArray.identify_name(@fields, key)
|
75
|
+
return nil if pos.nil?
|
76
|
+
super(pos, value)
|
77
|
+
end
|
78
|
+
|
79
|
+
|
73
80
|
def concat(other)
|
74
81
|
super(other)
|
75
82
|
self.fields.concat(other.fields) if NamedArray === other
|
data/lib/scout/path/find.rb
CHANGED
@@ -88,6 +88,19 @@ module Path
|
|
88
88
|
@@map_order = nil
|
89
89
|
end
|
90
90
|
|
91
|
+
def self.load_path_maps(filename)
|
92
|
+
Path.setup(filename) unless Path === filename
|
93
|
+
if filename.exist?
|
94
|
+
begin
|
95
|
+
YAML.load(filename.read).each do |where, location|
|
96
|
+
@@path_maps[where.to_sym] = location
|
97
|
+
end
|
98
|
+
rescue
|
99
|
+
Log.error "Error loading search_paths from #{filename}: " << $!.message
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
91
104
|
def _parts
|
92
105
|
@_parts ||= self.split("/")
|
93
106
|
end
|
@@ -95,7 +108,7 @@ module Path
|
|
95
108
|
def _subpath
|
96
109
|
@subpath ||= _parts.length > 1 ? _parts[1..-1] * "/" : _parts[0] || ""
|
97
110
|
end
|
98
|
-
|
111
|
+
|
99
112
|
def _toplevel
|
100
113
|
@toplevel ||= _parts.length > 1 ? _parts[0] : ""
|
101
114
|
end
|
data/lib/scout/resource/scout.rb
CHANGED
data/scout-essentials.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: scout-essentials 1.
|
5
|
+
# stub: scout-essentials 1.2.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "scout-essentials".freeze
|
9
|
-
s.version = "1.
|
9
|
+
s.version = "1.2.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Miguel Vazquez".freeze]
|
14
|
-
s.date = "2023-08-
|
14
|
+
s.date = "2023-08-08"
|
15
15
|
s.description = "Things a scout can use anywhere".freeze
|
16
16
|
s.email = "mikisvaz@gmail.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -128,7 +128,7 @@ Gem::Specification.new do |s|
|
|
128
128
|
]
|
129
129
|
s.homepage = "http://github.com/mikisvaz/scout-essentials".freeze
|
130
130
|
s.licenses = ["MIT".freeze]
|
131
|
-
s.rubygems_version = "3.
|
131
|
+
s.rubygems_version = "3.5.0.dev".freeze
|
132
132
|
s.summary = "Scout essential tools".freeze
|
133
133
|
|
134
134
|
s.specification_version = 4
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout-essentials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
241
|
- !ruby/object:Gem::Version
|
242
242
|
version: '0'
|
243
243
|
requirements: []
|
244
|
-
rubygems_version: 3.
|
244
|
+
rubygems_version: 3.5.0.dev
|
245
245
|
signing_key:
|
246
246
|
specification_version: 4
|
247
247
|
summary: Scout essential tools
|