screw_driver 1.0.0 → 1.1.0

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: 202c16ed6816e141d5f3df8504f328a3a19f538d
4
- data.tar.gz: 7366cf3478f8591a48babcf0de4e319fda13cace
3
+ metadata.gz: 168e42ed6742d974f3e0a69222b191b1ebe1296e
4
+ data.tar.gz: 42844bcd98ae80f31358d6b0fb9da458dca9b122
5
5
  SHA512:
6
- metadata.gz: c9cfc8fe488562d6163ee1b2bf1ecf7c0644d6e5633dc43877b8288c2846a7490e39be0c5188142535820428fc7aa434c1e5bfe0da029bb19e9d371f6963ab93
7
- data.tar.gz: c96b9fe4072f05ed4ff4bb7e451df24b7219acf3f4b6c5edbe47530eeca26ec6e2931e3c65987096c06edb0700ad10087817d4e1001048ad0b642f139de48030
6
+ metadata.gz: 01c1cc37ddbe72bdbbd7a4d3809208b3e291c1a568a56900e0985ee3d091a8d9eec89e29a06bbeb54e7ce6f8c72ae0c33ff8399e2d8b9815a823ce08946a98b9
7
+ data.tar.gz: 002177feb992b038870f836e7a21a61cb3637c37548bc83bdcbba20d16eacde169e7d5797de6864f6d2d7475a58f03334fd0ce2971f4624aa5b77b09fd1d11eb
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 lhv870
3
+ Copyright (c) 2016 Abhinav Tiwari
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,41 +0,0 @@
1
- # ScrewDriver
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/screw_driver`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'screw_driver'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install screw_driver
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/screw_driver. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
-
37
-
38
- ## License
39
-
40
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
@@ -1,3 +1,3 @@
1
1
  module ScrewDriver
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
data/lib/screw_driver.rb CHANGED
@@ -1,63 +1,63 @@
1
1
  require "screw_driver/version"
2
2
 
3
3
  module ScrewDriver
4
-
5
- def screw_driver
6
- # if SCENARIO_CNT == 1
7
- check_basic_structure
8
- delete_folder_structure
9
- make_folder_structure
10
- make_html
11
- # end
12
- # SCENARIO_CNT = SCENARIO_CNT + 1
13
4
 
14
- end
15
- def check_basic_structure
16
- unless File.directory?(Dir.pwd+'\Screw Driver Reports')
17
- FileUtils.mkdir_p(Dir.pwd+'\Screw Driver Reports')
5
+ def screw_driver
6
+ # if SCENARIO_CNT == 1
7
+ check_basic_structure
8
+ delete_folder_structure
9
+ make_folder_structure
10
+ make_html
11
+ # end
12
+ # SCENARIO_CNT = SCENARIO_CNT + 1
13
+
18
14
  end
19
- end
20
- def delete_folder_structure()
21
- file_array = $FILENAME.split('/')
22
- l =file_array.length
23
- feature_name = file_array[l-1]
24
- feature_name = feature_name.chomp('.feature')
25
- path = Dir.pwd + '\Screw Driver Reports\\'
26
- dir_path = path+feature_name
27
- if File.directory?(dir_path)
15
+ def check_basic_structure
16
+ unless File.directory?(Dir.pwd+'\Screw Driver Reports')
17
+ FileUtils.mkdir_p(Dir.pwd+'\Screw Driver Reports')
18
+ end
19
+ end
20
+ def delete_folder_structure()
21
+ file_array = $FILENAME.split('/')
22
+ l =file_array.length
23
+ feature_name = file_array[l-1]
24
+ feature_name = feature_name.chomp('.feature')
25
+ path = Dir.pwd + '\Screw Driver Reports\\'
26
+ dir_path = path+feature_name
27
+ if File.directory?(dir_path)
28
28
  ## Dir.foreach(dir_path) {|f| fn = File.join(dir_path, f); File.delete(fn) if f != '.' && f != '..'}
29
29
  ## Dir.foreach(dir_path) {|f| delete(Dir) if f != '.' && f != '..'}
30
- puts 'Folder Structure Deleted \\n' + dir_path
31
- FileUtils.rm_rf(dir_path)
32
- sleep(2)
33
- end
34
-
35
- end
36
- def make_folder_structure()
37
-
38
- file_array = $FILENAME.split('/')
39
- l =file_array.length
40
- feature_name = file_array[l-1]
41
- feature_name = feature_name.chomp('.feature')
42
- path = Dir.pwd + '\Screw Driver Reports\\'
43
- dir_path = path+feature_name
44
- FileUtils.mkdir_p(dir_path)
45
- puts 'Folder Structure Created -> ' + dir_path
46
-
30
+ puts 'Folder Structure Deleted \\n' + dir_path
31
+ FileUtils.rm_rf(dir_path)
32
+ sleep(2)
33
+ end
47
34
 
48
- end
49
- def make_html()
35
+ end
36
+ def make_folder_structure()
50
37
 
51
- file_array = $FILENAME.split('/')
52
- l =file_array.length
53
- feature_name = file_array[l-1]
54
- feature_name = feature_name.chomp('.feature')
55
- path = Dir.pwd + '\Screw Driver Reports\\'
56
- dir_path = path+feature_name
38
+ file_array = $FILENAME.split('/')
39
+ l =file_array.length
40
+ feature_name = file_array[l-1]
41
+ feature_name = feature_name.chomp('.feature')
42
+ path = Dir.pwd + '\Screw Driver Reports\\'
43
+ dir_path = path+feature_name
44
+ FileUtils.mkdir_p(dir_path)
45
+ puts 'Folder Structure Created -> ' + dir_path
57
46
 
58
47
 
59
- x = open(dir_path+'\\' +feature_name +".html",'a')
60
- x.write "<html>
48
+ end
49
+ def make_html()
50
+
51
+ file_array = $FILENAME.split('/')
52
+ l =file_array.length
53
+ feature_name = file_array[l-1]
54
+ feature_name = feature_name.chomp('.feature')
55
+ path = Dir.pwd + '\Screw Driver Reports\\'
56
+ dir_path = path+feature_name
57
+ tnow = Time.now.strftime("%m/%d/%Y %H:%M")
58
+ tsp = tnow.split(' ')
59
+ x = open(dir_path+'\\' +feature_name +".html",'a')
60
+ x.write "<html>
61
61
  <head>
62
62
  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
63
63
  <link rel=\"stylesheet\" href=\"http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css\">
@@ -103,32 +103,34 @@ h2 {
103
103
  <img width=\"1914\" height=\"74\" title=\"\" alt=\"\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB3oAAABKCAYAAABdGFXKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAACSbSURBVHhe7d0JnM31GsfxZ8YY+1hKyiCELCMtlqkuMRhyK67IliaExjIkIyIiW0auxjJZM9Zhblm6FK4aoUYo+55kTFmylFKEuef3n984c5xl9jnLfN6v18n/9/xn5hxnzvn3evme5/l5JW33SxIA8GDxt9ZLq+BgvbK2bsMGCfRuoVcAAAAAAAAAAACuz1v/CQAAAAAAAAAAAABwEwS9AAAAAAAAAAAAAOBm0jW6+Xyl4/Ll5s3y+aZNsn/fPtm3d68+k7OCmjaV2fPmSanjlXQFyJuu1Dgt803vhXlz5sjphARdzV4lSpaUgIAAeeTRR+XJJ5+U+g0aSIljFfVZ98boZgAAAAAAAAAA4GkcBr2nyuyVSe++K2tWrZLff/9dV3MPQS8g8ketn2TUW2/J/LlzdSV3FC1aVP757LMS0q2b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AAAAAABwMwS9AAAAAAAAAAAAAOBmCHoBAAAAAAAAAAAAwM14JZnoYwAAAAAAAAAAAACAG6CjFwAAAAAAAAAAAADcDEEvAAAAAAAAAAAAALgZgl4AAAAAAAAAAAAAcCsi/we9aDpqvOC5zgAAAABJRU5ErkJggg==\" />
104
104
 
105
105
  <h1>Feature Name: #{feature_name} </h1>
106
+ <h1>Run @ : #{tsp[0]}, #{tsp[1]} </h1>
107
+ <br>
106
108
 
107
109
  "
108
- x.close
110
+ x.close
109
111
 
110
- end
111
- def push_snapshot(filename,browser_class_var = @browser, scen_desc_for_new = '')
112
-
113
-
114
- tnow = Time.now.to_s.gsub(':','_')
115
- file_array = $FILENAME.split('/')
116
- l =file_array.length
117
- feature_name = file_array[l-1]
118
- feature_name = feature_name.chomp('.feature')
119
- path = Dir.pwd + '\Screw Driver Reports\\'
120
- dir_path = path+feature_name
121
- sleep(5)
122
- browser_class_var.windows.last.use do
123
- browser_class_var.screenshot.save(dir_path+ "\\" + filename + '_' +tnow + ".png")
124
112
  end
125
-
126
- x = open(dir_path+'\\' +feature_name +".html",'a')
127
- if scen_desc_for_new != ''
128
- x.write "<h1> #{scen_desc_for_new} </h1>"
129
- end
130
-
131
- x.write "<div data-role=\"collapsible\">
113
+ def push_snapshot(filename,browser_class_var = @browser, scen_desc_for_new = '')
114
+
115
+
116
+ tnow = Time.now.to_s.gsub(':','_')
117
+ file_array = $FILENAME.split('/')
118
+ l =file_array.length
119
+ feature_name = file_array[l-1]
120
+ feature_name = feature_name.chomp('.feature')
121
+ path = Dir.pwd + '\Screw Driver Reports\\'
122
+ dir_path = path+feature_name
123
+ sleep(5)
124
+ browser_class_var.windows.last.use do
125
+ browser_class_var.screenshot.save(dir_path+ "\\" + filename + '_' +tnow + ".png")
126
+ end
127
+
128
+ x = open(dir_path+'\\' +feature_name +".html",'a')
129
+ if scen_desc_for_new != ''
130
+ x.write "<h1> #{scen_desc_for_new} </h1>"
131
+ end
132
+
133
+ x.write "<div data-role=\"collapsible\">
132
134
  <h2>#{filename}: </h2>
133
135
  <div class=\"img\">
134
136
  <a target=\"_blank\" href=\"fjords.jpg\">
@@ -139,9 +141,9 @@ def push_snapshot(filename,browser_class_var = @browser, scen_desc_for_new = '')
139
141
  </div>
140
142
  <br clear=\"all\" />
141
143
  "
142
- x.close
144
+ x.close
143
145
 
144
- end
146
+ end
145
147
 
146
148
 
147
149
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: screw_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhinav Tiwari
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-25 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler