shoot 2.0.0 → 2.0.1

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: 675f708a7fe175d332fea879546b0b1f3da65b01
4
- data.tar.gz: 6503def1d598f295ed6cd8c32c36cfb14bb5b786
3
+ metadata.gz: e654429f512894513e21f6f555daaea022f96e1d
4
+ data.tar.gz: 2b4967b18e60fd46250c472c940e0198ed87f158
5
5
  SHA512:
6
- metadata.gz: 50f3f4c3492cba7e62ed7cdd839bf126b3b2b05e5e1f8770e3e8af28380797ec4f9b67bbc65c5b363d863efd704b8f2bfd2502090e988226feccc8af3562ab66
7
- data.tar.gz: a0ae49e4ce89ea9ccfc782e84a1974d30bd21b4bc8a2fa7ce21a33999b277fdaa37c4b18e32a8a8e2ad742f1a55698bc31eb8df55a1fdc337e51d55a8dfc4a13
6
+ metadata.gz: 758372ba2e5841877549835594a1ba22b11f780dcb39d71cd8e72b8b0e38ec78b7b045ecdfd68ea8f30b8617b0c5b362f78924db6d2c873628d8325fb29689c7
7
+ data.tar.gz: 6ac47fa0e07683494fedf8c0567c10005fe8eef97f1d9302e83deaccb0053ddb2d59b9f4895e50a690fee95030b657e7e38a50f48a89ca469f167766d2d3ea4b
data/README.md CHANGED
@@ -111,6 +111,39 @@ To open all screenshots (on a Mac), run:
111
111
 
112
112
  $ shoot open
113
113
 
114
+ ### Interactive mode
115
+
116
+ Sometimes running all the commands above becomes annoying. Here's where the interactive mode comes to the rescue. Just run any of the commands below:
117
+
118
+ # shoot -i
119
+ # shoot --interactive
120
+ # shoot interactive
121
+
122
+ And you'll be prompted for actions. You can run things like:
123
+
124
+ (interactive mode) # list ie
125
+ (interactive mode) # activate 12 34 56
126
+ (interactive mode) # test /my_test_folder
127
+ (interactive mode) # open
128
+ (interactive mode) # deactivate 12
129
+ (interactive mode) # update
130
+
131
+ You got the idea.
132
+
133
+ ### List of commands
134
+
135
+ shoot activate IDs # Activate platforms, based on IDs
136
+ shoot active # List active platforms.
137
+ shoot deactivate IDs # Deactivate platforms, based on IDs
138
+ shoot deactivate_all # Deactivate all the platforms
139
+ shoot help [COMMAND] # Describe available commands or one specific
140
+ shoot interactive, --interactive, -i # Interactive mode
141
+ shoot list [FILTER] # List all platforms. Optionally passing a filter
142
+ shoot open # Opens all screenshots taken
143
+ shoot scenario PATH # Runs the given scenario or all files in a directory on all active platforms
144
+ shoot test PATH # Runs the given scenario or all files in a directory on a local phantomjs
145
+ shoot update # Update browser list (WARNING: will override active browsers)
146
+ shoot version, --version, -v # Shoot version
114
147
 
115
148
  ## Contributing
116
149
 
data/lib/shoot/cli.rb CHANGED
@@ -15,7 +15,7 @@ module Shoot
15
15
  puts Shoot::VERSION
16
16
  end
17
17
 
18
- desc 'interactive, --interactive, -i', 'Activate one platform, based on ID or interval'
18
+ desc 'interactive, --interactive, -i', 'Interactive mode'
19
19
  def interactive
20
20
  @exit = false
21
21
 
@@ -49,7 +49,7 @@ module Shoot
49
49
  open_all_screenshots
50
50
  end
51
51
 
52
- desc 'list', 'List all platforms. Optionally pass a filter (e.g. browserstack list ie)'
52
+ desc 'list [FILTER]', 'List all platforms. Optionally passing a filter'
53
53
  def list(filter = nil)
54
54
  table json.select { |p| p.inspect =~ /#{filter}/i }
55
55
  end
@@ -59,7 +59,7 @@ module Shoot
59
59
  table _active
60
60
  end
61
61
 
62
- desc 'scenario', 'Runs the given scenario or all files in a directory on all active platforms'
62
+ desc 'scenario PATH', 'Runs the given scenario or all files in a directory on all active platforms'
63
63
  def scenario(path)
64
64
  files = File.directory?(path) ? Dir.glob("#{path}/*.rb") : [path]
65
65
 
@@ -73,7 +73,7 @@ module Shoot
73
73
  end
74
74
  end
75
75
 
76
- desc 'test', 'Runs the given scenario or all files in a directory on a local phantomjs'
76
+ desc 'test PATH', 'Runs the given scenario or all files in a directory on a local phantomjs'
77
77
  def test(path)
78
78
  files = File.directory?(path) ? Dir.glob("#{path}/*.rb") : [path]
79
79
  elapsed_time do
@@ -82,12 +82,12 @@ module Shoot
82
82
  end
83
83
  end
84
84
 
85
- desc 'activate ID', 'Activate platforms, based on IDs'
85
+ desc 'activate IDs', 'Activate platforms, based on IDs'
86
86
  def activate(*ids)
87
87
  _activate(ids)
88
88
  end
89
89
 
90
- desc 'deactivate', 'Deactivate platforms, based on IDs'
90
+ desc 'deactivate IDs', 'Deactivate platforms, based on IDs'
91
91
  def deactivate(*ids)
92
92
  _deactivate(ids)
93
93
  end
data/lib/shoot/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Shoot
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoot
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Lulkin