nostr-zap 0.2.3 → 0.2.4

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: b1feece47ab5f8862dd5c46ffce079eb5499fd850056bb3d71c4460142099fa6
4
- data.tar.gz: 91712e7614befeec32b360b409cc6e16c2ad555499fcffa1f2e785302eab28c1
3
+ metadata.gz: a37e06d0b8cbcaf43059fa05aef8de40e96c735d7aba1e0a0d7b2f22060d3051
4
+ data.tar.gz: 15d1f6384ed3af2eb9413414f934dce327193b60e1aacfbfcae777594035cef0
5
5
  SHA512:
6
- metadata.gz: f361d7b5d2204aeec5224251403595f868e50921859b7da12bd0c7e16cb6c575e76e2a9290bf6a2d73d1745ec177ecf1a6470ad71e6a1152c108fe7e609c1cb2
7
- data.tar.gz: b25fc3739c5e1412960b09c5a33109f0f7dcc2f5c3816b4b2492a0c63cbdab95fc0ad55f1ee5b83c49a24cacff032ecffd53438305f01624efda12e85e94c58b
6
+ metadata.gz: 734a48257c00913f893257978dbf7b4c4b6f422d10530a2ccd0fa15112c3c107a0cd93363e5a0e567434bbb73f22e08d232fc6e652109923289197fdc2f35d63
7
+ data.tar.gz: edb0bc4efa7ce7b22765796faeb6ac3ee9b2f48f76eb002936449b49caecfa20bd32ee99ca3e0772e61fd769b33d0255b76f5ab58382a9c6bf55a24a6e8a2558
data/README.md CHANGED
@@ -161,7 +161,7 @@ NostrZap::Error # base
161
161
  ```sh
162
162
  cd gems/nostr-zap
163
163
  bundle install
164
- bundle exec rspec # 86 specs
164
+ bundle exec rspec # 99 specs
165
165
  bundle exec rubocop
166
166
  ```
167
167
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NostrZap
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.4'
5
5
  end
@@ -11,7 +11,7 @@ module NostrZap
11
11
  # - Have kind = 9734
12
12
  # - Have a valid Schnorr signature (when verification is enabled)
13
13
  # - Have a 'p' tag with the recipient's pubkey
14
- # - Have a 'relays' tag with at least one safe relay URL
14
+ # - Have a 'relays' tag with at least one relay URL
15
15
  #
16
16
  # @example
17
17
  # validator = NostrZap::Zap::RequestValidator.new(json_string)
@@ -138,9 +138,7 @@ module NostrZap
138
138
  urls = relays_tag&.slice(1..)&.compact
139
139
  return fail_with("Missing required 'relays' tag with at least one relay URL") if urls.nil? || urls.empty?
140
140
 
141
- urls.all? do |url|
142
- (error = RelayUrlValidator.validate(url, check_private: false)) ? fail_with(error) : true
143
- end
141
+ true
144
142
  end
145
143
 
146
144
  def event_id_valid?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nostr-zap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Zykov