dryrun 1.1.6 → 1.2.0

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
  SHA256:
3
- metadata.gz: 8787db7cfcafcc0bed75bbd432975817c848e03c0d30906511913922dcfc75c9
4
- data.tar.gz: f4a6a787477719305283c26b21895a1d18b511458827751ae29d64b714c2c75b
3
+ metadata.gz: a25899585b455629a49419b2f070f0ac0176c551f1e651c6bc666d9a59731c1b
4
+ data.tar.gz: fa0d00714904f823f2f37247078d66a819991d239c3c1aadff94fcaf38d2b1c4
5
5
  SHA512:
6
- metadata.gz: b59e27f1c007b3d59f3871287127fb662d2a414ea9f006781e1f7cfd406aa7b2c37d8b238b8a311cbb0d361bbf881cdf142bf85af2914ca86654474e8319dcb5
7
- data.tar.gz: cf89d338da294357c52f2dccbba8b00fd70e666e62f59c376265a98b52118fe6bc1b48a3a84973837dd3f93318d75b72bb8732eda9277850c33b6057dcec27fc
6
+ metadata.gz: e06e673360b53ffbd7e48a8f49d8ba7ef4af52a3345a6fbe47ec5d85512e9a87b6f05411a79697d61dbd6e716e11dd78d501c012770275e154102f98c0121c0f
7
+ data.tar.gz: 74fb51419e6d65657ececbfb8baf74dc1d2d0e5e20f9f05316a3a66636c018185fcb21732f0c4a2d1e60d7908ec4c4b7c8149a7be060478dcfb08f3b24032e7a
@@ -1,48 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dryrun (1.1.5)
5
- bundler (>= 1.16)
6
- colorize (>= 0.8)
7
- highline (>= 1.7)
8
- oga (>= 2.15)
9
- rjb (>= 1.5)
4
+ dryrun (1.2.0)
5
+ bundler
6
+ colorize
7
+ highline
8
+ oga
9
+ rjb
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
14
  ansi (1.5.0)
15
15
  ast (2.4.0)
16
- byebug (10.0.2)
16
+ byebug (11.0.1)
17
17
  coderay (1.1.2)
18
18
  colorize (0.8.1)
19
19
  diff-lcs (1.3)
20
- highline (1.7.10)
21
- method_source (0.9.0)
20
+ highline (2.0.2)
21
+ method_source (0.9.2)
22
22
  oga (2.15)
23
23
  ast
24
24
  ruby-ll (~> 2.1)
25
- pry (0.11.3)
25
+ pry (0.12.2)
26
26
  coderay (~> 1.1.0)
27
27
  method_source (~> 0.9.0)
28
- pry-byebug (3.6.0)
29
- byebug (~> 10.0)
28
+ pry-byebug (3.7.0)
29
+ byebug (~> 11.0)
30
30
  pry (~> 0.10)
31
- rake (12.3.1)
32
- rjb (1.5.5)
33
- rspec (3.7.0)
34
- rspec-core (~> 3.7.0)
35
- rspec-expectations (~> 3.7.0)
36
- rspec-mocks (~> 3.7.0)
37
- rspec-core (3.7.1)
38
- rspec-support (~> 3.7.0)
39
- rspec-expectations (3.7.0)
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)
40
40
  diff-lcs (>= 1.2.0, < 2.0)
41
- rspec-support (~> 3.7.0)
42
- rspec-mocks (3.7.0)
41
+ rspec-support (~> 3.8.0)
42
+ rspec-mocks (3.8.1)
43
43
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.7.0)
45
- rspec-support (3.7.1)
44
+ rspec-support (~> 3.8.0)
45
+ rspec-support (3.8.2)
46
46
  ruby-ll (2.1.2)
47
47
  ansi
48
48
  ast
@@ -52,9 +52,9 @@ PLATFORMS
52
52
 
53
53
  DEPENDENCIES
54
54
  dryrun!
55
- pry-byebug (>= 3.6)
56
- rake (>= 12.3)
57
- rspec (>= 3.7)
55
+ pry-byebug
56
+ rake
57
+ rspec
58
58
 
59
59
  BUNDLED WITH
