Permalink
Browse files

Dump Jeweler and clean up gem spec.

  • Loading branch information...
1 parent 3758082 commit 0f7b11e8c1335768809ac1a153de0837483453b6 @jim committed Jan 6, 2012
Showing with 23 additions and 112 deletions.
  1. +1 −6 Gemfile
  2. +0 −28 Rakefile
  3. +0 −1 VERSION
  4. +17 −77 carmen.gemspec
  5. +2 −0 lib/carmen.rb
  6. +3 −0 lib/carmen/version.rb
View
@@ -1,8 +1,3 @@
source 'http://rubygems.org'
-group :development do
- gem 'jeweler', '1.6.2'
- gem "mocha"
- gem "rails"
- gem "hanna"
-end
+gemspec
View
@@ -2,41 +2,13 @@ require 'rubygems'
require 'rake'
require 'hanna/rdoctask'
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "carmen"
- gem.summary = %Q{A collection of geographic country and state names for Ruby}
- gem.description = %Q{A collection of geographic country and state names for Ruby. Also includes replacements for Rails' country_select and state_select plugins}
- gem.email = "jim@autonomousmachine.com"
- gem.homepage = "http://github.com/jim/carmen"
- gem.authors = ["Jim Benton"]
- end
- Jeweler::RubygemsDotOrgTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
-
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: gem install spicycode-rcov"
- end
-end
-
task :default => :test
desc 'Generate RDoc documentation for the carmen plugin.'
View
@@ -1 +0,0 @@
-0.2.10
View
@@ -1,90 +1,30 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
+
+require 'carmen/version'
Gem::Specification.new do |s|
s.name = "carmen"
- s.version = "0.2.9"
+ s.version = Carmen::VERSION
+ s.platform = Gem::Platform::RUBY
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jim Benton"]
- s.date = "2011-12-20"
- s.description = "A collection of geographic country and state names for Ruby. Also includes replacements for Rails' country_select and state_select plugins"
s.email = "jim@autonomousmachine.com"
- s.extra_rdoc_files = [
- "README.rdoc"
- ]
- s.files = [
- "CHANGELOG.md",
- "Gemfile",
- "MIT-LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "carmen.gemspec",
- "data/countries/cn.yml",
- "data/countries/cs.yml",
- "data/countries/de.yml",
- "data/countries/en.yml",
- "data/countries/es.yml",
- "data/countries/fi.yml",
- "data/countries/hi.yml",
- "data/countries/it.yml",
- "data/countries/jp.yml",
- "data/countries/nl.yml",
- "data/countries/pl.yml",
- "data/countries/pt.yml",
- "data/countries/ru.yml",
- "data/countries/sk.yml",
- "data/countries/sv.yml",
- "data/states/au.yml",
- "data/states/br.yml",
- "data/states/ca.yml",
- "data/states/cu.yml",
- "data/states/de.yml",
- "data/states/dk.yml",
- "data/states/es.yml",
- "data/states/hr.yml",
- "data/states/in.yml",
- "data/states/it.yml",
- "data/states/mx.yml",
- "data/states/nl.yml",
- "data/states/no.yml",
- "data/states/nz.yml",
- "data/states/ua.yml",
- "data/states/us.yml",
- "lib/carmen.rb",
- "lib/carmen/action_view_helpers.rb",
- "lib/carmen/railtie.rb",
- "test/carmen_test.rb",
- "test/carmen_view_helper_test.rb",
- "test/test_helper.rb"
- ]
s.homepage = "http://github.com/jim/carmen"
- s.require_paths = ["lib"]
- s.rubygems_version = "1.8.10"
s.summary = "A collection of geographic country and state names for Ruby"
+ s.description = "A collection of geographic country and state names for Ruby. Also includes replacements for Rails' country_select and state_select plugins"
+
+ s.required_rubygems_version = ">= 1.3.6"
+ s.add_development_dependency('mocha')
+ s.add_development_dependency('rails')
+ s.add_development_dependency('hanna')
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ s.extra_rdoc_files = [
+ "README.rdoc"
+ ]
+ s.files = Dir.glob("{lib,data}/**/*") + %w(MIT-LICENSE README.rdoc CHANGELOG.md)
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<jeweler>, ["= 1.6.2"])
- s.add_development_dependency(%q<mocha>, [">= 0"])
- s.add_development_dependency(%q<rails>, [">= 0"])
- s.add_development_dependency(%q<hanna>, [">= 0"])
- else
- s.add_dependency(%q<jeweler>, ["= 1.6.2"])
- s.add_dependency(%q<mocha>, [">= 0"])
- s.add_dependency(%q<rails>, [">= 0"])
- s.add_dependency(%q<hanna>, [">= 0"])
- end
- else
- s.add_dependency(%q<jeweler>, ["= 1.6.2"])
- s.add_dependency(%q<mocha>, [">= 0"])
- s.add_dependency(%q<rails>, [">= 0"])
- s.add_dependency(%q<hanna>, [">= 0"])
- end
+ s.require_paths = ["lib"]
end
View
@@ -14,6 +14,8 @@
end
end
+require 'carmen/version'
+
module Carmen
class << self
attr_accessor :default_country, :default_locale, :excluded_countries, :excluded_states,
@@ -0,0 +1,3 @@
+module Carmen
+ VERSION = '0.2.11'
+end

0 comments on commit 0f7b11e

Please sign in to comment.