appium_lib 0.15.0 → 0.15.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.
@@ -59,17 +59,23 @@ def run out_file, globs
59
59
  puts "Writing: #{out_file}"
60
60
  YARD::Parser::SourceParser.parse globs
61
61
  File.open(out_file, 'w') do | file |
62
+ entries = YARD::Registry.entries
63
+ entries_length = entries.length
64
+ puts "Processing: #{entries_length} entries"
65
+ raise 'No entries to process' if entries_length <= 0
62
66
  YARD::Registry.entries.each do | entry |
63
67
  file.write mobj_to_md entry
64
68
  end
65
69
  end
70
+
71
+ raise 'Empty file generated' if File.size(out_file) <= 0
66
72
  end
67
73
 
68
74
  def globs paths
69
75
  # Convert single string to array for map
70
76
  paths = [ paths ] unless paths.kind_of? Array
71
77
  # Adjust path based on system
72
- paths.map! { |path| "#{ENV['HOME']}/Desktop/appium/ruby_lib#{path}" }
78
+ paths.map! { |path| "#{Dir.pwd}#{path}" }
73
79
  end
74
80
 
75
81
  common_globs = '/lib/appium_lib/*.rb', '/lib/appium_lib/common/**/*.rb'
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Appium
3
3
  # Version and Date are defined on the 'Appium' module, not 'Appium::Common'
4
- VERSION = '0.15.0' unless defined? ::Appium::VERSION
5
- DATE = '2013-11-25' unless defined? ::Appium::DATE
4
+ VERSION = '0.15.1' unless defined? ::Appium::VERSION
5
+ DATE = '2013-12-13' unless defined? ::Appium::DATE
6
6
  end
@@ -156,7 +156,7 @@ module Appium
156
156
  main_module.constants.each do |sub_module|
157
157
  #noinspection RubyResolve
158
158
  $driver.public_methods(false).each do |m|
159
- const = Woven.const_get(sub_module)
159
+ const = main_module.const_get(sub_module)
160
160
  const.send(:define_singleton_method, m) do |*args, &block|
161
161
  begin
162
162
  super(*args, &block) # promote.rb
@@ -385,8 +385,8 @@ module Appium
385
385
  # WebDriver capabilities. Must be valid for Sauce to work.
386
386
  def ios_capabilities
387
387
  {
388
- platform: 'Mac 10.8',
389
- version: '6.1',
388
+ platform: 'OS X 10.9',
389
+ version: '7',
390
390
  device: @device_cap || 'iPhone Simulator',
391
391
  name: @app_name || 'Ruby Console iOS Appium'
392
392
  }
@@ -627,4 +627,4 @@ end # end module Appium
627
627
  # Paging in Pry is annoying :q required to exit.
628
628
  # With pager disabled, the output is similar to IRB
629
629
  # Only set if Pry is defined.
630
- Pry.config.pager = false if defined?(Pry)
630
+ Pry.config.pager = false if defined?(Pry)
data/release_notes.md CHANGED
@@ -1,3 +1,11 @@
1
+ #### v0.15.0 2013-11-25
2
+
3
+ - [c27ac6f](https://github.com/appium/ruby_lib/commit/c27ac6fc37cb0c1b52aa2b15af480d17745adcf8) Release 0.15.0
4
+ - [77a7736](https://github.com/appium/ruby_lib/commit/77a7736c3589db6ba2f029b97beae3e0d383cee9) wait and wait_true no longer use default_wait
5
+ - [18a4b94](https://github.com/appium/ruby_lib/commit/18a4b9472be56b533d01c9b2758d365b3c3129fe) Fix exists
6
+ - [dd885bf](https://github.com/appium/ruby_lib/commit/dd885bffc04e6306b6b70162e58e7149280bee0b) timeout(0) waits forever so default to 1 as the min wait
7
+
8
+
1
9
  #### v0.14.0 2013-11-22
2
10
 
3
11
  - [e7ed56b](https://github.com/appium/ruby_lib/commit/e7ed56b6304d7c9f6a24384915def1a3bc732c4e) Release 0.14.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: 0.15.0
4
+ version: 0.15.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: 2013-11-25 00:00:00.000000000 Z
11
+ date: 2013-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -80,6 +80,34 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 10.0.4
83
+ - !ruby/object:Gem::Dependency
84
+ name: yard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.8.7.3
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.8.7.3
97
+ - !ruby/object:Gem::Dependency
98
+ name: posix/spawn
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.3.6
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.3.6
83
111
  description: Ruby library for Appium.
84
112
  email:
85
113
  - code@bootstraponline.com