appium_console 0.5.7 → 0.5.8

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: b56eea6552c57424294a7fa0721771300ce0e290
4
- data.tar.gz: 3e06f4696d29e41e0f9b673681786133de01be2a
3
+ metadata.gz: 32994ea91c99570d1c02d2357c833c658ea76b1f
4
+ data.tar.gz: 695a1a3252451599b53d4e2b6d619a026cb13ab9
5
5
  SHA512:
6
- metadata.gz: 54b074baa3e21ab260de884a56ec697c83c49b783618e406f647829922d8ecb87a4c0e5bcc184e9ea7a2617e1f06706dfe33b9c5b22faf5e214d1b2dbde58cb4
7
- data.tar.gz: b286d76948a67a1d631d672ad49e69f8a1c9775665b4f34a7a69d26557a5cd4ff65b45b89632219eb451d6afcb9aa2e98d9b2916a2b1de4794e29251cf19b4d1
6
+ metadata.gz: f7a4b37854f0b976633c153b6f228935ba3a624b1068855d13170ca04ab7bcb1c9fc5217a590ce1445f24b93a6a7c58311d996778b07a87ad2487c83e9e9e43e
7
+ data.tar.gz: 659a690abb9ce56d5ea5475c538babc38859144c60872fd5ce26280a24edce0ec2a0ac53ad61277012663232bc4380b062b5fe853a7fc6951f697186d5e9d2f2
data/Rakefile CHANGED
@@ -1,7 +1,9 @@
1
1
  # encoding: utf-8
2
+ # ruby_console Rakefile
2
3
  require 'rubygems'
3
4
  require 'rake'
4
5
  require 'date'
6
+ require 'posix/spawn'
5
7
 
6
8
  # Defines gem name.
7
9
  def repo_name; 'appium_console'; end # ruby_console published as appium_console
@@ -46,6 +48,11 @@ task :bump do
46
48
  bump
47
49
  end
48
50
 
51
+ def tag_exists tag_name
52
+ cmd = %Q(git branch -a --contains "#{tag_name}")
53
+ POSIX::Spawn::Child.new(cmd).out.include? '* master'
54
+ end
55
+
49
56
  # Inspired by Gollum's Rakefile
50
57
  desc 'Build and release a new gem to rubygems.org'
51
58
  task :release => :gem do
@@ -54,15 +61,19 @@ task :release => :gem do
54
61
  exit!
55
62
  end
56
63
 
64
+ # Commit then pull before pushing.
65
+ tag_name = "v#{version}"
66
+ raise 'Tag already exists!' if tag_exists tag_name
67
+
57
68
  # Commit then pull before pushing.
58
69
  sh "git commit --allow-empty -am 'Release #{version}'"
59
70
  sh 'git pull'
60
- sh "git tag v#{version}"
71
+ sh "git tag #{tag_name}"
61
72
  # update notes now that there's a new tag
62
73
  Rake::Task['notes'].execute
63
74
  sh "git commit --allow-empty -am 'Update release notes'"
64
75
  sh 'git push origin master'
65
- sh "git push origin v#{version}"
76
+ sh "git push origin #{tag_name}"
66
77
  sh "gem push #{repo_name}-#{version}.gem"
67
78
  end
68
79
 
@@ -28,7 +28,8 @@ Gem::Specification.new do |s|
28
28
  s.add_runtime_dependency 'pry', '~> 0.9.12.2'
29
29
  s.add_runtime_dependency 'spec', '~> 5.0.19'
30
30
  s.add_development_dependency 'rake', '~> 10.1.0'
31
+ s.add_development_dependency 'posix-spawn', '~> 0.3.8'
31
32
 
32
33
  s.executables = [ 'arc' ]
33
34
  s.files = `git ls-files`.split "\n"
34
- end
35
+ end
@@ -5,12 +5,13 @@ require 'pry'
5
5
 
6
6
  module Appium; end unless defined? Appium
7
7
 
