sauce_platforms 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Thorfile +5 -0
- data/lib/sauce_platforms/platforms/linux/linux_android.rb +1 -1
- data/lib/sauce_platforms/platforms/linux/linux_chrome.rb +5 -1
- data/lib/sauce_platforms/platforms/linux/linux_firefox.rb +1 -1
- data/lib/sauce_platforms/platforms/linux/linux_opera.rb +1 -1
- data/lib/sauce_platforms/platforms/linux.rb +1 -6
- data/lib/sauce_platforms/platforms/mac_10_10/mac_10_10_chrome.rb +5 -1
- data/lib/sauce_platforms/platforms/mac_10_10/mac_10_10_firefox.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_10/mac_10_10_ipad.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_10/mac_10_10_iphone.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_10/mac_10_10_safari.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_10.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_6/mac_10_6_chrome.rb +5 -1
- data/lib/sauce_platforms/platforms/mac_10_6/mac_10_6_firefox.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_6/mac_10_6_ipad.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_6/mac_10_6_iphone.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_6/mac_10_6_safari.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_6.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_8/mac_10_8_chrome.rb +5 -1
- data/lib/sauce_platforms/platforms/mac_10_8/mac_10_8_ipad.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_8/mac_10_8_iphone.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_8/mac_10_8_safari.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_8.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_9/mac_10_9_chrome.rb +5 -1
- data/lib/sauce_platforms/platforms/mac_10_9/mac_10_9_firefox.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_9/mac_10_9_ipad.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_9/mac_10_9_iphone.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_9/mac_10_9_safari.rb +1 -1
- data/lib/sauce_platforms/platforms/mac_10_9.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2003/windows_2003_chrome.rb +5 -1
- data/lib/sauce_platforms/platforms/windows_2003/windows_2003_firefox.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2003/windows_2003_internet_explorer.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2003/windows_2003_opera.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2003.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2008/windows_2008_chrome.rb +5 -1
- data/lib/sauce_platforms/platforms/windows_2008/windows_2008_firefox.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2008/windows_2008_internet_explorer.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2008/windows_2008_opera.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2008/windows_2008_safari.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2008.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2012/windows_2012_chrome.rb +5 -1
- data/lib/sauce_platforms/platforms/windows_2012/windows_2012_firefox.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2012/windows_2012_internet_explorer.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2012.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2012_r2/windows_2012_r2_chrome.rb +5 -1
- data/lib/sauce_platforms/platforms/windows_2012_r2/windows_2012_r2_firefox.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2012_r2/windows_2012_r2_internet_explorer.rb +1 -1
- data/lib/sauce_platforms/platforms/windows_2012_r2.rb +1 -1
- data/lib/sauce_platforms/version.rb +2 -2
- data/lib/sauce_platforms.rb +1 -1
- data/readme.md +22 -6
- data/release_notes.md +13 -0
- 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: 93a40a86ef54bb2aca287cd99993756680b8fa36
|
4
|
+
data.tar.gz: fe8578fa564c19b161560e466ce0a88f17dae2a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e065ec6039e67f820f57609b6c9719c21a5d2027ae1c9bd28d932f8665f37bf019fe286fbcb90b640c789d30010912ae654a70896210f7b5776b267501c6e9c
|
7
|
+
data.tar.gz: 64dd053b125b1a7c2fa691726efb6832703d78b7edfb2de3eeb7882c2d26e93af15ad0a4077a824aa29ecd04e4e7aec28c8c926f836f70a793ddcf696b9d4883
|
data/Thorfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module Platform
|
2
2
|
module Linux_chrome
|
3
3
|
class << self
|
4
4
|
def linux_chrome version_string
|
@@ -77,6 +77,10 @@ module Platforms
|
|
77
77
|
linux_chrome '42'
|
78
78
|
end
|
79
79
|
|
80
|
+
def v43
|
81
|
+
linux_chrome '43'
|
82
|
+
end
|
83
|
+
|
80
84
|
def beta
|
81
85
|
linux_chrome 'beta'
|
82
86
|
end
|
@@ -1,10 +1,9 @@
|
|
1
1
|
require_relative 'linux/linux_opera'
|
2
|
-
require_relative 'linux/linux_lynx'
|
3
2
|
require_relative 'linux/linux_firefox'
|
4
3
|
require_relative 'linux/linux_chrome'
|
5
4
|
require_relative 'linux/linux_android'
|
6
5
|
|
7
|
-
module
|
6
|
+
module Platform
|
8
7
|
module Linux
|
9
8
|
class << self
|
10
9
|
|
@@ -12,10 +11,6 @@ module Platforms
|
|
12
11
|
Linux_opera
|
13
12
|
end
|
14
13
|
|
15
|
-
def lynx
|
16
|
-
Linux_lynx
|
17
|
-
end
|
18
|
-
|
19
14
|
def firefox
|
20
15
|
Linux_firefox
|
21
16
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module Platform
|
2
2
|
module Mac_10_10_chrome
|
3
3
|
class << self
|
4
4
|
def mac_10_10_chrome version_string
|
@@ -33,6 +33,10 @@ module Platforms
|
|
33
33
|
mac_10_10_chrome '42'
|
34
34
|
end
|
35
35
|
|
36
|
+
def v43
|
37
|
+
mac_10_10_chrome '43'
|
38
|
+
end
|
39
|
+
|
36
40
|
def beta
|
37
41
|
mac_10_10_chrome 'beta'
|
38
42
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module Platform
|
2
2
|
module Mac_10_6_chrome
|
3
3
|
class << self
|
4
4
|
def mac_10_6_chrome version_string
|
@@ -65,6 +65,10 @@ module Platforms
|
|
65
65
|
mac_10_6_chrome '42'
|
66
66
|
end
|
67
67
|
|
68
|
+
def v43
|
69
|
+
mac_10_6_chrome '43'
|
70
|
+
end
|
71
|
+
|
68
72
|
def beta
|
69
73
|
mac_10_6_chrome 'beta'
|
70
74
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module Platform
|
2
2
|
module Mac_10_8_chrome
|
3
3
|
class << self
|
4
4
|
def mac_10_8_chrome version_string
|
@@ -65,6 +65,10 @@ module Platforms
|
|
65
65
|
mac_10_8_chrome '42'
|
66
66
|
end
|
67
67
|
|
68
|
+
def v43
|
69
|
+
mac_10_8_chrome '43'
|
70
|
+
end
|
71
|
+
|
68
72
|
def beta
|
69
73
|
mac_10_8_chrome 'beta'
|
70
74
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module Platform
|
2
2
|
module Mac_10_9_chrome
|
3
3
|
class << self
|
4
4
|
def mac_10_9_chrome version_string
|
@@ -57,6 +57,10 @@ module Platforms
|
|
57
57
|
mac_10_9_chrome '42'
|
58
58
|
end
|
59
59
|
|
60
|
+
def v43
|
61
|
+
mac_10_9_chrome '43'
|
62
|
+
end
|
63
|
+
|
60
64
|
def beta
|
61
65
|
mac_10_9_chrome 'beta'
|
62
66
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module Platform
|
2
2
|
module Windows_2003_chrome
|
3
3
|
class << self
|
4
4
|
def windows_2003_chrome version_string
|
@@ -77,6 +77,10 @@ module Platforms
|
|
77
77
|
windows_2003_chrome '42'
|
78
78
|
end
|
79
79
|
|
80
|
+
def v43
|
81
|
+
windows_2003_chrome '43'
|
82
|
+
end
|
83
|
+
|
80
84
|
def beta
|
81
85
|
windows_2003_chrome 'beta'
|
82
86
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module Platform
|
2
2
|
module Windows_2008_chrome
|
3
3
|
class << self
|
4
4
|
def windows_2008_chrome version_string
|
@@ -77,6 +77,10 @@ module Platforms
|
|
77
77
|
windows_2008_chrome '42'
|
78
78
|
end
|
79
79
|
|
80
|
+
def v43
|
81
|
+
windows_2008_chrome '43'
|
82
|
+
end
|
83
|
+
|
80
84
|
def beta
|
81
85
|
windows_2008_chrome 'beta'
|
82
86
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module Platform
|
2
2
|
module Windows_2012_chrome
|
3
3
|
class << self
|
4
4
|
def windows_2012_chrome version_string
|
@@ -77,6 +77,10 @@ module Platforms
|
|
77
77
|
windows_2012_chrome '42'
|
78
78
|
end
|
79
79
|
|
80
|
+
def v43
|
81
|
+
windows_2012_chrome '43'
|
82
|
+
end
|
83
|
+
|
80
84
|
def beta
|
81
85
|
windows_2012_chrome 'beta'
|
82
86
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module Platform
|
2
2
|
module Windows_2012_r2_chrome
|
3
3
|
class << self
|
4
4
|
def windows_2012_r2_chrome version_string
|
@@ -77,6 +77,10 @@ module Platforms
|
|
77
77
|
windows_2012_r2_chrome '42'
|
78
78
|
end
|
79
79
|
|
80
|
+
def v43
|
81
|
+
windows_2012_r2_chrome '43'
|
82
|
+
end
|
83
|
+
|
80
84
|
def beta
|
81
85
|
windows_2012_r2_chrome 'beta'
|
82
86
|
end
|
@@ -2,7 +2,7 @@ require_relative 'windows_2012_r2/windows_2012_r2_internet_explorer'
|
|
2
2
|
require_relative 'windows_2012_r2/windows_2012_r2_firefox'
|
3
3
|
require_relative 'windows_2012_r2/windows_2012_r2_chrome'
|
4
4
|
|
5
|
-
module
|
5
|
+
module Platform
|
6
6
|
module Windows_2012_r2
|
7
7
|
class << self
|
8
8
|
|
data/lib/sauce_platforms.rb
CHANGED
data/readme.md
CHANGED
@@ -1,22 +1,38 @@
|
|
1
|
-
# Sauce Platforms
|
1
|
+
# Sauce Platforms [![Gem Version](https://badge.fury.io/rb/sauce_platforms.svg)](https://rubygems.org/gems/sauce_platforms)[![Build Status](https://travis-ci.org/bootstraponline/sauce_platforms.svg?branch=master)](https://travis-ci.org/bootstraponline/sauce_platforms)
|
2
2
|
|
3
|
-
|
3
|
+
Dependency free DSL for specifying [Sauce Labs platforms](https://saucelabs.com/platforms/). The gem is automatically generated before publishing to rubygems via `sauce_whisk.platforms(true)`.
|
4
4
|
|
5
|
-
RSpec tests are also automatically generated to ensure the method calls don't error.
|
5
|
+
RSpec tests are also automatically generated to ensure the method calls don't error. RSpec tests run on Travis.
|
6
6
|
|
7
7
|
#### Usage
|
8
8
|
|
9
|
-
`require 'sauce_platforms'
|
9
|
+
`require 'sauce_platforms'`
|
10
10
|
|
11
11
|
- `Platforms.mac_10_6.firefox.v7` - built in version numbers
|
12
12
|
- `Platforms.mac_10_6.firefox.v'39'` - custom version number via `v` method
|
13
13
|
|
14
|
+
Example in Pry:
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'sauce_platforms'
|
18
|
+
> Platforms.mac_10_6.chrome.v33
|
19
|
+
=> ["Mac 10.6", "chrome", "33"]
|
20
|
+
|
21
|
+
> Platforms.mac_10_6.chrome.v'100'
|
22
|
+
=> ["Mac 10.6", "chrome", "100"]
|
23
|
+
|
24
|
+
# Invalid combinations correctly throw undefined method error
|
25
|
+
> Platforms.mac_10_6.chrome.v999
|
26
|
+
NoMethodError: undefined method `v999` for Platforms::Mac_10_6_chrome:Module
|
27
|
+
```
|
28
|
+
|
29
|
+
|
14
30
|
Advantages over magic strings:
|
15
31
|
|
16
32
|
- RubyMine auto completes the values
|
17
33
|
- A client side error is generated if an invalid combination is specified.
|
18
34
|
|
19
|
-
Intended to be used with the sauce_ruby gem.
|
35
|
+
Intended to be used with the [sauce_ruby gem.](https://github.com/saucelabs/sauce_ruby)
|
20
36
|
|
21
37
|
#### Generate new platforms
|
22
38
|
|
@@ -518,4 +534,4 @@ mac_10_10
|
|
518
534
|
|
519
535
|
Finished in 0.09344 seconds (files took 0.25787 seconds to load)
|
520
536
|
471 examples, 0 failures
|
521
|
-
```
|
537
|
+
```
|
data/release_notes.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#### v0.0.2 2015-06-06
|
2
|
+
|
3
|
+
- [0653bd9](https://github.com/bootstraponline/sauce_platforms/commit/0653bd9dfbd53343c50837bdc5d3dd6809f192ce) Release 0.0.2
|
4
|
+
- [ed83bf3](https://github.com/bootstraponline/sauce_platforms/commit/ed83bf3fde8b03702a1c97d48749b6e2648ce33a) Regenerate code
|
5
|
+
- [716946f](https://github.com/bootstraponline/sauce_platforms/commit/716946ff1e797584e916b5c4ef8a1440266059cc) Add gen thor task
|
6
|
+
- [de9cce6](https://github.com/bootstraponline/sauce_platforms/commit/de9cce64e10bf9eb187b0301c789d08bfa21aea4) Rename module from Platforms to Platform
|
7
|
+
- [691ade7](https://github.com/bootstraponline/sauce_platforms/commit/691ade7e08b954c395a409de56eab8f2031ee683) Update readme.md
|
8
|
+
- [c9a318d](https://github.com/bootstraponline/sauce_platforms/commit/c9a318d1d63d9d418036ab9664cd1d6e636c6a25) Add Pry examples
|
9
|
+
- [be68cba](https://github.com/bootstraponline/sauce_platforms/commit/be68cba08fa394fdff7751fd19a1321836af3e72) Update readme.md
|
10
|
+
- [463bafd](https://github.com/bootstraponline/sauce_platforms/commit/463bafd1be6274c5e9895c7c35cb18d8bf9cb2eb) Use https RubyGems link
|
11
|
+
- [0dcbb96](https://github.com/bootstraponline/sauce_platforms/commit/0dcbb96cda8e4d9c18d2b590e51438d88090318f) Add gem & travis badge
|
12
|
+
- [2d3c4f5](https://github.com/bootstraponline/sauce_platforms/commit/2d3c4f59dc82db9ac8e39a385557a8092a5e992b) Add gem & travis badge
|
13
|
+
- [0b20738](https://github.com/bootstraponline/sauce_platforms/commit/0b20738cf8bdf7ceff7bdbf85ddfb23f055e323b) Add release notes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sauce_platforms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- code@bootstraponline.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- lib/sauce_platforms/platforms/windows_2012_r2/windows_2012_r2_internet_explorer.rb
|
131
131
|
- lib/sauce_platforms/version.rb
|
132
132
|
- readme.md
|
133
|
+
- release_notes.md
|
133
134
|
- sauce_platforms.gemspec
|
134
135
|
homepage: https://github.com/bootstraponline/sauce_platforms
|
135
136
|
licenses:
|