Skip to content

Commit

Permalink
Revamp gem structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
troessner committed Dec 25, 2015
1 parent 65af026 commit 8fa9e77
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 56 deletions.
1 change: 0 additions & 1 deletion .ruby-gemset

This file was deleted.

1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
sudo: false
cache: bundler
language: ruby
bundler_args: --without local_development
rvm:
- 2.1
- 2.2
Expand Down
13 changes: 7 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ source 'https://rubygems.org'

gemspec

gem 'activerecord', '~> 3.2.14'
gem 'activerecord-jdbcsqlite3-adapter', platforms: :jruby

platforms :ruby do
gem 'sqlite3'
group :local_development do
gem 'pry'
gem 'byebug'
gem 'sqlite3'

platforms :mri do
gem 'pry-byebug'
gem 'pry-stack_explorer'
end
end
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Timo Rößner

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
21 changes: 0 additions & 21 deletions MIT-LICENSE.txt

This file was deleted.

9 changes: 5 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
require 'bundler'
Bundler::GemHelper.install_tasks
Bundler.setup
require 'bundler/gem_tasks'

require 'appraisal'

require 'rake/testtask'
require 'rubocop/rake_task'

Rake::TestTask.new(:test) do |test|
test.libs = %w(lib test)
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end

RuboCop::RakeTask.new

task default: :test
7 changes: 7 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "transitions"

require "pry"
Pry.start
47 changes: 23 additions & 24 deletions transitions.gemspec
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/transitions/version', __FILE__)
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'transitions/version'

Gem::Specification.new do |s|
s.name = 'transitions'
s.version = Transitions::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Jakub Kuzma', 'Timo Roessner']
s.email = '[email protected]'
s.homepage = 'http://github.com/troessner/transitions'
s.summary = 'State machine extracted from ActiveModel'
s.description = 'Lightweight state machine extracted from ActiveModel'
Gem::Specification.new do |spec|
spec.name = 'transitions'
spec.version = Transitions::VERSION
spec.authors = ['Timo Rößner']
spec.email = ['[email protected]']

s.required_rubygems_version = '>= 1.3.6'
s.rubyforge_project = 'transitions'
spec.summary = 'State machine extracted from ActiveModel'
spec.description = 'Lightweight state machine extracted from ActiveModel'
spec.homepage = 'http://github.com/troessner/transitions'
spec.license = 'MIT'

s.add_development_dependency 'bundler', '~> 1'
s.add_development_dependency 'test-unit', '~> 2.5'
s.add_development_dependency 'mocha', '~> 0.11.0' # With mocha 0.12 we get: undefined method `run' for #<StateMachineMachineTest:0x94918b8> (NoMethodError)
s.add_development_dependency 'rake'
s.add_development_dependency 'random_data'
s.add_development_dependency 'appraisal'
s.add_development_dependency 'activerecord', ['>= 3.0', '<= 4.0']
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.require_paths = ['lib']

s.files = `git ls-files`.split("\n")
s.executables = `git ls-files`.split("\n").map { |f| f =~ /^bin\/(.*)/ ? Regexp.last_match[1] : nil }.compact
s.require_path = 'lib'
s.license = 'MIT'
spec.add_development_dependency 'bundler', '~> 1.0'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'test-unit', '~> 2.5'
spec.add_development_dependency 'mocha', '~> 0.11.0' # With mocha 0.12 we get: undefined method `run' for #<StateMachineMachineTest:0x94918b8> (NoMethodError)
spec.add_development_dependency 'random_data'
spec.add_development_dependency 'appraisal'
spec.add_development_dependency 'activerecord', ['>= 3.0', '<= 4.0']
spec.add_development_dependency 'rubocop'
end

0 comments on commit 8fa9e77

Please sign in to comment.