Skip to content

Commit

Permalink
fix the build process
Browse files Browse the repository at this point in the history
BubbleWrap has changed how they require files and broke older gem settings.
  • Loading branch information
clayallsopp committed Jun 8, 2012
1 parent 1a7aacb commit d0c4a9e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
2 changes: 2 additions & 0 deletions Gemfile
@@ -1,4 +1,6 @@
source "http://rubygems.org"

gem 'bubble-wrap'

# Specify your gem's dependencies in remote_model.gemspec
gemspec
15 changes: 14 additions & 1 deletion Rakefile
@@ -1 +1,14 @@
require "bundler/gem_tasks"
#!/usr/bin/env rake
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require "bundler/gem_tasks"
Bundler.setup
Bundler.require

$:.unshift("./lib/")
require './lib/remote_model'

Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'RemoteModel'
end
15 changes: 4 additions & 11 deletions lib/remote_model.rb
@@ -1,12 +1,5 @@
require "remote_model/version"
require "bubble-wrap"

unless defined?(Motion::Project::Config)
raise "This file must be required within a RubyMotion project Rakefile."
end

Motion::Project::App.setup do |app|
Dir.glob(File.join(File.dirname(__FILE__), 'remote_model/*.rb')).each do |file|
app.files.unshift(file)
end
end
require 'bubble-wrap'
Dir.glob(File.join(File.dirname(__FILE__), 'remote_model/*.rb')).each do |file|
BW.require file
end
1 change: 1 addition & 0 deletions remote_model.gemspec
Expand Up @@ -15,4 +15,5 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]

s.add_dependency "bubble-wrap"
s.add_development_dependency 'rake'
end

0 comments on commit d0c4a9e

Please sign in to comment.