Permalink
Browse files

v1.3.5: Use bundler for release

  • Loading branch information...
marcandre committed Nov 1, 2012
1 parent 689532f commit 31ad37be30baf51fe4085c3b57c8ddef871daa17
Showing with 47 additions and 129 deletions.
  1. +4 −0 Gemfile
  2. +0 −26 LICENSE
  3. +22 −0 LICENSE.txt
  4. +1 −42 Rakefile
  5. +0 −5 VERSION.yml
  6. +1 −1 lib/packable.rb
  7. +3 −0 lib/packable/version.rb
  8. +16 −55 packable.gemspec
View
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in packable.gemspec
+gemspec
View
26 LICENSE
@@ -1,26 +0,0 @@
-# packable library
-# Copyright (c) 2008, Marc-André Lafortune.
-# All rights reserved.
-# Licensed under the terms of the (modified) BSD License below:
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# * Neither the name of the author nor the
-# names of its contributors may be used to endorse or promote products
-# derived from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY
-# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Marc-Andre Lafortune
+
+MIT License
+
+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.
View
@@ -1,42 +1 @@
-# encoding: utf-8
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "packable"
- gem.add_dependency "backports"
- gem.summary = "Extensive packing and unpacking capabilities"
- gem.email = "github@marc-andre.ca"
- gem.homepage = "http://github.com/marcandre/packable"
- gem.description = <<-EOS
- If you need to do read and write binary data, there is of course <Array::pack and String::unpack
- The packable library makes (un)packing nicer, smarter and more powerful.
- EOS
- gem.authors = ["Marc-André Lafortune"]
- gem.rubyforge_project = "packable"
- gem.has_rdoc = true
- gem.rdoc_options << '--title' << 'Packable library' <<
- '--main' << 'README.rdoc' <<
- '--line-numbers' << '--inline-source'
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
-rescue LoadError
- puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
-end
-
-Rake::TestTask.new do |t|
- t.libs << 'lib'
- t.pattern = 'test/**/*_test.rb'
- t.verbose = false
-end
-
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'packable'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
+require "bundler/gem_tasks"
View
@@ -1,5 +0,0 @@
----
-:major: 1
-:minor: 3
-:patch: 4
-:build:
View
@@ -1,4 +1,4 @@
-require 'rubygems'
+require "packable/version"
require 'backports'
require_relative 'packable/packers'
require_relative 'packable/mixin'
View
@@ -0,0 +1,3 @@
+module Packable
+ VERSION = "1.3.5"
+end
View
@@ -1,59 +1,20 @@
-# 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__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require 'packable/version'
-Gem::Specification.new do |s|
- s.name = "packable"
- s.version = "1.3.4"
+Gem::Specification.new do |gem|
+ gem.name = "packable"
+ gem.version = Packable::VERSION
+ gem.authors = ["Marc-André Lafortune"]
+ gem.email = ["github@marc-andre.ca"]
+ gem.description = %q{If you need to do read and write binary data, there is of course <Array::pack and String::unpack\n The packable library makes (un)packing nicer, smarter and more powerful.\n}
+ gem.summary = %q{Extensive packing and unpacking capabilities}
+ gem.homepage = ""
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Marc-Andr\u{e9} Lafortune"]
- s.date = "2012-11-01"
- s.description = " If you need to do read and write binary data, there is of course <Array::pack and String::unpack\n The packable library makes (un)packing nicer, smarter and more powerful.\n"
- s.email = "github@marc-andre.ca"
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- "CHANGELOG.rdoc",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION.yml",
- "lib/packable.rb",
- "lib/packable/extensions/array.rb",
- "lib/packable/extensions/float.rb",
- "lib/packable/extensions/integer.rb",
- "lib/packable/extensions/io.rb",
- "lib/packable/extensions/object.rb",
- "lib/packable/extensions/proc.rb",
- "lib/packable/extensions/string.rb",
- "lib/packable/mixin.rb",
- "lib/packable/packers.rb",
- "packable.gemspec",
- "test/packing_doc_test.rb",
- "test/packing_test.rb",
- "test/test_helper.rb"
- ]
- s.homepage = "http://github.com/marcandre/packable"
- s.rdoc_options = ["--title", "Packable library", "--main", "README.rdoc", "--line-numbers", "--inline-source"]
- s.require_paths = ["lib"]
- s.rubyforge_project = "packable"
- s.rubygems_version = "1.8.24"
- s.summary = "Extensive packing and unpacking capabilities"
-
- 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<backports>, [">= 0"])
- else
- s.add_dependency(%q<backports>, [">= 0"])
- end
- else
- s.add_dependency(%q<backports>, [">= 0"])
- end
+ gem.files = `git ls-files`.split($/)
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
+ gem.require_paths = ["lib"]
+ gem.add_runtime_dependency 'backports'
end
-

0 comments on commit 31ad37b

Please sign in to comment.