Permalink
Browse files

* more bundler changes (copy what bundler gem does)

* remove jewler
  • Loading branch information...
1 parent 64af36c commit a9bba7a78136012250a01ebfdd799c8556e467f3 @smtlaissezfaire smtlaissezfaire committed Dec 17, 2013
Showing with 43 additions and 127 deletions.
  1. +19 −3 .gitignore
  2. +19 −105 Markaby.gemspec
  3. +1 −16 Rakefile
  4. +1 −3 lib/markaby.rb
  5. +3 −0 lib/markaby/version.rb
View
@@ -1,5 +1,21 @@
-doc
-coverage
.garlic
pkg
-_site
+_site
+
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
View
@@ -1,109 +1,23 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
-# -*- encoding: utf-8 -*-
+# coding: utf-8
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require 'markaby/version'
-Gem::Specification.new do |s|
- s.name = %q{markaby}
- s.version = "0.7.2"
+Gem::Specification.new do |spec|
+ spec.name = "markaby"
+ spec.version = Markaby::VERSION
+ spec.authors = ["Scott Taylor"]
+ spec.email = ["scott@railsnewbie.com"]
+ spec.description = %q{TODO: Write a gem description}
+ spec.summary = %q{TODO: Write a gem summary}
+ spec.homepage = ""
+ spec.license = "MIT"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = [%q{_why}, %q{Tim Fletcher}, %q{John Barton}, %q{spox}, %q{smtlaissezfaire}]
- s.date = %q{2011-08-23}
- s.description = %q{Tim Fletcher and _why's ruby driven HTML templating system}
- s.email = %q{scott@railsnewbie.com}
- s.extra_rdoc_files = [
- "README.rdoc"
- ]
- s.files = [
- "CHANGELOG.rdoc",
- "Markaby.gemspec",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "garlic.rb",
- "init.rb",
- "lib/markaby.rb",
- "lib/markaby/builder.rb",
- "lib/markaby/builder_tags.rb",
- "lib/markaby/cssproxy.rb",
- "lib/markaby/kernel_method.rb",
- "lib/markaby/rails.rb",
- "lib/markaby/rails/current.rb",
- "lib/markaby/rails/deprecated.rb",
- "lib/markaby/rails/rails_builder.rb",
- "lib/markaby/sinatra.rb",
- "lib/markaby/tags.rb",
- "lib/markaby/tilt.rb",
- "spec/markaby/builder_spec.rb",
- "spec/markaby/css_proxy_test.rb",
- "spec/markaby/fragment_test.rb",
- "spec/markaby/markaby_other_static.mab",
- "spec/markaby/markaby_spec.rb",
- "spec/markaby/markaby_test.rb",
- "spec/markaby/rails/spec_helper.rb",
- "spec/markaby/rails/views/layouts/layout.mab",
- "spec/markaby/rails/views/markaby/_a_partial.mab",
- "spec/markaby/rails/views/markaby/_form_for_with_body_in_erb.erb",
- "spec/markaby/rails/views/markaby/_partial_child_with_locals.mab",
- "spec/markaby/rails/views/markaby/access_to_helpers.mab",
- "spec/markaby/rails/views/markaby/broken.mab",
- "spec/markaby/rails/views/markaby/commented_out_template.mab",
- "spec/markaby/rails/views/markaby/correct_template_values.mab",
- "spec/markaby/rails/views/markaby/double_output.mab",
- "spec/markaby/rails/views/markaby/form_for.mab",
- "spec/markaby/rails/views/markaby/form_for_with_fields.mab",
- "spec/markaby/rails/views/markaby/form_for_with_multiple_fields.mab",
- "spec/markaby/rails/views/markaby/no_values_passed.mab",
- "spec/markaby/rails/views/markaby/partial_parent.mab",
- "spec/markaby/rails/views/markaby/partial_parent_with_locals.mab",
- "spec/markaby/rails/views/markaby/render_erb_without_explicit_render_call.erb",
- "spec/markaby/rails/views/markaby/render_explicit_but_empty_markaby_layout.mab",
- "spec/markaby/rails/views/markaby/render_mab_without_explicit_render_call.mab",
- "spec/markaby/rails/views/markaby/render_with_ivar.mab",
- "spec/markaby/rails/views/markaby/renders_erb.rhtml",
- "spec/markaby/rails/views/markaby/renders_form_for_with_erb_body.mab",
- "spec/markaby/rails/views/markaby/routes.mab",
- "spec/markaby/rails/views/markaby/yielding.mab",
- "spec/markaby/rails/views/markaby/yielding_content_for_with_block_helper.mab",
- "spec/markaby/rails/views/markaby/yielding_two.mab",
- "spec/markaby/rails/views/markaby/yielding_with_content_for.mab",
- "spec/markaby/rails_test.rb",
- "spec/markaby/rails_version_spec.rb",
- "spec/markaby/sinatra/app.rb",
- "spec/markaby/sinatra/sinatra_spec.rb",
- "spec/markaby/sinatra/views/helpers.mab",
- "spec/markaby/sinatra/views/layout.mab",
- "spec/markaby/sinatra/views/markaby_template.mab",
- "spec/markaby/sinatra/views/scope_instance_variables.mab",
- "spec/markaby/sinatra/views/simple_html.mab",
- "spec/markaby/sinatra/views/variables.mab",
- "spec/markaby/tilt/erb.erb",
- "spec/markaby/tilt/locals.mab",
- "spec/markaby/tilt/markaby.mab",
- "spec/markaby/tilt/markaby_other_static.mab",
- "spec/markaby/tilt/render_twice.mab",
- "spec/markaby/tilt/scope.mab",
- "spec/markaby/tilt/yielding.mab",
- "spec/markaby/tilt_spec.rb",
- "spec/spec.opts",
- "spec/spec_helper.rb"
- ]
- s.homepage = %q{http://markaby.github.com/markaby/}
- s.require_paths = [%q{lib}]
- s.rubygems_version = %q{1.8.6}
- s.summary = %q{Markup as Ruby, write HTML in your native Ruby tongue}
+ spec.files = `git ls-files`.split($/)
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
+ spec.require_paths = ["lib"]
- 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<builder>, [">= 2.0.0"])
- else
- s.add_dependency(%q<builder>, [">= 2.0.0"])
- end
- else
- s.add_dependency(%q<builder>, [">= 2.0.0"])
- end
+ spec.add_development_dependency "bundler", "~> 1.3"
+ spec.add_development_dependency "rake"
end
-
View
@@ -1,4 +1,5 @@
require 'rake'
+require "bundler/gem_tasks"
require 'rspec/core/rake_task'
require 'rake/testtask'
require 'rake/clean'
@@ -23,22 +24,6 @@ end
RSpec::Core::RakeTask.new(:spec)
-begin
- require 'jeweler'
-
- Jeweler::Tasks.new do |gemspec|
- gemspec.name = "markaby"
- gemspec.summary = "Markup as Ruby, write HTML in your native Ruby tongue"
- gemspec.description = "Tim Fletcher and _why's ruby driven HTML templating system"
- gemspec.email = "scott@railsnewbie.com"
- gemspec.homepage = "http://markaby.github.com/markaby/"
- gemspec.authors = ["_why", "Tim Fletcher", "John Barton", "spox", "smtlaissezfaire"]
- gemspec.add_dependency 'builder', '>=2.0.0'
- end
-rescue LoadError
- puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
-end
-
desc "List any Markaby specific warnings"
task :warnings do
`ruby -w test/test_markaby.rb 2>&1`.split(/\n/).each do |line|
View
@@ -19,12 +19,10 @@
# * Markaby::Template: a class for hooking Markaby into Rails as a
# proper templating language.
module Markaby
- version_file = File.expand_path(File.dirname(__FILE__) + "/../VERSION")
- VERSION = File.read(version_file).strip
-
class InvalidXhtmlError < StandardError; end
end
+require "markaby/version"
require 'builder' unless defined?(Builder)
require 'markaby/builder'
require 'markaby/cssproxy'
@@ -0,0 +1,3 @@
+module Markaby
+ VERSION = '0.7.2'
+end

0 comments on commit a9bba7a

Please sign in to comment.