appium_console 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b9abc815edb592573640121922ac7ef06cf6955
4
- data.tar.gz: 3da624a748fdf8f417c79f3f584f7d43c701272e
3
+ metadata.gz: 35f2e74b3dee7733c9eab1dea92b510d5b966fd6
4
+ data.tar.gz: b4b7a6fa01b02b3e340e59993a071c29c220c471
5
5
  SHA512:
6
- metadata.gz: d0cd9f63e29cf1a780e3730dedf02a76dfddc24bdf92eedeaac7ae347e51574cc7c97ba4e95d9bd9c8e709badcbbd8f788e7871fdfc72c6e1d9b618e6e622483
7
- data.tar.gz: bfad2af58abadd9fd137b5120c2cf72e6fadf9ad16f14a715b4accc06371966bfaa36841f63664fa1278691bb7df25c1f588268c84f0a4cb10a1be104bbf7580
6
+ metadata.gz: ca74d0f81d85c261a2ad6b925192bb6755631fe44e7f4ba4f5c9bd4fb380ea2f17578440958297265f2608de756ac084237d9433e11cfc6982bc9eced4756065
7
+ data.tar.gz: bc8e50c6645ff08bbc3617808033172ba0222720c166eb0acd8daa4c86d6fb6eaa6b8ff58ac834d531e990acc65fd56e1deb638f3dc2c4032e66d4901743836d
Binary file
Binary file
@@ -2,6 +2,6 @@
2
2
  # Define Appium module so version can be required directly.
3
3
  module Appium; end unless defined? Appium
4
4
  module Appium::Console
5
- VERSION = '1.0.0' unless defined? ::Appium::Console::VERSION
6
- DATE = '2014-04-29' unless defined? ::Appium::Console::DATE
5
+ VERSION = '1.0.1' unless defined? ::Appium::Console::VERSION
6
+ DATE = '2014-06-13' unless defined? ::Appium::Console::DATE
7
7
  end
@@ -2,6 +2,12 @@
2
2
  require 'rubygems'
3
3
  require 'appium_lib'
4
4
 
5
+ # must prefix pry commands such as %reset or the pry command will
6
+ # override the ruby_lib command with the same name.
7
+ #
8
+ # old Pry may not respond to config
9
+ Pry.respond_to?(:config) ? Pry.config.command_prefix = '%' : ''
10
+
5
11
  if $driver.nil?
6
12
  opts = Pry.pry_load_appium_txt
7
13
  # override command timeout so the server doesn't shut down after 60 seconds
data/osx.md CHANGED
@@ -1,59 +1,37 @@
1
1
  ### Getting Started
2
2
 
3
- This document is written for OS X 10.8.4 or better. iOS testing requires OS X. Android testing works on OS X, Windows, and Linux.
4
-
5
- For OS X, there is rake script which will attempt to do most of this for you, with
6
- ```
7
- rake -f osx_install.rake
8
- ```
9
- The rake script will not install Xcode, etc., nor Java, but should take care of everything else.
10
- Changes to these instructions might imply changes to that script as well.
3
+ This document is written for OS X 10.9.2 or better. iOS testing requires OS X. Android testing works on OS X, Windows, and Linux.
11
4
 
12
5
  #### Steps to install
13
6
 
14
- Install `Xcode` 4.6.3 (iOS 6) or 5.0.2 (iOS 7).
7
+ Install `Xcode` 5.1.1.
15
8
 
16
9
  - Xcode 5.0.0 shouldn't be used for iOS 6 as it's flaky.
17
10
  - Xcode 5.0.1 is broken.
18
11
  - Xcode 4.6.3 doesn't support iOS 7.
19
12
 
20
- After that, install the command line build tools (Xcode -> Preferences -> Downloads).
13
+ After that, install the command line build tools for your version of OS X (Xcode -> Open Developer Tools -> More Developer Tools).
21
14
 
22
- If you're testing iOS 6, then install `Xcode 4.6.3` from [Apple](https://developer.apple.com/downloads/index.action).
23
- For iOS 7+ make sure to use Xcode 5.0.2.
24
-
25
- That done, you'll need to create a symlink for
26
- `gcc` to get the ruby build (particularly FFI) to install properly. This isn't required on OS X 10.9.
27
- If `/usr/local/bin` is in your path, you can do:
28
- ```
29
- ln -s /usr/bin/gcc /usr/local/bin/gcc-4.2
30
- ```
31
- Otherwise
32
- ```
33
- sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
34
- ```
35
- Reinstall Ruby if you didn't set this symlink and have FFI issues.
36
-
37
15
  - Install Java 7 if there's no Java on the system.
