dissociated_introspection 0.7.0 → 0.7.1

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: 9fbb508ed9f4a1a20c6f951cd0fa432a16ed8517
4
- data.tar.gz: f58eaf02940ca79a73d6a8906ad1eb54958d47d2
3
+ metadata.gz: 07819f7817b19bf6557dde81cfc9df9c8c792bd3
4
+ data.tar.gz: 35b6226a9b5d0b716af84e1d06fa23e9f38e0619
5
5
  SHA512:
6
- metadata.gz: 6cf944f94b24fd4c750090c30660b8c4c9592afa3d172e5c70a5197f37ca1621c065d15193e29ba2242573a0439b99931af019d6999267cd70c6ecf8838d3b85
7
- data.tar.gz: c837c522a0fb24912d4d21f01f2dc62a2e42b5d6c17a7b298b1a97a7ea1ec42ddff758c100af2f92a4ffd078b6f9641df5691246d5a9f371555728d29d0fe615
6
+ metadata.gz: 07f047d77917cac86da4c6c898660a4f20a236783f5006b518d9b5eab69f9134ca26cd3e0b7de3ea379eead0bc9a29fc13a56d870e036fb7a91c26efc9629c3d
7
+ data.tar.gz: 4cd70f3162a835d53406d3b3943973bc5b559b7a942fb0c97edc87fe591cf298970ee82d6e9ba9c97fb584fa7cb692915bc07ebc39b36385f05a9edf68251c7a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## 0.7.1 - 2016-10-20
5
+ ### Fix
6
+ - `DissociatedIntrospection::RubyClass#defs` fixed parse issue when class has one method.
7
+
4
8
  ## 0.7.0 - 2016-10-19
5
9
  ### Fix
6
10
  - DissociatedIntrospection::Inspection#parsed_source now returns RubyClass with comments
@@ -74,7 +74,7 @@ module DissociatedIntrospection
74
74
  end
75
75
 
76
76
  def class_begin
77
- find_class.children.find { |n| n.try(:type) == :begin }
77
+ find_class.children.find { |n| n.try(:type) == :begin } || find_class
78
78
  end
79
79
 
80
80
  def to_ruby_str
@@ -1,3 +1,3 @@
1
1
  module DissociatedIntrospection
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dissociated_introspection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler