Permalink
Browse files

use bundler and rvm

  • Loading branch information...
1 parent bc3b4f9 commit 64206f710403ff4aa6122bd020dbb82e21edc3fb @flyerhzm committed Jan 4, 2012
View
@@ -1,4 +1,25 @@
-pkg/**
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
+
spec/public/images/css_sprite.png
spec/public/stylesheets/*.css
-spec/public/stylesheets/sass/*.sass
+spec/public/stylesheets/*.sass
+spec/public/stylesheets/*.scss
+spec/app/stylesheets/*.css
+spec/app/stylesheets/*.sass
+spec/app/stylesheets/*.scss
View
@@ -0,0 +1,2 @@
+--format nested
+--color
View
@@ -0,0 +1,2 @@
+rvm_gemset_create_on_use_flag=1
+rvm gemset use ruby-1.9.2-p290@css_sprite
View
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in css_sprite.gemspec
+gemspec
View
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Richard Huang
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -1,24 +1,2 @@
-require 'rake'
-require 'spec/rake/spectask'
-require 'jeweler'
-
-desc 'Default: run unit tests.'
-task :default => :spec
-
-desc "Run all specs in spec directory"
-Spec::Rake::SpecTask.new(:spec) do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
-end
-
-Jeweler::Tasks.new do |gemspec|
- gemspec.name = "css_sprite"
- gemspec.summary = "css_sprite is a rails plugin/gem to generate css sprite image automatically."
- gemspec.description = "css_sprite is a rails plugin/gem to generate css sprite image automatically."
- gemspec.email = "flyerhzm@gmail.com"
- gemspec.homepage = "http://github.com/flyerhzm/css_sprite"
- gemspec.authors = ["Richard Huang"]
- gemspec.files.exclude '.gitignore'
- gemspec.add_dependency 'rmagick'
-end
-Jeweler::GemcutterTasks.new
-
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
View
@@ -1,69 +1,21 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/css_sprite/version', __FILE__)
-Gem::Specification.new do |s|
- s.name = %q{css_sprite}
- s.version = "1.4.10"
+Gem::Specification.new do |gem|
+ gem.authors = ["Richard Huang"]
+ gem.email = ["flyerhzm@gmail.com"]
+ gem.description = %q{css_sprite is a rails plugin/gem to generate css sprite image automatically.}
+ gem.summary = %q{css_sprite is a rails plugin/gem to generate css sprite image automatically.}
+ gem.homepage = "https://github.com/flyerhzm/css_sprite"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Richard Huang"]
- s.date = %q{2010-07-13}
- s.description = %q{css_sprite is a rails plugin/gem to generate css sprite image automatically.}
- s.email = %q{flyerhzm@gmail.com}
- s.extra_rdoc_files = [
- "README.textile"
- ]
- s.files = [
- "MIT-LICENSE",
- "README.textile",
- "Rakefile",
- "VERSION",
- "css_sprite.gemspec",
- "lib/automatic.rb",
- "lib/css_sprite.rb",
- "lib/css_sprite/sprite.rb",
- "spec/app/stylesheets/css_sprite.css",
- "spec/app/stylesheets/scss/css_sprite.scss",
- "spec/css_sprite/sprite_spec.rb",
- "spec/public/images/another_css_sprite/no_image",
- "spec/public/images/css_sprite/gmail_logo.png",
- "spec/public/images/css_sprite/gmail_logo_active.png",
- "spec/public/images/css_sprite/hotmail_logo.png",
- "spec/public/images/css_sprite/icons/facebook_icon.png",
- "spec/public/images/css_sprite/icons/facebook_icon_hover.png",
- "spec/public/images/css_sprite/icons/twitter_icon.png",
- "spec/public/images/css_sprite/icons/twitter_icon_hover.png",
- "spec/public/images/css_sprite/logos/gmail_logo.png",
- "spec/public/images/css_sprite/logos/gmail_logo_active.png",
- "spec/public/images/css_sprite/logos_hover/gmail_logo.png",
- "spec/public/images/css_sprite/not_image.txt",
- "spec/spec.opts",
- "spec/spec_helper.rb",
- "tasks/css_sprite_tasks.rake"
- ]
- s.homepage = %q{http://github.com/flyerhzm/css_sprite}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.6}
- s.summary = %q{css_sprite is a rails plugin/gem to generate css sprite image automatically.}
- s.test_files = [
- "spec/css_sprite/sprite_spec.rb",
- "spec/spec_helper.rb"
- ]
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ gem.files = `git ls-files`.split("\n")
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ gem.name = "css_sprite"
+ gem.require_paths = ["lib"]
+ gem.version = CssSprite::VERSION
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<rmagick>, [">= 0"])
- else
- s.add_dependency(%q<rmagick>, [">= 0"])
- end
- else
- s.add_dependency(%q<rmagick>, [">= 0"])
- end
+ gem.add_dependency("rmagick")
+ gem.add_runtime_dependency("rspec")
+ gem.add_runtime_dependency("mocha")
end
-
View
@@ -1,6 +1,10 @@
-require 'css_sprite/sprite'
require 'rake'
+require "css_sprite/version"
unless Rake::Task.task_defined? "css_sprite:build"
load File.join(File.dirname(__FILE__), '..', 'tasks', 'css_sprite_tasks.rake')
-end
+end
+
+module CssSprite
+ require 'css_sprite/sprite'
+end
@@ -0,0 +1,3 @@
+module CssSprite
+ VERSION = "1.4.0"
+end
@@ -1,14 +0,0 @@
-.logos:hover .gmail_logo, .logos .gmail_logo.active, .logos .gmail_logo, .icons .twitter_icon:hover, .icons .twitter_icon,
-.icons .facebook_icon:hover, .icons .facebook_icon, .hotmail_logo, .gmail_logo.active, .gmail_logo {
- background: url('/images/css_sprite.png?1278986413') no-repeat;
-}
-.logos:hover .gmail_logo { background-position: 0px 0px; }
-.logos .gmail_logo.active { background-position: 0px -41px; width: 52px; height: 18px; }
-.logos .gmail_logo { background-position: 0px -64px; width: 103px; height: 36px; }
-.icons .twitter_icon:hover { background-position: 0px -105px; }
-.icons .twitter_icon { background-position: 0px -124px; width: 14px; height: 14px; }
-.icons .facebook_icon:hover { background-position: 0px -143px; width: 21px; height: 21px; }
-.icons .facebook_icon { background-position: 0px -169px; width: 14px; height: 14px; }
-.hotmail_logo { background-position: 0px -188px; width: 103px; height: 36px; }
-.gmail_logo.active { background-position: 0px -229px; }
-.gmail_logo { background-position: 0px -270px; width: 103px; height: 36px; }
@@ -1,48 +0,0 @@
-.logos:hover .gmail_logo, .logos .gmail_logo.active, .logos .gmail_logo, .icons .twitter_icon:hover, .icons .twitter_icon,
-.icons .facebook_icon:hover, .icons .facebook_icon, .hotmail_logo, .gmail_logo.active, .gmail_logo {
- background: url('/images/css_sprite.png?1278986413') no-repeat;
-}
-.logos:hover .gmail_logo {
- background-position: 0px 0px;
- }
-.logos .gmail_logo.active {
- background-position: 0px -41px;
- width: 52px;
- height: 18px;
- }
-.logos .gmail_logo {
- background-position: 0px -64px;
- width: 103px;
- height: 36px;
- }
-.icons .twitter_icon:hover {
- background-position: 0px -105px;
- }
-.icons .twitter_icon {
- background-position: 0px -124px;
- width: 14px;
- height: 14px;
- }
-.icons .facebook_icon:hover {
- background-position: 0px -143px;
- width: 21px;
- height: 21px;
- }
-.icons .facebook_icon {
- background-position: 0px -169px;
- width: 14px;
- height: 14px;
- }
-.hotmail_logo {
- background-position: 0px -188px;
- width: 103px;
- height: 36px;
- }
-.gmail_logo.active {
- background-position: 0px -229px;
- }
-.gmail_logo {
- background-position: 0px -270px;
- width: 103px;
- height: 36px;
- }
Oops, something went wrong.

0 comments on commit 64206f7

Please sign in to comment.