Skip to content
This repository has been archived by the owner on Jan 2, 2018. It is now read-only.

Use the HTTPS URL by default #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/gchart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Gchart
include GchartInfo

def self.url(use_ssl = false)
def self.url(use_ssl = true)
if use_ssl
'https://chart.googleapis.com/chart?'
else
Expand Down Expand Up @@ -88,7 +88,7 @@ def initialize(options={})
@grouped = false
@overlapped = false

@use_ssl = false
@use_ssl = true
@encoding = 'simple'
# @max_value = 'auto'
# @min_value defaults to nil meaning zero
Expand Down
4 changes: 2 additions & 2 deletions spec/gchart_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
expect(@chart).to include("chtt=title\nsubtitle")
end

it "should include the Google URL" do
expect(@chart).to include("http://chart.apis.google.com/chart?")
it "should include the HTTPS Google URL" do
expect(@chart).to include("https://chart.googleapis.com/chart?")
end

it "should have a default size" do
Expand Down