Skip to content
Browse files

+ generate the gem without jeweler

  • Loading branch information...
1 parent 5a6e008 commit 8b66d9ccb12cd2c2c7bf91cd27cfc6d480414531 @floere committed Apr 10, 2011
Showing with 13 additions and 26 deletions.
  1. +11 −1 gem/Gemfile
  2. +2 −21 gem/Rakefile
  3. +0 −4 gem/VERSION.yml
View
12 gem/Gemfile
@@ -1,4 +1,14 @@
-gem 'activesupport', '>=2.2.0'
+source :gemcutter
+
+gem 'activesupport', '<= 2.3.8'
+gem 'padrino', '= 0.9.15'
+gem 'sinatra', '= 1.0.0'
+
+group :test do
+ gem 'rake'
+ gem 'rspec', '< 2.0.0'
+ gem 'rspec-rails', '< 2.0.0'
+end
# group :padrino do
# gem 'padrino', '>=0.9.14'
View
23 gem/Rakefile
@@ -18,40 +18,21 @@ task :'rails:spec' => [:'rails2:spec'] # TODO Add Rails 3 here
%w|shared padrino rails2|.collect!(&:to_sym).each do |framework|
namespace framework do
-
+
# run with rake spec
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_opts = %w{--colour --format progress --loadby mtime --reverse}
t.spec_files = Dir.glob("spec/#{framework}/**/*_spec.rb")
t.warning = false
end
-
+
# run with rake rcov
Spec::Rake::SpecTask.new(:rcov) do |t|
t.spec_opts = %w{--colour --format progress --loadby mtime --reverse}
t.spec_files = Dir.glob("spec/#{framework}/**/*_spec.rb")
t.warning = false
t.rcov = true
end
-
- end
-end
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gemspec|
- gemspec.name = "view_models"
- gemspec.summary = "A model proxy for Rails views. Helps you keep the representation of a model and the model itself separate."
- gemspec.email = "florian.hanke@gmail.com"
- gemspec.homepage = "http://floere.github.com/view_models"
- gemspec.description = "For Padrino and Rails 2 views. Adds the missing R (Representation) to Rails' MVC. Provides simple proxy functionality for your models, thus helps you keep the model and view representation separate. Define focused helper methods on the (view) model, more quickly understood and more easily testable. Also: Hierarchical rendering for your hierarchical models. So, in a nutshell: Polymorphism not just in the model, but also in the view. Have fun!"
- gemspec.authors = ["Florian Hanke", "Kaspar Schiess", "Niko Dittmann", "Andreas Schacke"]
- gemspec.rdoc_options = ["--inline-source", "--charset=UTF-8"]
- gemspec.files = FileList["lib/*", "lib/{shared,padrino,rails2}/**/*"]
- gemspec.add_dependency 'activesupport', '>=2.2.0' # Padrino and Rails 2 omitted.
- gemspec.add_development_dependency 'rspec', '>=1.2.9'
end
- Jeweler::GemcutterTasks.new
-rescue LoadError => e
- puts "Jeweler not available (#{e}). Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
View
4 gem/VERSION.yml
@@ -1,4 +0,0 @@
----
-:patch: 0
-:major: 2
-:minor: 0

0 comments on commit 8b66d9c

Please sign in to comment.
Something went wrong with that request. Please try again.