60
- 1.16.1
60
+ 2.0.2
@@ -0,0 +1,76 @@
1
+ div.notification.notification-producthunt {
2
+ border-radius: 0 !important;
3
+ background: #da552f;
4
+ }
5
+
6
+ p.install-text code {
7
+ border-radius: 5px;
8
+ padding: 0.75rem;
9
+ }
10
+
11
+ p.install-text code::before {
12
+ content: '$ ';
13
+ }
14
+
15
+ p.install-text code:hover {
16
+ cursor: text;
17
+ }
18
+
19
+ p.install-text code:hover span {
20
+ background: pink;
21
+ }
22
+
23
+ .hero .hero-foot {
24
+ margin-bottom: 1rem;
25
+ }
26
+
27
+ #madeWithBulma {
28
+ vertical-align: bottom;
29
+ }
30
+
31
+ div.column.has-content-vcentered {
32
+ display: flex;
33
+ flex-direction: column;
34
+ justify-content: center;
35
+ }
36
+
37
+ div.notification.copy-notification {
38
+ position: absolute;
39
+ top: 0;
40
+ right: 0;
41
+ z-index: 999;
42
+ }
43
+
44
+ .makerlink {
45
+ font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
46
+ right: 0px;
47
+ bottom: 0px;
48
+ position: fixed;
49
+ z-index: 100;
50
+ border-top-left-radius: 5px;
51
+ color: rgb(111, 111, 111);
52
+ padding: 6px;
53
+ border-top: 1px solid rgb(239, 239, 239);
54
+ border-left: 1px solid rgb(239, 239, 239);
55
+ background: rgb(255, 255, 255);
56
+ text-decoration: none;
57
+ }
58
+
59
+ .makerlink .makerlink__img {
60
+ width: 22px;
61
+ vertical-align: middle;
62
+ border-radius: 100%;
63
+ }
64
+
65
+ .makerlink .makerlink__author {
66
+ vertical-align: middle;
67
+ display: inline;
68
+ font-weight: 500;
69
+ font-size: 14px;
70
+ margin: 0px 0px 0px 7px;
71
+ }
72
+
73
+ h1 a {
74
+ color:inherit;
75
+ text-decoration: none;
76
+ }
@@ -0,0 +1,73 @@
1
+ <!-- Generated with: https://github.com/cesarferreira/facelift -->
2
+ <!DOCTYPE html>
3
+ <html>
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1">
8
+ <title>dryrun - ☁️ Try the demo project of any Android Library</title>
9
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" />
10
+ <link rel="stylesheet" href="./css/main.css" />
11
+ <!-- Twitter Meta -->
12
+ <meta name="twitter:card" content="summary" />
13
+ <meta name="twitter:title" content="dryrun" />
14
+ <meta name="twitter:url" content="https://github.com/cesarferreira/dryrun" />
15
+ <meta name="twitter:description" content="☁️ Try the demo project of any Android Library" />
16
+ <meta property="og:url" content="https://github.com/cesarferreira/dryrun" />
17
+
18
+ <meta property="og:title" content="dryrun" />
19
+ <meta property="og:description" content="☁️ Try the demo project of any Android Library" />
20
+ </head>
21
+ <body>
22
+ <div class="hero is-fullheight">
23
+ <div class="hero-body">
24
+ <div class="container">
25
+ <div class="columns is-variable is-6">
26
+ <!-- Content Left -->
27
+ <div class="column is-5 has-content-vcentered">
28
+ <h1 class="title is-1"><a href="https://github.com/cesarferreira/dryrun">dryrun</a></h1>
29
+ <h2 class="subtitle">☁️ Try the demo project of any Android Library</h2>
30
+ <div class="call-to-action content">
31
+ <p class="install-text is-size-4">
32
+ <code><span>gem install dryrun</span></code>
33
+ </p>
34
+ <div class="notification is-link is-hidden copy-notification">Copied to clipboard!</div>
35
+ </div>
36
+
37
+ <div class="features content">
38
+ <strong>Features</strong>
39
+ <ul>
40
+ <li>Try any android library hosted online directly from the command line</li>
41
+ <li>Specify any custom branch to run</li>
42
+ <li>Specify any flavour to run</li>
43
+ <li>Specify any app module to run</li>
44
+ <li>Checkout tag/commit hash to clone (e.g. "v0.4.5", "6f7dd4b")</li>
45
+ </ul>
46
+ </div>
47
+ <div class="features content">
48
+ <strong>Links</strong>
49
+ <ul>
50
+ <li>GitHub: <a href='https://github.com/cesarferreira/dryrun'>https://github.com/cesarferreira/dryrun</a></li>
51
+ <li>rubygems: <a href='https://rubygems.org/gems/dryrun/'>https://rubygems.org/gems/dryrun/</a></li>
52
+ </ul>
53
+ </div>
54
+
55
+ </div>
56
+ <!-- Media Right -->
57
+ <div class="column is-7 has-content-vcentered">
58
+ <figure class="image is-4by2">
59
+ <img src="https://raw.githubusercontent.com/cesarferreira/dryrun/master/extras/ss.gif" />
60
+ </figure>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </div>
66
+
67
+ <a target="_blank" rel="noopener" class="makerlink" href="http://cesarferreira.com">
68
+ <img class="makerlink__img" src="https://pbs.twimg.com/profile_images/884351017097322496/2mmpORsM_400x400.jpg" style="display: inline-block">
69
+ <p class="makerlink__author">by cesar ferreira</p>
70
+ </a>
71
+ <script async type="text/javascript" src="./js/index.js"></script>
72
+ </body>
73
+ </html>
@@ -0,0 +1,42 @@
1
+ // `copyToClipboard()` courtesy @chalarangelo (Angelos Chalaris)
2
+ // refs: https://hackernoon.com/copying-text-to-clipboard-with-javascript-df4d4988697f
3
+ const copyToClipboard = (str) => {
4
+ const el = document.createElement('textarea'); // Create a <textarea> element
5
+ el.value = str; // Set its value to the string that you want copied
6
+ el.setAttribute('readonly', ''); // Make it readonly to be tamper-proof
7
+ el.style.position = 'absolute';
8
+ el.style.left = '-9999px'; // Move outside the screen to make it invisible
9
+ document.body.appendChild(el); // Append the <textarea> element to the HTML document
10
+ const selected =
11
+ document.getSelection().rangeCount > 0 // Check if there is any content selected previously
12
+ ? document.getSelection().getRangeAt(0) // Store selection if found
13
+ : false; // Mark as false to know no selection existed before
14
+ el.select(); // Select the <textarea> content
15
+ document.execCommand('copy'); // Copy - only works as a result of a user action (e.g. click events)
16
+ document.body.removeChild(el); // Remove the <textarea> element
17
+ if (selected) { // If a selection existed before copying
18
+ document.getSelection().removeAllRanges(); // Unselect everything on the HTML document
19
+ document.getSelection().addRange(selected); // Restore the original selection
20
+ }
21
+ };
22
+
23
+ const showCopyNotification = () => {
24
+ const notification = document.querySelector('div.notification.copy-notification');
25
+ notification.classList.remove('is-hidden');
26
+ setTimeout(() => {
27
+ notification.classList.add('is-hidden');
28
+ }, 2000);
29
+ };
30
+
31
+ const installTextCode = document.querySelector('p.install-text code');
32
+ const installTextSpan = document.querySelector('p.install-text code span');
33
+
34
+ const clickableElements = [installTextCode, installTextSpan];
35
+
36
+ clickableElements.forEach((el) => {
37
+ const npmInstallText = installTextSpan.textContent; // 'npm i -g amo-cli'
38
+ el.addEventListener('click', () => {
39
+ copyToClipboard(npmInstallText);
40
+ showCopyNotification();
41
+ });
42
+ });
File without changes
File without changes
@@ -23,15 +23,15 @@ Gem::Specification.new do |s|
23
23
  s.require_paths << 'lib'
