mediawiki_selenium 0.3.0 → 0.3.1
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.md +15 -1
- data/lib/mediawiki_selenium/support/hooks.rb +2 -2
- data/lib/mediawiki_selenium/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4beb1a9376d4b1b0a4affa847fab2b7d76fb5574
|
|
4
|
+
data.tar.gz: 1189929f73819ead2eddd1ca37a062ad341e8b8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b300a74cf59b3a67be698fadd50d66452807b16aa6dff5ed3281a88d688548fa349cb7d3c065e65236c4889a5f79b8a0a8736c59493c3aa3f2ebddb8fea8044
|
|
7
|
+
data.tar.gz: 4b5cfac5f920eea83389f5ca19c35bfaace5ea0eb2e20f4df773c93b243deb05c315f250b96bbb5469f1399520517e571cf42d8cb1934bcbc4dfa57d44a0e599
|
data/README.md
CHANGED
|
@@ -37,12 +37,21 @@ For example:
|
|
|
37
37
|
Run the tests with `bundle exec cucumber`, this should start Firefox.
|
|
38
38
|
|
|
39
39
|
By default the tests run at en.wikipedia.beta.wmflabs.org. If you want to run
|
|
40
|
-
the tests
|
|
40
|
+
the tests on another web server, set the `MEDIAWIKI_URL` environment variable. For example:
|
|
41
41
|
|
|
42
42
|
export MEDIAWIKI_URL=http://commons.wikimedia.beta.wmflabs.org/wiki/ # Linux/Unix/Mac
|
|
43
43
|
set MEDIAWIKI_URL=http://commons.wikimedia.beta.wmflabs.org/wiki/ # Windows Command Prompt
|
|
44
44
|
$env:MEDIAWIKI_URL="http://commons.wikimedia.beta.wmflabs.org/wiki/" # Windows PowerShell
|
|
45
45
|
|
|
46
|
+
Some tests use the [MediaWiki web API](https://www.mediawiki.org/wiki/API:Main_page)
|
|
47
|
+
to interact with the web server in addition to driving a browser.
|
|
48
|
+
If you want these tests to run on another web server,
|
|
49
|
+
you must also set the `MEDIAWIKI_API_URL` environment variable. For example:
|
|
50
|
+
|
|
51
|
+
export MEDIAWIKI_API_URL=http://commons.wikimedia.beta.wmflabs.org/w/api.php # Linux/Unix/Mac
|
|
52
|
+
set MEDIAWIKI_API_URL=http://commons.wikimedia.beta.wmflabs.org/w/api.php # Windows Command Prompt
|
|
53
|
+
$env:MEDIAWIKI_API_URL="http://commons.wikimedia.beta.wmflabs.org/w/api.php" # Windows PowerShell
|
|
54
|
+
|
|
46
55
|
To run a single test file:
|
|
47
56
|
|
|
48
57
|
bundle exec cucumber features/FEATURE_NAME.feature
|
|
@@ -130,6 +139,11 @@ See https://www.mediawiki.org/wiki/Gerrit
|
|
|
130
139
|
|
|
131
140
|
## Release notes
|
|
132
141
|
|
|
142
|
+
### 0.3.1 2014-08-12
|
|
143
|
+
|
|
144
|
+
* Fixed API request for wiki extensions in dependency check
|
|
145
|
+
* Updated readme to include documentation on MEDIAWIKI_API_URL
|
|
146
|
+
|
|
133
147
|
### 0.3.0 2014-08-08
|
|
134
148
|
|
|
135
149
|
* Support for MediaWiki extension dependencies via `@extension-<name>` tags
|
|
@@ -35,11 +35,11 @@ Before do |scenario|
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
tags = tag_source.source_tag_names
|
|
38
|
-
dependencies = tags.map { |tag| tag.match(/^@extension-(.+)$/) { |m| m[1] } }.compact
|
|
38
|
+
dependencies = tags.map { |tag| tag.match(/^@extension-(.+)$/) { |m| m[1].downcase } }.compact
|
|
39
39
|
|
|
40
40
|
unless dependencies.empty?
|
|
41
41
|
extensions = api.meta(:siteinfo, siprop: "extensions").data["extensions"]
|
|
42
|
-
extensions = extensions.map { |ext| ext["
|
|
42
|
+
extensions = extensions.map { |ext| ext["name"] }.compact.map(&:downcase)
|
|
43
43
|
missing = dependencies - extensions
|
|
44
44
|
|
|
45
45
|
if missing.any?
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mediawiki_selenium
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris McMahon
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date: 2014-08-
|
|
16
|
+
date: 2014-08-12 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: cucumber
|