-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc42927
commit 6e01c43
Showing
13 changed files
with
48 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.7.5 | ||
3.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative "lib/grist/ruby/version" | ||
require_relative "lib/grist/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "grist-ruby" | ||
spec.name = "grist-grist" | ||
spec.version = Grist::Ruby::VERSION | ||
spec.authors = ["quentinchampenois"] | ||
spec.email = ["[email protected]"] | ||
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec| | |
spec.description = "Use this gem to interact with the a Grist API from your Ruby application." | ||
spec.homepage = "https://github.com/quentinchampenois/grist-ruby" | ||
spec.license = "MIT" | ||
spec.required_ruby_version = ">= 2.6.0" | ||
spec.required_ruby_version = ">= 3.2.0" | ||
|
||
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative "grist/version" | ||
|
||
module Grist | ||
class Error < StandardError; end | ||
# Your code goes here... | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Grist | ||
class Client | ||
attr_accessor :base_url | ||
|
||
BASE_URL = "https://api.getgrist.com" | ||
|
||
def initialize(url: nil) | ||
@base_url = url || BASE_URL | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require "spec_helper" | ||
|
||
RSpec.describe Grist::Client do | ||
subject { described_class.new } | ||
|
||
describe "#initialize" do | ||
it "initializes with a default base_url" do | ||
expect(subject.base_url).to eq("https://api.getgrist.com") | ||
end | ||
|
||
it "initializes with a custom base_url" do | ||
client = described_class.new(url: "https://api.example.com") | ||
expect(client.base_url).to eq("https://api.example.com") | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters