Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updates gemspec stuff to modern bundler practices

  • Loading branch information...
commit 86fe95c4947ca9a0cc07a24133fb89c5d2b8ecdd 1 parent a6884a8
@elia elia authored
View
4 .gitignore
@@ -1,3 +1,7 @@
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
.DS_Store
*.swp
*.swo
View
19 Gemfile
@@ -1,21 +1,4 @@
source "http://rubygems.org"
-# Declare your gem's dependencies in web_app_theme.gemspec.
-# Bundler will treat runtime dependencies like base dependencies, and
-# development dependencies will be added by default to the :development group.
+# Specify your gem's dependencies in web-app-theme.gemspec
gemspec
-
-gem "rspec-rails"
-gem "rspec"
-gem "cucumber"
-gem "cucumber-rails"
-gem "aruba"
-gem "sqlite3"
-
-# Declare any dependencies that are still in development here instead of in
-# your gemspec. These might include edge Rails or gems from your path or
-# Git. Remember to move these dependencies to your gemspec before releasing
-# your gem to rubygems.org.
-
-# To use debugger
-# gem 'ruby-debug19', :require => 'ruby-debug'
View
159 Gemfile.lock
@@ -1,159 +0,0 @@
-PATH
- remote: .
- specs:
- web-app-theme (0.8.0)
- rails (~> 3.1.0.rc6)
- thor (~> 0.14)
-
-GEM
- remote: http://rubygems.org/
- specs:
- actionmailer (3.1.0.rc6)
- actionpack (= 3.1.0.rc6)
- mail (~> 2.3.0)
- actionpack (3.1.0.rc6)
- activemodel (= 3.1.0.rc6)
- activesupport (= 3.1.0.rc6)
- builder (~> 3.0.0)
- erubis (~> 2.7.0)
- i18n (~> 0.6)
- rack (~> 1.3.2)
- rack-cache (~> 1.0.2)
- rack-mount (~> 0.8.1)
- rack-test (~> 0.6.0)
- sprockets (~> 2.0.0.beta.12)
- activemodel (3.1.0.rc6)
- activesupport (= 3.1.0.rc6)
- bcrypt-ruby (~> 2.1.4)
- builder (~> 3.0.0)
- i18n (~> 0.6)
- activerecord (3.1.0.rc6)
- activemodel (= 3.1.0.rc6)
- activesupport (= 3.1.0.rc6)
- arel (~> 2.2.1)
- tzinfo (~> 0.3.29)
- activeresource (3.1.0.rc6)
- activemodel (= 3.1.0.rc6)
- activesupport (= 3.1.0.rc6)
- activesupport (3.1.0.rc6)
- multi_json (~> 1.0)
- arel (2.2.1)
- aruba (0.4.6)
- bcat (>= 0.6.1)
- childprocess (>= 0.2.0)
- cucumber (>= 1.0.2)
- rdiscount (>= 1.6.8)
- rspec (>= 2.6.0)
- bcat (0.6.1)
- rack (~> 1.0)
- bcrypt-ruby (2.1.4)
- builder (3.0.0)
- capybara (1.0.1)
- mime-types (>= 1.16)
- nokogiri (>= 1.3.3)
- rack (>= 1.0.0)
- rack-test (>= 0.5.4)
- selenium-webdriver (~> 2.0)
- xpath (~> 0.1.4)
- childprocess (0.2.2)
- ffi (~> 1.0.6)
- cucumber (1.0.2)
- builder (>= 2.1.2)
- diff-lcs (>= 1.1.2)
- gherkin (~> 2.4.5)
- json (>= 1.4.6)
- term-ansicolor (>= 1.0.5)
- cucumber-rails (1.0.2)
- capybara (>= 1.0.0)
- cucumber (~> 1.0.0)
- nokogiri (>= 1.4.6)
- diff-lcs (1.1.2)
- erubis (2.7.0)
- ffi (1.0.9)
- gherkin (2.4.16)
- json (>= 1.4.6)
- hike (1.2.1)
- i18n (0.6.0)
- json (1.5.3)
- json_pure (1.5.3)
- mail (2.3.0)
- i18n (>= 0.4.0)
- mime-types (~> 1.16)
- treetop (~> 1.4.8)
- mime-types (1.16)
- multi_json (1.0.3)
- nokogiri (1.5.0)
- polyglot (0.3.2)
- rack (1.3.2)
- rack-cache (1.0.2)
- rack (>= 0.4)
- rack-mount (0.8.2)
- rack (>= 1.0.0)
- rack-ssl (1.3.2)
- rack
- rack-test (0.6.1)
- rack (>= 1.0)
- rails (3.1.0.rc6)
- actionmailer (= 3.1.0.rc6)
- actionpack (= 3.1.0.rc6)
- activerecord (= 3.1.0.rc6)
- activeresource (= 3.1.0.rc6)
- activesupport (= 3.1.0.rc6)
- bundler (~> 1.0)
- railties (= 3.1.0.rc6)
- railties (3.1.0.rc6)
- actionpack (= 3.1.0.rc6)
- activesupport (= 3.1.0.rc6)
- rack-ssl (~> 1.3.2)
- rake (>= 0.8.7)
- rdoc (~> 3.4)
- thor (~> 0.14.6)
- rake (0.9.2)
- rdiscount (1.6.8)
- rdoc (3.9.4)
- rspec (2.6.0)
- rspec-core (~> 2.6.0)
- rspec-expectations (~> 2.6.0)
- rspec-mocks (~> 2.6.0)
- rspec-core (2.6.4)
- rspec-expectations (2.6.0)
- diff-lcs (~> 1.1.2)
- rspec-mocks (2.6.0)
- rspec-rails (2.6.1)
- actionpack (~> 3.0)
- activesupport (~> 3.0)
- railties (~> 3.0)
- rspec (~> 2.6.0)
- rubyzip (0.9.4)
- selenium-webdriver (2.5.0)
- childprocess (>= 0.2.1)
- ffi (>= 1.0.7)
- json_pure
- rubyzip
- sprockets (2.0.0.beta.15)
- hike (~> 1.2)
- rack (~> 1.0)
- tilt (!= 1.3.0, ~> 1.1)
- sqlite3 (1.3.4)
- term-ansicolor (1.0.6)
- thor (0.14.6)
- tilt (1.3.3)
- treetop (1.4.10)
- polyglot
- polyglot (>= 0.3.1)
- tzinfo (0.3.29)
- xpath (0.1.4)
- nokogiri (~> 1.3)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- aruba
- bundler (~> 1.0.0)
- cucumber
- cucumber-rails
- rspec
- rspec-rails
- sqlite3
- web-app-theme!
View
24 Rakefile
@@ -1,23 +1 @@
-#!/usr/bin/env rake
-begin
- require 'bundler/setup'
-rescue LoadError
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
-end
-begin
- require 'rdoc/task'
-rescue LoadError
- require 'rdoc/rdoc'
- require 'rake/rdoctask'
- RDoc::Task = Rake::RDocTask
-end
-
-RDoc::Task.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'TestingGem'
- rdoc.options << '--line-numbers'
- rdoc.rdoc_files.include('README.rdoc')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
-Bundler::GemHelper.install_tasks
+require 'bundler/gem_tasks'
View
2  lib/web-app-theme.rb
@@ -1,3 +1,5 @@
+require 'web-app-theme/version'
+
module WebAppTheme
class Engine < Rails::Engine
View
2  lib/web-app-theme/version.rb
@@ -1,3 +1,3 @@
module WebAppTheme
- VERSION = "0.8.0"
+ VERSION = '0.8.0'
end
View
55 web-app-theme.gemspec
@@ -1,34 +1,35 @@
-$:.push File.expand_path("../lib", __FILE__)
+# coding: utf-8
+$:.push File.expand_path('../lib', __FILE__)
+require 'web-app-theme/version'
-# Maintain your gem's version:
-require "web-app-theme/version"
+Gem::Specification.new do |s|
+ s.name = 'web-app-theme'
+ s.version = WebAppTheme::VERSION
+ s.authors = ['Andrea Franz']
+ s.email = ['andrea@gravityblast.com']
+ s.homepage = 'http://github.com/pilu/web-app-theme'
+ s.summary = %q{Web app theme generator}
+ s.description = %q{Web app theme generator for rails projects}
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
-# -*- encoding: utf-8 -*-
+ s.rubyforge_project = 'web-app-theme'
-Gem::Specification.new do |s|
- s.name = "web-app-theme"
- s.version = WebAppTheme::VERSION
- s.authors = ["Andrea Franz"]
- s.date = "2011-08-28"
- s.description = "Web app theme generator for rails projects"
- s.email = "andrea@gravityblast.com"
- s.homepage = "http://github.com/pilu/web-app-theme"
- s.require_path = "lib"
- s.summary = "Web app theme generator"
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ['lib']
+
+ s.required_rubygems_version = '>= 1.3.6'
- s.test_files = Dir["spec/**/*", "features/**/*"]
- s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"]
+ s.add_runtime_dependency 'rails', '~> 3.1.0.rc6'
+ s.add_runtime_dependency 'thor', '~> 0.14'
- s.required_rubygems_version = ">= 1.3.6"
- s.add_dependency "rails" , "~> 3.1.0.rc6"
- s.add_dependency "thor" , "~> 0.14"
- s.add_development_dependency "bundler" , "~> 1.0.0"
+ s.add_development_dependency 'bundler', '~> 1.0.0'
+ s.add_development_dependency 'rspec-rails'
+ s.add_development_dependency 'rspec'
+ s.add_development_dependency 'cucumber'
+ s.add_development_dependency 'cucumber-rails'
+ s.add_development_dependency 'aruba'
+ s.add_development_dependency 'sqlite3'
- s.extra_rdoc_files = [
- "MIT-LICENSE",
- "README.md"
- ]
+ s.extra_rdoc_files = %w[MIT-LICENSE README.md]
end
Please sign in to comment.
Something went wrong with that request. Please try again.