watir_framework 0.1.4 → 0.1.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: ac9b93c8c6b46aae8ea4288246fd867163ddc38b
4
- data.tar.gz: c91baad86ae3a31b2e6f687b4a76a9b2a5e5c73a
3
+ metadata.gz: 4dbcd292a346cac5303db5f16cc4c6bb362e4fcc
4
+ data.tar.gz: 09460a66cfd7a5b5964683de1c4f45e18ab57ffd
5
5
  SHA512:
6
- metadata.gz: ee0f905725d458d04816d1c276e65234616432073af71dcba5b5b16d7095da6356d4ed6e368fa08eda042b60fd62595bd834118acf5e9765e38740208e54b82a
7
- data.tar.gz: 4b66d377eba036ff0560935fba90791fd7cac8887e45232d40fdbf0971c2dbfc8074caa415161a62f25cc9b88277e03aaef9876bef0cc6d8c76d45464cbd1d25
6
+ metadata.gz: 38263f5fc3090f087765baa36b67623efba441ffb9a8130b595d88a9c4a4a11aa5c7a2f20a90ea89a4fff2bf2731cbd30349ce1adbadf26807c6840162dbc331
7
+ data.tar.gz: f8fccf33402e13f3b5eca538a1dbdf355eafab08e8d5843f8d89964975e8f43f243e9fba6d42e534190588731883a14ac1bd5707db4dbc1c24a82f6a75584022
@@ -0,0 +1 @@
1
+ ruby-2.2.6
@@ -1,5 +1,20 @@
1
- sudo: false
1
+ sudo: required
2
+ dist: trusty
2
3
  language: ruby
4
+ addons:
5
+ firefox: latest
3
6
  rvm:
4
- - 2.2.9
5
- before_install: gem install bundler -v 1.13.6
7
+ - 2.2.6
8
+ cache: bundler
9
+ before_script:
10
+ - export CHROME_BIN=/usr/bin/google-chrome
11
+ - export DISPLAY=:99.0
12
+ - sh -e /etc/init.d/xvfb start
13
+ - sudo apt-get update
14
+ - sudo apt-get install -y libappindicator1 fonts-liberation
15
+ - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
16
+ - sudo dpkg -i google-chrome*.deb
17
+ script: bundle exec rake spec
18
+ env:
19
+ - BROWSER=chrome
20
+ - BROWSER=firefox
data/CHANGES.md CHANGED
@@ -1,3 +1,16 @@
1
+ ### 0.1.5 (2016-11-25)
2
+
3
+ * Support webdrivers gem
4
+ * Add ruby-version file
5
+
6
+ ### 0.1.4 (2016-11-20)
7
+
8
+ * Support underscores in project name
9
+
10
+ ### 0.1.3 (2016-11-20)
11
+
12
+ * Support Watir Session
13
+
1
14
  ### 0.1.2 (2016-11-15)
2
15
 
3
16
  * Support Watir Model
@@ -39,6 +39,7 @@ class NewProject < Thor::Group
39
39
  template "rakefile.rb.erb", "#{name}/Rakefile"
40
40
  template "readme.rb.erb", "#{name}/README.md"
41
41
  template "rspec.rb.erb", "#{name}/.rspec"
42
+ template "ruby-version.rb.erb", "#{name}/.ruby-version"
42
43
  template "travis.rb.erb", "#{name}/.travis.yml"
43
44
  end
44
45
 
@@ -25,7 +25,9 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "rspec", "~> 3.0"
26
26
 
27
27
  spec.add_development_dependency "watir", "~> 6.0"
28
+ spec.add_development_dependency "selenium", "~> 3.0.2"
28
29
  spec.add_development_dependency "watir_drops", "~> 0.5.0"
29
30
  spec.add_development_dependency 'watir_model', "~> 0.2"
30
31
  spec.add_development_dependency "watir_session", "~> 0.2"
32
+ spec.add_development_dependency "webdrivers", "~> 2.1"
31
33
  end
@@ -8,8 +8,6 @@ describe <%= name.split('_').map(&:capitalize).join %> do
8
8
  end
9
9
 
10
10
  it "submits a search" do
11
- WatirDrops::PageObject.browser = Watir::Browser.new
12
-
13
11
  search_data = <%= name.split('_').map(&:capitalize).join %>::Model::Search.new
14
12
  search_page = <%= name.split('_').map(&:capitalize).join %>::Home.visit
15
13
  search_page.search(search_data)
@@ -9,6 +9,7 @@ include <%= name.split('_').map(&:capitalize).join %>
9
9
  RSpec.configure do |config|
10
10
  config.before(:each) do
11
11
  WatirSession.before_each
12
+ WatirDrops::PageObject.browser = WatirSession.browser
12
13
  end
13
14
 
14
15
  config.after(:each) do
@@ -1,5 +1,20 @@
1
- sudo: false
1
+ sudo: required
2
+ dist: trusty
2
3
  language: ruby
4
+ addons:
5
+ firefox: latest
3
6
  rvm:
4
- - 2.2.9
5
- before_install: gem install bundler -v 1.13.6
7
+ - 2.2.6
8
+ cache: bundler
9
+ before_script:
10
+ - export CHROME_BIN=/usr/bin/google-chrome
11
+ - export DISPLAY=:99.0
12
+ - sh -e /etc/init.d/xvfb start
13
+ - sudo apt-get update
14
+ - sudo apt-get install -y libappindicator1 fonts-liberation
15
+ - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
16
+ - sudo dpkg -i google-chrome*.deb
17
+ script: bundle exec rake spec
18
+ env:
19
+ - BROWSER=chrome
20
+ - BROWSER=firefox
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "watir_framework"
7
- spec.version = "0.1.4"
7
+ spec.version = "0.1.5"
8
8
  spec.authors = ["Titus Fortner"]
9
9
  spec.email = ["titusfortner@gmail.com"]
10
10
 
@@ -33,9 +33,11 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "rake", "~> 10.0"
34
34
  spec.add_development_dependency "rspec", "~> 3.0"
35
35
 
36
- spec.add_dependency('thor', '~> 0.19.1')
36
+ spec.add_dependency 'thor', '~> 0.19.1'
37
+ spec.add_dependency 'selenium-webdriver', '~> 3.0.2'
37
38
  spec.add_dependency "watir_drops", "~> 0.5.0"
38
39
  spec.add_dependency 'watir_model', "~> 0.2"
39
40
  spec.add_dependency "watir_session", "~> 0.2"
40
41
  spec.add_dependency "git", "~> 1.3.0"
42
+ spec.add_dependency "webdrivers", "~> 2.1"
41
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-24 00:00:00.000000000 Z
11
+ date: 2016-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.19.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: selenium-webdriver
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 3.0.2
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 3.0.2
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: watir_drops
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -122,6 +136,20 @@ dependencies:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
138
  version: 1.3.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: webdrivers
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '2.1'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '2.1'
125
153
  description: '"Watir Framework provides everything necessary to quickly create maintainable
126
154
  automated test suites in an understandable and enjoyable way."'
127
155
  email:
@@ -133,6 +161,7 @@ extra_rdoc_files: []
133
161
  files:
134
162
  - ".gitignore"
135
163
  - ".rspec"
164
+ - ".ruby-version"
136
165
  - ".travis.yml"
137
166
  - CHANGES.md
138
167
  - Gemfile
@@ -153,6 +182,7 @@ files:
153
182
  - generators/new_project/templates/rakefile.rb.erb
154
183
  - generators/new_project/templates/readme.rb.erb
155
184
  - generators/new_project/templates/rspec.rb.erb
185
+ - generators/new_project/templates/ruby-version.rb.erb
156
186
  - generators/new_project/templates/spec/name_spec.rb.erb
157
187
  - generators/new_project/templates/spec/spec_helper.rb.erb
158
188
  - generators/new_project/templates/travis.rb.erb