24
24
  s.executables << 'dryrun'
25
25
 
26
- s.required_ruby_version = '>= 2.0.0'
26
+ # s.required_ruby_version = '>= 2.0.0'
27
27
 
28
- s.add_development_dependency 'rake', '>= 12.3'
29
- s.add_development_dependency 'pry-byebug', '>= 3.6'
30
- s.add_development_dependency 'rspec', '>= 3.7'
28
+ s.add_development_dependency 'rake'
29
+ s.add_development_dependency 'pry-byebug'
30
+ s.add_development_dependency 'rspec'
31
31
 
32
- s.add_dependency 'bundler', '>= 1.16'
33
- s.add_dependency 'colorize', '>= 0.8'
34
- s.add_dependency 'oga', '>= 2.15'
35
- s.add_dependency 'highline', '>= 1.7'
36
- s.add_dependency 'rjb', '>= 1.5'
32
+ s.add_dependency 'bundler'
33
+ s.add_dependency 'colorize'
34
+ s.add_dependency 'oga'
35
+ s.add_dependency 'highline'
36
+ s.add_dependency 'rjb'
37
37
  end
@@ -0,0 +1,30 @@
1
+ {
2
+ "title": "dryrun",
3
+ "subtitle": "☁️ Try the demo project of any Android Library",
4
+ "installation": "gem install dryrun",
5
+ "url": "https://github.com/cesarferreira/dryrun",
6
+ "screenshot": "https://raw.githubusercontent.com/cesarferreira/dryrun/master/extras/ss.gif",
7
+ "author": {
8
+ "name": "cesar ferreira",
9
+ "thumbnail": "https://pbs.twimg.com/profile_images/884351017097322496/2mmpORsM_400x400.jpg",
10
+ "homepage": "http://cesarferreira.com"
11
+ },
12
+ "highlights": [{
13
+ "title": "Features",
14
+ "items": [
15
+ "Try any android library hosted online directly from the command line",
16
+ "Specify any custom branch to run",
17
+ "Specify any flavour to run",
18
+ "Specify any app module to run",
19
+ "Checkout tag/commit hash to clone (e.g. \"v0.4.5\", \"6f7dd4b\")"
20
+ ]
21
+ },
22
+ {
23
+ "title": "Links",
24
+ "items": [
25
+ "GitHub: <a href='https://github.com/cesarferreira/dryrun'>https://github.com/cesarferreira/dryrun</a>",
26
+ "rubygems: <a href='https://rubygems.org/gems/dryrun/'>https://rubygems.org/gems/dryrun/</a>"
27
+ ]
28
+ }
29
+ ]
30
+ }
@@ -14,7 +14,6 @@ module Dryrun
14
14
  @base_path = @custom_app_path ? File.join(path, @custom_app_path) : path