38
16
  - [JDK 7](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
39
17
 
40
- - Install the latest stable patch release of Ruby 2.0.
18
+ - Install stable release of Ruby.
41
19
 
42
- `$ \curl -L https://get.rvm.io | bash -s stable --ruby=2.0.0`
20
+ `$ \curl -L https://get.rvm.io | bash -s stable --ruby`
43
21
 
44
22
  - Make sure RVM is using the correct Ruby by default
45
23
 
46
24
  ```
47
25
  $ rvm list
48
- $ rvm --default use 2.0.0
26
+ $ rvm --default use 2.1.1
49
27
  ```
50
28
 
51
- - If you have an old ruby, you can installing Ruby 2.0 instead
29
+ - If you have an old ruby, you can installing Ruby 2.1.1 instead
52
30
 
53
31
  ```
54
32
  $ rvm get head
55
33
  $ rvm autolibs homebrew
56
- $ rvm install 2.0.0
34
+ $ rvm install 2.1.1
57
35
  ```
58
36
 
59
37
  - Check that it's installed properly by printing the ruby version.
@@ -125,6 +103,14 @@ grunt v0.4.1
125
103
  - Install [ant](http://ant.apache.org/) if it's not already installed.
126
104
  - Install [maven 3.1.1 or better](http://maven.apache.org/download.cgi) if it's not already installed. Old maven will not work.
127
105
 
106
+ Ant and maven can be installed manually or using brew.
107
+
108
+ ```bash
109
+ $ brew update
110
+ $ brew install ant
111
+ $ brew install maven
112
+ ```
113
+
128
114
  ```
129
115
  $ ant -version
130
116
  Apache Ant(TM) version 1.8.2 compiled on June 20 2012
@@ -173,21 +159,18 @@ PATH=$PATH:$ANDROID_HOME/build-tools
173
159
  PATH=$PATH:$ANDROID_HOME/platform-tools
174
160
  PATH=$PATH:$ANDROID_HOME/tools
175
161
  export JAVA_HOME="`/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java_home`"
176
- export APP_PATH="/path/to/MyiOS.app"
177
- export APK_PATH="/path/to/my.apk"
178
- export APP_PACKAGE="com.example.Package"
179
- export APP_ACTIVITY="StartActivity"
180
- export APP_WAIT_ACTIVITY="SplashActivity"
181
162
 
182
163
  export PATH
183
164
  ```
184
165
 
185
166
  - Run `android` to open the SDK manager.
186
167
  - Install `Intel x86 Emulator Accelerator (HAXM)` under Extras
187
- - Install API 18 `SDK Platform`, `Intel x86 Atom System Image`, `Google APIs`
168
+ - Install API 19 `SDK Platform`, `Intel x86 Atom System Image`, `Google APIs`
188
169
  If there are any problems viewing or downloading the packages, go to `Packages -> Reload` and try again.
189
170
 
190
- - Create a new Android virtual device that uses the Intel image. Ensure `Use Host GPU` is checked. Set `VM Heap` to `64`. `32` is too small.
171
+ ![](img/packages.png)
172
+
173
+ - Create a new Android virtual device that uses the Intel image. Note that some apps may have issues when `Use Host GPU` is enabled or SD cards [aren't formatted properly](http://stackoverflow.com/questions/5744298/what-does-this-mean-failure-install-failed-container-error). Set `VM Heap` to `64`. `32` is too small. The emulator is very slow when Use Host GPU is disabled. If you have to disable it then consider testing on a physical device which will be faster.
191
174
 
192
175
  ![](img/avd_settings.png)
193
176
 
@@ -196,11 +179,11 @@ If there are any problems viewing or downloading the packages, go to `Packages -
196
179
  - Check that `hax is working` If it's not, install hax [directly from Intel](http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager)
197
180
 
198
181
  ```bash
199
- $ emulator @t18
182
+ $ emulator @android
200
183
  HAX is working and emulator runs in fast virt mode
201
184
  ```
202
185
 
203
- - Launch the emulator with `emulator @t18`
186
+ - Launch the emulator with `emulator @android`
204
187
 
205
188
  - After launching the emulator, check that it's listed in adb devices. Run the following commands a few times until it's listed.
206
189
 
@@ -210,10 +193,6 @@ If you see `error: protocol fault (no status)` just keep running the command unt
210
193
 
211
194
  - With both the Android emulator running and the Appium server started, it's time to launch the appium console. Make sure the ENV vars are exported.
212
195
 
213
- - Echo the values to make sure they're set correctly
214
-
215
- `$ echo $APP_PATH $APP_PACKAGE $APP_ACTIVITY $APP_WAIT_ACTIVITY`
216
-
217
196
  - Start appium console
218
197
 
219
198
  `arc`
@@ -270,10 +249,8 @@ Install the [HAXM 10.9 hotfix](http://software.intel.com/en-us/articles/intel-ha
270
249
 
271
250
  `xcode-select --install`
272
251
 
273
-
274
252
  - [Install specific node version](https://coderwall.com/p/lqphzg)
275
253
 
276
-
277
254
  #### Corrupt ruby gems
278
255
 
279
256
  If you see:
data/readme.md CHANGED
@@ -11,6 +11,11 @@ gem update --system ;\
11
11
  gem update bundler
12
12
  ```
13
13
 
14
+ #### Pry commands
15
+
16
+ Pry commands are prefixed with `%`. For example `%reset` invokes Pry's reset command.
17
+ To use the ruby_lib reset, it's `reset`
18
+
14
19
  #### Install / Upgrade Ruby Console
15
20
 
16
21
  ```bash
@@ -1,3 +1,9 @@
1
+ #### v0.6.0 2014-04-22
2
+
3
+ - [7342d45](https://github.com/appium/ruby_console/commit/7342d45c6b0a287ab52bca98bf8e1dfb8590e08b) Release 1.0.0
4
+ - [0500ca0](https://github.com/appium/ruby_console/commit/0500ca0e80a91e5d10cb28ee2c84fec4fe4611b5) Fix require support in appium.txt
5
+
6
+
1
7
  #### v0.5.9 2014-01-28
2
8
 
3
9
  - [38c21c9](https://github.com/appium/ruby_console/commit/38c21c935ec50ce30d320888342a3df3da975917) Release 0.6.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.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-04-29 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appium_lib
@@ -109,7 +109,6 @@ files:
109
109
  - appium_console.gemspec
110
110
  - bin/arc
111
111
  - img/avd_settings.png
112
- - img/hax.png
113
112
  - img/packages.png
114
113
  - ios_v_android.md
115
114
  - lib/appium_console.rb
@@ -145,4 +144,3 @@ signing_key:
145
144
  specification_version: 4
146
145
  summary: Appium Ruby Console
147
146
  test_files: []
148
- has_rdoc:
Binary file