protractor-rails 0.0.4 → 0.0.5
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/Gemfile.lock +23 -21
- data/README.md +4 -2
- data/lib/protractor/rails/version.rb +1 -1
- data/lib/tasks/install.rake +14 -12
- data/spec/javascripts/templates/example_spec.js +1 -0
- 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: b5f611fc88506baa44f994aad0ace3bb3b5bf796
|
4
|
+
data.tar.gz: a8e4a40038aeb61ccc1b2261a34b919fd196caec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
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.
|
12
|
-
|
13
|
-
|
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
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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 (~>
|
23
|
-
|
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
|
-
|
29
|
-
|
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.
|
34
|
-
actionpack (= 4.
|
35
|
-
activesupport (= 4.
|
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.
|
40
|
-
thread_safe (0.3.
|
41
|
-
|
42
|
-
|
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
|
data/lib/tasks/install.rake
CHANGED
@@ -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 => [:
|
5
|
+
task :install => [:check_nodejs_installed, :install_protractor, :install_webdriver] do
|
6
6
|
end
|
7
7
|
|
8
|
-
task :
|
9
|
-
if linux?
|
10
|
-
puts "
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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 "
|
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 "
|
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 "
|
34
|
+
system "npm install -g requirejs"
|
33
35
|
puts "Installing coffee-script with npm".green
|
34
|
-
system "
|
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
|
|
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
|
+
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-
|
11
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|