calabash-android 0.4.9.pre4 → 0.4.9
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.
- checksums.yaml +4 -4
- data/calabash-android.gemspec +2 -2
- data/lib/calabash-android/calabash_steps.rb +1 -1
- data/lib/calabash-android/lib/TestServer.apk +0 -0
- data/lib/calabash-android/operations.rb +6 -2
- data/lib/calabash-android/version.rb +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java +0 -14
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/search/EnterQueryByIndex.java +6 -4
- metadata +22 -8
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 1ab10641f1654a9184460287b3acd39c18a7e554
         | 
| 4 | 
            +
              data.tar.gz: c53ea565299a3b2cb84c0c0b4d2a5202e05a06b6
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 0d8aeabcb184cea1d57ad76088c9f35b9dfa195343433ba434cf229dcbd956d19aa59b52ddb54805858ee8ab341260d5d7f15b7a8d466daaf842ca27c4a05e85
         | 
| 7 | 
            +
              data.tar.gz: 6990b2abc8e1fe6239d9427cf3d073431900a0c2f8db5c6a15b8ea9fd800d6db87a310e4fd6a49a25a6ee203e9bb49f5497ff8432cc91b9a15701e60455e0c92
         | 
    
        data/calabash-android.gemspec
    CHANGED
    
    | @@ -19,8 +19,8 @@ Gem::Specification.new do |s| | |
| 19 19 | 
             
              s.add_dependency( "json" )
         | 
| 20 20 | 
             
              s.add_dependency( "retriable" )
         | 
| 21 21 | 
             
              s.add_dependency( "slowhandcuke" )
         | 
| 22 | 
            -
              s.add_dependency( "rubyzip" )
         | 
| 22 | 
            +
              s.add_dependency( "rubyzip", "~> 0.9.9" )
         | 
| 23 23 | 
             
              s.add_dependency( "awesome_print" )
         | 
| 24 24 | 
             
              s.add_dependency( 'httpclient', '~> 2.3.2')
         | 
| 25 | 
            -
             | 
| 25 | 
            +
              s.add_dependency( 'xamarin-test-cloud', '>= 0.9.23')
         | 
| 26 26 | 
             
            end
         | 
| Binary file | 
| @@ -699,8 +699,12 @@ module Operations | |
| 699 699 | 
             
                ni
         | 
| 700 700 | 
             
              end
         | 
| 701 701 |  | 
| 702 | 
            -
              def screenshot_and_raise(msg)
         | 
| 703 | 
            -
                 | 
| 702 | 
            +
              def screenshot_and_raise(msg, options = nil)
         | 
| 703 | 
            +
                if options
         | 
| 704 | 
            +
                  screenshot_embed options
         | 
| 705 | 
            +
                else
         | 
| 706 | 
            +
                  screenshot_embed
         | 
| 707 | 
            +
                end
         | 
| 704 708 | 
             
                raise(msg)
         | 
| 705 709 | 
             
              end
         | 
| 706 710 |  | 
| @@ -45,20 +45,6 @@ public class Command { | |
| 45 45 | 
             
                public Result execute() {
         | 
| 46 46 | 
             
                    final Action action = InstrumentationBackend.actions.lookup(getCommand());
         | 
| 47 47 | 
             
                    return action.execute(getArguments());
         | 
| 48 | 
            -
                    /*
         | 
| 49 | 
            -
                    if ( Looper.getMainLooper().getThread() == Thread.currentThread()) {
         | 
| 50 | 
            -
                        return action.execute(getArguments());
         | 
| 51 | 
            -
                    }
         | 
| 52 | 
            -
             | 
| 53 | 
            -
                    final AtomicReference<Result> result = new AtomicReference<Result>();
         | 
| 54 | 
            -
                    InstrumentationBackend.instrumentation.runOnMainSync(new Runnable() {
         | 
| 55 | 
            -
                        @Override
         | 
| 56 | 
            -
                        public void run() {
         | 
| 57 | 
            -
                            result.set(action.execute(getArguments()));
         | 
| 58 | 
            -
                        }
         | 
| 59 | 
            -
                    });
         | 
| 60 | 
            -
                    return result.get();
         | 
| 61 | 
            -
            */
         | 
| 62 48 | 
             
                }
         | 
| 63 49 |  | 
| 64 50 | 
             
            }
         | 
