dryrun 0.7.6 → 0.7.7

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: 60feb498f92bd27070f158c0ece400c76297b0b0
4
- data.tar.gz: ce1c2c6ebf0b67483084109cfd69520d2d0077da
3
+ metadata.gz: ef39c132c19a33f06d8d992f7f5251ef14438f46
4
+ data.tar.gz: a35b7ef2671d0ff103983b188e69dc6736c2413d
5
5
  SHA512:
6
- metadata.gz: 7241354674cd00989532f4141c205a23b4f049ff8c32a2816eea15ad527fbb3af562012fe8e81a4c36e46bafeb943c9834f00198788ebd3f058be08ec851c471
7
- data.tar.gz: b6bd8cb2ecc658b448567aec12021406e5c78d736c1d47495153188d8c9c3edda7a9efafacc89f0b6c4a3e701f87422729027275b53cc591af993c165573de34
6
+ metadata.gz: 1e5e8ab11d9b32335729cd4f7ae2de261707820c69bb9bdcec27b0838e11302d55258ad29864bdbb9ddfc72af3f7fa1917febc40b16e0f4cbd0b07198251fee8
7
+ data.tar.gz: 985c0370b9d06cab670bfba1f0e1b0b549a2c4176df068553025d786f2e77836b1bd5489d457720f2d8cc9cdf724fa32f4b768727692d4904c4e16c9bf526824
data/README.md CHANGED
@@ -1,16 +1,27 @@
1
- # dryrun
2
- [![Build Status](https://travis-ci.org/cesarferreira/dryrun.svg?branch=master)](https://travis-ci.org/cesarferreira/dryrun) [![Gem Version](https://badge.fury.io/rb/dryrun.svg)](http://badge.fury.io/rb/dryrun)
1
+ ![Image](extras/logo.png)
3
2
 
4
3
  **Try** any **android library** hosted online **directly** from the **command line**
5
4
 
6
- <p align="center">
7
- <img src="https://raw.githubusercontent.com/cesarferreira/dryrun/master/extras/usage_v4.gif" width="100%" />
8
- </p>
5
+
6
+ ### Specs
7
+ [![Build Status](https://travis-ci.org/cesarferreira/dryrun.svg?branch=master)](https://travis-ci.org/cesarferreira/dryrun) [![Gem Version](https://badge.fury.io/rb/dryrun.svg)](http://badge.fury.io/rb/dryrun)
8
+
9
+ ### Featured in
10
+ [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-dryrun-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/2361)
11
+ [![Android Weekly](https://img.shields.io/badge/Android%20Weekly-%23200-blue.svg)](http://androidweekly.net/issues/issue-200)
12
+
13
+ ### Show some :heart:
14
+ [![GitHub stars](https://img.shields.io/github/stars/cesarferreira/dryrun.svg?style=social&label=Star)](https://github.com/cesarferreira/dryrun) [![GitHub forks](https://img.shields.io/github/forks/cesarferreira/dryrun.svg?style=social&label=Fork)](https://github.com/cesarferreira/dryrun/fork) [![GitHub watchers](https://img.shields.io/github/watchers/cesarferreira/dryrun.svg?style=social&label=Watch)](https://github.com/cesarferreira/dryrun) [![GitHub followers](https://img.shields.io/github/followers/cesarferreira.svg?style=social&label=Follow)](https://github.com/cesarferreira/dryrun)
15
+ [![Twitter Follow](https://img.shields.io/twitter/follow/cesarmcferreira.svg?style=social)](https://twitter.com/cesarmcferreira)
16
+
9
17
 
10
18
  ## Usage
11
19
  ```bash
12
20
  dryrun https://github.com/cesarferreira/android-helloworld
13
21
  ```
22
+ <p align="center">
23
+ <img src="extras/usage_v4.gif" width="100%" />
24
+ </p>
14
25
 
15
26
  Wait a few seconds and the app is now opened on your phone :smiley:
16
27
 
@@ -58,5 +69,13 @@ Options
58
69
  10. Delete the `project folder` and the `zip file` when you don't want it anymore
59
70
 
60
71
  ## Contributing
61
-
62
- Bug reports and pull requests are welcome on GitHub at https://github.com/cesarferreira/dryrun.
72
+ I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:
73
+ 1. Match coding style (braces, spacing, etc.) This is best achieved using `CMD`+`Option`+`L` (Reformat code) on Mac (not sure for Windows) with Android Studio defaults.
74
+ 2. If its a feature, bugfix, or anything please only change code to what you specify.
75
+ 3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
76
+ 4. Pull requests _must_ be made against `develop` branch. Any other branch (unless specified by the maintainers) will get rejected.
77
+ 5. Check for existing [issues](https://github.com/cesarferreira/dryrun/issues) first, before filing an issue.
78
+ 6. Have fun!
79
+
80
+ ### Created & Maintained By
81
+ [Cesar Ferreira](https://github.com/cesarferreira) ([@cesarmcferreira](https://www.twitter.com/cesarmcferreira))
data/bin/dryrun CHANGED
@@ -2,4 +2,4 @@
2
2
  require 'bundler/setup'
3
3
  require 'dryrun'
4
4
 
5
- DryRun::MainApp.new(ARGV).call
5
+ Dryrun::MainApp.new(ARGV).call
data/dryrun.gemspec CHANGED
@@ -10,7 +10,7 @@ require 'dryrun/version'
10
10
 
11
11
  Gem::Specification.new do |spec|
12
12
  spec.name = "dryrun"
13
- spec.version = DryRun::VERSION
13
+ spec.version = Dryrun::VERSION
14
14
  spec.authors = ["cesar ferreira"]
15
15
  spec.email = ["cesar.manuel.ferreira@gmail.com"]
16
16
 
data/extras/logo.png ADDED
Binary file
data/lib/dryrun.rb CHANGED
@@ -9,10 +9,12 @@ require 'dryrun/android_project'
9
9
  require "highline/import"
10
10
  require 'openssl'
11
11
 
12
- module DryRun
12
+ module Dryrun
13
13
  class MainApp
14
14
  def initialize(arguments)
15
+
15
16
  outdated_verification
17
+
16
18
  @url = ['-h', '--help', '-v', '--version'].include?(arguments.first) ? nil : arguments.shift
17
19
 
18
20
  # defaults
@@ -59,7 +61,7 @@ module DryRun
59
61
  end
60
62
 
61
63
  opts.on('-v', '--version', 'Displays the version') do
62
- puts DryRun::VERSION
64
+ puts Dryrun::VERSION
63
65
  exit
64
66
  end
65
67
 
@@ -145,6 +147,8 @@ module DryRun
145
147
  end
146
148
 
147
149
  @url = @url.split("?").first
150
+ @url.chop! if @url.end_with? '/'
151
+
148
152
 
149
153
  pick_device()
150
154
 
@@ -5,7 +5,7 @@ require 'tempfile'
5
5
  require 'find'
6
6
  require_relative 'dryrun_utils'
7
7
 
8
- module DryRun
8
+ module Dryrun
9
9
  class AndroidProject
10
10
  def initialize(path, custom_app_path, custom_module, flavour, device)
11
11
 
@@ -1,7 +1,7 @@
1
1
  require 'open-uri'
2
2
  require 'dryrun/version'
3
3
 
4
- module DryRun
4
+ module Dryrun
5
5
  class DryrunUtils
6
6
 
7
7
  def self.execute(command)
@@ -34,7 +34,7 @@ module DryRun
34
34
 
35
35
  def self.is_up_to_date
36
36
  latest = get_latest_version
37
- latest.to_s <= DryRun::VERSION.to_s
37
+ latest.to_s <= Dryrun::VERSION.to_s
38
38
  end
39
39
  end
40
40
  end
data/lib/dryrun/github.rb CHANGED
@@ -4,10 +4,13 @@ require 'uri'
4
4
  require_relative 'dryrun_utils'
5
5
  require 'digest'
6
6
 
7
- module DryRun
7
+ module Dryrun
8
8
 
9
9
  class Github
10
10
  def initialize(url)
11
+ url = url.split("?").first
12
+ url.chop! if url.end_with? '/'
13
+
11
14
  @base_url = url
12
15
  @destination = get_destination
13
16
  end
@@ -1,3 +1,3 @@
1
- module DryRun
2
- VERSION = '0.7.6'
1
+ module Dryrun
2
+ VERSION = '0.7.7'
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: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-14 00:00:00.000000000 Z
11
+ date: 2016-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -154,6 +154,7 @@ files:
154
154
  - Rakefile
155
155
  - bin/dryrun
156
156
  - dryrun.gemspec
157
+ - extras/logo.png
157
158
  - extras/thumb.png
158
159
  - extras/usage.gif
159
160
  - extras/usage_v2.gif