dryrun 1.2.1 → 1.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85a4e602a0ecb72cc5f99b1faea818f4878b016a244f5d5a41b1f30007ba4876
4
- data.tar.gz: 2438ea1f188a047f7bda8f66e1fab3921d039238d0c33e922729fbf033be27e0
3
+ metadata.gz: e625af732d2cac1a7ff91456df893ed554ebf86cabbaaa6efffdfbc770dc6577
4
+ data.tar.gz: 14deafe867251227fd7881f6161246127055e94c275a9b192ee5dd7e81603357
5
5
  SHA512:
6
- metadata.gz: 6ba477d9e8ea4a5a238f001abdd4dd8ebaaafb954a16aecb113aef3e58ebe7d36bb6cf9e7a343d10c5bda4ddcacf48d4b057c7594483060f326b973615ca4e82
7
- data.tar.gz: 2f04666d5ec0014c8c062768b3e1f91ad4362e85231d1c440d59b0b0d104550fa480cf227e3a681ae83dd3c3e05db9dd6f248116a338115432ada73bcd117e47
6
+ metadata.gz: 9861b97096691445b0c8057f487a011889a77a15d72a8803f7ea8413a11f9d09fd0403ba3ae5890a4838ec4f4cce08c6cb4342411fb4fea9284237b0fd90c43a
7
+ data.tar.gz: daa80c74cec2cec3075033af1877760931a29145a1aeb0cba0bb55fa050d4b46bfa31b3f11b87915e661fb815cbbc7baed2c9808a292e25107dff3744ca36bea
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dryrun (1.2.0)
4
+ dryrun (1.3.0)
5
5
  bundler
6
6
  colorize
7
7
  highline
@@ -12,37 +12,37 @@ GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
14
  ansi (1.5.0)
15
- ast (2.4.0)
16
- byebug (11.0.1)
17
- coderay (1.1.2)
15
+ ast (2.4.1)
16
+ byebug (11.1.3)
17
+ coderay (1.1.3)
18
18
  colorize (0.8.1)
19
- diff-lcs (1.3)
20
- highline (2.0.2)
21
- method_source (0.9.2)
22
- oga (2.15)
19
+ diff-lcs (1.4.4)
20
+ highline (2.0.3)
21
+ method_source (1.0.0)
22
+ oga (3.3)
23
23
  ast
24
24
  ruby-ll (~> 2.1)
25
- pry (0.12.2)
26
- coderay (~> 1.1.0)
27
- method_source (~> 0.9.0)
28
- pry-byebug (3.7.0)
25
+ pry (0.13.1)
26
+ coderay (~> 1.1)
27
+ method_source (~> 1.0)
28
+ pry-byebug (3.9.0)
29
29
  byebug (~> 11.0)
30
- pry (~> 0.10)
31
- rake (12.3.3)
32
- rjb (1.6.1)
33
- rspec (3.8.0)
34
- rspec-core (~> 3.8.0)
35
- rspec-expectations (~> 3.8.0)
36
- rspec-mocks (~> 3.8.0)
37
- rspec-core (3.8.2)
38
- rspec-support (~> 3.8.0)
39
- rspec-expectations (3.8.4)
30
+ pry (~> 0.13.0)
31
+ rake (13.0.1)
32
+ rjb (1.6.2)
33
+ rspec (3.9.0)
34
+ rspec-core (~> 3.9.0)
35
+ rspec-expectations (~> 3.9.0)
36
+ rspec-mocks (~> 3.9.0)
37
+ rspec-core (3.9.2)
38
+ rspec-support (~> 3.9.3)
39
+ rspec-expectations (3.9.2)
40
40
  diff-lcs (>= 1.2.0, < 2.0)
41
- rspec-support (~> 3.8.0)
42
- rspec-mocks (3.8.1)
41
+ rspec-support (~> 3.9.0)
42
+ rspec-mocks (3.9.1)
43
43
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.8.0)
45
- rspec-support (3.8.2)
44
+ rspec-support (~> 3.9.0)
45
+ rspec-support (3.9.3)
46
46
  ruby-ll (2.1.2)
47
47
  ansi
48
48
  ast
@@ -57,4 +57,4 @@ DEPENDENCIES
57
57
  rspec
58
58
 
59
59
  BUNDLED WITH
60
- 2.0.2
60
+ 2.1.4
data/README.md CHANGED
@@ -1,20 +1,17 @@
1
- <p align="center">
1
+ <!--<p align="center">
2
2
  <a href="https://github.com/cesarferreira/dryrun" target="_blank">
