topoisomerase 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.gitlab-ci.yml +12 -0
- data/.rspec +3 -0
- data/.rubocop.yml +2 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +93 -0
- data/LICENSE.txt +21 -0
- data/README.md +55 -0
- data/Rakefile +9 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/topoisomerase +3 -0
- data/lib/topoisomerase.rb +76 -0
- data/lib/topoisomerase/core_ext/string.rb +14 -0
- data/lib/topoisomerase/override_define.rb +13 -0
- data/lib/topoisomerase/stub_template.rb.erb +15 -0
- data/lib/topoisomerase/version.rb +3 -0
- data/topoisomerase.gemspec +44 -0
- metadata +179 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b85e0899515e89773ce6a546b58fab50d4fb802d8752ca7f7836c254ea072dd5
|
4
|
+
data.tar.gz: 0773b1feacf0423d6e14b8793e8dee8074bfb0e4e355611a2902a9e58d7b24b8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c3323e825f54fcb67243e7d763743ecd2337635a7c0e3a2d132e1264b7bba2c5f2c5ac21c9da1198bd8b49d3c913f6fdeb69d7697736666b0f43610e86258da8
|
7
|
+
data.tar.gz: d00d0ff0f245067be77d161e66e2255364993777aa878eb107057b6ea98ca4146bb427450687f4278d45352f7e75ef974e5d30076245900e85e304ef03deacd3
|
data/.gitignore
ADDED
data/.gitlab-ci.yml
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at TODO: Write your email address. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
topoisomerase (0.1.0)
|
5
|
+
method_source
|
6
|
+
rubocop
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
ast (2.4.0)
|
12
|
+
childprocess (1.0.1)
|
13
|
+
rake (< 13.0)
|
14
|
+
concurrent-ruby (1.1.5)
|
15
|
+
data_magic (1.2)
|
16
|
+
faker (>= 1.1.2)
|
17
|
+
yml_reader (>= 0.6)
|
18
|
+
diff-lcs (1.3)
|
19
|
+
faker (1.9.3)
|
20
|
+
i18n (>= 0.7)
|
21
|
+
i18n (1.6.0)
|
22
|
+
concurrent-ruby (~> 1.0)
|
23
|
+
jaro_winkler (1.5.2)
|
24
|
+
method_source (0.9.2)
|
25
|
+
mini_portile2 (2.4.0)
|
26
|
+
nokogiri (1.10.3)
|
27
|
+
mini_portile2 (~> 2.4.0)
|
28
|
+
page-object (2.2.5)
|
29
|
+
page_navigation (>= 0.10)
|
30
|
+
selenium-webdriver (~> 3.0)
|
31
|
+
watir (~> 6.8)
|
32
|
+
page_navigation (0.10)
|
33
|
+
data_magic (>= 0.22)
|
34
|
+
parallel (1.17.0)
|
35
|
+
parser (2.6.0.0)
|
36
|
+
ast (~> 2.4.0)
|
37
|
+
powerpack (0.1.2)
|
38
|
+
psych (3.1.0)
|
39
|
+
rainbow (3.0.0)
|
40
|
+
rake (10.5.0)
|
41
|
+
regexp_parser (1.3.0)
|
42
|
+
rspec (3.8.0)
|
43
|
+
rspec-core (~> 3.8.0)
|
44
|
+
rspec-expectations (~> 3.8.0)
|
45
|
+
rspec-mocks (~> 3.8.0)
|
46
|
+
rspec-core (3.8.0)
|
47
|
+
rspec-support (~> 3.8.0)
|
48
|
+
rspec-expectations (3.8.3)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.8.0)
|
51
|
+
rspec-mocks (3.8.0)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.8.0)
|
54
|
+
rspec-support (3.8.0)
|
55
|
+
rubocop (0.65.0)
|
56
|
+
jaro_winkler (~> 1.5.1)
|
57
|
+
parallel (~> 1.10)
|
58
|
+
parser (>= 2.5, != 2.5.1.1)
|
59
|
+
powerpack (~> 0.1)
|
60
|
+
psych (>= 3.1.0)
|
61
|
+
rainbow (>= 2.2.2, < 4.0)
|
62
|
+
ruby-progressbar (~> 1.7)
|
63
|
+
unicode-display_width (~> 1.4.0)
|
64
|
+
ruby-progressbar (1.10.0)
|
65
|
+
rubyzip (1.2.2)
|
66
|
+
selenium-webdriver (3.142.0)
|
67
|
+
childprocess (>= 0.5, < 2.0)
|
68
|
+
rubyzip (~> 1.2, >= 1.2.2)
|
69
|
+
unicode-display_width (1.4.1)
|
70
|
+
watir (6.16.5)
|
71
|
+
regexp_parser (~> 1.2)
|
72
|
+
selenium-webdriver (~> 3.6)
|
73
|
+
webdrivers (3.8.0)
|
74
|
+
nokogiri (~> 1.6)
|
75
|
+
rubyzip (~> 1.0)
|
76
|
+
selenium-webdriver (~> 3.0)
|
77
|
+
yard (0.9.19)
|
78
|
+
yml_reader (0.7)
|
79
|
+
|
80
|
+
PLATFORMS
|
81
|
+
ruby
|
82
|
+
|
83
|
+
DEPENDENCIES
|
84
|
+
bundler (~> 2.0)
|
85
|
+
page-object
|
86
|
+
rake
|
87
|
+
rspec (~> 3.0)
|
88
|
+
topoisomerase!
|
89
|
+
webdrivers
|
90
|
+
yard
|
91
|
+
|
92
|
+
BUNDLED WITH
|
93
|
+
2.0.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Samuel Garratt
|
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
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# Topoisomerase
|
2
|
+
|
3
|
+
This gem aims to creates stubs for dynamic methods allowing static documentation tools (e.g YARD) and IDEs to
|
4
|
+
parse the files and create linkages for these methods.
|
5
|
+
|
6
|
+
## Inspiration
|
7
|
+
|
8
|
+
From wikipedia:
|
9
|
+
|
10
|
+
Topoisomerases are enzymes that participate in the overwinding or underwinding of DNA.
|
11
|
+
The winding problem of DNA arises due to the intertwined nature of its double-helical structure.
|
12
|
+
During DNA replication and transcription, DNA becomes overwound ahead of a replication fork.
|
13
|
+
|
14
|
+
The hope for this gem is to help document Ruby and `unwind` gems, libraries for those learning to use them.
|
15
|
+
|
16
|
+
The gem `page_object_stub` also inspired me of what could be done. I wanted to take things a step further to
|
17
|
+
make a more generic library.
|
18
|
+
|
19
|
+
## Installation
|
20
|
+
|
21
|
+
Add this line to your application's Gemfile:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
gem 'topoisomerase'
|
25
|
+
```
|
26
|
+
|
27
|
+
And then execute:
|
28
|
+
|
29
|
+
$ bundle
|
30
|
+
|
31
|
+
Or install it yourself as:
|
32
|
+
|
33
|
+
$ gem install topoisomerase
|
34
|
+
|
35
|
+
## Usage
|
36
|
+
|
37
|
+
TODO: Write usage instructions here
|
38
|
+
|
39
|
+
## Development
|
40
|
+
|
41
|
+
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.
|
42
|
+
|
43
|
+
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).
|
44
|
+
|
45
|
+
## Contributing
|
46
|
+
|
47
|
+
Bug reports and pull requests are welcome on GitLab at https://gitlab.com/samuel-garratt/topoisomerase. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
48
|
+
|
49
|
+
## License
|
50
|
+
|
51
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
52
|
+
|
53
|
+
## Code of Conduct
|
54
|
+
|
55
|
+
Everyone interacting in the Topoisomerase project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://gitlab.com/samuel-garratt/topoisomerase/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'topoisomerase'
|
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
ADDED
data/exe/topoisomerase
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
require 'topoisomerase/version'
|
2
|
+
require 'method_source'
|
3
|
+
require 'fileutils'
|
4
|
+
require 'topoisomerase/core_ext/string'
|
5
|
+
|
6
|
+
# USE PRY instead
|
7
|
+
module Topoisomerase
|
8
|
+
@stub_folder = 'stub'
|
9
|
+
|
10
|
+
class Error < StandardError; end
|
11
|
+
# Your code goes here...
|
12
|
+
class << self
|
13
|
+
# @return [String] Folder where stubs are stored
|
14
|
+
attr_accessor :stub_folder
|
15
|
+
|
16
|
+
def dynamic_method?(method)
|
17
|
+
source_code = method.source
|
18
|
+
source_code.strip.start_with? 'define_method'
|
19
|
+
end
|
20
|
+
|
21
|
+
# @param [Object] class_name Class to retrieve dynamic methods for
|
22
|
+
# @return [Hash]
|
23
|
+
def dynamic_instance_methods(class_name)
|
24
|
+
class_instance = if block_given?
|
25
|
+
yield
|
26
|
+
else
|
27
|
+
class_name.new
|
28
|
+
end
|
29
|
+
methods_hash = {}
|
30
|
+
(class_instance.public_methods - Object.public_methods).each do |method|
|
31
|
+
method_obj = class_instance.method(method)
|
32
|
+
if dynamic_method? class_instance.method(method)
|
33
|
+
methods_hash.merge!(method => { source: method_obj.source, comment: method_obj.comment,
|
34
|
+
location: method_obj.source_location })
|
35
|
+
end
|
36
|
+
end
|
37
|
+
# methods.each do |method|
|
38
|
+
# method_obj = class_instance.method(method)
|
39
|
+
# methods_hash.merge(method => { source: method_obj.source, comment: method_obj.comment,
|
40
|
+
# location: method_obj.source_location })
|
41
|
+
# end
|
42
|
+
methods_hash
|
43
|
+
end
|
44
|
+
|
45
|
+
# Create stub file for passed in class
|
46
|
+
# @param [Object] class_name Object to create stub file for
|
47
|
+
def create_stubs_for(class_name)
|
48
|
+
template = File.join(File.dirname(__FILE__), 'topoisomerase', 'stub_template.rb.erb')
|
49
|
+
@class_name = class_name
|
50
|
+
@class_instance = if block_given?
|
51
|
+
yield
|
52
|
+
else
|
53
|
+
class_name.new
|
54
|
+
end
|
55
|
+
@dynamic_methods = dynamic_instance_methods(class_name) do
|
56
|
+
@class_instance
|
57
|
+
end
|
58
|
+
FileUtils.mkdir_p stub_folder
|
59
|
+
filename = File.join(stub_folder, "#{class_name.to_s.snakecase}.rb")
|
60
|
+
IO.write filename, ERB.new(File.read(template)).result(binding)
|
61
|
+
`rubocop -a #{filename}`
|
62
|
+
end
|
63
|
+
|
64
|
+
# Create stub files for each class that inherits from passed in class
|
65
|
+
# @param [Object] inheriting_class Object to check for inheriting classes for
|
66
|
+
def create_stubs_based_on(inheriting_class)
|
67
|
+
classes = ObjectSpace.each_object(Class).select { |class_name| class_name < inheriting_class }.reject do |class_name|
|
68
|
+
class_name.to_s.split(':')[0] == inheriting_class.to_s
|
69
|
+
end
|
70
|
+
classes.each do |class_name|
|
71
|
+
@class_instance = block_given? ? yield(class_name) : class_name.new
|
72
|
+
create_stubs_for(class_name) { @class_instance }
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Overriding String functionality
|
2
|
+
class String
|
3
|
+
# @return [String] Convert CamelCase string to snake_case
|
4
|
+
def snakecase
|
5
|
+
str = dup
|
6
|
+
str.gsub! /::/, '/'
|
7
|
+
str.gsub! /([A-Z]+)([A-Z][a-z])/, '\1_\2'
|
8
|
+
str.gsub! /([a-z\d])([A-Z])/, '\1_\2'
|
9
|
+
str.tr! '.', '_'
|
10
|
+
str.tr! '-', '_'
|
11
|
+
str.downcase!
|
12
|
+
str
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# This is very dangerous. Overriding define_method.
|
2
|
+
# Only to be used for specific task of documenting dynamic methods used
|
3
|
+
class Object
|
4
|
+
def self.define_method(method_name)
|
5
|
+
Topoisomerase.dynamic_methods[self] = method_name
|
6
|
+
end
|
7
|
+
|
8
|
+
# I don't think I should include this. Safer and makes sense
|
9
|
+
# just to focus on definitions in custom classes
|
10
|
+
# def define_method(method_name)
|
11
|
+
# Topoisomerase.dynamic_methods[self] = method_name
|
12
|
+
# end
|
13
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'topoisomerase'
|
2
|
+
# Stub for <%= @class_name %> created by 'topoisomerase'
|
3
|
+
class <%= @class_name %>
|
4
|
+
<% @dynamic_methods.each do |method_to_stub, method_data| %>
|
5
|
+
# Defined at <%= method_data[:location] %>
|
6
|
+
# Extracted comment <%= method_data[:comment].strip %>
|
7
|
+
def <%= method_to_stub %>
|
8
|
+
raise Topoisomerase::Error, "Method '<%= method_to_stub %>' called when it
|
9
|
+
should not have been. Don't require stub files"
|
10
|
+
# This is merely a stub
|
11
|
+
# Contents is below
|
12
|
+
<%= method_data[:source] %>
|
13
|
+
end
|
14
|
+
<% end %>
|
15
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'topoisomerase/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'topoisomerase'
|
7
|
+
spec.version = Topoisomerase::VERSION
|
8
|
+
spec.authors = ['Samuel Garratt']
|
9
|
+
spec.email = ['samuel.garratt@integrationqa.com']
|
10
|
+
|
11
|
+
spec.summary = 'Used to create stubs for documenting dynamic Ruby methods.'
|
12
|
+
spec.description = 'Used to create stubs for documenting dynamic Ruby methods.'
|
13
|
+
spec.homepage = 'https://gitlab.com/samuel-garratt/topoisomerase'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
20
|
+
spec.metadata['source_code_uri'] = 'https://gitlab.com/samuel-garratt/topoisomerase.'
|
21
|
+
spec.metadata['changelog_uri'] = 'https://gitlab.com/samuel-garratt/topoisomerase/CHANGELOG.md.'
|
22
|
+
else
|
23
|
+
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
24
|
+
'public gem pushes.'
|
25
|
+
end
|
26
|
+
|
27
|
+
# Specify which files should be added to the gem when it is released.
|
28
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
29
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
30
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
|
31
|
+
end
|
32
|
+
spec.bindir = 'exe'
|
33
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
34
|
+
spec.require_paths = ['lib']
|
35
|
+
|
36
|
+
spec.add_dependency 'method_source'
|
37
|
+
spec.add_dependency 'rubocop' # Clean up generated files
|
38
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
39
|
+
spec.add_development_dependency 'page-object'
|
40
|
+
spec.add_development_dependency 'rake'
|
41
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
42
|
+
spec.add_development_dependency 'webdrivers' # Only used for testing page-object gem
|
43
|
+
spec.add_development_dependency 'yard'
|
44
|
+
end
|
metadata
ADDED
@@ -0,0 +1,179 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: topoisomerase
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Samuel Garratt
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-05-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: method_source
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: page-object
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: webdrivers
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: yard
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: Used to create stubs for documenting dynamic Ruby methods.
|
126
|
+
email:
|
127
|
+
- samuel.garratt@integrationqa.com
|
128
|
+
executables:
|
129
|
+
- topoisomerase
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".gitignore"
|
134
|
+
- ".gitlab-ci.yml"
|
135
|
+
- ".rspec"
|
136
|
+
- ".rubocop.yml"
|
137
|
+
- CODE_OF_CONDUCT.md
|
138
|
+
- Gemfile
|
139
|
+
- Gemfile.lock
|
140
|
+
- LICENSE.txt
|
141
|
+
- README.md
|
142
|
+
- Rakefile
|
143
|
+
- bin/console
|
144
|
+
- bin/setup
|
145
|
+
- exe/topoisomerase
|
146
|
+
- lib/topoisomerase.rb
|
147
|
+
- lib/topoisomerase/core_ext/string.rb
|
148
|
+
- lib/topoisomerase/override_define.rb
|
149
|
+
- lib/topoisomerase/stub_template.rb.erb
|
150
|
+
- lib/topoisomerase/version.rb
|
151
|
+
- topoisomerase.gemspec
|
152
|
+
homepage: https://gitlab.com/samuel-garratt/topoisomerase
|
153
|
+
licenses:
|
154
|
+
- MIT
|
155
|
+
metadata:
|
156
|
+
homepage_uri: https://gitlab.com/samuel-garratt/topoisomerase
|
157
|
+
source_code_uri: https://gitlab.com/samuel-garratt/topoisomerase.
|
158
|
+
changelog_uri: https://gitlab.com/samuel-garratt/topoisomerase/CHANGELOG.md.
|
159
|
+
post_install_message:
|
160
|
+
rdoc_options: []
|
161
|
+
require_paths:
|
162
|
+
- lib
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
requirements: []
|
174
|
+
rubyforge_project:
|
175
|
+
rubygems_version: 2.7.9
|
176
|
+
signing_key:
|
177
|
+
specification_version: 4
|
178
|
+
summary: Used to create stubs for documenting dynamic Ruby methods.
|
179
|
+
test_files: []
|