mediawiki_selenium 0.3.0 → 0.3.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: 39a9f6171eeccfe111262d9a406ca3d7a569ecfc
4
- data.tar.gz: 3232fb53eea9d230aaeec39878ea44d987859f70
3
+ metadata.gz: 4beb1a9376d4b1b0a4affa847fab2b7d76fb5574
4
+ data.tar.gz: 1189929f73819ead2eddd1ca37a062ad341e8b8f
5
5
  SHA512:
6
- metadata.gz: aa23a5af45e5b55bd38d789c56b81c3d9e7c020a28a4039eb0281d29794235b9d718593f698c31aa06f76d059ec4b69c81578f236f011b7cd7e24c871da2e84a
7
- data.tar.gz: 08146c6e2d7494b117edcc1fdd9376736713843a1867ceb965b21b7886aefdb30d13c807a81c7d16ef1a3e246643f0624a76e995942d5ad3fb3c0b05f8e4753d
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 elsewhere, set the `MEDIAWIKI_URL` environment variable. For example:
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["type"] }
42
+ extensions = extensions.map { |ext| ext["name"] }.compact.map(&:downcase)
43
43
  missing = dependencies - extensions
44
44
 
45
45
  if missing.any?
@@ -10,5 +10,5 @@ https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/CREDITS.
10
10
  =end
11
11
 
12
12
  module MediawikiSelenium
13
- VERSION = "0.3.0"
13
+ VERSION = "0.3.1"
14
14
  end
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.0
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-08 00:00:00.000000000 Z
16
+ date: 2014-08-12 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: cucumber