-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
5 changed files
with
61 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/pkg/*.gem |
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,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 |
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,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 |
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,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 | ||
|