forked from nathankot/webstub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
35 lines (25 loc) · 739 Bytes
/
Rakefile
File metadata and controls
35 lines (25 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$:.unshift("/Library/RubyMotion/lib")
begin
if ENV['osx']
require 'motion/project/template/osx'
else
require 'motion/project/template/ios'
end
rescue LoadError
require 'motion/project'
end
require 'bundler/setup'
Bundler.setup
Bundler.require
require 'rubygems/tasks'
Gem::Tasks.new
Motion::Project::App.setup do |app|
gemspec = Dir.glob(File.join(File.dirname(__FILE__), "*.gemspec")).first
gem_name = File.basename(gemspec).gsub("\.gemspec", "")
app.development do
app.files += Dir.glob(File.join(File.dirname(__FILE__), "lib/#{gem_name}/**/*.rb"))
app.files << File.join(File.dirname(__FILE__), "lib/spec/spec_delegate.rb")
app.delegate_class = "SpecDelegate"
end
app.name = gem_name
end