dryrun 0.3.5 → 0.3.6
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 +4 -4
- data/README.md +25 -19
- data/extras/thumb.png +0 -0
- data/lib/dryrun/github.rb +5 -1
- data/lib/dryrun/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fd1ba9e6128d81ef1f63fbe9d3f390d110bc4b8
|
4
|
+
data.tar.gz: 35d3f500bb00c197d26275324ba3811a2bad673f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d4ed1d9533676a7129663edd5a674bca2f6938e4ad4d41ee309d6f2b1d963905f6543b762a66295c773f45b46063eb6bb1913d4f594520d7acd63275635a64a
|
7
|
+
data.tar.gz: b08ce5d82b63c7835c4745e1785a7f151cd0412f8fa9b368b4865b5d3e7bf250941e32469870e6fb41d4c1f6e5618f6cd946352519bd5ba2bab474ca04ea6dc8
|
data/README.md
CHANGED
@@ -1,17 +1,35 @@
|
|
1
1
|
# dryrun
|
2
2
|
[](https://travis-ci.org/cesarferreira/dryrun) [](http://badge.fury.io/rb/dryrun)
|
3
3
|
|
4
|
-
**Try**
|
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
|
-
##
|
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
|
-
|
50
|
+
**Requirements `(if you haven't already)`:**
|
44
51
|
|
45
|
-
|
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
|
-
|
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
|
|
data/extras/thumb.png
ADDED
Binary file
|
data/lib/dryrun/github.rb
CHANGED
@@ -19,7 +19,11 @@ module DryRun
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def is_valid
|
22
|
-
|
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
|
data/lib/dryrun/version.rb
CHANGED
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.
|
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-
|
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
|