Permalink
Browse files

Changing from Jeweler to Bundler for gem management

  • Loading branch information...
1 parent bf0ecf6 commit d872ae711e209c38c393a31dd04c654bd1a00291 @beerlington beerlington committed Jun 10, 2012
Showing with 38 additions and 265 deletions.
  1. +0 −5 .document
  2. +15 −23 .gitignore
  3. +0 −1 .rvmrc
  4. +1 −9 Gemfile
  5. +0 −109 Gemfile.lock
  6. +2 −45 Rakefile
  7. +0 −1 VERSION
  8. +17 −72 classy_enum.gemspec
  9. +3 −0 lib/classy_enum/version.rb
View
@@ -1,5 +0,0 @@
-README.rdoc
-lib/**/*.rb
-bin/*
-features/**/*.feature
-LICENSE
View
@@ -1,25 +1,17 @@
-## MAC OS
-.DS_Store
-
-## TEXTMATE
-*.tmproj
-tmtags
-
-## EMACS
-*~
-\#*
-.\#*
-
-## VIM
-*.swp
-
-## PROJECT::GENERAL
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
coverage
-rdoc
+doc/
+lib/bundler/man
pkg
-
-## PROJECT::SPECIFIC
-.bundle/*
-
-## REDCAR
-.redcar
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
View
1 .rvmrc
@@ -1 +0,0 @@
-rvm use 1.9.2
View
10 Gemfile
@@ -1,11 +1,3 @@
source :rubygems
-gem 'rails', '>= 3.0.0'
-
-group :development do
- gem "jeweler", "~> 1.6.2"
- gem "rspec-rails", "~> 2.8.1"
- gem 'sqlite3'
- gem 'json', '~> 1.6.5'
- # gem 'ruby-debug19', :require => 'false'
-end
+gemspec
View
@@ -1,109 +0,0 @@
-GEM
- remote: http://rubygems.org/
- specs:
- actionmailer (3.2.3)
- actionpack (= 3.2.3)
- mail (~> 2.4.4)
- actionpack (3.2.3)
- activemodel (= 3.2.3)
- activesupport (= 3.2.3)
- builder (~> 3.0.0)
- erubis (~> 2.7.0)
- journey (~> 1.0.1)
- rack (~> 1.4.0)
- rack-cache (~> 1.2)
- rack-test (~> 0.6.1)
- sprockets (~> 2.1.2)
- activemodel (3.2.3)
- activesupport (= 3.2.3)
- builder (~> 3.0.0)
- activerecord (3.2.3)
- activemodel (= 3.2.3)
- activesupport (= 3.2.3)
- arel (~> 3.0.2)
- tzinfo (~> 0.3.29)
- activeresource (3.2.3)
- activemodel (= 3.2.3)
- activesupport (= 3.2.3)
- activesupport (3.2.3)
- i18n (~> 0.6)
- multi_json (~> 1.0)
- arel (3.0.2)
- builder (3.0.0)
- diff-lcs (1.1.3)
- erubis (2.7.0)
- git (1.2.5)
- hike (1.2.1)
- i18n (0.6.0)
- jeweler (1.6.4)
- bundler (~> 1.0)
- git (>= 1.2.5)
- rake
- journey (1.0.3)
- json (1.6.6)
- mail (2.4.4)
- i18n (>= 0.4.0)
- mime-types (~> 1.16)
- treetop (~> 1.4.8)
- mime-types (1.18)
- multi_json (1.3.2)
- polyglot (0.3.3)
- rack (1.4.1)
- rack-cache (1.2)
- rack (>= 0.4)
- rack-ssl (1.3.2)
- rack
- rack-test (0.6.1)
- rack (>= 1.0)
- rails (3.2.3)
- actionmailer (= 3.2.3)
- actionpack (= 3.2.3)
- activerecord (= 3.2.3)
- activeresource (= 3.2.3)
- activesupport (= 3.2.3)
- bundler (~> 1.0)
- railties (= 3.2.3)
- railties (3.2.3)
- actionpack (= 3.2.3)
- activesupport (= 3.2.3)
- rack-ssl (~> 1.3.2)
- rake (>= 0.8.7)
- rdoc (~> 3.4)
- thor (~> 0.14.6)
- rake (0.9.2.2)
- rdoc (3.12)
- json (~> 1.4)
- rspec (2.8.0)
- rspec-core (~> 2.8.0)
- rspec-expectations (~> 2.8.0)
- rspec-mocks (~> 2.8.0)
- rspec-core (2.8.0)
- rspec-expectations (2.8.0)
- diff-lcs (~> 1.1.2)
- rspec-mocks (2.8.0)
- rspec-rails (2.8.1)
- actionpack (>= 3.0)
- activesupport (>= 3.0)
- railties (>= 3.0)
- rspec (~> 2.8.0)
- sprockets (2.1.2)
- hike (~> 1.2)
- rack (~> 1.0)
- tilt (~> 1.1, != 1.3.0)
- sqlite3 (1.3.5)
- thor (0.14.6)
- tilt (1.3.3)
- treetop (1.4.10)
- polyglot
- polyglot (>= 0.3.1)
- tzinfo (0.3.33)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- jeweler (~> 1.6.2)
- json (~> 1.6.5)
- rails (>= 3.0.0)
- rspec-rails (~> 2.8.1)
- sqlite3
View
@@ -1,45 +1,2 @@
-# encoding: utf-8
-
-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 = "classy_enum"
- gem.summary = %Q{A class based enumerator utility for Ruby on Rails}
- gem.description = %Q{A utility that adds class based enum functionality to ActiveRecord attributes}
- gem.email = "github@lette.us"
- gem.homepage = "http://github.com/beerlington/classy_enum"
- gem.authors = ["Peter Brown"]
- gem.license = "MIT"
- # dependencies defined in Gemfile
-end
-Jeweler::RubygemsDotOrgTasks.new
-
-require 'rspec/core'
-require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new(:spec) do |spec|
- spec.pattern = FileList['spec/**/*_spec.rb']
-end
-
-task :default => :spec
-
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "classy_enum #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
View
@@ -1 +0,0 @@
-2.0.3
View
@@ -1,78 +1,23 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/classy_enum/version', __FILE__)
-Gem::Specification.new do |s|
- s.name = "classy_enum"
- s.version = "2.0.3"
+Gem::Specification.new do |gem|
+ gem.authors = ["Peter Brown"]
+ gem.email = ["github@lette.us"]
+ gem.description = "A utility that adds class based enum functionality to ActiveRecord attributes"
+ gem.summary = "A class based enumerator utility for Ruby on Rails"
+ gem.homepage = "http://github.com/beerlington/classy_enum"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Peter Brown"]
- s.date = "2012-04-24"
- s.description = "A utility that adds class based enum functionality to ActiveRecord attributes"
- s.email = "github@lette.us"
- s.extra_rdoc_files = [
- "LICENSE",
- "README.md"
- ]
- s.files = [
- ".document",
- ".rvmrc",
- ".travis.yml",
- "CHANGELOG.md",
- "Gemfile",
- "Gemfile.lock",
- "LICENSE",
- "README.md",
- "Rakefile",
- "VERSION",
- "classy_enum.gemspec",
- "gemfiles/Gemfile.rails-3.0.x",
- "gemfiles/Gemfile.rails-3.1.x",
- "gemfiles/Gemfile.rails-3.2.x",
- "init.rb",
- "lib/classy_enum.rb",
- "lib/classy_enum/attributes.rb",
- "lib/classy_enum/base.rb",
- "lib/classy_enum/class_methods.rb",
- "lib/classy_enum/instance_methods.rb",
- "lib/generators/classy_enum/classy_enum_generator.rb",
- "lib/generators/classy_enum/templates/enum.rb",
- "spec/active_record_spec.rb",
- "spec/classy_enum_attributes_spec.rb",
- "spec/classy_enum_owner_reference_spec.rb",
- "spec/classy_enum_spec.rb",
- "spec/spec_helper.rb"
- ]
- s.homepage = "http://github.com/beerlington/classy_enum"
- s.licenses = ["MIT"]
- s.require_paths = ["lib"]
- s.rubygems_version = "1.8.19"
- s.summary = "A class based enumerator utility for Ruby on Rails"
+ gem.files = `git ls-files`.split($\)
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
+ gem.name = "classy_enum"
+ gem.require_paths = ["lib"]
+ gem.version = ClassyEnum::VERSION
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ gem.add_dependency('rails', '>= 3.0')
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
- s.add_development_dependency(%q<rspec-rails>, ["~> 2.8.1"])
- s.add_development_dependency(%q<sqlite3>, [">= 0"])
- s.add_development_dependency(%q<json>, ["~> 1.6.5"])
- else
- s.add_dependency(%q<rails>, [">= 3.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
- s.add_dependency(%q<rspec-rails>, ["~> 2.8.1"])
- s.add_dependency(%q<sqlite3>, [">= 0"])
- s.add_dependency(%q<json>, ["~> 1.6.5"])
- end
- else
- s.add_dependency(%q<rails>, [">= 3.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
- s.add_dependency(%q<rspec-rails>, ["~> 2.8.1"])
- s.add_dependency(%q<sqlite3>, [">= 0"])
- s.add_dependency(%q<json>, ["~> 1.6.5"])
- end
-end
+ gem.add_development_dependency('rspec-rails', '~> 2.10.0')
+ gem.add_development_dependency('sqlite3', '~> 1.3.6')
+ gem.add_development_dependency('json', '~> 1.6.5')
+end
@@ -0,0 +1,3 @@
+module ClassyEnum
+ VERSION = "2.0.3"
+end

0 comments on commit d872ae7

Please sign in to comment.