searchlink 2.3.86 → 2.3.88

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.
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SL
4
- VERSION = '2.3.86'
4
+ VERSION = "2.3.88"
5
5
  end
6
6
 
7
7
  # Main module
@@ -29,7 +29,7 @@ module SL
29
29
  latest = SemVer.new(latest_tag)
30
30
  current = SemVer.new(SL::VERSION)
31
31
 
32
- File.open(cachefile, "w") { |f| f.puts("#{last_time.strftime("%c")}|#{latest}") }
32
+ File.open(cachefile, "w") { |f| f.puts("#{last_time.strftime('%c')}|#{latest}") }
33
33
 
34
34
  return "SearchLink v#{current}, #{latest} available. Run \"update\" to download." if latest_tag && current.older_than(latest)
35
35
 
@@ -42,12 +42,12 @@ module SL
42
42
  def new_version?
43
43
  headers = {
44
44
  "Accept" => "application/vnd.github+json",
45
- "X-GitHub-Api-Version" => "2022-11-28",
45
+ "X-GitHub-Api-Version" => "2022-11-28"
46
46
  }
47
47
  if defined? Secrets::GH_AUTH_TOKEN
48
48
  headers["Authorization"] = "Bearer #{Secrets::GH_AUTH_TOKEN}"
49
49
  elsif SL.config["github_token"]
50
- headers["Authorization"] = "Bearer #{SL.config["github_token"]}"
50
+ headers["Authorization"] = "Bearer #{SL.config['github_token']}"
51
51
  end
52
52
 
53
53
  url = "https://api.github.com/repos/ttscoff/searchlink/releases/latest"
data/lib/searchlink.rb CHANGED
@@ -15,6 +15,9 @@ require "json"
15
15
  require "erb"
16
16
  require "English"
17
17
 
18
+ # import
19
+ require_relative "searchlink/plist"
20
+
18
21
  # import
19
22
  require_relative "tokens" if File.exist?("tokens.rb")
20
23
 
@@ -42,9 +45,6 @@ require_relative "searchlink/array"
42
45
  # import
43
46
  require_relative "searchlink/string"
44
47
 
45
- # import
46
- require_relative "searchlink/plist"
47
-
48
48
  # import
49
49
  require_relative "searchlink/config"
50
50
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searchlink
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.86
4
+ version: 2.3.88
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-31 00:00:00.000000000 Z
10
+ date: 2025-04-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: base64
@@ -282,6 +282,9 @@ files:
282
282
  - lib/searchlink/output.rb
283
283
  - lib/searchlink/parse.rb
284
284
  - lib/searchlink/plist.rb
285
+ - lib/searchlink/plist/generator.rb
286
+ - lib/searchlink/plist/parser.rb
287
+ - lib/searchlink/plist/version.rb
285
288
  - lib/searchlink/script_plugin.rb
286
289
  - lib/searchlink/search.rb
287
290
  - lib/searchlink/searches.rb