From 9916dd3d417b757b378e3b074dca07746ee3a390 Mon Sep 17 00:00:00 2001 From: Florian Frank Date: Fri, 19 Jul 2013 12:17:31 +0200 Subject: [PATCH] Add license information to gemspec --- Rakefile | 1 + VERSION | 2 +- lib/protocol/version.rb | 4 ++-- protocol.gemspec | 11 ++++++----- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Rakefile b/Rakefile index d949105..bede592 100644 --- a/Rakefile +++ b/Rakefile @@ -15,6 +15,7 @@ like Java Interfaces, but as mixin modules they can also contain already implemented methods. Additionaly you can define preconditions/postconditions for methods specified in a protocol. EOT + licenses << 'GPL-2' test_dir 'tests' ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', 'coverage', '.rvmrc', '.AppleDouble' readme 'README.rdoc' diff --git a/VERSION b/VERSION index 3eefcb9..7dea76e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.0 +1.0.1 diff --git a/lib/protocol/version.rb b/lib/protocol/version.rb index 72fa5dd..c2ec9fd 100644 --- a/lib/protocol/version.rb +++ b/lib/protocol/version.rb @@ -1,7 +1,7 @@ module Protocol # Protocol version - VERSION = '1.0.0' - VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc: + VERSION = '1.0.1' + VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc: VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc: VERSION_MINOR = VERSION_ARRAY[1] # :nodoc: VERSION_BUILD = VERSION_ARRAY[2] # :nodoc: diff --git a/protocol.gemspec b/protocol.gemspec index 7f3cf21..bf17954 100644 --- a/protocol.gemspec +++ b/protocol.gemspec @@ -2,16 +2,17 @@ Gem::Specification.new do |s| s.name = "protocol" - s.version = "1.0.0" + s.version = "1.0.1" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Florian Frank"] - s.date = "2013-07-18" + s.date = "2013-07-19" s.description = "This library offers an implementation of protocols against which you can check\nthe conformity of your classes or instances of your classes. They are a bit\nlike Java Interfaces, but as mixin modules they can also contain already\nimplemented methods. Additionaly you can define preconditions/postconditions\nfor methods specified in a protocol.\n" s.email = "flori@ping.de" s.extra_rdoc_files = ["README.rdoc", "lib/protocol.rb", "lib/protocol/core.rb", "lib/protocol/descriptor.rb", "lib/protocol/errors.rb", "lib/protocol/message.rb", "lib/protocol/method_parser/ruby_parser.rb", "lib/protocol/post_condition.rb", "lib/protocol/protocol_module.rb", "lib/protocol/utilities.rb", "lib/protocol/version.rb", "lib/protocol/xt.rb"] s.files = [".gitignore", ".travis.yml", "CHANGES", "COPYING", "Gemfile", "README.rdoc", "Rakefile", "VERSION", "benchmarks/data/.keep", "benchmarks/method_parser.rb", "examples/assignments.rb", "examples/comparing.rb", "examples/enumerating.rb", "examples/game.rb", "examples/hello_world_patternitis.rb", "examples/indexing.rb", "examples/locking.rb", "examples/queue.rb", "examples/stack.rb", "install.rb", "lib/protocol.rb", "lib/protocol/core.rb", "lib/protocol/descriptor.rb", "lib/protocol/errors.rb", "lib/protocol/message.rb", "lib/protocol/method_parser/ruby_parser.rb", "lib/protocol/post_condition.rb", "lib/protocol/protocol_module.rb", "lib/protocol/utilities.rb", "lib/protocol/version.rb", "lib/protocol/xt.rb", "protocol.gemspec", "tests/protocol_method_parser_test.rb", "tests/protocol_test.rb", "tests/test_helper.rb"] s.homepage = "http://flori.github.com/protocol" + s.licenses = ["GPL-2"] s.rdoc_options = ["--title", "Protocol - Method Protocols for Ruby Classes", "--main", "README.rdoc"] s.require_paths = ["lib"] s.rubygems_version = "2.0.4" @@ -22,16 +23,16 @@ Gem::Specification.new do |s| s.specification_version = 4 if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q, ["~> 0.1.8"]) + s.add_development_dependency(%q, ["~> 0.3.2"]) s.add_development_dependency(%q, [">= 0"]) s.add_runtime_dependency(%q, ["~> 3.0"]) else - s.add_dependency(%q, ["~> 0.1.8"]) + s.add_dependency(%q, ["~> 0.3.2"]) s.add_dependency(%q, [">= 0"]) s.add_dependency(%q, ["~> 3.0"]) end else - s.add_dependency(%q, ["~> 0.1.8"]) + s.add_dependency(%q, ["~> 0.3.2"]) s.add_dependency(%q, [">= 0"]) s.add_dependency(%q, ["~> 3.0"]) end