motion-bundler 0.1.7 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.rdoc +5 -0
  3. data/VERSION +1 -1
  4. data/lib/motion-bundler/config.rb +4 -0
  5. data/lib/motion-bundler/device/core_ext.rb +2 -2
  6. data/lib/motion-bundler/simulator/core_ext.rb +2 -2
  7. data/lib/motion-bundler/version.rb +2 -2
  8. data/{sample_app → sample_apps/ios}/.gitignore +0 -0
  9. data/{sample_app → sample_apps/ios}/Gemfile +1 -1
  10. data/{sample_app → sample_apps/ios}/Rakefile +0 -0
  11. data/{sample_app → sample_apps/ios}/app/app_delegate.rb +0 -4
  12. data/{sample_app → sample_apps/ios}/app/controllers/app_controller.rb +2 -1
  13. data/sample_apps/ios/boot.rb +3 -0
  14. data/{sample_app → sample_apps/ios}/lib/foo.rb +0 -0
  15. data/{sample_app → sample_apps/ios}/lib/foo/bar.rb +0 -0
  16. data/{sample_app → sample_apps/ios}/mocks/digest/md5.rb +0 -0
  17. data/{sample_app → sample_apps/ios}/mocks/httparty.rb +0 -0
  18. data/{sample_app → sample_apps/ios}/mocks/net/protocol.rb +0 -0
  19. data/{sample_app → sample_apps/ios}/mocks/openssl.rb +0 -0
  20. data/{sample_app → sample_apps/ios}/mocks/socket.so.rb +0 -0
  21. data/{sample_app → sample_apps/ios}/mocks/timeout.rb +0 -0
  22. data/{sample_app → sample_apps/ios}/resources/Icon.png +0 -0
  23. data/{sample_app → sample_apps/ios}/resources/Icon.pxm +0 -0
  24. data/{sample_app → sample_apps/ios}/resources/Icon@2x.png +0 -0
  25. data/{sample_app → sample_apps/ios}/resources/Icon@2x.pxm +0 -0
  26. data/{sample_app → sample_apps/ios}/spec/main_spec.rb +0 -0
  27. data/sample_apps/osx/.gitignore +16 -0
  28. data/sample_apps/osx/Gemfile +9 -0
  29. data/sample_apps/osx/Rakefile +26 -0
  30. data/sample_apps/osx/app/app_delegate.rb +9 -0
  31. data/sample_apps/osx/app/menu.rb +110 -0
  32. data/sample_apps/osx/app/tests.rb +125 -0
  33. data/sample_apps/osx/app/window.rb +14 -0
  34. data/sample_apps/osx/boot.rb +3 -0
  35. data/sample_apps/osx/lib/foo.rb +8 -0
  36. data/sample_apps/osx/lib/foo/bar.rb +9 -0
  37. data/sample_apps/osx/mocks/digest/md5.rb +0 -0
  38. data/sample_apps/osx/mocks/httparty.rb +5 -0
  39. data/sample_apps/osx/mocks/net/protocol.rb +9 -0
  40. data/sample_apps/osx/mocks/openssl.rb +0 -0
  41. data/sample_apps/osx/mocks/socket.so.rb +0 -0
  42. data/sample_apps/osx/mocks/timeout.rb +4 -0
  43. data/sample_apps/osx/resources/Credits.rtf +29 -0
  44. data/sample_apps/osx/resources/Icon.icns +0 -0
  45. data/sample_apps/osx/spec/main_spec.rb +9 -0
  46. data/test/.gemfiles/simulator/test_setup.lock +1 -1
  47. data/test/unit/test_config.rb +6 -0
  48. metadata +40 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a511acdb21993390c91f8d8663bdd3c73e76a656
4
- data.tar.gz: f66639236864827139db740e12941518992da621
3
+ metadata.gz: 2d98a6a1adfa615bfaac94a8c597bbeb713c2d20
4
+ data.tar.gz: 3f17c63737db7fbe3179b4c10cf0e5fed92a300f
5
5
  SHA512:
6
- metadata.gz: 676d574227184e574f1203e65ad6934cd34d3357af328d46e18a25356f77e6c1baf986784c9467a158bdba22b0dcd324def4b147d19c63b651387ef4ba0b157c
7
- data.tar.gz: d82d00aa08d67cb13b5913980796fe67800d72b4bf2be3c671dbb414a9548f03021f51efa9a790f227585587ea0e9c9909de8027d84054e8ec2ae30ed59a1feb
6
+ metadata.gz: 8b8cf3817233fca55b3ce60f85ce701d7f3ea9972eded4cb96bd1b54a157b9c44c479077bfda40724de86d9f20906ba315ea79379f4cce624b9c2a1f77004fbb
7
+ data.tar.gz: 9ff31682e7b15a8f90107d711cd5053efca40865a950891ec9de89d1c6f35a44903652311a00cd0f0c876baad09fec2f3119d590543715252f35db968f797102
@@ -1,5 +1,10 @@
1
1
  = MotionBundler CHANGELOG
2
2
 
3
+ == Version 0.2.0 (July 7, 2013)
4
+
5
+ * Added (RubyMotion) OSX support
6
+ * Making app/app_delegate.rb dependent of boot.rb when existing
7
+
3
8
  == Version 0.1.7 (June 19, 2013)
4
9
 
5
10
  * Added MotionBundler::CLI which outputs files, files dependencies and requires as YAML (usage: `bundle exec motion-bundler trace cgi`)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.2.0
@@ -3,6 +3,10 @@ module MotionBundler
3
3
  def initialize
4
4
  @requires = []
5
5
  @files_dependencies = {}
6
+ register "app/app_delegate.rb" => ["boot.rb"] if boot_file?
7
+ end
8
+ def boot_file?
9
+ File.exists? "boot.rb"
6
10
  end
7
11
  def require(name)
8
12
  @requires << name
@@ -5,7 +5,7 @@ module Kernel
5
5
  end
6
6
  def require_relative(string)
7
7
  end
8
- def load(filename, wrap=false)
8
+ def load(*args)
9
9
  end
10
10
  def autoload(mod, filename)
11
11
  end
@@ -16,7 +16,7 @@ class Object
16
16
  end
17
17
  def require_relative(string)
18
18
  end
19
- def load(filename, wrap=false)
19
+ def load(*args)
20
20
  end
21
21
  end
22
22
 
@@ -13,8 +13,8 @@ class Object
13
13
  def require_relative(string)
14
14
  console.warn { require_relative string }
15
15
  end
16
- def load(filename, wrap=false)
17
- console.warn { load filename }
16
+ def load(*args)
17
+ console.warn { load args[0] }
18
18
  end
19
19
  alias :original_instance_eval :instance_eval
20
20
  def instance_eval(*args, &block)
@@ -1,7 +1,7 @@
1
1
  module MotionBundler #:nodoc:
2
2
  MAJOR = 0
3
- MINOR = 1
4
- TINY = 7
3
+ MINOR = 2
4
+ TINY = 0
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
@@ -1,7 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  # RubyMotion aware gems
4
- gem "motion-bundler", :path => File.expand_path("../..", __FILE__)
4
+ gem "motion-bundler", :path => "../../.."
5
5
 
6
6
  # RubyMotion unaware gems
7
7
  group :motion do
File without changes
@@ -1,7 +1,3 @@
1
- module REXML
2
- class Child; end
3
- end
4
-
5
1
  class AppDelegate
6
2
  def application(application, didFinishLaunchingWithOptions:launchOptions)
7
3
  @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
@@ -114,10 +114,11 @@ class AppController < UIViewController
114
114
  alert = UIAlertView.new
115
115
  alert.title = "Thanks!"
116
116
  alert.message = "Hi, thanks for giving MotionBundler a try! Any form of collaboration is very welcome.\n\nGreets,\nPaul Engel\n@archan937"
117
- alert.show
118
117
 
119
118
  count = alert.message.split("\n").collect(&:size).max + 2
120
119
  puts ["", "=" * count, "", alert.title, "", alert.message, "", "=" * count]
121
120
 
121
+ alert.show
122
+
122
123
  end
123
124
  end
