cuker 0.4.9 → 0.5.3

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,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea9e7c78907f9ffa3783fa4e6e657db008bbc27304f095f770c44977ad1587d1
4
- data.tar.gz: 65890c29fbf590e0679ce8f05800a8ee2ff44c9a1656eccfc9908bbfa2a7f0e4
3
+ metadata.gz: 901e8b5152c1c0b7304529f996da9c2e189a7f68df2c9db250b277ce9b34ae44
4
+ data.tar.gz: fc6d9bc64c1de98d9ea70fd6cdc92e451d92dd81b692b7c7c24d640a2da7ea4e
5
5
  SHA512:
6
- metadata.gz: 89e61d4e64248a0ce2ed460afe48a7f0980031a74f4ca3e0ec0d2d724e1d434307a12096d9152b38d55d9bc0dafc97235c08ef562ef7b05bf6b2e3e2e957cc11
7
- data.tar.gz: 3e65628c004451840294afe37f07584b67f1173ed2a6a221e620023e29cc130266372edee34a4022c74fc8bb85b18013a8ef4406f8472634f3583b4f86b91d71
6
+ metadata.gz: fbae1e7ee932699edeef511fa007c2c198a0ce016037b6b94d6c5dc12d9324309b68dd74a1790aa7d217d5adf3d07866c90d802681f9d81e7d3f7c808b16c9d2
7
+ data.tar.gz: cf868ef4751337a6c86767cc43745425c5be0723fbc5163f8aac20c650e17d8d78af19255cd6fb86a88f8c654233e10e32826c306ee35a2fe9f6ac400be39aa9
data/.gitignore CHANGED
@@ -1,71 +1,74 @@
1
- # Github ignores
2
- *.gem
3
- *.rbc
4
- /.config
5
- /coverage/
6
- /InstalledFiles
7
- /pkg/
8
- /spec/reports/
9
- /spec/examples.txt
10
- /test/tmp/
11
- /test/version_tmp/
12
- /tmp/
13
-
14
- # Used by dotenv library to load environment variables.
15
- # .env
16
-
17
- ## Specific to RubyMotion:
18
- .dat*
19
- .repl_history
20
- build/
21
- *.bridgesupport
22
- build-iPhoneOS/
23
- build-iPhoneSimulator/
24
-
25
- ## Specific to RubyMotion (use of CocoaPods):
26
- #
27
- # We recommend against adding the Pods directory to your .gitignore. However
28
- # you should judge for yourself, the pros and cons are mentioned at:
29
- # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
30
- #
31
- # vendor/Pods/
32
-
33
- ## Documentation cache and generated files:
34
- /.yardoc/
35
- /_yardoc/
36
- /doc/
37
- /rdoc/
38
-
39
- ## Environment normalization:
40
- /.bundle/
41
- /vendor/bundle
42
- /lib/bundler/man/
43
-
44
- # for a library or gem, you might want to ignore these files since the code is
45
- # intended to run in multiple environments; otherwise, check them in:
46
- # Gemfile.lock
47
- # .ruby-version
48
- # .ruby-gemset
49
-
50
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
51
- .rvmrc
52
-
53
- # Bundle ignores
54
-
55
- /.bundle/
56
- /.yardoc
57
- /_yardoc/
58
- /coverage/
59
- /doc/
60
- /pkg/
61
- /spec/reports/
62
- /tmp/
63
-
64
- # rspec failure tracking
65
- .rspec_status
66
-
67
-
68
- # My ignores
69
-
70
- .idea/*
71
-
1
+ # Github ignores
2
+ *.gem
3
+ *.rbc
4
+ /.config
5
+ /coverage/
6
+ /InstalledFiles
7
+ /pkg/
8
+ /spec/reports/
9
+ /spec/examples.txt
10
+ /test/tmp/
11
+ /test/version_tmp/
12
+ /tmp/
13
+
14
+ # Used by dotenv library to load environment variables.
15
+ # .env
16
+
17
+ ## Specific to RubyMotion:
18
+ .dat*
19
+ .repl_history
20
+ build/
21
+ *.bridgesupport
22
+ build-iPhoneOS/
23
+ build-iPhoneSimulator/
24
+
25
+ ## Specific to RubyMotion (use of CocoaPods):
26
+ #
27
+ # We recommend against adding the Pods directory to your .gitignore. However
28
+ # you should judge for yourself, the pros and cons are mentioned at:
29
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
30
+ #
31
+ # vendor/Pods/
32
+
33
+ ## Documentation cache and generated files:
34
+ /.yardoc/
35
+ /_yardoc/
36
+ /doc/
37
+ /rdoc/
38
+
39
+ ## Environment normalization:
40
+ /.bundle/
41
+ /vendor/bundle
42
+ /lib/bundler/man/
43
+
44
+ # for a library or gem, you might want to ignore these files since the code is
45
+ # intended to run in multiple environments; otherwise, check them in:
46
+ # Gemfile.lock
47
+ # .ruby-version
48
+ # .ruby-gemset
49
+
50
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
51
+ .rvmrc
52
+
53
+ # Bundle ignores
54
+
55
+ /.bundle/
56
+ /.yardoc
57
+ /_yardoc/
58
+ /coverage/
59
+ /doc/
60
+ /pkg/
61
+ /spec/reports/
62
+ /tmp/
63
+
64
+ # rspec failure tracking
65
+ .rspec_status
66
+
67
+
68
+ # My ignores
69
+
70
+ .idea/*
71
+
72
+ *.lock
73
+ *.log
74
+ /lib/cuker/test/
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.6.3
7
- before_install: gem install bundler -v 2.0.1
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 2.0.1
data/Gemfile CHANGED
@@ -5,12 +5,5 @@ gemspec
5
5
 
6
6
 
7
7
  # core
8
- gem 'rspec'
9
- gem 'logging'
10
- gem 'require_all'
11
- gem 'awesome_print'
12
- gem 'gherkin', '~> 5.1'
13
8
 
14
9
  # ext
15
- gem 'thor'
16
- gem 'highline'
data/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2019 ufo2mstar
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 ufo2mstar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,39 +1,39 @@
1
- # Cuker
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/cuker`. 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 'cuker'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install cuker
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 spec` 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]/cuker.
36
-
37
- ## License
38
-
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
1
+ # Cuker
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/cuker`. 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 'cuker'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install cuker
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 spec` 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]/cuker.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console CHANGED
@@ -1,14 +1,14 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "cuker"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "cuker"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup CHANGED
@@ -1,8 +1,8 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/cuker.gemspec CHANGED
@@ -41,13 +41,17 @@ Gem::Specification.new do |spec|
41
41
  spec.add_development_dependency "rake", "~> 10.0"
42
42
  spec.add_development_dependency "rspec", "~> 3.0"
43
43
 
44
- spec.add_development_dependency "awesome_print"
45
44
  # spec.add_development_dependency "bundler", "~> 2.0"
46
- spec.add_development_dependency "gherkin", "~> 5.1"
47
- spec.add_development_dependency "highline"
48
- spec.add_development_dependency "logging"
49
45
  # spec.add_development_dependency "rake", "~> 10.0"
50
46
  spec.add_development_dependency "require_all"
47
+ spec.add_development_dependency "awesome_print"
48
+ spec.add_development_dependency "logging"
49
+
50
+ spec.add_development_dependency "gherkin", "~> 5.1"
51
+
51
52
  spec.add_development_dependency "thor"
53
+ spec.add_development_dependency "highline"
54
+
55
+ spec.add_development_dependency "rubyXL"
52
56
 
53
57
  end
@@ -268,7 +268,8 @@ module Cuker
268
268
  end
269
269
 
270
270
  def jira_arg_hilight(str)
271
- str.gsub(/<(.*)>/, jira_bold_italics('<\1>'))
271
+ # str.gsub(/<(.*)?>/, jira_bold_italics('<\1>'))
272
+ str.gsub(/<.*?>/, &method(:jira_bold_italics))
272
273
  end
273
274
 
274
275
  def jira_bold str
@@ -45,6 +45,7 @@ module Cuker
45
45
  super file_name
46
46
  @log.info "Making new #{self.class} => #{file_name}"
47
47
  @csv_sheet = CSV.open(file_name, "wb")
48
+ @csv_sheet.close
48
49
  end
49
50
 
50
51
  def add_row row_ary
@@ -39,6 +39,7 @@ module Cuker
39
39
  super file_name
40
40
  @log.info "Making new #{self.class} => #{file_name}"
41
41
  @jira_file = File.open(file_name, "wb")
42
+ @jira_file.close
42
43
  end
43
44
 
44
45
  def add_line line
@@ -0,0 +1,27 @@
1
+ #
2
+ # require 'rubyXL'
3
+ #
4
+ # # ============================================
5
+ # # =========== Read Example ===============
6
+ # # ============================================
7
+ #
8
+ # workbook = RubyXL::Parser.parse './sample_excel_files/xlsx_500_rows.xlsx'
9
+ #
10
+ # worksheets = workbook.worksheets
11
+ # puts "Found #{worksheets.count} worksheets"
12
+ #
13
+ # worksheets.each do |worksheet|
14
+ # puts "Reading: #{worksheet.sheet_name}"
15
+ # num_rows = 0
16
+ #
17
+ # worksheet.each do |row|
18
+ # row_cells = row.cells.map{ |cell| cell.value }
19
+ # num_rows += 1
20
+ #
21
+ # # uncomment to print out row values
22
+ # # puts row_cells.join " "
23
+ # end
24
+ # puts "Read #{num_rows} rows"
25
+ # end
26
+ #
27
+ # puts 'Done'
data/lib/cuker/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cuker
2
- VERSION = "0.4.9"
2
+ VERSION = "0.5.3"
3
3
  end
data/spec.bat ADDED
@@ -0,0 +1 @@
1
+ rspec -f p
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ufo2mstar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-16 00:00:00.000000000 Z
11
+ date: 2019-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: awesome_print
56
+ name: require_all
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,21 +67,21 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: gherkin
70
+ name: awesome_print
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '5.1'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '5.1'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: highline
84
+ name: logging
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,21 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: logging
98
+ name: gherkin
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '5.1'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '5.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: thor
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - ">="
@@ -109,7 +123,7 @@ dependencies:
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
- name: require_all
126
+ name: highline
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - ">="
@@ -123,7 +137,7 @@ dependencies:
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
- name: thor
140
+ name: rubyXL
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - ">="
@@ -174,8 +188,10 @@ files:
174
188
  - lib/cuker/helpers/writers/ruby_x_l_writer.rb
175
189
  - lib/cuker/high.rb
176
190
  - lib/cuker/log_utils.rb
191
+ - lib/cuker/test/ruby_xl.rb
177
192
  - lib/cuker/version.rb
178
193
  - reports/.gitignore
194
+ - spec.bat
179
195
  homepage: https://github.com/ufo2mstar/cuker
180
196
  licenses:
181
197
  - MIT
@@ -195,7 +211,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
211
  - !ruby/object:Gem::Version
196
212
  version: '0'
197
213
  requirements: []
198
- rubygems_version: 3.0.3
214
+ rubyforge_project:
215
+ rubygems_version: 2.7.6.2
199
216
  signing_key:
200
217
  specification_version: 4
201
218
  summary: Cucumber Summary Gem