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
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,6 @@
source "http://rubygems.org" source "http://rubygems.org"


gem 'bubble-wrap'

# Specify your gem's dependencies in remote_model.gemspec # Specify your gem's dependencies in remote_model.gemspec
gemspec gemspec
15 changes: 14 additions & 1 deletion Rakefile
Original file line number Original file line Diff line number Diff line change
@@ -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
Original file line number Original file line Diff line number Diff line change
@@ -1,12 +1,5 @@
require "remote_model/version" require "remote_model/version"
require "bubble-wrap" require 'bubble-wrap'

Dir.glob(File.join(File.dirname(__FILE__), 'remote_model/*.rb')).each do |file|
unless defined?(Motion::Project::Config) BW.require file
raise "This file must be required within a RubyMotion project Rakefile." end
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
1 change: 1 addition & 0 deletions remote_model.gemspec
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"] s.require_paths = ["lib"]


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

0 comments on commit d0c4a9e

Please sign in to comment.