dryrun 0.3.5 → 0.3.6

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: d34826a13968c926ec65dd0271544f313f5f089b
4
- data.tar.gz: 26380ac1653db732f6dc567379c4767335cf67c1
3
+ metadata.gz: 4fd1ba9e6128d81ef1f63fbe9d3f390d110bc4b8
4
+ data.tar.gz: 35d3f500bb00c197d26275324ba3811a2bad673f
5
5
  SHA512:
6
- metadata.gz: fb3cb409d005061d63397d0c8202f52c06e918f42350600d4bb1eed8b20f77b85a38aeb42e8aa74d7b9622464c2e121724d11d9fcf735b3593d3e13a22f63d9d
7
- data.tar.gz: a01659f4cddc595e039268ed748ba3c400d0595a9acfda27fb4c76ddac9b9dce77e6352a589ee9e8e7787e308d695744b34f5b85ac7166481d97c44d9727a1cd
6
+ metadata.gz: 2d4ed1d9533676a7129663edd5a674bca2f6938e4ad4d41ee309d6f2b1d963905f6543b762a66295c773f45b46063eb6bb1913d4f594520d7acd63275635a64a
7
+ data.tar.gz: b08ce5d82b63c7835c4745e1785a7f151cd0412f8fa9b368b4865b5d3e7bf250941e32469870e6fb41d4c1f6e5618f6cd946352519bd5ba2bab474ca04ea6dc8
data/README.md CHANGED
@@ -1,17 +1,35 @@
1
1
  # dryrun
2
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)
3
3
 
4
- **Try** an **android** library on your **smartphone** **directly** from the **command line**
4
+ **Try** any **android library** on your **smartphone** **directly** from the **command line**
5
5
 
6
-
7
- > A dry run (or a practice run) is a testing process where the effects of a possible failure are intentionally mitigated. For example, an aerospace company may conduct a "dry run" test of a jet's new pilot ejection seat while the jet is parked on the ground, rather than while it is in flight.
6
+ > A dry run is a testing process where the effects of a possible failure are intentionally mitigated. For example, an aerospace company may conduct a "dry run" test of a jet's new pilot ejection seat while the jet is parked on the ground, rather than while it is in flight.
8
7
 
9
8
  <p align="center">
10
9
  <img src="https://raw.githubusercontent.com/cesarferreira/dryrun/master/extras/usage.gif" width="100%" />
11
10
  </p>
12
11
 
13
12
 
14
- ## Typical scenario
13
+ ## Usage
14
+ > dryrun https://github.com/cesarferreira/android-helloworld
15
+
16
+
17
+ Wait a few seconds... and `voilà`! The app is opened on your phone :smiley:
18
+
19
+ ### Goodies
20
+
21
+ - Private repos can be tested too :smiley:
22
+
23
+ - assuming that you have the corresponding `private ssh keys` in your `~./ssh/`
24
+
25
+ - > $ dryrun git@github.com:cesarferreira/android-helloworld.git
26
+
27
+ - No need to cleanup after you test the library.
28
+ - Your operating system will clean the /tmp/ folder for you.
29
+
30
+ - No need to wait for **Android Studio** to load.
31
+
32
+ ## Alternative scenario (if you don't use `dryrun`)
15
33
 
16
34
  1. Find the github url (lets say `https://github.com/cesarferreira/android-helloworld`)
17
35
  2. Click the `download zip`
@@ -24,29 +42,17 @@
24
42
  9. Test all you want
25
43
  10. Delete the `project folder` and the `zip file` when you don't want it anymore
26
44
 
27
- ... or you can use `dryrun`:
28
-
29
- ## Usage
30
- ```bash
31
- dryrun https://github.com/cesarferreira/android-helloworld
32
- ```
33
-
34
- Wait a few seconds... and `voilà`! The app is installed and opened on your phone :smiley:
35
-
36
-
37
45
  ## Installation
38
46
 
39
47
  $ gem install dryrun
40
48
 
41
- **Requirements `(if you haven't already)`:**
42
49
 
43
- > $ANDROID_HOME defined on the environment variables [how-to](http://stackoverflow.com/questions/5526470/trying-to-add-adb-to-path-variable-osx)
50
+ **Requirements `(if you haven't already)`:**
44
51
 
45
- **hint:** in your `~/.bashrc` add `export ANDROID_HOME="/Users/cesarferreira/Library/Android/sdk/"`
52
+ > $ANDROID_HOME defined on the environment variables [(how-to)](http://stackoverflow.com/questions/5526470/trying-to-add-adb-to-path-variable-osx)
46
53
 
47
- > Android SDK defined on the environment variables [how-to](http://stackoverflow.com/questions/19986214/setting-android-home-enviromental-variable-on-mac-os-x)
48
54
 
49
- **hint:** in your `~/.bashrc` add `export PATH="/Users/cesarferreira/.rvm/bin:/Users/cesarferreira/Library/Android/sdk/platform-tools/:$PATH"`
55
+ > Android SDK in your $PATH [(how-to)](http://stackoverflow.com/questions/19986214/setting-android-home-enviromental-variable-on-mac-os-x)
50
56
 
51
57
  ## Contributing
52
58
 
Binary file
@@ -19,7 +19,11 @@ module DryRun
19
19
  end
20
20
 
21
21
  def is_valid
22
- return true
22
+ starts_with_git = @base_url.split(//).first(4).join.eql? "git@"
23
+ starts_with_http = @base_url.split(//).first(7).join.eql? "http://"
24
+ starts_with_https = @base_url.split(//).first(8).join.eql? "https://"
25
+
26
+ return (starts_with_git or starts_with_https or starts_with_http)
23
27
  end
24
28
 
25
29
  def clonable_url
@@ -1,3 +1,3 @@
1
1
  module DryRun
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
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.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-20 00:00:00.000000000 Z
11
+ date: 2015-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -111,6 +111,7 @@ files:
111
111
  - Rakefile
112
112
  - bin/dryrun
113
113
  - dryrun.gemspec
114
+ - extras/thumb.png
114
115
  - extras/usage.gif
115
116
  - lib/dryrun.rb
116
117
  - lib/dryrun/android_project.rb