Permalink
Browse files

Added bundler support

  • Loading branch information...
1 parent b2a977f commit 98c50e4a2e9865f8d209ec8b4b9555a1cd6ca25d @kpumuk kpumuk committed Apr 26, 2011
Showing with 91 additions and 94 deletions.
  1. +4 −3 .gitignore
  2. +4 −0 Gemfile
  3. +53 −0 Gemfile.lock
  4. +2 −33 Rakefile
  5. +0 −5 VERSION.yml
  6. +0 −1 init.rb
  7. +4 −2 lib/meta_tags.rb
  8. +3 −0 lib/meta_tags/version.rb
  9. +19 −45 meta-tags.gemspec
  10. +2 −5 spec/spec_helper.rb
View
@@ -1,5 +1,6 @@
-rdoc
+.yardoc
+.DS_Store
+.bundle
+.rvmrc
doc
pkg
-.yardoc
-.DS_Store
View
@@ -0,0 +1,4 @@
+source 'http://rubygems.org'
+
+# Specify your gem's dependencies in meta-tags.gemspec
+gemspec
View
@@ -0,0 +1,53 @@
+PATH
+ remote: .
+ specs:
+ meta-tags (1.2.4)
+ actionpack
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ abstract (1.0.0)
+ actionpack (3.0.7)
+ activemodel (= 3.0.7)
+ activesupport (= 3.0.7)
+ builder (~> 2.1.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.5.0)
+ rack (~> 1.2.1)
+ rack-mount (~> 0.6.14)
+ rack-test (~> 0.5.7)
+ tzinfo (~> 0.3.23)
+ activemodel (3.0.7)
+ activesupport (= 3.0.7)
+ builder (~> 2.1.2)
+ i18n (~> 0.5.0)
+ activesupport (3.0.7)
+ builder (2.1.2)
+ diff-lcs (1.1.2)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ i18n (0.5.0)
+ rack (1.2.2)
+ rack-mount (0.6.14)
+ rack (>= 1.0.0)
+ rack-test (0.5.7)
+ rack (>= 1.0)
+ rspec (2.5.0)
+ rspec-core (~> 2.5.0)
+ rspec-expectations (~> 2.5.0)
+ rspec-mocks (~> 2.5.0)
+ rspec-core (2.5.1)
+ rspec-expectations (2.5.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.5.0)
+ tzinfo (0.3.26)
+ yard (0.6.8)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ meta-tags!
+ rspec
+ yard
View
@@ -1,36 +1,5 @@
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gemspec|
- gemspec.name = 'meta-tags'
- gemspec.summary = 'Collection of SEO helpers for Ruby on Rails'
- gemspec.description = 'Search Engine Optimization (SEO) plugin for Ruby on Rails applications.'
- gemspec.email = 'kpumuk@kpumuk.info'
- gemspec.homepage = 'http://github.com/kpumuk/meta-tags'
- gemspec.authors = ['Dmytro Shteflyuk']
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts 'Jeweler not available. Install it with: sudo gem install jeweler'
-end
-
-begin
- require 'spec/rake/spectask'
-
- desc 'Default: run specs'
- task :default => :spec
-
- desc 'Test the sphinx plugin'
- Spec::Rake::SpecTask.new do |t|
- t.libs << 'lib'
- t.pattern = 'spec/*_spec.rb'
- t.verbose = true
- t.spec_opts = ['-cfs']
- end
-rescue LoadError
- puts 'RSpec not available. Install it with: sudo gem install rspec'
-end
+require 'bundler'
+Bundler::GemHelper.install_tasks
begin
require 'yard'
View
@@ -1,5 +0,0 @@
----
-:major: 1
-:minor: 2
-:build:
-:patch: 3
View
@@ -1 +0,0 @@
-require 'meta_tags'
View
@@ -2,9 +2,11 @@
require 'action_view'
module MetaTags
- autoload :ViewHelper, 'meta_tags/view_helper'
- autoload :ControllerHelper, 'meta_tags/controller_helper'
end
+require 'meta_tags/version'
+require 'meta_tags/view_helper'
+require 'meta_tags/controller_helper'
+
ActionView::Base.send :include, MetaTags::ViewHelper
ActionController::Base.send :include, MetaTags::ControllerHelper
View
@@ -0,0 +1,3 @@
+module MetaTags
+ VERSION = '1.2.4'
+end
View
@@ -1,52 +1,26 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
+$:.push File.expand_path('../lib', __FILE__)
+require 'meta_tags/version'
Gem::Specification.new do |s|
- s.name = %q{meta-tags}
- s.version = "1.2.3"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Dmytro Shteflyuk"]
- s.date = %q{2010-06-10}
+ s.name = 'meta-tags'
+ s.version = MetaTags::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ['Dmytro Shteflyuk']
+ s.email = ['kpumuk@kpumuk.info']
+ s.homepage = 'http://github.com/kpumuk/meta-tags'
+ s.summary = %q{Collection of SEO helpers for Ruby on Rails.}
s.description = %q{Search Engine Optimization (SEO) plugin for Ruby on Rails applications.}
- s.email = %q{kpumuk@kpumuk.info}
- s.extra_rdoc_files = [
- "README.rdoc"
- ]
- s.files = [
- ".gitignore",
- "MIT-LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION.yml",
- "init.rb",
- "lib/meta_tags.rb",
- "lib/meta_tags/controller_helper.rb",
- "lib/meta_tags/view_helper.rb",
- "meta-tags.gemspec",
- "spec/meta_tags_spec.rb",
- "spec/spec_helper.rb"
- ]
- s.homepage = %q{http://github.com/kpumuk/meta-tags}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Collection of SEO helpers for Ruby on Rails}
- s.test_files = [
- "spec/meta_tags_spec.rb",
- "spec/spec_helper.rb"
- ]
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.add_dependency 'actionpack'
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
-end
+ s.add_development_dependency 'rspec'
+ s.add_development_dependency 'yard'
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.extra_rdoc_files = ['README.rdoc']
+ s.rdoc_options = ['--charset=UTF-8']
+ s.require_paths = ['lib']
+end
View
@@ -1,5 +1,2 @@
-require 'rubygems'
-require 'action_controller'
-require 'action_view'
-
-require File.join(File.dirname(__FILE__), "../init")
+require 'bundler/setup'
+require 'meta_tags'

0 comments on commit 98c50e4

Please sign in to comment.