Permalink
Browse files

removed gemspec generation and added static gemspec

  • Loading branch information...
1 parent 511d568 commit 4830b023d1ae763177369cd15f8e5582bd96a2df @HasAndries committed Sep 13, 2011
Showing with 42 additions and 577 deletions.
  1. +3 −0 .gitignore
  2. +5 −5 Gemfile
  3. +11 −52 Rakefile
  4. +21 −52 ananke.gemspec
  5. BIN public/favicon.ico
  6. +0 −461 spec/nice_formatter.rb
  7. +2 −7 spec/spec_helper.rb
View
@@ -0,0 +1,3 @@
+.idea
+Gemfile.lock
+results
View
10 Gemfile
@@ -1,12 +1,12 @@
source "http://rubygems.org"
gem "colored", "~>1.2"
-gem "json", "~>1.5.1"
+gem "json", "~>1.6.0"
gem "sinatra", "~>1.2.6"
group :development, :test do
- gem "rack-test", "~>0.6.0"
- gem "rake", "~>0.8.7"
- gem "rspec", "~>2.5.0"
- gem 'simplecov', '~>0.4.2'
+ gem "rack-test", "~>0.6.1"
+ gem "rake", "~>0.9.2"
+ gem "rspec", "~>2.6.0"
+ gem 'simplecov', '~>0.5.2'
end
View
@@ -1,64 +1,23 @@
require 'rubygems'
require "rake"
-require "rake/rdoctask"
-require 'rake/gempackagetask'
require "rspec/core/rake_task"
-require "./lib/sinatra/ananke"
-require "./lib/sinatra/version"
-require File.expand_path("../lib/sinatra/version", __FILE__)
-gemspec = Gem::Specification.new do |gem|
- gem.name = "sinatra-rest"
- gem.version = Ananke::VERSION
- gem.platform = Gem::Platform::RUBY
- gem.authors = ["Andries Coetzee"]
- gem.email = "andriesc@mixtel.com"
- gem.summary = "#{gem.name}-#{Ananke::VERSION}"
- gem.description = "Full REST Implementation on top of Sinatra"
- gem.homepage = "https://github.com/HasAndries/MiXREST"
-
- gem.rubygems_version = "1.5.0"
-
- gem.files = FileList['lib/**/*', 'spec/**/*', 'Gemfile', 'Rakefile', 'README.rdoc']
- gem.test_files = FileList['spec/**/*']
- gem.extra_rdoc_files = [ "README.rdoc" ]
- gem.rdoc_options = ["--charset=UTF-8"]
- gem.require_path = "lib"
-
- gem.post_install_message = %Q{**************************************************
-
- Thank you for installing #{gem.summary}
-
- Please be sure to look at README.rdoc to see what might have changed
- since the last release and how to use this GEM.
-
-**************************************************
-}
- gem.add_dependency "colored", "~> 1.2"
- gem.add_dependency "json", "~> 1.5.1"
- gem.add_dependency "sinatra", "~> 1.2.1"
-
- gem.add_development_dependency "rack-test", "~> 0.5.7"
- gem.add_development_dependency "rake", "~> 0.8.7"
- gem.add_development_dependency "rspec", "~> 2.5.0"
- gem.add_development_dependency "simplecov", "~> 0.4.2"
-end
-
-Rake::GemPackageTask.new(gemspec) do |pkg|
- pkg.need_tar = true
+#Building Gem and publishing
+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
+require "bundler/version"
+task :build do
+ system "gem build ananke.gemspec"
end
-desc %{Build the gemspec file.}
-task :gemspec do
- gemspec.validate
- File.open("#{gemspec.name}.gemspec", 'w'){|f| f.write gemspec.to_ruby }
+task :release => :build do
+ system "gem push ananke-#{Ananke::VERSION}"
end
-#===========================RAKE TASKS=========================
-def make_task(name, docs = false, path = 'spec')
+#Testing tasks
+def make_task(name, html = false, path = 'spec')
options = ["-c", "-r ./spec/spec_helper.rb"]
- options << "-f progress" if !docs
- options << "-f NiceFormatter" << "-o results/test_results.htm" << "-r ./spec/nice_formatter.rb" if docs
+ options << "-f progress" if !html
+ options << "-o results/test_results.htm" if html
pattern = path.end_with?('.rb') ? path : "#{path}/**/*_spec.rb"
RSpec::Core::RakeTask.new(name) do |t|
View
@@ -1,59 +1,28 @@
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "sinatra/version"
Gem::Specification.new do |s|
- s.name = %q{ananke}
- s.version = "1.1.1"
+ s.name = "ananke"
+ s.version = Ananke::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Andries Coetzee"]
+ s.email = ["andriesc@lime-square.net"]
+ s.homepage = "http://github.com/hasandries/ananke"
+ s.summary = "The Awesome ReST framework"
+ s.description = "Ananke enables a new kind of ReST implementation"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Andries Coetzee"]
- s.date = %q{2011-03-28}
- s.description = %q{Full REST Implementation on top of Sinatra}
- s.email = %q{andriesc@mixtel.com}
- s.extra_rdoc_files = ["README.rdoc"]
- s.files = ["lib/ananke.rb", "lib/version.rb", "lib/ananke/utf8.rb", "lib/ananke/settings.rb", "lib/ananke/linking.rb", "lib/ananke/routing.rb", "lib/ananke/validation.rb", "lib/ananke/helpers.rb", "lib/ananke/serialize.rb", "spec/dumping.rb", "spec/cov_adapter.rb", "spec/lib/ananke_spec.rb", "spec/lib/validation_spec.rb", "spec/lib/out_spec.rb", "spec/lib/json_spec.rb", "spec/lib/serialize_spec.rb", "spec/lib/link_to_spec.rb", "spec/lib/route_for_spec.rb", "spec/lib/error_spec.rb", "spec/lib/linked_spec.rb", "spec/spec_helper.rb", "spec/call_chain.rb", "spec/nice_formatter.rb", "Gemfile", "Rakefile", "README.rdoc"]
- s.homepage = %q{https://github.com/HasAndries/ananke}
- s.post_install_message = %q{**************************************************
+ s.required_rubygems_version = "~> 1.8.10"
- Thank you for installing ananke-1.1.1
+ s.add_dependency "colored", '~>1.2'
+ s.add_dependency "json", '~>1.6.0'
+ s.add_dependency "sinatra", '~>1.2.6'
+
+ s.add_development_dependency "rack-test", '~>0.6.1'
+ s.add_development_dependency "rake", '~>0.9.2'
+ s.add_development_dependency "rspec", '~>2.6.0'
+ s.add_development_dependency "simplecov", '~>0.5.2'
- Please be sure to look at README.rdoc to see what might have changed
- since the last release and how to use this GEM.
-
-**************************************************
-}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.5.0}
- s.summary = %q{ananke-1.1.1}
- s.test_files = ["spec/dumping.rb", "spec/cov_adapter.rb", "spec/lib/ananke_spec.rb", "spec/lib/validation_spec.rb", "spec/lib/out_spec.rb", "spec/lib/json_spec.rb", "spec/lib/serialize_spec.rb", "spec/lib/link_to_spec.rb", "spec/lib/route_for_spec.rb", "spec/lib/error_spec.rb", "spec/lib/linked_spec.rb", "spec/spec_helper.rb", "spec/call_chain.rb", "spec/nice_formatter.rb"]
-
- if s.respond_to? :specification_version then
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<sinatra>, ["~> 1.1.2"])
- s.add_runtime_dependency(%q<colored>, ["~> 1.2"])
- s.add_runtime_dependency(%q<json>, ["~> 1.5.1"])
- s.add_development_dependency(%q<rack-test>, ["~> 0.5.6"])
- s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
- s.add_development_dependency(%q<rspec>, ["~> 2.5.0"])
- s.add_development_dependency(%q<simplecov>, ["~> 0.3.9"])
- else
- s.add_dependency(%q<sinatra>, ["~> 1.1.2"])
- s.add_dependency(%q<colored>, ["~> 1.2"])
- s.add_dependency(%q<json>, ["~> 1.5.1"])
- s.add_dependency(%q<rack-test>, ["~> 0.5.6"])
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
- s.add_dependency(%q<rspec>, ["~> 2.5.0"])
- s.add_dependency(%q<simplecov>, ["~> 0.3.9"])
- end
- else
- s.add_dependency(%q<sinatra>, ["~> 1.1.2"])
- s.add_dependency(%q<colored>, ["~> 1.2"])
- s.add_dependency(%q<json>, ["~> 1.5.1"])
- s.add_dependency(%q<rack-test>, ["~> 0.5.6"])
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
- s.add_dependency(%q<rspec>, ["~> 2.5.0"])
- s.add_dependency(%q<simplecov>, ["~> 0.3.9"])
- end
+ s.files = Dir.glob("lib/**/*") + %w(README.rdoc)
+ s.require_path = 'lib'
end
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit 4830b02

Please sign in to comment.