Skip to content

Updates, New APIs and Active Model #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
rubocop -A
Adds string literal comments
  • Loading branch information
danielmorrison committed Apr 5, 2025
commit bda095a1dc80f3fd22e6cb594f7928e1c2e48db0
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

# Specify your gem's dependencies in spooky.gemspec
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
require "rubocop/rake_task"
require "rspec/core/rake_task"
Expand Down
1 change: 1 addition & 0 deletions bin/console
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

require "bundler/setup"
require "spooky"
Expand Down
2 changes: 2 additions & 0 deletions lib/spooky.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spooky/version"

require "spooky/is_resource"
Expand Down
2 changes: 2 additions & 0 deletions lib/spooky/author.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Spooky
class Author
ATTRIBUTES = %w[
Expand Down
2 changes: 2 additions & 0 deletions lib/spooky/client.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "http"
require "active_support/core_ext/object/blank"
require "active_support/core_ext/string/inflections"
Expand Down
2 changes: 2 additions & 0 deletions lib/spooky/is_resource.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module IsResource
def self.included(base)
base.class_eval do
Expand Down
2 changes: 2 additions & 0 deletions lib/spooky/page.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Spooky
class Page
ATTRIBUTES = %w[
Expand Down
2 changes: 2 additions & 0 deletions lib/spooky/post.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Spooky
class Post
ATTRIBUTES = %w[
Expand Down
2 changes: 2 additions & 0 deletions lib/spooky/tag.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Spooky
class Tag
ATTRIBUTES = %w[
Expand Down
4 changes: 3 additions & 1 deletion lib/spooky/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Spooky
VERSION = "2.0.0".freeze
VERSION = "2.0.0"
end
2 changes: 2 additions & 0 deletions spec/client_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

ENV["GHOST_API_URL"] = "https://spec.test"
Expand Down
2 changes: 2 additions & 0 deletions spec/fixtures.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

FIXTURES = {
simple_posts: JSON.parse(
<<~'POST'
Expand Down
2 changes: 2 additions & 0 deletions spec/posts_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"
require "fixtures"

Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

ENV["GHOST_API_URL"] = "https://spec.test"
ENV["GHOST_CONTENT_API_KEY"] = "abc123"

Expand Down
2 changes: 2 additions & 0 deletions spec/spooky_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "spec_helper"

describe Spooky do
Expand Down
2 changes: 2 additions & 0 deletions spooky.gemspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "spooky/version"
Expand Down