mdq 1.1.0 → 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 +4 -4
- data/README.base.md +27 -1
- data/README.ja.md +27 -1
- data/README.md +27 -1
- data/lib/mdq/cli.rb +9 -4
- data/lib/mdq/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e9ebf443d18d3239cbffab52e204afa1e07eeac2a984000f6b1afbc31855f1e7
|
|
4
|
+
data.tar.gz: ad1c5a3e8cd2677d3e3de7fd63f5cde8d4622d0849aa5c153f559e6808dd5bef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8521e42621c6a1ad2423e69c917dd1a13316827b7a3c2dac3ab357a48336b2ea7899c0028a8d2712f7caadb792930719b81dc5610c47be24806d3dc8e20d1b0c
|
|
7
|
+
data.tar.gz: dd688ba27d82f27c1507c9d82e336ec3bd020955a3493e8df97ba7ac4c19325106cf4241db81da0b15a4e1d9c7b2fab4bdc99afd5af6755deedf6de06a4b77f8
|
data/README.base.md
CHANGED
|
@@ -130,19 +130,46 @@ Apple Devices displays the apps installed with Xcode.
|
|
|
130
130
|
$ mdq list -q='select * from apps'
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
+
## Screenshot of a physical device
|
|
134
|
+
|
|
133
135
|
Take a screenshot on Android.
|
|
134
136
|
|
|
135
137
|
```
|
|
136
138
|
$ mdq cap -o='/Users/xxxxx/' -u='UDID'
|
|
137
139
|
```
|
|
138
140
|
|
|
141
|
+
|
|
142
|
+
## Screenshot of a simulator
|
|
143
|
+
|
|
144
|
+
Take a screenshot of the simulator.
|
|
145
|
+
Start the Android emulator or Apple simulator beforehand.
|
|
146
|
+
|
|
147
|
+
### Android
|
|
148
|
+
```
|
|
149
|
+
$ mdq simcap -o='/Users/xxxxx/' -p=android
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Apple
|
|
153
|
+
```
|
|
154
|
+
$ mdq simcap -o='/Users/xxxxx/' -p=apple
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Install the app
|
|
158
|
+
|
|
139
159
|
Install the app.
|
|
140
160
|
|
|
161
|
+
### Android
|
|
141
162
|
```
|
|
142
163
|
$ mdq install -i='/Users/xxxxx/example.apk' -u='UDID'
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Apple
|
|
167
|
+
```
|
|
143
168
|
$ mdq install -i=='/Users/xxxxx/example.ipa' -u='UDID'
|
|
144
169
|
```
|
|
145
170
|
|
|
171
|
+
## Unistall the app
|
|
172
|
+
|
|
146
173
|
Uninstall the app.
|
|
147
174
|
|
|
148
175
|
```
|
|
@@ -150,7 +177,6 @@ $ mdq uninstall -i='com.example.app' -u='UDID'
|
|
|
150
177
|
```
|
|
151
178
|
|
|
152
179
|
|
|
153
|
-
|
|
154
180
|
# Specification
|
|
155
181
|
|
|
156
182
|
Details of the devices table.
|
data/README.ja.md
CHANGED
|
@@ -125,19 +125,46 @@ Apple Devices displays the apps installed with Xcode.
|
|
|
125
125
|
$ mdq list -q='select * from apps'
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
+
## Screenshot of a physical device
|
|
129
|
+
|
|
128
130
|
Take a screenshot on Android.
|
|
129
131
|
|
|
130
132
|
```
|
|
131
133
|
$ mdq cap -o='/Users/xxxxx/' -u='UDID'
|
|
132
134
|
```
|
|
133
135
|
|
|
136
|
+
|
|
137
|
+
## Screenshot of a simulator
|
|
138
|
+
|
|
139
|
+
Take a screenshot of the simulator.
|
|
140
|
+
Start the Android emulator or Apple simulator beforehand.
|
|
141
|
+
|
|
142
|
+
### Android
|
|
143
|
+
```
|
|
144
|
+
$ mdq simcap -o='/Users/xxxxx/' -p=android
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Apple
|
|
148
|
+
```
|
|
149
|
+
$ mdq simcap -o='/Users/xxxxx/' -p=apple
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Install the app
|
|
153
|
+
|
|
134
154
|
Install the app.
|
|
135
155
|
|
|
156
|
+
### Android
|
|
136
157
|
```
|
|
137
158
|
$ mdq install -i='/Users/xxxxx/example.apk' -u='UDID'
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Apple
|
|
162
|
+
```
|
|
138
163
|
$ mdq install -i=='/Users/xxxxx/example.ipa' -u='UDID'
|
|
139
164
|
```
|
|
140
165
|
|
|
166
|
+
## Unistall the app
|
|
167
|
+
|
|
141
168
|
Uninstall the app.
|
|
142
169
|
|
|
143
170
|
```
|
|
@@ -145,7 +172,6 @@ $ mdq uninstall -i='com.example.app' -u='UDID'
|
|
|
145
172
|
```
|
|
146
173
|
|
|
147
174
|
|
|
148
|
-
|
|
149
175
|
# Specification
|
|
150
176
|
|
|
151
177
|
Details of the devices table.
|
data/README.md
CHANGED
|
@@ -125,19 +125,46 @@ Apple Devices displays the apps installed with Xcode.
|
|
|
125
125
|
$ mdq list -q='select * from apps'
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
+
## Screenshot of a physical device
|
|
129
|
+
|
|
128
130
|
Take a screenshot on Android.
|
|
129
131
|
|
|
130
132
|
```
|
|
131
133
|
$ mdq cap -o='/Users/xxxxx/' -u='UDID'
|
|
132
134
|
```
|
|
133
135
|
|
|
136
|
+
|
|
137
|
+
## Screenshot of a simulator
|
|
138
|
+
|
|
139
|
+
Take a screenshot of the simulator.
|
|
140
|
+
Start the Android emulator or Apple simulator beforehand.
|
|
141
|
+
|
|
142
|
+
### Android
|
|
143
|
+
```
|
|
144
|
+
$ mdq simcap -o='/Users/xxxxx/' -p=android
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Apple
|
|
148
|
+
```
|
|
149
|
+
$ mdq simcap -o='/Users/xxxxx/' -p=apple
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Install the app
|
|
153
|
+
|
|
134
154
|
Install the app.
|
|
135
155
|
|
|
156
|
+
### Android
|
|
136
157
|
```
|
|
137
158
|
$ mdq install -i='/Users/xxxxx/example.apk' -u='UDID'
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Apple
|
|
162
|
+
```
|
|
138
163
|
$ mdq install -i=='/Users/xxxxx/example.ipa' -u='UDID'
|
|
139
164
|
```
|
|
140
165
|
|
|
166
|
+
## Unistall the app
|
|
167
|
+
|
|
141
168
|
Uninstall the app.
|
|
142
169
|
|
|
143
170
|
```
|
|
@@ -145,7 +172,6 @@ $ mdq uninstall -i='com.example.app' -u='UDID'
|
|
|
145
172
|
```
|
|
146
173
|
|
|
147
174
|
|
|
148
|
-
|
|
149
175
|
# Specification
|
|
150
176
|
|
|
151
177
|
Details of the devices table.
|
data/lib/mdq/cli.rb
CHANGED
|
@@ -65,12 +65,12 @@ module Mdq
|
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
desc 'simcap', 'Take a screenshot of the simulator.'
|
|
68
|
-
method_option :
|
|
69
|
-
|
|
68
|
+
method_option :platform, desc: 'Specify the device platform', aliases: '-p',
|
|
69
|
+
required: true, enum: %w[android apple]
|
|
70
|
+
method_option :output, desc: 'Save to file', aliases: '-o', required: true
|
|
70
71
|
def simcap
|
|
71
72
|
db = Mdq::DB.new
|
|
72
|
-
db.sim_screencap(options[:
|
|
73
|
-
db.sim_screencap(options[:apple], is_android: false) if options[:apple]
|
|
73
|
+
db.sim_screencap(options[:output], is_android: options[:platform] == 'android')
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
desc 'install', 'Installing the app(apk, apex, ipa)'
|
|
@@ -92,5 +92,10 @@ module Mdq
|
|
|
92
92
|
db.get(is_apps: false)
|
|
93
93
|
db.app_uninstall(options[:input], options[:udid])
|
|
94
94
|
end
|
|
95
|
+
|
|
96
|
+
def help
|
|
97
|
+
super
|
|
98
|
+
puts 'Online documentation: https://github.com/arthur87/mdq'
|
|
99
|
+
end
|
|
95
100
|
end
|
|
96
101
|
end
|
data/lib/mdq/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mdq
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- arthur87
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-05-22 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rubocop
|