appium_lib 5.0.0 → 5.0.1

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.
@@ -1,3 +1,18 @@
1
+ ### Breaking Changes in 5.0
2
+
3
+ Old | New
4
+ :--|:--
5
+ `launch` | `launch_app`
6
+ `install` | `install_app`
7
+ `remove` | `remove_app`
8
+
9
+ method_missing has been removed from the Ruby bindings. If you want to invoke methods on the top level object,
10
+ you can use the following:
11
+
12
+ `Appium.promote_appium_methods Object`
13
+
14
+ Also make sure to update to Appium Ruby Console v1.0.3 or better. Old consoles will not work with the 5.0 release due to the removal of method_missing.
15
+
1
16
  ### Breaking Changes in 4.0
2
17
 
3
18
  Old | New
@@ -1,5 +1,5 @@
1
1
  module Appium
2
2
  # Version and Date are defined on the 'Appium' module, not 'Appium::Common'
3
- VERSION = '5.0.0' unless defined? ::Appium::VERSION
4
- DATE = '2014-12-23' unless defined? ::Appium::DATE
3
+ VERSION = '5.0.1' unless defined? ::Appium::VERSION
4
+ DATE = '2014-12-30' unless defined? ::Appium::DATE
5
5
  end
@@ -3,9 +3,6 @@ require 'ap'
3
3
  require 'selenium-webdriver'
4
4
  require 'nokogiri'
5
5
 
6
- # patch ap
7
- require_relative 'awesome_print/ostruct'
8
-
9
6
  # common
10
7
  require_relative 'common/helper'
11
8
  require_relative 'common/wait'
@@ -1,3 +1,12 @@
1
+ #### v5.0.1 2014-12-30
2
+
3
+ - [9b15701](https://github.com/appium/ruby_lib/commit/9b157011965442e6f021dcfeef588450277f1c6a) Release 5.0.1
4
+ - [d2e12d8](https://github.com/appium/ruby_lib/commit/d2e12d8275f01f1652430d7908dd118bbfeec706) Merge pull request #298 from sbonebrake/upgrade_awesome_print
5
+ - [4478662](https://github.com/appium/ruby_lib/commit/44786624397303e9785ce9322b7c6e625e70694e) Upgrade awesome_print and remove the ostruct patch. This fixes issue #297.
6
+ - [fbf9a6e](https://github.com/appium/ruby_lib/commit/fbf9a6ed170f65d91f53617f0509c5b222bf3859) Update migration.md
7
+ - [d5172bd](https://github.com/appium/ruby_lib/commit/d5172bd773f8d36e66e9b573c74e99d762d1c28d) Update migration.md
8
+
9
+
1
10
  #### v5.0.0 2014-12-23
2
11
 
3
12
  - [7c3bc19](https://github.com/appium/ruby_lib/commit/7c3bc19905d0f008192a59dc7f5a938e3701ec8f) Release 5.0.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-23 00:00:00.000000000 Z
11
+ date: 2014-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -36,20 +36,20 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.2'
39
+ version: '1.6'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 1.2.0
42
+ version: 1.6.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '1.2'
49
+ version: '1.6'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 1.2.0
52
+ version: 1.6.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: json
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -333,7 +333,6 @@ files:
333
333
  - lib/appium_lib/android/helper.rb
334
334
  - lib/appium_lib/android/mobile_methods.rb
335
335
  - lib/appium_lib/android/patch.rb
336
- - lib/appium_lib/awesome_print/ostruct.rb
337
336
  - lib/appium_lib/common/element/window.rb
338
337
  - lib/appium_lib/common/helper.rb
339
338
  - lib/appium_lib/common/patch.rb
@@ -1,33 +0,0 @@
1
- # Enable OpenStruct support in awesome print
2
- # Code from @marshallshen https://github.com/michaeldv/awesome_print/pull/145
3
- #
4
- # Copyright (c) 2010-2013 Michael Dvorkin
5
- #
6
- # Awesome Print is freely distributable under the terms of MIT license.
7
- # See LICENSE file or http://www.opensource.org/licenses/mit-license.php
8
- #------------------------------------------------------------------------------
9
-
10
- if defined?(OpenStruct)
11
- module AwesomePrint
12
- module OpenStruct
13
- def self.included(base)
14
- base.send :alias_method, :cast_without_ostruct, :cast
15
- base.send :alias_method, :cast, :cast_with_ostruct
16
- end
17
-
18
- def cast_with_ostruct(object, type)
19
- cast = cast_without_ostruct(object, type)
20
- if (defined?(::OpenStruct)) && (object.is_a?(::OpenStruct))
21
- cast = :open_struct_instance
22
- end
23
- cast
24
- end
25
-
26
- def awesome_open_struct_instance(object)
27
- "#{object.class} #{awesome_hash(object.marshal_dump)}"
28
- end
29
- end # module OpenStruct
30
- end # module AwesomePrint
31
-
32
- AwesomePrint::Formatter.send(:include, AwesomePrint::OpenStruct)
33
- end