@@ -0,0 +1,3 @@
1
+ module REXML
2
+ class Child; end
3
+ end
@@ -0,0 +1,16 @@
1
+ .repl_history
2
+ build
3
+ tags
4
+ app/pixate_code.rb
5
+ resources/*.nib
6
+ resources/*.momd
7
+ resources/*.storyboardc
8
+ .DS_Store
9
+ nbproject
10
+ .redcar
11
+ #*#
12
+ *~
13
+ *.sw[po]
14
+ .eprj
15
+ .sass-cache
16
+ .idea
@@ -0,0 +1,9 @@
1
+ source "http://rubygems.org"
2
+
3
+ # RubyMotion aware gems
4
+ gem "motion-bundler", :path => "../../.."
5
+
6
+ # RubyMotion unaware gems
7
+ group :motion do
8
+ gem "slot_machine"
9
+ end
@@ -0,0 +1,26 @@
1
+ # -*- coding: utf-8 -*-
2
+ $:.unshift "/Library/RubyMotion/lib"
3
+ require "motion/project/template/osx"
4
+
5
+ # Require and prepare Bundler
6
+ require "bundler"
7
+ Bundler.require
8
+
9
+ Motion::Project::App.setup do |app|
10
+ # Use `rake config' to see complete project settings.
11
+ app.name = "MBundler"
12
+ app.icon = "Icon"
13
+ app.info_plist["CFBundleIconFile"] = "Icon.icns"
14
+ end
15
+
16
+ require "/Users/paulengel/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/cgi/html.rb"
17
+
18
+ # Track and specify files and their mutual dependencies within the :motion Bundler group
19
+ MotionBundler.setup do |app|
20
+ app.require "base64"
21
+ app.register({
22
+ "rexml/xmldecl" => ["rexml/child"],
23
+ "rexml/doctype" => ["rexml/child"],
24
+ "rexml/parsers/baseparser" => ["set"]
25
+ })
26
+ end
@@ -0,0 +1,9 @@
1
+ class AppDelegate
2
+
3
+ def applicationDidFinishLaunching(notification)
4
+ buildMenu
5
+ buildWindow
6
+ runTests
7
+ end
8
+
9
+ end
@@ -0,0 +1,110 @@
1
+ class AppDelegate
2
+
3
+ def buildMenu
4
+ @mainMenu = NSMenu.new
5
+
6
+ appName = NSBundle.mainBundle.infoDictionary["CFBundleName"]
7
+ addMenu appName do
8
+ addItemWithTitle "About #{appName}", action: "orderFrontStandardAboutPanel:", keyEquivalent: ""
9
+ addItem NSMenuItem.separatorItem
10
+ addItemWithTitle "Preferences", action: "openPreferences:", keyEquivalent: ","
11
+ addItem NSMenuItem.separatorItem
12
+ servicesItem = addItemWithTitle "Services", action: nil, keyEquivalent: ""
13
+ NSApp.servicesMenu = servicesItem.submenu = NSMenu.new
14
+ addItem NSMenuItem.separatorItem
15
+ addItemWithTitle "Hide #{appName}", action: "hide:", keyEquivalent: "h"
16
+ item = addItemWithTitle "Hide Others", action: "hideOtherApplications:", keyEquivalent: "H"
17
+ item.keyEquivalentModifierMask = NSCommandKeyMask | NSAlternateKeyMask
18
+ addItemWithTitle "Show All", action: "unhideAllApplications:", keyEquivalent: ""
19
+ addItem NSMenuItem.separatorItem
20
+ addItemWithTitle "Quit #{appName}", action: "terminate:", keyEquivalent: "q"
21
+ end
22
+
23
+ addMenu "File" do
24
+ addItemWithTitle "New", action: "newDocument:", keyEquivalent: "n"
25
+ addItemWithTitle "Open…", action: "openDocument:", keyEquivalent: "o"
26
+ addItem NSMenuItem.separatorItem
27
+ addItemWithTitle "Close", action: "performClose:", keyEquivalent: "w"
28
+ addItemWithTitle "Save…", action: "saveDocument:", keyEquivalent: "s"
29
+ addItemWithTitle "Revert to Saved", action: "revertDocumentToSaved:", keyEquivalent: ""
30
+ addItem NSMenuItem.separatorItem
31
+ addItemWithTitle "Page Setup…", action: "runPageLayout:", keyEquivalent: "P"
32
+ addItemWithTitle "Print…", action: "printDocument:", keyEquivalent: "p"
33
+ end
34
+
35
+ addMenu "Edit" do
36
+ addItemWithTitle "Undo", action: "undo:", keyEquivalent: "z"
37
+ addItemWithTitle "Redo", action: "redo:", keyEquivalent: "Z"
38
+ addItem NSMenuItem.separatorItem
39
+ addItemWithTitle "Cut", action: "cut:", keyEquivalent: "x"
40
+ addItemWithTitle "Copy", action: "copy:", keyEquivalent: "c"
41
+ addItemWithTitle "Paste", action: "paste:", keyEquivalent: "v"
42
+ item = addItemWithTitle "Paste and Match Style", action: "pasteAsPlainText:", keyEquivalent: "V"
43
+ item.keyEquivalentModifierMask = NSCommandKeyMask | NSAlternateKeyMask
44
+ addItemWithTitle "Delete", action: "delete:", keyEquivalent: ""
45
+ addItemWithTitle "Select All", action: "selectAll:", keyEquivalent: "a"
46
+ end
47
+
48
+ fontMenu = createMenu "Font" do
49
+ addItemWithTitle "Show Fonts", action: "orderFrontFontPanel:", keyEquivalent: "t"
50
+ addItemWithTitle "Bold", action: "addFontTrait:", keyEquivalent: "b"
51
+ addItemWithTitle "Italic", action: "addFontTrait:", keyEquivalent: "b"
52
+ addItemWithTitle "Underline", action: "underline:", keyEquivalent: "u"
53
+ addItem NSMenuItem.separatorItem
54
+ addItemWithTitle "Bigger", action: "modifyFont:", keyEquivalent: "+"
55
+ addItemWithTitle "Smaller", action: "modifyFont:", keyEquivalent: "-"
56
+ end
57
+
58
+ textMenu = createMenu "Text" do
59
+ addItemWithTitle "Align Left", action: "alignLeft:", keyEquivalent: "{"
60
+ addItemWithTitle "Center", action: "alignCenter:", keyEquivalent: "|"
61
+ addItemWithTitle "Justify", action: "alignJustified:", keyEquivalent: ""
62
+ addItemWithTitle "Align Right", action: "alignRight:", keyEquivalent: "}"
63
+ addItem NSMenuItem.separatorItem
64
+ addItemWithTitle "Show Ruler", action: "toggleRuler:", keyEquivalent: ""
65
+ addItemWithTitle "Copy Ruler", action: "copyRuler:", keyEquivalent: "c"
66
+ addItemWithTitle "Paste Ruler", action: "pasteRuler:", keyEquivalent: "v"
67
+ end
68
+
69
+ addMenu "Format" do
70
+ addItem fontMenu
71
+ addItem textMenu
72
+ end
73
+
74
+ addMenu "View" do
75
+ item = addItemWithTitle "Show Toolbar", action: "toggleToolbarShown:", keyEquivalent: "t"
76
+ item.keyEquivalentModifierMask = NSCommandKeyMask | NSAlternateKeyMask
77
+ addItemWithTitle "Customize Toolbar…", action: "runToolbarCustomizationPalette:", keyEquivalent: ""
78
+ end
79
+
80
+ NSApp.windowsMenu = addMenu "Window" do
81
+ addItemWithTitle "Minimize", action: "performMiniaturize:", keyEquivalent: "m"
82
+ addItemWithTitle "Zoom", action: "performZoom:", keyEquivalent: ""
83
+ addItem NSMenuItem.separatorItem
84
+ addItemWithTitle "Bring All To Front", action: "arrangeInFront:", keyEquivalent: ""
85
+ end.menu
86
+
87
+ NSApp.helpMenu = addMenu "Help" do
88
+ addItemWithTitle "#{appName} Help", action: "showHelp:", keyEquivalent: "?"
89
+ end.menu
90
+
91
+ NSApp.mainMenu = @mainMenu
92
+ end
93
+
94
+ private
95
+
96
+ def addMenu(title, &block)
97
+ item = createMenu title, &block
98
+ @mainMenu.addItem item
99
+ item
100
+ end
101
+
102
+ def createMenu(title, &block)
103
+ menu = NSMenu.alloc.initWithTitle title
104
+ menu.instance_eval &block if block_given?
105
+ item = NSMenuItem.alloc.initWithTitle title, action: nil, keyEquivalent: ""
106
+ item.submenu = menu
107
+ item
108
+ end
109
+
110
+ end
@@ -0,0 +1,125 @@
1
+ require "stringio"
2
+ require "strscan"
3
+ require "zlib"
4
+ require "httparty"
5
+ require "net/pop"
6
+ require "rexml/document"
7
+ require "socket"
8
+
9
+ require_relative "../lib/foo"
10
+
11
+ class AppDelegate
12
+
13
+ def runTests
14
+
15
+ # Testing SlotMachine
16
+
17
+ ts = TimeSlot.new 1015..1045
18
+ p ts.match 10
19
+ p ts.match 10, 5
20
+
21
+ # Testing StringIO
22
+
23
+ s = StringIO.new %{This is a test of a string as a file.\r\nAnd this could be another line in the file}
24
+ p s.gets
25
+ p s.read(17)
26
+
27
+ # Testing StringScanner
28
+
29
+ s = StringScanner.new "ab"
30
+ p s.getch
31
+ p s.getch
32
+ p s.getch
33
+
34
+ # Testing Zlib
35
+
36
+ data = "x\234\355\301\001\001\000\000\000\200\220\376\257\356\b\n#{"\000" * 31}\030\200\000\000\001"
37
+ zipped = Zlib::Inflate.inflate data
38
+ p zipped == ("\000" * 32 * 1024)
39
+
40
+ # Testing (mocked) HTTParty
41
+
42
+ p HTTParty.hi!
43
+
44
+ # Testing (mocked) Net::Protocol
45
+
46
+ p Net::Protocol.hi!
47
+
48
+ # Testing Foo and Foo::Bar
49
+
50
+ p Foo.foo!
51
+ p Foo::Bar.bar!
52
+
53
+ # Testing at runtime require statement
54
+
55
+ file = "base64"
56
+ require file
57
+ enc = Base64.encode64("Send reinforcements!")
58
+ p enc
59
+ p Base64.decode64(enc)
60
+
61
+ # Testing REXML::Document
62
+
63
+ xml = <<-XML
64
+ <inventory title="OmniCorp Store #45x10^3">
65
+ <section name="health">
66
+ <item upc="123456789" stock="12">
67
+ <name>Invisibility Cream</name>
68
+ <price>14.50</price>
69
+ <description>Makes you invisible</description>
70
+ </item>
71
+ <item upc="445322344" stock="18">
72
+ <name>Levitation Salve</name>
73
+ <price>23.99</price>
74
+ <description>Levitate yourself for up to 3 hours per application</description>
75
+ </item>
76
+ </section>
77
+ <section name="food">
78
+ <item upc="485672034" stock="653">
79
+ <name>Blork and Freen Instameal</name>
80
+ <price>4.95</price>
81
+ <description>A tasty meal in a tablet; just add water</description>
82
+ </item>
83
+ <item upc="132957764" stock="44">
84
+ <name>Grob winglets</name>
85
+ <price>3.56</price>
86
+ <description>Tender winglets of Grob. Just add water</description>
87
+ </item>
88
+ </section>
89
+ </inventory>
90
+ XML
91
+
92
+ doc = REXML::Document.new xml
93
+ root = doc.root
94
+
95
+ doc.elements.each("inventory/section"){|element| puts element.attributes["name"]}
96
+ # => health
97
+ # => food
98
+ doc.elements.each("*/section/item"){|element| puts element.attributes["upc"]}
99
+ # => 123456789
100
+ # => 445322344
101
+ # => 485672034
102
+ # => 132957764
103
+
104
+ puts root.attributes["title"]
105
+ # => OmniCorp Store #45x10^3
106
+ puts root.elements["section/item[@stock='44']"].attributes["upc"]
107
+ # => 132957764
108
+ puts root.elements["section"].attributes["name"]
109
+ # => health (returns the first encountered matching element)
110
+ puts root.elements[1].attributes["name"]
111
+ # => health (returns the FIRST child element)
112
+
113
+ # Say thanks
114
+
115
+ alert = NSAlert.new
116
+ alert.messageText = "Thanks!\n\nHi, thanks for giving MotionBundler a try! Any form of collaboration is very welcome.\n\nGreets,\nPaul Engel\n@archan937"
117
+
118
+ count = alert.messageText.split("\n").collect(&:size).max + 2
119
+ puts ["", "=" * count, "", alert.messageText, "", "=" * count]
120
+
121
+ alert.runModal
122
+
123
+ end
124
+
125
+ end
@@ -0,0 +1,14 @@
1
+ class AppDelegate
2
+
3
+ def buildWindow
4
+ @mainWindow = NSWindow.alloc.initWithContentRect(
5
+ [[240, 180], [480, 360]],
6
+ styleMask: NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask,
7
+ backing: NSBackingStoreBuffered,
8
+ defer: false
9
+ )
10
+ @mainWindow.title = NSBundle.mainBundle.infoDictionary["CFBundleName"]
11
+ @mainWindow.orderFrontRegardless
12
+ end
13
+
14
+ end
@@ -0,0 +1,3 @@
1
+ module REXML
2
+ class Child; end
3
+ end
@@ -0,0 +1,8 @@
1
+ require_relative "foo/bar"
2
+ require "cgi"
3
+
4
+ module Foo
5
+ def self.foo!
6
+ CGI.escape_html "Foo > Bar"
7
+ end
8
+ end
@@ -0,0 +1,9 @@
1
+ require "cgi"
2
+
3
+ module Foo
4
+ module Bar
5
+ def self.bar!
6
+ CGI.escape_html "Bar < Foo"
7
+ end
8
+ end
9
+ end
File without changes
@@ -0,0 +1,5 @@
1
+ module HTTParty
2
+ def self.hi!
3
+ "Hi, I'm #{name}"
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ module Net
2
+ class ProtocolError < StandardError; end
3
+ class ProtoAuthError < ProtocolError; end
4
+ class Protocol
5
+ def self.hi!
6
+ "Hi, I'm #{name}"
7
+ end
8
+ end
9
+ end
File without changes
File without changes
@@ -0,0 +1,4 @@
1
+ module Timeout
2
+ class Error < RuntimeError
3
+ end
4
+ end
@@ -0,0 +1,29 @@
1
+ {\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
2
+ {\colortbl;\red255\green255\blue255;}
3
+ \paperw9840\paperh8400
4
+ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
5
+
6
+ \f0\b\fs24 \cf0 Engineering:
7
+ \b0 \
8
+ Some people\
9
+ \
10
+
11
+ \b Human Interface Design:
12
+ \b0 \
13
+ Some other people\
14
+ \
15
+
16
+ \b Testing:
17
+ \b0 \
18
+ Hopefully not nobody\
19
+ \
20
+
21
+ \b Documentation:
22
+ \b0 \
23
+ Whoever\
24
+ \
25
+
26
+ \b With special thanks to:
27
+ \b0 \
28
+ Mom\
29
+ }
@@ -0,0 +1,9 @@
1
+ describe "Application 'MBundler'" do
2
+ before do
3
+ @app = NSApplication.sharedApplication
4
+ end
5
+
6
+ it "has one window" do
7
+ @app.windows.size.should == 1
8
+ end
9
+ end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/paulengel/Sources/motion-bundler
3
3
  specs:
