From ff6703a94839b6c8f1ccd8fea38725f8d359e984 Mon Sep 17 00:00:00 2001 From: Amy Fong Date: Tue, 20 May 2014 15:19:50 -0400 Subject: Ruby/chef solo: Add recipes-devtools/ruby/method-source_git.bb A utility to return a method's sourcecode as a Ruby string. Signed-off-by: Mark Asselstine Signed-off-by: Amy Fong --- .../ruby/method-source/gemspec-bump-version.patch | 29 ++++++++++++++++++++++ .../recipes-devtools/ruby/method-source_git.bb | 28 +++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 meta-openstack/recipes-devtools/ruby/method-source/gemspec-bump-version.patch create mode 100644 meta-openstack/recipes-devtools/ruby/method-source_git.bb (limited to 'meta-openstack/recipes-devtools/ruby') diff --git a/meta-openstack/recipes-devtools/ruby/method-source/gemspec-bump-version.patch b/meta-openstack/recipes-devtools/ruby/method-source/gemspec-bump-version.patch new file mode 100644 index 0000000..fbb625c --- /dev/null +++ b/meta-openstack/recipes-devtools/ruby/method-source/gemspec-bump-version.patch @@ -0,0 +1,29 @@ +From e98b5737a61b676cba5f8935d56839e1f36faddf Mon Sep 17 00:00:00 2001 +From: Mark Asselstine +Date: Wed, 14 May 2014 09:05:35 -0400 +Subject: [PATCH] gemspec: bump version + +When the release was tagged the version bump was missed in the +gemspec file. + +Signed-off-by: Mark Asselstine +--- + method_source.gemspec | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/method_source.gemspec b/method_source.gemspec +index d24b3d9..75e3b5b 100644 +--- a/method_source.gemspec ++++ b/method_source.gemspec +@@ -2,7 +2,7 @@ + + Gem::Specification.new do |s| + s.name = "method_source" +- s.version = "0.8.1" ++ s.version = "0.8.2" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["John Mair (banisterfiend)"] +-- +1.8.3.2 + diff --git a/meta-openstack/recipes-devtools/ruby/method-source_git.bb b/meta-openstack/recipes-devtools/ruby/method-source_git.bb new file mode 100644 index 0000000..39b24d1 --- /dev/null +++ b/meta-openstack/recipes-devtools/ruby/method-source_git.bb @@ -0,0 +1,28 @@ +# +# Copyright (C) 2014 Wind River Systems, Inc. +# +SUMMARY = "A utility to return a method's sourcecode as a Ruby string." +DESCRIPTION = "A utility to return a method's sourcecode as a Ruby string." + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7d1a6fbb73f604e1e716380490938bd4" + +PR = "r0" + +BPV = "0.8.2" +PV = "${BPV}" +SRCREV = "1b1f8323a7c25f29331fe32511f50697e5405dbd" + +S = "${WORKDIR}/git" + +SRC_URI = " \ + git://github.com/banister/method_source.git \ + file://gemspec-bump-version.patch \ + " + +inherit ruby + +RUBY_BUILD_GEMS = "method_source.gemspec" +RUBY_INSTALL_GEMS = "method_source-${BPV}.gem" + +BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf