swamp 1.4.0 → 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42ce404e057ecfc79a3afa928786b99b135d10c9
4
- data.tar.gz: 641d6ab513f187aea8d33f761eeef486560d40f8
3
+ metadata.gz: 4b74abc73fc1e50716d0544ccc88fa28a3c4eef8
4
+ data.tar.gz: f52d1dffeb08378f4cacb87a3d4731b3b0157130
5
5
  SHA512:
6
- metadata.gz: 1b061517a108252d8bd07a33842d3f01d2b3b59b745b1f695b04b996bbfa6221ad0f936a70ec9a1d93404c55f0e05d14e4d39991303160d0e47520b8bcfc8c39
7
- data.tar.gz: 6fc06e74ff084b014b7a08173399eca8fa3504a0fd9ada5d37688604e024c7c35b7ab3917f03ea183e7e0c656331f1156dfee33069f8f36b699e06a542589f77
6
+ metadata.gz: 63f1d59e2569e80d37ddeb601ad20e83203b0970cff6a4c5fc779a7cc59db3d3722ff96bbb32a8746012a01a1dee390edd4290b00cd26ed4741406eb7737e9e8
7
+ data.tar.gz: aa163db9d4d8cd36514c0946d9a70fe8c8d1333575b8430f5deaf836cfa42ec218656d7031dac424b34fda3280a7d3699adb1c16952fd3e3efe728d35f8f7c1b
@@ -1,7 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - jruby-19mode # JRuby in 1.9 mode
3
+ - 2.3.0
4
+ install:
5
+ - nvm install 4.2.3
6
+ - bundle install
5
7
  before_script:
6
8
  - "export DISPLAY=:99.0"
7
9
  - "sh -e /etc/init.d/xvfb start"
10
+ - "npm install && npm test"
data/README.md CHANGED
@@ -7,7 +7,9 @@ so you can use the generated methods to quickly create your page objects using [
7
7
 
8
8
  ## How to install
9
9
 
10
- It requires Ruby 1.9.3 or later and Firefox 24.0 or later. To install, type:
10
+ This gem doesn't need to be added to your Gemfile, it's supposed to be installed globally and then you can use it from the command line.
11
+
12
+ It requires Ruby 2.0.0 or later and Firefox 24.0 or later. To install, type:
11
13
 
12
14
  ```bash
13
15
  gem install swamp
@@ -1,4 +1,4 @@
1
- require 'capybara'
1
+ require 'capybara/dsl'
2
2
 
3
3
  module Swamp
4
4
  class Base
@@ -1,3 +1,3 @@
1
1
  module Swamp
2
- VERSION = '1.4.0'
2
+ VERSION = '1.4.1'
3
3
  end
@@ -2,17 +2,17 @@ describe('Highlight', function (){
2
2
  var HIGHLIGHT = require('../lib/swamp/js-modules/highlight.js');
3
3
  var element;
4
4
 
5
- it('should set the boxShadow property of the element', function (){
6
- element = { style: { boxShadow: '' } };
5
+ beforeEach(function (){
6
+ element = { style: {} };
7
7
  spyOn(element, 'style');
8
8
  HIGHLIGHT.glow(element);
9
+ });
10
+
11
+ it('should set the boxShadow property of the element', function (){
9
12
  expect(element.style.boxShadow).toBe('0 0 15px rgba(81, 250, 200, 1)');
10
13
  });
11
14
 
12
15
  it('should set the border property of the element', function (){
13
- element = { style: { border: '' } };
14
- spyOn(element, 'style');
15
- HIGHLIGHT.glow(element);
16
16
  expect(element.style.border).toBe('1px solid rgba(81, 250, 200, 1)');
17
17
  });
18
18
  });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juraci de Lima Vieira Neto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-15 00:00:00.000000000 Z
11
+ date: 2016-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -175,7 +175,6 @@ extra_rdoc_files: []
175
175
  files:
176
176
  - ".gitignore"
177
177
  - ".rspec"
178
- - ".ruby-version"
179
178
  - ".travis.yml"
180
179
  - Gemfile
181
180
  - Guardfile
@@ -283,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
283
282
  version: '0'
284
283
  requirements: []
285
284
  rubyforge_project:
286
- rubygems_version: 2.4.6
285
+ rubygems_version: 2.5.1
287
286
  signing_key:
288
287
  specification_version: 4
289
288
  summary: Swamp, where capybaras belong
@@ -1 +0,0 @@
1
- ruby-2.1.1