4
- motion-bundler (0.1.7)
4
+ motion-bundler (0.2.0)
5
5
  thor
6
6
 
7
7
  PATH
@@ -4,6 +4,12 @@ module Unit
4
4
  class TestConfig < MiniTest::Unit::TestCase
5
5
 
6
6
  describe MotionBundler::Config do
7
+ it "should include 'boot.rb' when existing" do
8
+ assert_equal({}, MotionBundler::Config.new.files_dependencies)
9
+ MotionBundler::Config.any_instance.expects(:boot_file?).returns true
10
+ assert_equal({"app/app_delegate.rb" => ["boot.rb"]}, MotionBundler::Config.new.files_dependencies)
11
+ end
12
+
7
13
  it "should be able to register requires and returning them" do
8
14
  config = MotionBundler::Config.new
9
15
  assert_equal [], config.requires
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Engel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-19 00:00:00.000000000 Z
11
+ date: 2013-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -109,24 +109,44 @@ files:
109
109
  - lib/motion-bundler/version.rb
110
110
  - motion-bundler.gemspec
111
111
  - rake
112
- - sample_app/.gitignore
113
- - sample_app/Gemfile
114
- - sample_app/Rakefile
115
- - sample_app/app/app_delegate.rb
116
- - sample_app/app/controllers/app_controller.rb
117
- - sample_app/lib/foo.rb
118
- - sample_app/lib/foo/bar.rb
119
- - sample_app/mocks/digest/md5.rb
120
- - sample_app/mocks/httparty.rb
121
- - sample_app/mocks/net/protocol.rb
122
- - sample_app/mocks/openssl.rb
123
- - sample_app/mocks/socket.so.rb
124
- - sample_app/mocks/timeout.rb
125
- - sample_app/resources/Icon.png
126
- - sample_app/resources/Icon.pxm
127
- - sample_app/resources/Icon@2x.png
128
- - sample_app/resources/Icon@2x.pxm
129
- - sample_app/spec/main_spec.rb
112
+ - sample_apps/ios/.gitignore
113
+ - sample_apps/ios/Gemfile
114
+ - sample_apps/ios/Rakefile
115
+ - sample_apps/ios/app/app_delegate.rb
116
+ - sample_apps/ios/app/controllers/app_controller.rb
117
+ - sample_apps/ios/boot.rb
118
+ - sample_apps/ios/lib/foo.rb
119
+ - sample_apps/ios/lib/foo/bar.rb
120
+ - sample_apps/ios/mocks/digest/md5.rb
121
+ - sample_apps/ios/mocks/httparty.rb
122
+ - sample_apps/ios/mocks/net/protocol.rb
123
+ - sample_apps/ios/mocks/openssl.rb
124
+ - sample_apps/ios/mocks/socket.so.rb
125
+ - sample_apps/ios/mocks/timeout.rb
126
+ - sample_apps/ios/resources/Icon.png
127
+ - sample_apps/ios/resources/Icon.pxm
128
+ - sample_apps/ios/resources/Icon@2x.png
129
+ - sample_apps/ios/resources/Icon@2x.pxm
130
+ - sample_apps/ios/spec/main_spec.rb
131
+ - sample_apps/osx/.gitignore
132
+ - sample_apps/osx/Gemfile
133
+ - sample_apps/osx/Rakefile
134
+ - sample_apps/osx/app/app_delegate.rb
135
+ - sample_apps/osx/app/menu.rb
136
+ - sample_apps/osx/app/tests.rb
137
+ - sample_apps/osx/app/window.rb
138
+ - sample_apps/osx/boot.rb
139
+ - sample_apps/osx/lib/foo.rb
140
+ - sample_apps/osx/lib/foo/bar.rb
141
+ - sample_apps/osx/mocks/digest/md5.rb
142
+ - sample_apps/osx/mocks/httparty.rb
143
+ - sample_apps/osx/mocks/net/protocol.rb
144
+ - sample_apps/osx/mocks/openssl.rb
145
+ - sample_apps/osx/mocks/socket.so.rb
146
+ - sample_apps/osx/mocks/timeout.rb
147
+ - sample_apps/osx/resources/Credits.rtf
148
+ - sample_apps/osx/resources/Icon.icns
149
+ - sample_apps/osx/spec/main_spec.rb
130
150
  - script/console
131
151
  - test/.gemfiles/simulator/test_setup
132
152
  - test/.gemfiles/simulator/test_setup.lock