| @@ -13,10 +13,12 @@ public class EnterQueryByIndex implements Action { | |
| 13 13 | 
             
                public Result execute(String... args) {
         | 
| 14 14 |  | 
| 15 15 | 
             
                    final String query = args[0];
         | 
| 16 | 
            -
                    final SearchView view = (SearchView) InstrumentationBackend.solo.getView(
         | 
| 17 | 
            -
             | 
| 18 | 
            -
             | 
| 19 | 
            -
             | 
| 16 | 
            +
                    final SearchView view = (SearchView) InstrumentationBackend.solo.getView(SearchView.class, Integer.parseInt(args[1]) - 1);
         | 
| 17 | 
            +
                    InstrumentationBackend.solo.getCurrentActivity().runOnUiThread(new Runnable() {
         | 
| 18 | 
            +
                        public void run() {
         | 
| 19 | 
            +
                            view.setQuery(query, true);
         | 
| 20 | 
            +
                        }
         | 
| 21 | 
            +
                    });
         | 
| 20 22 | 
             
                    return Result.successResult();
         | 
| 21 23 | 
             
                }
         | 
| 22 24 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: calabash-android
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.4.9 | 
| 4 | 
            +
              version: 0.4.9
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Jonas Maturana Larsen
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2013-08- | 
| 11 | 
            +
            date: 2013-08-29 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: cucumber
         | 
| @@ -70,16 +70,16 @@ dependencies: | |
| 70 70 | 
             
              name: rubyzip
         | 
| 71 71 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 72 72 | 
             
                requirements:
         | 
| 73 | 
            -
                - -  | 
| 73 | 
            +
                - - ~>
         | 
| 74 74 | 
             
                  - !ruby/object:Gem::Version
         | 
| 75 | 
            -
                    version:  | 
| 75 | 
            +
                    version: 0.9.9
         | 
| 76 76 | 
             
              type: :runtime
         | 
| 77 77 | 
             
              prerelease: false
         | 
| 78 78 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 79 79 | 
             
                requirements:
         | 
| 80 | 
            -
                - -  | 
| 80 | 
            +
                - - ~>
         | 
| 81 81 | 
             
                  - !ruby/object:Gem::Version
         | 
| 82 | 
            -
                    version:  | 
| 82 | 
            +
                    version: 0.9.9
         | 
| 83 83 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 84 84 | 
             
              name: awesome_print
         | 
| 85 85 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -108,6 +108,20 @@ dependencies: | |
| 108 108 | 
             
                - - ~>
         | 
| 109 109 | 
             
                  - !ruby/object:Gem::Version
         | 
| 110 110 | 
             
                    version: 2.3.2
         | 
| 111 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 112 | 
            +
              name: xamarin-test-cloud
         | 
| 113 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 114 | 
            +
                requirements:
         | 
| 115 | 
            +
                - - '>='
         | 
| 116 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 117 | 
            +
                    version: 0.9.23
         | 
| 118 | 
            +
              type: :runtime
         | 
| 119 | 
            +
              prerelease: false
         | 
| 120 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 121 | 
            +
                requirements:
         | 
| 122 | 
            +
                - - '>='
         | 
| 123 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 124 | 
            +
                    version: 0.9.23
         | 
| 111 125 | 
             
            description: 'calabash-android drives tests for native  and hybrid Android apps. '
         | 
| 112 126 | 
             
            email:
         | 
| 113 127 | 
             
            - jonas@lesspainful.com
         | 
| @@ -860,9 +874,9 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 860 874 | 
             
                  version: '0'
         | 
| 861 875 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 862 876 | 
             
              requirements:
         | 
| 863 | 
            -
              - - ' | 
| 877 | 
            +
              - - '>='
         | 
| 864 878 | 
             
                - !ruby/object:Gem::Version
         | 
| 865 | 
            -
                  version:  | 
| 879 | 
            +
                  version: '0'
         | 
| 866 880 | 
             
            requirements: []
         | 
| 867 881 | 
             
            rubyforge_project: 
         | 
| 868 882 | 
             
            rubygems_version: 2.0.2
         |