topoisomerase 0.1.1 → 0.1.2

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
- SHA256:
3
- metadata.gz: cf5043b7dcc2f4ba70d7a034d42683de8975d67a0d2a92d51cab289b4f0b1996
4
- data.tar.gz: 8d3ceca3787dbb577e9fb3e994a4180e5d5706c7cbc7ffd37c8238a7249131ab
2
+ SHA1:
3
+ metadata.gz: 824fa18b24c188d39f2e84ee5eec61098f0bdab0
4
+ data.tar.gz: 7c7c69f744f18fd88d4b6c9952cbf99bcf26e8d4
5
5
  SHA512:
6
- metadata.gz: b8b8ad151f546440ee8d9a64122680d0a4177fec31536d944f1c4cbefb76d4f7e79f8c2d7fe2735768dccb6c3d9867893b5d9fc3e37d704e56e2253a9eb11bff
7
- data.tar.gz: f3ed5723e43bb23279e084f5efec789c6352fb610bad3eb6b6024ea730e0798ceba8df0f1738e8c6bdb8ebff059a2be836a501bd5a152770c5900b8fe291cd3e
6
+ metadata.gz: 6516b42b5be7580f4aa35b098ccc789fb47b5a9359f46b62626eec4257e408266c27c66f9dfd60b5b381a7c5e9356283b09cb8f3ba58c6f49008537dbffbe91c
7
+ data.tar.gz: cccfb7c414f0a4a0bd08548cd9939fff6d828fadc520653aa625b1769f5569a0851e3d3c358cf12c25241a5f4a5bdd96da2521858868518749b64300130a232f
@@ -32,6 +32,7 @@ module Topoisomerase
32
32
  # @param [Object] inheriting_class Class for which stubs will be created from and for
33
33
  # which rules to add comments for are defined
34
34
  def add_for_class(inheriting_class, &script)
35
+ Topoisomerase.comments_added[inheriting_class] ||= []
35
36
  self.inheriting_class = inheriting_class
36
37
  instance_eval(&script)
37
38
  end
@@ -1,4 +1,5 @@
1
1
  # Load comments for page_object and create stubs for classes inheriting from it
2
+ require 'topoisomerase'
2
3
 
3
4
  # This blocks shows the manual addition of comments to the comments_added accessor
4
5
  # Preferred way is to Topoisomerase::Comments.add_for_class
@@ -1,4 +1,4 @@
1
1
  module Topoisomerase
2
2
  # @return [String] Version of the gem
3
- VERSION = '0.1.1'.freeze
3
+ VERSION = '0.1.2'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: topoisomerase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Garratt
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  requirements: []
176
176
  rubyforge_project:
177
- rubygems_version: 2.7.9
177
+ rubygems_version: 2.6.14
178
178
  signing_key:
179
179
  specification_version: 4
180
180
  summary: Used to create stubs for documenting dynamic Ruby methods.