3
3
  <img width="200"src="extras/gift.gif">
4
4
  </a>
5
- </p>
5
+ </p>-->
6
6
  <h1 align="center">dryrun</h1>
7
7
  <p align="center"><strong>Try any android library</strong> hosted online <strong>directly</strong> from the <strong>command line</strong></p>
8
8
  <p align="center">
9
9
  <a href="https://github.com/cesarferreira/dryrun"><img src="http://ruby-gem-downloads-badge.herokuapp.com/dryrun?type=total" alt="downloads"></a>
10
10
  <a href="https://github.com/cesarferreira/dryrun"><img src="https://badge.fury.io/rb/dryrun.svg" alt="npm"></a>
11
- <a href="https://travis-ci.org/cesarferreira/dryrun"><img src="https://travis-ci.org/cesarferreira/dryrun.svg?branch=master" alt="Build Status"></a>
12
- <!-- <a href="http://android-arsenal.com/details/1/2361"><img src="https://img.shields.io/badge/Android%20Arsenal-dryrun-brightgreen.svg?style=flat" alt="Android Arsenal"></a> -->
13
11
  <a href="http://androidweekly.net/issues/issue-200"><img src="https://img.shields.io/badge/Android%20Weekly-%23200-blue.svg" alt="Android Weekly"></a>
14
12
  <a href="https://www.codacy.com/app/cesarferreira/dryrun?utm_source=github.com&utm_medium=referral&utm_content=cesarferreira/dryrun&utm_campaign=badger"><img src="https://api.codacy.com/project/badge/Grade/c9f73e75e72547008558b3e337acbff3" alt="Codacy Badge"></a>
15
-
16
- <!-- <a href="https://github.com/cesarferreira/dryrun/issues"><img src="https://img.shields.io/github/issues-raw/cesarferreira/dryrun.svg" alt="issues"></a>
17
- <a href="https://github.com/cesarferreira/dryrun/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License"></a> -->
13
+ <a href="https://github.com/cesarferreira/dryrun/issues?q=is%3Aissue+is%3Aclosed"><img src="https://img.shields.io/github/issues-closed-raw/cesarferreira/dryrun.svg?color=%23FF69B4" alt="Closed"></a>
14
+
18
15
  </p>
19
16
 
20
17
  <p align="center">
@@ -102,12 +102,12 @@ module Dryrun
102
102
 
103
103
  if !Gem.win_platform?
104
104
  @sdk = `echo $ANDROID_HOME`.delete("\n")
105
- @sdk += '/platform-tools/adb'
106
105
  else
107
106
  @sdk = `echo %ANDROID_HOME%`.delete("\n")
108
- @sdk += '/platform-tools/adb.exe'
109
107
  end
110
108
 
109
+ @sdk = 'adb' if @sdk.empty?
110
+
111
111
  $sdk = @sdk
112
112
 
113
113
  puts 'Searching for devices...'.yellow
@@ -27,7 +27,7 @@ module Dryrun
27
27
  page_string = f.read
28
28
  end
29
29
  else
30
- open(url) do |f|
30
+ URI.open(url) do |f|
31
31
  page_string = f.read
32
32
  end
33
33
  end
@@ -40,7 +40,7 @@ module Dryrun
40
40
  latest.to_s <= Dryrun::VERSION.to_s
41
41
  end
42
42
 
43
- def self.run_adb(args) # :yields: stdout
43
+ def self.run_adb(args)
44
44
  adb_arg = " -s #{$device.name} " unless $device.nil?
45
45
  path = "#{$sdk} #{adb_arg} #{args} "
46
46
  run(path)
@@ -1,3 +1,3 @@
1
1
  module Dryrun
2
- VERSION = '1.2.1'.freeze
2
+ VERSION = '1.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dryrun
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-29 00:00:00.000000000 Z
11
+ date: 2020-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description:
125
+ description:
126
126
  email:
127
127
  - cesar.manuel.ferreira@gmail.com
128
128
  executables:
@@ -173,7 +173,7 @@ homepage: http://cesarferreira.com
173
173
  licenses:
174
174
  - MIT
175
175
  metadata: {}
176
- post_install_message:
176
+ post_install_message:
177
177
  rdoc_options: []
178
178
  require_paths:
179
179
  - lib
@@ -189,8 +189,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
- rubygems_version: 3.0.4
193
- signing_key:
192
+ rubygems_version: 3.1.4
193
+ signing_key:
194
194
  specification_version: 4
195
195
  summary: Tool to try any android library hosted online directly from the command line
196
196
  test_files: []