protractor-rails 0.0.4 → 0.0.5

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: 20a461961582e7a1dd8fd267e2eb48a3d89ef32a
4
- data.tar.gz: 3bbaad514630e60b9fbe0b9488b2b57471552683
3
+ metadata.gz: b5f611fc88506baa44f994aad0ace3bb3b5bf796
4
+ data.tar.gz: a8e4a40038aeb61ccc1b2261a34b919fd196caec
5
5
  SHA512:
6
- metadata.gz: ad41fac5621e23a0a6cfae0b7165f702037ab25ea009894f914d7b742f2fb867101afee76a606095494b064a92a6ae870003a5076fe3f571dacddca1e3d63224
7
- data.tar.gz: 87b2ed7a890361cc9ce98e3fc6331f28a88a5851e54a111e5c233fb2a6b16e03a71a19d6c94cf2276703208d5b0adaeaeafd2b2a93c3f14f4f70a14f2fb6dbe1
6
+ metadata.gz: 6f038617e264b3b2ae27d7b5ba7e98b5c6c9558cc9db941caded6d3c4716f98743c4305851557a00b4dcf466d1c813bb6de8f7b5bf0e932114ed5bb4560ea212
7
+ data.tar.gz: 880269c33d586de61e659c551f8f23670007a0e6b4a8e7350aff5ffc3467b6968748ee777e63161ff0afd9cd30770df7f85dcc4fb19c42cb6ae68ba9de1219a2
data/Gemfile.lock CHANGED
@@ -1,45 +1,47 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- protractor-rails (0.0.4)
4
+ protractor-rails (0.0.5)
5
5
  colorize
6
6
  railties
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (4.0.3)
12
- activesupport (= 4.0.3)
13
- builder (~> 3.1.0)
14
- erubis (~> 2.7.0)
11
+ actionpack (4.1.4)
12
+ actionview (= 4.1.4)
13
+ activesupport (= 4.1.4)
15
14
  rack (~> 1.5.2)
16
15
  rack-test (~> 0.6.2)
17
- activesupport (4.0.3)
18
- i18n (~> 0.6, >= 0.6.4)
19
- minitest (~> 4.2)
20
- multi_json (~> 1.3)
16
+ actionview (4.1.4)
17
+ activesupport (= 4.1.4)
18
+ builder (~> 3.1)
19
+ erubis (~> 2.7.0)
20
+ activesupport (4.1.4)
21
+ i18n (~> 0.6, >= 0.6.9)
22
+ json (~> 1.7, >= 1.7.7)
23
+ minitest (~> 5.1)
21
24
  thread_safe (~> 0.1)
22
- tzinfo (~> 0.3.37)
23
- atomic (1.1.16)
24
- builder (3.1.4)
25
+ tzinfo (~> 1.1)
26
+ builder (3.2.2)
25
27
  colorize (0.7.0)
26
28
  erubis (2.7.0)
27
29
  i18n (0.6.9)
28
- minitest (4.7.5)
29
- multi_json (1.9.0)
30
+ json (1.8.1)
31
+ minitest (5.3.5)
30
32
  rack (1.5.2)
31
33
  rack-test (0.6.2)
32
34
  rack (>= 1.0)
33
- railties (4.0.3)
34
- actionpack (= 4.0.3)
35
- activesupport (= 4.0.3)
35
+ railties (4.1.4)
36
+ actionpack (= 4.1.4)
37
+ activesupport (= 4.1.4)
36
38
  rake (>= 0.8.7)
37
39
  thor (>= 0.18.1, < 2.0)
38
40
  rake (10.1.1)
39
- thor (0.18.1)
40
- thread_safe (0.3.0)
41
- atomic (>= 1.1.7, < 2)
42
- tzinfo (0.3.39)
41
+ thor (0.19.1)
42
+ thread_safe (0.3.4)
43
+ tzinfo (1.2.1)
44
+ thread_safe (~> 0.1)
43
45
 
44
46
  PLATFORMS
45
47
  ruby
data/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This gem helps you seamlessly setup, run and maintain a angularjs e2e test suite using protractor in a rails application.
4
4
 
5
+ ## Dependencies
6
+
7
+ Make sure you have Nodejs installed and that you do not need to use `sudo` to install npm packages
8
+
5
9
  ## Installation
6
10
 
7
11
  Add this line to your application's Gemfile:
@@ -12,8 +16,6 @@ And then execute the following command to load dependencies on your machine:
12
16
 
13
17
  $ rake protractor:install
14
18
 
15
- NB: This uses `sudo` so you will need to enter your password
16
-
17
19
 
18
20
  You can test that everything has been set up correctly using the command below.
19
21
  This command will run protractor's example configuration and test file against the
@@ -1,5 +1,5 @@
1
1
  module Protractor
2
2
  module Rails
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -2,16 +2,18 @@ require 'colorize'
2
2
 
3
3
  namespace :protractor do
4
4
  desc "Install dependencies for running protractor on your machine"
5
- task :install => [:install_nodejs, :install_protractor, :install_webdriver] do
5
+ task :install => [:check_nodejs_installed, :install_protractor, :install_webdriver] do
6
6
  end
7
7
 
8
- task :install_nodejs do
9
- if linux?
10
- puts "Installing NodeJS via apt-get...".green
11
- system "sudo apt-get -y install nodejs"
12
- elsif mac?
13
- puts "Installing NodeJS via homebrew...[THIS IS NOT TESTED YET I DON'T HAVE A MAC]".green
14
- system "brew install nodejs"
8
+ task :check_nodejs_installed do
9
+ if linux? || mac?
10
+ puts "Check that Nodejs is installed"
11
+ result = `node -v`
12
+ if result
13
+ puts "Nodejs #{result[0..-2]} found [OK]".yellow
14
+ else
15
+ raise "Nodejs is not installed. Please installed Nodejs and run this script again".red
16
+ end
15
17
  elsif windows?
16
18
  puts "Thank you for choosing to use protractor-rails. Unfortunately Windows is not yet supported. Feel free to contribute.".red
17
19
  end
@@ -19,19 +21,19 @@ namespace :protractor do
19
21
 
20
22
  task :install_protractor do
21
23
  puts "Installing Protractor using npm installer".green
22
- system "sudo npm install -g protractor"
24
+ system "npm install -g protractor"
23
25
  end
24
26
 
25
27
  task :install_webdriver do
26
28
  puts "Installing webdriver using protractor install manager...".green
27
- system "sudo webdriver-manager update"
29
+ system "webdriver-manager update"
28
30
  end
29
31
 
30
32
  task :coffee_script_support do
31
33
  puts "Installing RequireJS on your machine.....".green
32
- system "sudo npm install -g requirejs"
34
+ system "npm install -g requirejs"
33
35
  puts "Installing coffee-script with npm".green
34
- system "sudo npm install -g coffee-script"
36
+ system "npm install -g coffee-script"
35
37
  puts "You have dependencies installed and ready to use. Read the coffee-script section at https://github.com/tyronewilson/protractor-rails for details on configuration"
36
38
  end
37
39
 
@@ -1,5 +1,6 @@
1
1
  describe('Example Specifcation', function() {
2
2
  it('should be able to find the rails test server', function(done) {
3
3
  expect(true).toBeTruthy();
4
+ done();
4
5
  })
5
6
  });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protractor-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyrone Wilson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-21 00:00:00.000000000 Z
11
+ date: 2014-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler