bddfire 1.5.9 → 1.6.0

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NThhZGY2ZGE4NjE3NzFiNjdkOTc2OWNmN2ExYTc0MDljYTU3MTU3YQ==
4
+ ZmNkOTZiNzg1YTE2MDA4MDkyYmEyOThkYjkyMDRkMWUxNjZlY2FkZQ==
5
5
  data.tar.gz: !binary |-
6
- ODVkNmVhMzY2M2VkMTExYWE0NzI3MGI5ZDY1ZDU1Yjk4M2E5MTdiYw==
6
+ OWJkMTkxODJiY2MyNWUxNzJjZjVlYzUzN2U0MDQ4ZTBlZTk2YTYwOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTAxMGIxOGIxNWE2NzI5NGFlZTEwM2M1ZTIwMTcwZWU3ZThmYzNlYjYxNTEz
10
- NjE4OWFhNWM1ZTFlOGZiMDYzOTQ0YjA3OWJmMWQ1NmZkNTg2NmU3NjViM2M3
11
- OGE0ODczNTc2NDlhZGY1ZWFmNGRjY2Y4ODlmMjkwYmEwNGZkMjY=
9
+ OTMyMWZiNDRkMWE1MGE0MGNhZDA3ZjZiYzQ4NjgxNGE4ZjkzYzk5MDg0Yjhh
10
+ OWU1MTRmMzcyNDhjYjE0NDFlZDY2YzBiNDQ1NzcwNTI5NTViN2IyNDgxNGUz
11
+ NDdmZjAzNjc4MGRiZGJmZjY2NTE2NDA3MDBjZDM3ZDZlMzExMWI=
12
12
  data.tar.gz: !binary |-
13
- ZGE4ODIxYjE3OTgzZjcyNDFlYTkyODBhMmYxYzEwZmVlYmZmNmQwM2Y0Yjcw
14
- N2JhNDM3YjU5MTg4YThlNjgzMjg4NDI3NWUwNzUzNzU3YzI5YzA1YTVmYzhm
15
- NTQxYTk4YjUzYTdkZTQ1OTQ3ZTE0NzhhODJlOTU4M2Q1NGRlMjg=
13
+ Y2ZkODY1ZTBlOGI0NTU1MzNjMzUwMjE2MDJkOGUzNmQ2YjZiYjg0YzUxZTYy
14
+ YTE1MGM0MWQ3Mzg4ZDYyOTlmYTliOTY2YjRhOGJhZjU0Zjg0Nzk5ZTQxNGUw
15
+ ZTJmNTMwN2RjYTFiYTViNjNiNTBmZGExMjEzNmI4ZjFjMjBkM2U=
@@ -8,30 +8,14 @@ module BDDfire
8
8
  def self.source_root
9
9
  File.expand_path('../../scaffold', File.dirname(__FILE__))
10
10
  end
11
-
11
+
12
12
  desc "version", "current version"
13
13
  def version
14
14
  say BDDfire::VERSION
15
15
  end
16
-
16
+
17
17
  desc "fire_cucumber", "Set up cucumber framework with all the directories and standard templates, supporting all the available tools around cucumber"
18
18
  def fire_cucumber
19
- genarate_gemfile
20
- insert_gem 'cucumber'
21
- insert_gem 'capybara'
22
- insert_gem 'bddfire'
23
- insert_gem 'selenium-webdriver'
24
- insert_gem 'poltergeist'
25
- insert_gem 'rake'
26
- insert_gem 'yard-cucumber'
27
- insert_gem 'redcarpet'
28
- insert_gem 'rubocop'
29
- insert_gem 'cuke_sniffer'
30
- insert_gem 'json'
31
- insert_gem 'rspec'
32
- insert_gem 'relish'
33
- insert_gem 'bddfire'
34
- insert_gem 'rubocop-checkstyle_formatter'
35
19
  generate_rakefile
36
20
  add_task BDDfire::Tasks.cucumber
37
21
  add_task BDDfire::Tasks.cuke_sniffer
@@ -40,6 +24,7 @@ module BDDfire
40
24
  add_file "features/step_definitions/#{project_name}_steps.rb"
41
25
  add_file "features/#{project_name}.feature"
42
26
  copy_file "features/google.feature"
27
+ copy_file "Gemfile"
43
28
  copy_file "cucumber.yml"
44
29
  copy_file ".rubocop.yml"
45
30
  copy_file ".ruby-version"
@@ -69,12 +54,12 @@ module BDDfire
69
54
  add_task BDDfire::Tasks.rspec
70
55
  copy_file "spec/spec_helper.rb"
71
56
  end
72
-
57
+
73
58
  desc "generate_yard", "This will generate yard documentation for your cucumber project"
74
59
  def generate_yard
75
60
  genarate_gemfile
76
61
  insert_gem 'yard'
77
-
62
+
78
63
  generate_rakefile
79
64
  add_task BDDfire::Tasks.yard(project_name)
80
65
 
@@ -82,13 +67,13 @@ module BDDfire
82
67
  append_file ".gitignore", "doc/*\n"
83
68
  append_file ".gitignore", ".yardoc\n"
84
69
  end
85
-
70
+
86
71
  private
87
-
72
+
88
73
  def project_name
89
74
  destination_root.split(/\/|\\/).last
90
75
  end
91
-
76
+
92
77
  def genarate_gemfile
93
78
  unless destination_file_exists?("Gemfile")
94
79
  add_file "Gemfile"
@@ -110,25 +95,25 @@ module BDDfire
110
95
  end
111
96
  end
112
97
  end
113
-
98
+
114
99
  def init_gitignore
115
100
  add_file ".gitignore" unless destination_file_exists?(".gitignore")
116
101
  ensure_eof_newline(".gitignore")
117
102
  end
118
-
103
+
119
104
  def destination_file_exists?(filename)
120
105
  File.exist?(File.join(destination_root, filename))
121
106
  end
122
-
107
+
123
108
  def insert_gem(gem_name)
124
109
  ensure_eof_newline("Gemfile")
125
110
  append_file "Gemfile", "gem '#{gem_name}'\n"
126
111
  end
127
-
112
+
128
113
  def add_task(the_task)
129
114
  append_file "Rakefile", "\n\n#{the_task}\n"
130
115
  end
131
-
116
+
132
117
  def ensure_eof_newline(filename)
133
118
  gsub_file(filename, /([^\n])\z/, "\\1\n")
134
119
  end
@@ -1,3 +1,3 @@
1
1
  module BDDfire
2
- VERSION = "1.5.9"
2
+ VERSION = "1.6.0"
3
3
  end
@@ -0,0 +1,16 @@
1
+ source "http://rubygems.org"
2
+ gem 'nokogiri', '1.6.1'
3
+ gem 'cucumber'
4
+ gem 'capybara'
5
+ gem 'bddfire'
6
+ gem 'selenium-webdriver'
7
+ gem 'poltergeist'
8
+ gem 'rake'
9
+ gem 'yard-cucumber'
10
+ gem 'redcarpet'
11
+ gem 'rubocop'
12
+ gem 'cuke_sniffer'
13
+ gem 'json'
14
+ gem 'rspec'
15
+ gem 'relish'
16
+ gem 'rubocop-checkstyle_formatter'
@@ -1,5 +1,4 @@
1
1
  {
2
- "name": "node packages for th BDDfire",
3
2
  "version": "0.0.0",
4
3
  "description": "BDDfire nodeJS modules",
5
4
  "dependencies": {
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.5.9
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shashikant Jagtap
@@ -238,6 +238,7 @@ files:
238
238
  - scaffold/.ruby-version
239
239
  - scaffold/.travis.yml
240
240
  - scaffold/.yard.yml
241
+ - scaffold/Gemfile
241
242
  - scaffold/README.md
242
243
  - scaffold/browser.json
243
244
  - scaffold/ci_script