Added rmq console utility. Misc

This commit is contained in:
Todd Werth
2013-08-26 12:06:16 -07:00
parent d2757b368e
commit c6c56fe037
4 changed files with 18 additions and 2 deletions

View File

@@ -361,8 +361,6 @@ class StoreCell < UITableViewCell
end
```
The example app has an 'example' of create.
### Animate
```ruby

6
lib/rmq Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
if [[ $1 == 'create' ]]; then
echo "RMQ - Creating project: $2"
motion create --template=git@github.com:infinitered/rmq-template.git $2
fi

View File

@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
files.concat(Dir.glob('lib/**/*.rb'))
files.concat(Dir.glob('motion/**/*.rb'))
spec.files = files
s.executables << 'lib/rmq'
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

View File

@@ -126,6 +126,16 @@ describe 'events' do
end
end
it 'should not fail if you remove an event that isnt\'t there' do
@events.on(@view, :touch_down) {|o|;}
event_set = @events.instance_variable_get(:@event_set)
event_set.length.should == 1
@events.off(:all_editing)
event_set.length.should == 1
@events.off(:touch_down, :tap, :editing_did_endonexit)
event_set.length.should == 0
end
it 'should remove all events from event set' do
@events.on(@view, :tap) {|o|;}
@events.on(@view, :touch_down) {|o|;}