index_now 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b88cf49ebcec1ecf10f67006a11bb3203f8dad3dcfdc9dfaf41b75816b520850
4
- data.tar.gz: eb5e97fb3eb49b8f0eebfd92efc26e61d498ae41d795b5ad5040df60be017cac
3
+ metadata.gz: 06ba8a7a0e186ca3894a88700f922500577983a59032d14095096422a75edcf5
4
+ data.tar.gz: 4bf6d4c0a6901c2a32d3183158b958a86fdf38bb812718e357390ff69c876024
5
5
  SHA512:
6
- metadata.gz: cd77ecf0257be7f6243fba49ad33c3eb156cfa827e0984219e91b8f3279ddeb37c34d731af86340c409b686404bb87f289119d79e65c5747e2fc813cdcdc6d74
7
- data.tar.gz: 9a334bde37aba3c06ca8e62f28f176b7164afd228abefd00985e0d9492e13183c4af8d8c9b1f1ccd4156bfaa3f15102364ef21bb79fa562d41fd3ac197026b6a
6
+ metadata.gz: 9e82402c55234ccc653f40cfa029dfba1ef5e4f898350a631d89ba4023fe54686b26c004e82d886795e55fd99cc8a73e49c7ae56bf06c22f8826c2d21e7861d3
7
+ data.tar.gz: c874332fca8db046f2dea57925e1ef4e129eaab7a3c517f55f2271536b420794c5d89e51ebaff1bf410221245faf0c5d36bd134c496328df2b1f93ed3bdd5c88
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.1] — 2026-11-02
4
+
5
+ - `index_now announce` no longer needs ActiveSupport to find the key file;
6
+ 0.2.0 failed with ``undefined method `sole'`` outside Rails.
7
+
3
8
  ## [0.2.0] — 2026-11-02
4
9
 
5
10
  - Static sites: an `index_now` command (`init`, `pending`, `announce`,
data/lib/index_now/cli.rb CHANGED
@@ -75,7 +75,7 @@ module IndexNow
75
75
  raise Error, "no key file in #{public_dir}/: run `index_now init`, or pass --key" if files.empty?
76
76
  raise Error, "#{files.join(" and ")} are all key files: pass --key" if files.size > 1
77
77
 
78
- File.basename(files.sole, ".txt")
78
+ File.basename(files.first, ".txt")
79
79
  end
80
80
 
81
81
  # A key file is <key>.txt holding exactly that key; other text files (robots.txt, llms.txt) are not.
@@ -1,3 +1,3 @@
1
1
  module IndexNow
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: index_now
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Kopylov