Permalink
Browse files

swaps jewelers gem creation process for bundlers

adds newly created Gemfile.lock and gemspec
adds lib/redis-ui/version.rb
  • Loading branch information...
1 parent ba01b7c commit bee16eefa62c4b0d9a9126a8eb40ecfc2a98f1a6 @jwelshiv committed May 24, 2011
Showing with 56 additions and 172 deletions.
  1. +1 −1 .gitignore
  2. +3 −5 Gemfile
  3. +22 −15 Gemfile.lock
  4. +1 −68 Rakefile
  5. +5 −0 lib/redis-ui/version.rb
  6. +24 −83 redis-ui.gemspec
View
@@ -1,3 +1,3 @@
.bundle
.DS_Store
-pkg/*
+pkg/**
View
@@ -1,5 +1,3 @@
-source "http://rubygems.org"
-gem 'jeweler'
-gem 'redis'
-gem 'sinatra'
-gem 'rcov'
+source :rubygems
+
+gemspec
View
@@ -1,25 +1,32 @@
+PATH
+ remote: .
+ specs:
+ redis-ui (0.0.1)
+ json
+ redis
+ redis-namespace
+ sinatra
+ sinatra-respond_to
+
GEM
remote: http://rubygems.org/
specs:
- git (1.2.5)
- jeweler (1.5.2)
- bundler (~> 1.0.0)
- git (>= 1.2.5)
- rake
- rack (1.2.2)
- rake (0.8.7)
- rcov (0.9.9)
- redis (2.1.1)
- sinatra (1.2.0)
+ bacon (1.1.0)
+ json (1.5.1)
+ rack (1.3.0)
+ redis (2.2.0)
+ redis-namespace (1.0.3)
+ redis (< 3.0.0)
+ sinatra (1.2.6)
rack (~> 1.1)
tilt (>= 1.2.2, < 2.0)
- tilt (1.2.2)
+ sinatra-respond_to (0.7.0)
+ sinatra (~> 1.2)
+ tilt (1.3.1)
PLATFORMS
ruby
DEPENDENCIES
- jeweler
- rcov
- redis
- sinatra
+ bacon
+ redis-ui!
View
@@ -1,69 +1,2 @@
-require 'rubygems'
require 'bundler'
-begin
- Bundler.setup(:default, :development)
-rescue Bundler::BundlerError => e
- $stderr.puts e.message
- $stderr.puts "Run `bundle install` to install missing gems"
- exit e.status_code
-end
-require 'rake'
-
-require 'jeweler'
-Jeweler::Tasks.new do |gem|
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
- gem.name = "redis-ui"
- gem.homepage = "http://github.com/jwelshiv/redis-ui"
- gem.license = "MIT"
- gem.summary = %Q{Sinatra backed redis ui}
- gem.description = %Q{RedisUI is a redis db web accessible viewer}
- gem.email = "james@supermatter.com"
- gem.authors = ["jwelshiv"]
-
- gem.add_development_dependency "bacon", ">= 0"
- gem.add_runtime_dependency 'redis', ">= 0"
- gem.add_runtime_dependency 'sinatra', ">= 1"
- gem.add_runtime_dependency 'json', ">= 0"
-
- gem.files.include 'lib/*.rb'
- gem.files.include 'lib/views/*.erb'
- gem.files.include 'lib/static/stylesheets/*.css'
- gem.files.include 'lib/static/javascript/*.js'
-
- gem.executables = ['redis-ui']
-end
-Jeweler::RubygemsDotOrgTasks.new
-
-require 'rake/testtask'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
-end
-
-begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
- end
-rescue LoadError
- task :rcov do
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
- end
-end
-
-task :default => :test
-
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "Anyhub #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
-Jeweler::GemcutterTasks.new
+Bundler::GemHelper.install_tasks
View
@@ -0,0 +1,5 @@
+module Redis
+ module Ui
+ VERSION = "0.1.1"
+ end
+end
View
@@ -1,89 +1,30 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "redis-ui/version"
Gem::Specification.new do |s|
- s.name = %q{redis-ui}
- s.version = "0.1.2"
+ s.name = "redis-ui"
+ s.version = Redis::Ui::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["supermatter", "jwelshiv"]
+ s.email = ["james@supermatter.com"]
+ s.homepage = "http://github.com/jwelshiv/redis-ui"
+ s.summary = "Sinatra backed redis ui"
+ s.description = "View and manage redis store"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["jwelshiv"]
- s.date = %q{2011-05-23}
- s.default_executable = %q{redis-ui}
- s.description = %q{RedisUI is a redis db web accessible viewer}
- s.email = %q{james@supermatter.com}
- s.executables = ["redis-ui"]
- s.extra_rdoc_files = [
- "LICENSE.txt",
- "README.rdoc"
- ]
- s.files = [
- "Gemfile",
- "Gemfile.lock",
- "LICENSE.txt",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "bin/redis-ui",
- "config.ru",
- "lib/redis-ui.rb",
- "lib/static/js/.DS_Store",
- "lib/static/js/app/app.js",
- "lib/static/js/app/models.js",
- "lib/static/js/lib/backbone.js",
- "lib/static/js/lib/underscore.js",
- "lib/static/stylesheets/redis-ui.css",
- "lib/views/index.html.erb",
- "lib/views/layout.html.erb",
- "lib/views/show.html.erb",
- "pkg/redis-ui-0.1.0.gem",
- "pkg/redis-ui-0.1.1.gem",
- "redis-ui.gemspec",
- "test/helper.rb",
- "test/test_redis_ui.rb"
- ]
- s.homepage = %q{http://github.com/jwelshiv/redis-ui}
+ s.rubyforge_project = "redis-ui"
+
s.licenses = ["MIT"]
+ 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.rubygems_version = %q{1.4.1}
- s.summary = %q{Sinatra backed redis ui}
- s.test_files = [
- "test/helper.rb",
- "test/test_redis_ui.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<jeweler>, [">= 0"])
- s.add_runtime_dependency(%q<redis>, [">= 0"])
- s.add_runtime_dependency(%q<sinatra>, [">= 0"])
- s.add_runtime_dependency(%q<rcov>, [">= 0"])
- s.add_development_dependency(%q<bacon>, [">= 0"])
- s.add_runtime_dependency(%q<redis>, [">= 0"])
- s.add_runtime_dependency(%q<sinatra>, [">= 1"])
- s.add_runtime_dependency(%q<json>, [">= 0"])
- else
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<redis>, [">= 0"])
- s.add_dependency(%q<sinatra>, [">= 0"])
- s.add_dependency(%q<rcov>, [">= 0"])
- s.add_dependency(%q<bacon>, [">= 0"])
- s.add_dependency(%q<redis>, [">= 0"])
- s.add_dependency(%q<sinatra>, [">= 1"])
- s.add_dependency(%q<json>, [">= 0"])
- end
- else
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<redis>, [">= 0"])
- s.add_dependency(%q<sinatra>, [">= 0"])
- s.add_dependency(%q<rcov>, [">= 0"])
- s.add_dependency(%q<bacon>, [">= 0"])
- s.add_dependency(%q<redis>, [">= 0"])
- s.add_dependency(%q<sinatra>, [">= 1"])
- s.add_dependency(%q<json>, [">= 0"])
- end
-end
-
+
+ s.add_development_dependency 'bacon'
+
+ s.add_runtime_dependency 'json'
+ s.add_runtime_dependency 'redis'
+ s.add_runtime_dependency 'redis-namespace'
+ s.add_runtime_dependency 'sinatra'
+ s.add_runtime_dependency 'sinatra-respond_to'
+end

0 comments on commit bee16ee

Please sign in to comment.