mdq 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43d0cbc1e08b78f4cbf8fa0b9d159b0c584baf82756531c318aa248be4be3acc
4
- data.tar.gz: 28a27cfaf7dfaf45a8d6a20bb69a7ad2f0ae95fae36d7d38940e1d09d8a4eaac
3
+ metadata.gz: e9ebf443d18d3239cbffab52e204afa1e07eeac2a984000f6b1afbc31855f1e7
4
+ data.tar.gz: ad1c5a3e8cd2677d3e3de7fd63f5cde8d4622d0849aa5c153f559e6808dd5bef
5
5
  SHA512:
6
- metadata.gz: 01d6c40eaa82839abfdf52d7a63b3a49d14a166db119e7f7d8a4a3c940fa34288dae854e83c8b9df44449739c915a43a021c63b9f5c23f5412c9954b65304268
7
- data.tar.gz: 0212b0e804f55dd572fb9f9e6c59ee48052f76f2bf7380cfbafeb252b9f1854e58e1ed8c11a5f2785ccd4bfd41ae1fc796d6aecd56354823a445002ef1ca68e5
6
+ metadata.gz: 8521e42621c6a1ad2423e69c917dd1a13316827b7a3c2dac3ab357a48336b2ea7899c0028a8d2712f7caadb792930719b81dc5610c47be24806d3dc8e20d1b0c
7
+ data.tar.gz: dd688ba27d82f27c1507c9d82e336ec3bd020955a3493e8df97ba7ac4c19325106cf4241db81da0b15a4e1d9c7b2fab4bdc99afd5af6755deedf6de06a4b77f8
data/README.base.md CHANGED
@@ -144,16 +144,27 @@ $ mdq cap -o='/Users/xxxxx/' -u='UDID'
144
144
  Take a screenshot of the simulator.
145
145
  Start the Android emulator or Apple simulator beforehand.
146
146
 
147
+ ### Android
147
148
  ```
148
- $ mdq simcap --android='/Users/xxxxx/android.png' --apple='/Users/xxxxx/apple.png'
149
+ $ mdq simcap -o='/Users/xxxxx/' -p=android
150
+ ```
151
+
152
+ ### Apple
153
+ ```
154
+ $ mdq simcap -o='/Users/xxxxx/' -p=apple
149
155
  ```
150
156
 
151
157
  ## Install the app
152
158
 
153
159
  Install the app.
154
160
 
161
+ ### Android
155
162
  ```
156
163
  $ mdq install -i='/Users/xxxxx/example.apk' -u='UDID'
164
+ ```
165
+
166
+ ### Apple
167
+ ```
157
168
  $ mdq install -i=='/Users/xxxxx/example.ipa' -u='UDID'
158
169
  ```
159
170
 
data/README.ja.md CHANGED
@@ -139,16 +139,27 @@ $ mdq cap -o='/Users/xxxxx/' -u='UDID'
139
139
  Take a screenshot of the simulator.
140
140
  Start the Android emulator or Apple simulator beforehand.
141
141
 
142
+ ### Android
142
143
  ```
143
- $ mdq simcap --android='/Users/xxxxx/android.png' --apple='/Users/xxxxx/apple.png'
144
+ $ mdq simcap -o='/Users/xxxxx/' -p=android
145
+ ```
146
+
147
+ ### Apple
148
+ ```
149
+ $ mdq simcap -o='/Users/xxxxx/' -p=apple
144
150
  ```
145
151
 
146
152
  ## Install the app
147
153
 
148
154
  Install the app.
149
155
 
156
+ ### Android
150
157
  ```
151
158
  $ mdq install -i='/Users/xxxxx/example.apk' -u='UDID'
159
+ ```
160
+
161
+ ### Apple
162
+ ```
152
163
  $ mdq install -i=='/Users/xxxxx/example.ipa' -u='UDID'
153
164
  ```
154
165
 
data/README.md CHANGED
@@ -139,16 +139,27 @@ $ mdq cap -o='/Users/xxxxx/' -u='UDID'
139
139
  Take a screenshot of the simulator.
140
140
  Start the Android emulator or Apple simulator beforehand.
141
141
 
142
+ ### Android
142
143
  ```
143
- $ mdq simcap --android='/Users/xxxxx/android.png' --apple='/Users/xxxxx/apple.png'
144
+ $ mdq simcap -o='/Users/xxxxx/' -p=android
145
+ ```
146
+
147
+ ### Apple
148
+ ```
149
+ $ mdq simcap -o='/Users/xxxxx/' -p=apple
144
150
  ```
145
151
 
146
152
  ## Install the app
147
153
 
148
154
  Install the app.
149
155
 
156
+ ### Android
150
157
  ```
151
158
  $ mdq install -i='/Users/xxxxx/example.apk' -u='UDID'
159
+ ```
160
+
161
+ ### Apple
162
+ ```
152
163
  $ mdq install -i=='/Users/xxxxx/example.ipa' -u='UDID'
153
164
  ```
154
165
 
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 :android, desc: 'Android emulator screenshot file name'
69
- method_option :apple, desc: 'Apple simulator screenshot file name'
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[:android], is_android: true) if options[:android]
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)'
data/lib/mdq/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mdq
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.0'
5
5
  end
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.2.0
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-04-27 00:00:00.000000000 Z
10
+ date: 2026-05-22 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rubocop