From 449da29c70430104431960b729bffdc7e525db06 Mon Sep 17 00:00:00 2001 From: Watson Date: Thu, 27 Nov 2014 20:52:51 +0900 Subject: [PATCH] =?UTF-8?q?[RM-675]=20make=20sure=20that=20add=20"require?= =?UTF-8?q?=20=E2=80=98pathname'"=20in=20where=20uses=20Pathname=20in=20or?= =?UTF-8?q?der=20to=20fix=20that=20it=20can't=20build=20extension=20with?= =?UTF-8?q?=20system=20bundled=20ruby?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/motion/project/config.rb | 1 + lib/motion/project/template/ios-extension-builder.rb | 1 + lib/motion/project/template/ios-framework/builder.rb | 1 + lib/motion/project/vendor.rb | 2 ++ 4 files changed, 5 insertions(+) diff --git a/lib/motion/project/config.rb b/lib/motion/project/config.rb index d73dbaeb..fb6297a5 100644 --- a/lib/motion/project/config.rb +++ b/lib/motion/project/config.rb @@ -23,6 +23,7 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +require 'pathname' require 'motion/project/app' require 'motion/util/version' diff --git a/lib/motion/project/template/ios-extension-builder.rb b/lib/motion/project/template/ios-extension-builder.rb index 12ae7411..c8c9a4b0 100644 --- a/lib/motion/project/template/ios-extension-builder.rb +++ b/lib/motion/project/template/ios-extension-builder.rb @@ -23,6 +23,7 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +require 'pathname' require 'motion/project/builder' module Motion; module Project diff --git a/lib/motion/project/template/ios-framework/builder.rb b/lib/motion/project/template/ios-framework/builder.rb index 0698b6fe..e89628b8 100644 --- a/lib/motion/project/template/ios-framework/builder.rb +++ b/lib/motion/project/template/ios-framework/builder.rb @@ -23,6 +23,7 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +require 'pathname' require 'motion/project/builder' module Motion; module Project diff --git a/lib/motion/project/vendor.rb b/lib/motion/project/vendor.rb index 06856f86..270ea908 100644 --- a/lib/motion/project/vendor.rb +++ b/lib/motion/project/vendor.rb @@ -23,6 +23,8 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +require 'pathname' + module Motion; module Project; class Vendor include Rake::DSL if Rake.const_defined?(:DSL)