mirror of
https://github.com/zhigang1992/rmq.git
synced 2026-01-12 17:52:17 +08:00
Added rmq console utility. Misc
This commit is contained in:
@@ -361,8 +361,6 @@ class StoreCell < UITableViewCell
|
||||
end
|
||||
```
|
||||
|
||||
The example app has an 'example' of create.
|
||||
|
||||
### Animate
|
||||
|
||||
```ruby
|
||||
|
||||
6
lib/rmq
Executable file
6
lib/rmq
Executable 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
|
||||
@@ -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"]
|
||||
|
||||
@@ -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|;}
|
||||
|
||||
Reference in New Issue
Block a user