infinitered / redpotion

We believe iPhone development should be clean, scalable, and fast with a language that developers not only enjoy, but actively choose. With the advent of Ruby for iPhone development the RubyMotion community has combined and tested the most active and powerful gems into a single package called RedPotion
MIT License
233 stars 40 forks source link

Fix TableScreen searchable #135

Closed markrickert closed 9 years ago

markrickert commented 9 years ago

Also add search text to the example table screen in the app so that there are results when searching.

This should be merged asap and a minor version released since PM::TableScreen searching is broken in v1.4.0

Closes #134

jamonholmgren commented 9 years ago
Bacon::Error: not #<UIImage:0x1117c6550>.==(#<UIImage:0x1117cd040>) failed
    spec.rb:769:in `satisfy:': RubyMotionQuery styler: UIImageView - should set a remote image URL string
    spec.rb:783:in `method_missing:'
    spec.rb:459:in `execute_block'
    spec.rb:421:in `run_postponed_block:'
Bacon::Error: not #<UIImage:0x1117fb990>.==(#<UIImage:0x1117d99a0>) failed
    spec.rb:769:in `satisfy:': RubyMotionQuery styler: UIImageView - should set a remote image with a NSURL instance
    spec.rb:783:in `method_missing:'
    spec.rb:459:in `execute_block'
    spec.rb:421:in `run_postponed_block:'
Bacon::Error: not nil.==(nil) failed
    spec.rb:769:in `satisfy:': RubyMotionQuery styler: UIImageView - should set a remote image and no placeholder
    spec.rb:783:in `method_missing:'
    spec.rb:459:in `execute_block'
    spec.rb:421:in `run_postponed_block:'
Bacon::Error: #<UIImage:0x113201830>.==(#<UIImage:0x113201c70>) failed
    spec.rb:769:in `satisfy:': RubyMotionQuery styler: UIImageView - should fetch the image from memory
    spec.rb:783:in `method_missing:'
    spec.rb:316:in `block in run_spec_block'
    spec.rb:459:in `execute_block'
    spec.rb:316:in `run_spec_block'
    spec.rb:331:in `run'
118 tests, 154 assertions, 4 failures, 0 errors
markrickert commented 9 years ago

OK, this should be ready to go. I even added a new test :)

markrickert commented 9 years ago

@jamonholmgren

Locally:

bundle exec rake spec files='spec/ruby_motion_query/stylers/ui_image_view_spec.rb'

RubyMotionQuery styler: UIImageView
  - should set a placeholder image
  - should set a remote image URL string
  - should set a remote image with a NSURL instance
  - should keep the placeholder image when the remote image fails
  - should set a remote image and no placeholder
  - should fetch the image from memory

6 specifications (13 requirements), 0 failures, 0 errors
jamonholmgren commented 9 years ago

Nice. :shipit:

squidpunch commented 9 years ago

that remote image test i have seen fail on travis quite a bit actually...

markrickert commented 9 years ago

Yeah, it fails all the time. And usually we can just restart it and it'll pass, but not this time. I've restarted it like 4 times. :cry:

It passes locally.

markrickert commented 9 years ago

@twerth Can we release a new version with this fix in it?

andersennl commented 9 years ago

Please release it, my search is broken :/

markrickert commented 9 years ago
gem 'redpotion', github: 'infinitered/redpotion'

should do it for you till we get the next release out. Sorry for the delay!

jamonholmgren commented 9 years ago

We will be releasing a new version of ProMotion shortly, too.

andersennl commented 9 years ago

Ok, thanks for the gem hint.

markrickert commented 9 years ago

No problem. that basically uses the most recent version of the gem from github instead of the version released on rubygems. You can also specify branches if you want, but if you reference github and don't supply a branch parameter, it'll use master.

andersennl commented 9 years ago

I was actually going to ask just that in this moment but then saw that you already answered the question :smile: Thanks!

Ligator commented 9 years ago

I had the same issue, thanks for fix it. Another thing is that "Cancel" button is not showing "Cancel" label, it is actually showing "...". :(