Skip to content
This repository has been archived by the owner on Dec 27, 2019. It is now read-only.

Convert to gem #11

Open
wants to merge 5 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
12 changes: 12 additions & 0 deletions jekyll_get.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Gem::Specification.new do |s|
s.name = 'jekyll_get'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be jekyll-get?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm suggesting renaming the main module of this gem to JekyllGet (was Jekyll_Get). Classes and modules in Ruby use MixedCase and have no underscores. Naming the gem jekyll_get was a result of this decision, per Rubygems naming recommendations: http://guides.rubygems.org/name-your-gem/

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation.

s.version = '0.1.0'
s.date = '2016-06-01'
s.summary = 'Ruby gem to download data from external JSON sources to use in generating a site'
s.description = 'Downloads data from an external JSON sources'
s.authors = ['Example Dev']
s.email = '[email protected]'
s.files = ['lib/jekyll_get.rb']
s.homepage = 'http://rubygems.org/gems/jekyll_get'
s.license = 'CC0-1.0'
end
2 changes: 1 addition & 1 deletion lib/jekyll_get.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'hash-joiner'
require 'open-uri'

module Jekyll_Get
module JekyllGet
class Generator < Jekyll::Generator
safe true
priority :highest
Expand Down