Skip to content

Commit

Permalink
Gemspecs
Browse files Browse the repository at this point in the history
  • Loading branch information
foca committed Sep 26, 2014
1 parent 9cdd8be commit 218fe6f
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/pkg/*.gem
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
.PHONY: test gems
.PHONY: test deps gems release

test:
cutest -r ./test/helper.rb ./test/**/*_test.rb

gems:
deps:
dep install

gems:
for gem in granola*.gemspec; do gem build $$gem; done
mv *.gem pkg/

release:
for gem in pkg/*.gem; do gem push $$gem; done
23 changes: 23 additions & 0 deletions granola-schema.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
require "./lib/granola/version"

Gem::Specification.new do |s|
s.name = "granola-schema"
s.licenses = ["MIT"]
s.version = Granola::VERSION
s.summary = "Granola::Schema adds JSON schema support to Granola"
s.description = "Handles JSON Schema support for Granola serializers."
s.authors = ["Nicolas Sanguinetti"]
s.email = ["contacto@nicolassanguinetti.info"]
s.homepage = "http://github.com/foca/granola"

s.files = Dir[
"LICENSE",
"README.md",
"lib/granola/schema.rb",
]

s.add_dependency "granola", "= #{Granola::VERSION}"
s.add_dependency "json-schema", "~> 2.2"

s.add_development_dependency "cutest", "~> 1.2"
end
28 changes: 28 additions & 0 deletions granola.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
require "./lib/granola/version"

Gem::Specification.new do |s|
s.name = "granola"
s.licenses = ["MIT"]
s.version = Granola::VERSION
s.summary = "Granola: JSON Serializers for your app."
s.description = "Granola is a very simple and fast library to turn your models to JSON"
s.authors = ["Nicolas Sanguinetti"]
s.email = ["contacto@nicolassanguinetti.info"]
s.homepage = "http://github.com/foca/granola"

s.files = Dir[
"LICENSE",
"README.md",
"lib/granola.rb",
"lib/granola/version.rb",
"lib/granola/helper.rb",
"lib/granola/rack.rb",
"lib/granola/caching.rb",
]

s.add_dependency "multi_json", "~> 1.10"

s.add_development_dependency "cutest", "~> 1.2"
s.add_development_dependency "rack", "~> 1.5"
end

Empty file added pkg/.keep
Empty file.

0 comments on commit 218fe6f

Please sign in to comment.