Permalink
Browse files

Remove jeweler

  • Loading branch information...
1 parent 609b114 commit ea6807c5614d2aae15baf478e8bdff9c7bf86991 @solnic solnic committed Nov 16, 2011
Showing with 28 additions and 111 deletions.
  1. +3 −9 Gemfile
  2. +1 −22 Rakefile
  3. +17 −80 dm-is-state_machine.gemspec
  4. +7 −0 lib/dm-is-state_machine/is/version.rb
View
12 Gemfile
@@ -1,6 +1,8 @@
require 'pathname'
-source 'http://rubygems.org'
+source :rubygems
+
+gemspec
SOURCE = ENV.fetch('SOURCE', :git).to_sym
REPO_POSTFIX = SOURCE == :path ? '' : '.git'
@@ -14,14 +16,6 @@ gem 'dm-core', DM_VERSION,
SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}",
:branch => CURRENT_BRANCH
-group :development do
-
- gem 'jeweler', '~> 1.6.4'
- gem 'rake', '~> 0.9.2'
- gem 'rspec', '~> 1.3.2'
-
-end
-
platforms :mri_18 do
group :quality do
View
@@ -1,25 +1,4 @@
require 'rubygems'
require 'rake'
-begin
- gem 'jeweler', '~> 1.6.4'
- require 'jeweler'
-
- Jeweler::Tasks.new do |gem|
- gem.name = 'dm-is-state_machine'
- gem.summary = 'DataMapper plugin for creating state machines'
- gem.description = gem.summary
- gem.email = 'djwonk [a] collectiveinsight [d] net'
- gem.homepage = 'http://github.com/datamapper/%s' % gem.name
- gem.authors = [ 'David James' ]
- gem.has_rdoc = 'yard'
-
- gem.rubyforge_project = 'datamapper'
- end
-
- Jeweler::GemcutterTasks.new
-
- FileList['tasks/**/*.rake'].each { |task| import task }
-rescue LoadError
- puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
-end
+FileList['tasks/**/*.rake'].each { |task| import task }
@@ -1,86 +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/dm-is-state_machine/is/version', __FILE__)
-Gem::Specification.new do |s|
- s.name = "dm-is-state_machine"
- s.version = "1.3.0.beta"
+Gem::Specification.new do |gem|
+ gem.authors = [ 'David James' ]
+ gem.email = [ 'djwonk [a] collectiveinsight [d] net' ]
+ gem.summary = 'DataMapper plugin for creating state machines'
+ gem.description = gem.summary
+ gem.homepage = "http://datamapper.org"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["David James"]
- s.date = "2011-10-09"
- s.description = "DataMapper plugin for creating state machines"
- s.email = "djwonk [a] collectiveinsight [d] net"
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- "Gemfile",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "dm-is-state_machine.gemspec",
- "lib/dm-is-state_machine.rb",
- "lib/dm-is-state_machine/is/data/event.rb",
- "lib/dm-is-state_machine/is/data/machine.rb",
- "lib/dm-is-state_machine/is/data/state.rb",
- "lib/dm-is-state_machine/is/dsl/event_dsl.rb",
- "lib/dm-is-state_machine/is/dsl/state_dsl.rb",
- "lib/dm-is-state_machine/is/state_machine.rb",
- "spec/examples/invalid_events.rb",
- "spec/examples/invalid_states.rb",
- "spec/examples/invalid_transitions_1.rb",
- "spec/examples/invalid_transitions_2.rb",
- "spec/examples/light_switch.rb",
- "spec/examples/slot_machine.rb",
- "spec/examples/traffic_light.rb",
- "spec/integration/inheritance_spec.rb",
- "spec/integration/invalid_events_spec.rb",
- "spec/integration/invalid_states_spec.rb",
- "spec/integration/invalid_transitions_spec.rb",
- "spec/integration/slot_machine_spec.rb",
- "spec/integration/traffic_light_spec.rb",
- "spec/rcov.opts",
- "spec/spec.opts",
- "spec/spec_helper.rb",
- "spec/unit/data/event_spec.rb",
- "spec/unit/data/machine_spec.rb",
- "spec/unit/data/state_spec.rb",
- "spec/unit/dsl/event_dsl_spec.rb",
- "spec/unit/dsl/state_dsl_spec.rb",
- "spec/unit/state_machine_spec.rb",
- "tasks/spec.rake",
- "tasks/yard.rake",
- "tasks/yardstick.rake"
- ]
- s.homepage = "http://github.com/datamapper/dm-is-state_machine"
- s.require_paths = ["lib"]
- s.rubyforge_project = "datamapper"
- s.rubygems_version = "1.8.11"
- s.summary = "DataMapper plugin for creating state machines"
+ gem.files = `git ls-files`.split("\n")
+ gem.test_files = `git ls-files -- {spec}/*`.split("\n")
+ gem.extra_rdoc_files = %w[LICENSE README.rdoc]
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ gem.name = 'dm-is-state_machine'
+ gem.require_paths = [ "lib" ]
+ gem.version = DataMapper::Is::StateMachine::VERSION
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.3.0.beta') then
- s.add_runtime_dependency(%q<dm-core>, ["~> 1.3.0.beta"])
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
- s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
- s.add_development_dependency(%q<rspec>, ["~> 1.3.2"])
- else
- s.add_dependency(%q<dm-core>, ["~> 1.3.0.beta"])
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
- s.add_dependency(%q<rake>, ["~> 0.9.2"])
- s.add_dependency(%q<rspec>, ["~> 1.3.2"])
- end
- else
- s.add_dependency(%q<dm-core>, ["~> 1.3.0.beta"])
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
- s.add_dependency(%q<rake>, ["~> 0.9.2"])
- s.add_dependency(%q<rspec>, ["~> 1.3.2"])
- end
-end
+ gem.add_runtime_dependency('dm-core', '~> 1.3.0.beta')
+ gem.add_development_dependency('rake', '~> 0.9.2')
+ gem.add_development_dependency('rspec', '~> 1.3.2')
+end
@@ -0,0 +1,7 @@
+module DataMapper
+ module Is
+ module StateMachine
+ VERSION = '1.3.0.beta'
+ end
+ end
+end

0 comments on commit ea6807c

Please sign in to comment.