8
- def define_reload paths
8
+ def define_reload
9
9
  Pry.send(:define_singleton_method, :reload) do
10
- paths.each do |p|
10
+ files = load_appium_txt file: Dir.pwd + '/appium.txt'
11
+ files.each do |file|
11
12
  # If a page obj is deleted then load will error.
12
13
  begin
13
- load p
14
+ load file
14
15
  rescue # LoadError: cannot load such file
15
16
  end
16
17
  end
@@ -27,7 +28,7 @@ module Appium::Console
27
28
  cmd = ['-r', start]
28
29
 
29
30
  if to_require && !to_require.empty?
30
- define_reload to_require
31
+ define_reload
31
32
  load_files = to_require.map { |f| %(require "#{f}";) }.join "\n"
32
33
  cmd += [ '-e', load_files ]
33
34
  end
@@ -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 = '0.5.7' unless defined? ::Appium::Console::VERSION
6
- DATE = '2013-11-25' unless defined? ::Appium::Console::DATE
5
+ VERSION = '0.5.8' unless defined? ::Appium::Console::VERSION
6
+ DATE = '2014-01-27' unless defined? ::Appium::Console::DATE
7
7
  end
data/osx.md CHANGED
@@ -93,7 +93,7 @@ gem install --no-rdoc --no-ri flaky
93
93
 
94
94
  - Install [brew](http://mxcl.github.io/homebrew/)
95
95
 
96
- `ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"`
96
+ `ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"`
97
97
 
98
98
  - Install [nodejs](http://nodejs.org/) using brew.
99
99
 
@@ -136,7 +136,7 @@ Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
136
136
 
137
137
  `$ git clone git://github.com/appium/appium.git`
138
138
 
139
- - Run reset.sh
139
+ - Run reset.sh. When running reset.sh, make sure to be on Xcode 5.0.2 for best results. You may have problems if you reset on Xcode 4.6.3 and then switch to a newer Xcode.
140
140
 
141
141
  `cd appium; ./reset.sh`
142
142
 
@@ -269,3 +269,15 @@ Install the [HAXM 10.9 hotfix](http://software.intel.com/en-us/articles/intel-ha
269
269
  #### Restore dev tools on 10.9
270
270
 
271
271
  `xcode-select --install`
272
+
273
+
274
+ - [Install specific node version](https://coderwall.com/p/lqphzg)
275
+
276
+
277
+ #### Corrupt ruby gems
278
+
279
+ If you see:
280
+
281
+ > invalid gem: package is corrupt, exception while verifying: undefined method
282
+
283
+ Then run `$ rm -rf ~/.rvm` and reinstall RVM.
data/release_notes.md CHANGED
@@ -1,3 +1,10 @@
1
+ #### v0.5.7 2013-11-25
2
+
3
+ - [c0877e8](https://github.com/appium/ruby_console/commit/c0877e8b948da670d9df3a8e6c757b2dcc476911) Release 0.5.7
4
+ - [4bf603f](https://github.com/appium/ruby_console/commit/4bf603f911058146b88d6c4330e1d9121cbf9a87) Rescue load errors
5
+ - [027af76](https://github.com/appium/ruby_console/commit/027af763e8563c1b91dd195e978b7410ece9ec76) Release 0.5.6
6
+
7
+
1
8
  #### v0.5.6 2013-11-18
2
9
 
3
10
  - [ce14efa](https://github.com/appium/ruby_console/commit/ce14efa1bb139a2f8a8f391d28588376757739bc) Release 0.5.6
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: 0.5.7
4
+ version: 0.5.8
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: 2014-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appium_lib
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: 10.1.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: posix-spawn
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 0.3.8
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 0.3.8
69
83
  description: Appium Ruby Console.
70
84
  email:
71
85
  - code@bootstraponline.com
@@ -117,3 +131,4 @@ signing_key:
117
131
  specification_version: 4
118
132
  summary: Appium Ruby Console
119
133
  test_files: []
134
+ has_rdoc: