opengraphplus 0.1.15 → 0.1.17

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: 36436838c92a8e927fccd2f81c56cdaa0c77685b763ae7a942c3ebfdbd3740cf
4
- data.tar.gz: 3bc5a59c5d6f787effcec54b7727761d999ea04786a9dcf6506d1686f99368e0
3
+ metadata.gz: d17e213c6ea972ade5d2f27a702a57f5978bbc53760c1999e0e0bc85ddb0cfac
4
+ data.tar.gz: 4804c7fde8ec22a23280b6eff6b69e770f1e81283c3c20cc6fa7685f91cacba7
5
5
  SHA512:
6
- metadata.gz: cb42ce974d15655f9320209a5f8ac669c0cc96624c9dd0b515a739f9de00ff10576e430a0e44f1b9d56b1e340ccc30cefbd9b318a09d9948d1ead093059ebb0c
7
- data.tar.gz: 6fb376cccc4f2d52f5659aee2a5c31d26b840f219ebaa8eb270a3c8f8246cb1f11dc03857943b19729ce00fe377b4eb1af9c5c62fe0f4728b3045a7131f7001e
6
+ metadata.gz: 72e768c5282c52d10c5795bc5007868da806e32365afbd476a4c40267b50dcadb56a2ae6bc53e284c42faac753be354629cd42bfc0c7d6839d414c8c8cc226e5
7
+ data.tar.gz: 18533ce1b5e3770d6efd06ff65d96ef426d39a13473ed086b097c0ebc72248f0ee5d97ffb54b4dd4c915dc4febeb0239bd724e930814f2ada21e351ed668dc0c
@@ -4,11 +4,11 @@ module OpenGraphPlus
4
4
  class Configuration
5
5
  DEFAULT_URL = "https://opengraphplus.com"
6
6
 
7
- attr_accessor :url
7
+ attr_accessor :api_url
8
8
 
9
9
  def initialize
10
10
  @api_key = nil
11
- @url = DEFAULT_URL
11
+ @api_url = DEFAULT_URL
12
12
  end
13
13
 
14
14
  def api_key
@@ -18,7 +18,7 @@ module OpenGraphPlus
18
18
  end
19
19
  end
20
20
 
21
- def open_graph_plus_image_url(source_url = request.url)
21
+ def open_graph_plus_image_url(source_url = request.path)
22
22
  OpenGraphPlus.image_url(source_url)
23
23
  end
24
24
 
@@ -26,7 +26,6 @@ module OpenGraphPlus
26
26
 
27
27
  def set_default_open_graph
28
28
  open_graph.type = "website"
29
- open_graph.url = request.url
30
29
  end
31
30
 
32
31
  def set_default_open_graph_image
@@ -24,7 +24,6 @@ module OpenGraphPlus
24
24
  def default_open_graph
25
25
  Namespace::Root.new.tap do |root|
26
26
  root.type = "website"
27
- root.url = request.url if request
28
27
  end
29
28
  end
30
29
  end
@@ -8,7 +8,7 @@ module OpenGraphPlus
8
8
  attr_reader :base
9
9
  alias :base_url :base
10
10
 
11
- def initialize(url: OpenGraphPlus.configuration.url)
11
+ def initialize(url: OpenGraphPlus.configuration.api_url)
12
12
  @base = URI.parse(url)
13
13
  end
14
14
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenGraphPlus
4
- VERSION = "0.1.15"
4
+ VERSION = "0.1.17"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opengraphplus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-01-23 00:00:00.000000000 Z
10
+ date: 2026-02-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport