bddfire 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTFiMmVmNDIxYmMwZThlYWZhOWFkZWQwODg0MTg0MmYwM2RjNGE1MA==
4
+ ZjliYzNmMWFiNGYyNDhjMzM4MGEyYmY5MjZhZjgzMDVhNDkyMzFiMw==
5
5
  data.tar.gz: !binary |-
6
- ODdlNDA3NDZlNjNlZDc0YTEyY2NhNmU3MGQzYjlhMTdhMjA0MmY1Nw==
6
+ ODEwYzFkZDdjODRiNDcwNTc5OWY2NDY4ZTM4YTUxM2YzMTAzOTE4Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzJkNzhmNDFiYTU1N2U3OWNlMzBhNDAyMTQxYzM1OGE4MTYxZWU4NmM0MDhl
10
- NjUyMDQwOTRhYzZlMjY4Mzc5MjMyMTBiYmFmM2UwNWI5NGQ2MWExNTdlYmNj
11
- ODdhMGQ4NDljY2NmNjYyZmNhY2E3NDc3MzYwYTdhNzk3MTMyYzU=
9
+ MzMyYWJkNTgyZjExNTBjNjc5ODk0ODllNjkyYTZlY2ExYmYyMzg3NzNkNmYx
10
+ ZDc0ZjM0MTdmM2I2ODZlYmY5N2NjOWE3YjVjMWQzMjZhMmZjN2QzNjhhNjhk
11
+ NDc4YzQ1YTZlMWUxZWE0ODg0ODkzOWU3ODgwZjZhMmEzNTA2YWY=
12
12
  data.tar.gz: !binary |-
13
- YTRkNmJlZmJmYjYzN2YxZjM1ODNmYjJhMTQzMWY2YzZlNGNhZjBiNjYyYTQw
14
- M2YzZTgzNTc2MmY3ZGNjYjE4YjVmZTUwMDkzZTZmNDE4ZGIzZjdhMTg0NzAw
15
- N2IzNTFjOGU1ZWE2NTE3M2E4NzcxYzhlODZhNmQ1MzljMDczZjY=
13
+ ZDVjMmJiY2Q0ZmJjZmM4OTk2MjIwNjZkY2I1NGUyNTkyNjJhMThkMjNlOTRi
14
+ MzQ4NTI3NjgwM2M3ODhiZTY4OWYwZTI5NTY3MmNhODhkNGY4NzZhODdmNThi
15
+ MzU1YTM4MTAwZTEwNDhjNmFjNzJmODhjOWI0MmY2MWQ5ODFiMmY=
data/lib/bddfire/app.rb CHANGED
@@ -14,24 +14,32 @@ module BDDfire
14
14
  say BDDfire::VERSION
15
15
  end
16
16
 
17
- desc "cucumber", "Set up cucumber"
17
+ desc "cucumber-generate", "Set up cucumber"
18
18
  def cucumber
19
19
  genarate_gemfile
20
20
  insert_gem 'cucumber'
21
21
  insert_gem 'capybara'
22
22
  insert_gem 'selenium-webdriver'
23
23
  insert_gem 'poltergeist'
24
+ insert_gem 'rake'
25
+ insert_gem 'yard-cucumber'
26
+ insert_gem 'redcarpet'
27
+ insert_gem 'rubocop'
28
+ insert_gem 'cuke_sniffer'
24
29
  generate_rakefile
25
30
  add_task BDDfire::Tasks.cucumber
31
+ add_task BDDfire::Tasks.cuke_sniffer
32
+ add_task BDDfire::Tasks.rubocop
26
33
  add_file "features/step_definitions/#{project_name}_steps.rb"
27
34
  add_file "features/#{project_name}.feature"
28
- add_file "cucumber.yml"
29
- add_file ".rubocop.yml"
30
- add_file ".relish"
31
- add_file ".ruby-version"
32
- add_file ".travis.yml"
35
+ copy_file "config_files/cucumber.yml"
36
+ copy_file "config_files/.rubocop.yml"
37
+ copy_file "config_files/.ruby-version"
38
+ copy_file "config_files/.travis.yml"
39
+ copy_file "config_files/.relish"
33
40
  copy_file "features/support/env.rb"
34
41
  copy_file "features/support/hooks.rb"
42
+ copy_file "features/support/responsive.rb"
35
43
  template "features/support/helpers.erb", "features/support/helpers.rb"
36
44
  init_gitignore
37
45
  append_file ".gitignore", ".ruby-version\n"
@@ -60,24 +68,6 @@ module BDDfire
60
68
  append_file ".gitignore", ".yardoc\n"
61
69
  end
62
70
 
63
- desc "cuke_sniffer", "Set up cuke_sniffer"
64
- def cuke_sniffer
65
- genarate_gemfile
66
- insert_gem 'cuke_sniffer'
67
-
68
- generate_rakefile
69
- add_task BDDfire::Tasks.cuke_sniffer
70
- end
71
-
72
- desc "rubocop", "Set up rubocop"
73
- def cuke_sniffer
74
- genarate_gemfile
75
- insert_gem 'rubocop'
76
-
77
- generate_rakefile
78
- add_task BDDfire::Tasks.rubocop
79
- end
80
-
81
71
  private
82
72
 
83
73
  def project_name
@@ -1,3 +1,3 @@
1
1
  module BDDfire
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
@@ -0,0 +1,2 @@
1
+ --
2
+ access_token: your_token
@@ -0,0 +1,43 @@
1
+ AllCops:
2
+ Include:
3
+ - Gemfile
4
+ - Rakefile
5
+ Exclude:
6
+ - bin/**/*
7
+ - vendor/**/*
8
+ - tmp/**/*
9
+
10
+ CollectionMethods:
11
+ Enabled: false
12
+
13
+ Encoding:
14
+ Enabled: false
15
+
16
+ LineLength:
17
+ Max: 119
18
+
19
+ Documentation:
20
+ Enabled: false
21
+
22
+ CaseIndentation:
23
+ Enabled: false
24
+
25
+ DotPosition:
26
+ Enabled: false
27
+
28
+ MethodLength:
29
+ CountComments: false
30
+ Max: 20
31
+
32
+ Blocks:
33
+ Enabled: false
34
+ Enabled: false
35
+
36
+ AlignParameters:
37
+ Enabled: false
38
+
39
+ IfUnlessModifier:
40
+ Enabled: false
41
+
42
+ TrailingComma:
43
+ Enabled: false
@@ -0,0 +1,16 @@
1
+ language: ruby
2
+ cache: bundler
3
+
4
+ rvm:
5
+ - 2.0.0
6
+
7
+ before_script: 'bundle install'
8
+ script: 'bundle exec rake features'
9
+
10
+ branches:
11
+ only:
12
+ - master
13
+
14
+ notifications:
15
+ email:
16
+ - your_email
@@ -0,0 +1,6 @@
1
+ # config/cucumber.yml
2
+ ##YAML Template
3
+ ---
4
+ default: --profile html_report --profile test
5
+ html_report: --format pretty --format html --out=features_report.html
6
+ bvt: --tags @test
@@ -0,0 +1,18 @@
1
+ Before do
2
+ ## setup code
3
+ end
4
+
5
+ After do
6
+ ## teardown code
7
+ end
8
+
9
+ Before('@wip, @ci') do
10
+ # This will only run before scenarios tagged
11
+ # with @wip OR @ci.
12
+ end
13
+
14
+
15
+ AfterStep('@wip', '@ci') do
16
+ # This will only run after steps within scenarios tagged
17
+ # with @wip AND @ci.
18
+ end
@@ -0,0 +1,19 @@
1
+ def set_window_size(width, height)
2
+ if Capybara.current_driver == :selenium
3
+ Capybara.current_session.driver.browser.manage.window.resize_to(width, height)
4
+ elsif Capybara.current_driver == :poltergeist
5
+ Capybara.current_session.driver.resize(width, height)
6
+ end
7
+ end
8
+
9
+ begin
10
+ window_sizes = {
11
+ :'320' => { :width => 320, :height => 480 },
12
+ :'600' => { :width => 600, :height => 769 },
13
+ :'770' => { :width => 770, :height => 1025 },
14
+ :'1026' => { :width => 1026, :height => 1200 },
15
+ }
16
+ window_sizes.default = { :width => 994, :height=> 689 }
17
+ size = window_sizes[(ENV['DEVICE'] || 'default').to_sym]
18
+ set_window_size(size[:width], size[:height])
19
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bddfire
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shashikant Jagtap
@@ -190,9 +190,14 @@ files:
190
190
  - lib/bddfire/extensions/string.rb
191
191
  - lib/bddfire/tasks.rb
192
192
  - lib/bddfire/version.rb
193
+ - scaffold/config_files/.relish
194
+ - scaffold/config_files/.rubocop.yml
195
+ - scaffold/config_files/.travis.yml
196
+ - scaffold/config_files/cucumber.yaml
193
197
  - scaffold/features/support/env.rb
194
198
  - scaffold/features/support/helpers.erb
195
199
  - scaffold/features/support/hooks.rb
200
+ - scaffold/features/support/responsive.rb
196
201
  - scaffold/lib/project.erb
197
202
  - scaffold/lib/project/version.erb
198
203
  - scaffold/rake_tasks/cucumber.rb