15
15
  @flavour = flavour
16
16
  @device = device
17
-
18
17
  @settings_gradle_path = settings_gradle_file
19
18
  @main_gradle_file = main_gradle_file
20
19
 
@@ -81,7 +80,10 @@ module Dryrun
81
80
  return [] unless valid?
82
81
 
83
82
  content = File.open(@settings_gradle_path, 'rb').read
83
+
84
+ content = content.split(/\n/).delete_if { |x| x.start_with?("rootProject")}.join("\n")
84
85
  modules = content.scan(/'([^']*)'/)
86
+
85
87
  modules.each {|replacement| replacement.first.tr!(':', '')}
86
88
  end
87
89
 
@@ -112,7 +114,7 @@ module Dryrun
112
114
  def sample_project
113
115
  if @custom_module && @modules.any? {|m| m.first == "#{@custom_module}"}
114
116
  @path_to_sample = File.join(@base_path, "#{@custom_module}")
115
- return @path_to_sample
117
+ return @path_to_sample if parse_manifest(@path_to_sample)
116
118
  else
117
119
  @modules.each do |child|
118
120
  full_path = File.join(@base_path, child.first)
@@ -1,3 +1,3 @@
1
1
  module Dryrun
2
- VERSION = '1.1.6'.freeze
2
+ VERSION = '1.2.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.1.6
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-30 00:00:00.000000000 Z
11
+ date: 2019-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,112 +16,112 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '12.3'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '12.3'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry-byebug
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '3.6'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '3.6'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '3.7'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '3.7'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.16'
61
+ version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.16'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: colorize
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '0.8'
75
+ version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '0.8'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: oga
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '2.15'
89
+ version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '2.15'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: highline
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '1.7'
103
+ version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '1.7'
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rjb
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '1.5'
117
+ version: '0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '1.5'
124
+ version: '0'
125
125
  description:
126
126
  email:
127
127
  - cesar.manuel.ferreira@gmail.com
@@ -141,6 +141,11 @@ files:
141
141
  - README.md
142
142
  - Rakefile
143
143
  - bin/dryrun
144
+ - docs/css/main.css
145
+ - docs/index.html
146
+ - docs/js/index.js
147
+ - docs/js/vendor/.keep
148
+ - docs/res/.keep
144
149
  - dryrun.gemspec
145
150
  - extras/gift.gif
146
151
  - extras/logo.png
@@ -149,6 +154,7 @@ files:
149
154
  - extras/usage_v2.gif
150
155
  - extras/usage_v3.gif
151
156
  - extras/usage_v4.gif
157
+ - facelift.json
152
158
  - lib/dryrun.rb
153
159
  - lib/dryrun/android_project.rb
154
160
  - lib/dryrun/android_utils.rb
@@ -176,15 +182,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
182
  requirements:
177
183
  - - ">="
178
184
  - !ruby/object:Gem::Version
179
- version: 2.0.0
185
+ version: '0'
180
186
  required_rubygems_version: !ruby/object:Gem::Requirement
181
187
  requirements:
182
188
  - - ">="
183
189
  - !ruby/object:Gem::Version
184
190
  version: '0'
185
191
  requirements: []
186
- rubyforge_project:
187
- rubygems_version: 2.7.6
192
+ rubygems_version: 3.0.4
188
193
  signing_key:
189
194
  specification_version: 4
190
195
  summary: Tool to try any android library hosted online directly from the command line