dissociated_introspection 0.6.0 → 0.7.0

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
  SHA1:
3
- metadata.gz: 81959d2c8bc2c3dbb63e251f7fdd5009ee93f956
4
- data.tar.gz: 562ba368f250d8760a81e37be0796e3bb7239897
3
+ metadata.gz: 9fbb508ed9f4a1a20c6f951cd0fa432a16ed8517
4
+ data.tar.gz: f58eaf02940ca79a73d6a8906ad1eb54958d47d2
5
5
  SHA512:
6
- metadata.gz: 292d0fc61d0f12c99330d8fb8c0d323d768ae4012744a73df32e90f7125ba99e7d741fa91014cac64f038d9741d476cb1eb8656f5bf3305023faef57d446eea7
7
- data.tar.gz: f444ccfeb8cefee2f12950632ccd2bc8347a71d3f378f8e6f78f936816df001833e9f42b3e599d482283bfcc4e53cbeb7b22ce3d51acf7d0d8e687a51ca84ac8
6
+ metadata.gz: 6cf944f94b24fd4c750090c30660b8c4c9592afa3d172e5c70a5197f37ca1621c065d15193e29ba2242573a0439b99931af019d6999267cd70c6ecf8838d3b85
7
+ data.tar.gz: c837c522a0fb24912d4d21f01f2dc62a2e42b5d6c17a7b298b1a97a7ea1ec42ddff758c100af2f92a4ffd078b6f9641df5691246d5a9f371555728d29d0fe615
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.0 - 2016-10-19
5
+ ### Fix
6
+ - DissociatedIntrospection::Inspection#parsed_source now returns RubyClass with comments
7
+
4
8
  ## 0.6.0 - 2016-09-08
5
9
  ### Enhancement
6
10
  - `DissociatedIntrospection::RubyClass#defs` now returns associated comments
@@ -50,7 +50,7 @@ module DissociatedIntrospection
50
50
 
51
51
  # @return [DissociatedIntrospection::RubyClass]
52
52
  def parsed_source
53
- @parsed_source ||= RubyClass.new(source: file.read)
53
+ @parsed_source ||= RubyClass.new(source: file.read, parse_with_comments: true)
54
54
  end
55
55
 
56
56
  # @return [Module]
@@ -92,4 +92,4 @@ module DissociatedIntrospection
92
92
 
93
93
  attr_reader :parent_class_replacement, :file
94
94
  end
95
- end
95
+ end
@@ -5,7 +5,7 @@ module DissociatedIntrospection
5
5
 
6
6
  def initialize(ruby_code)
7
7
  @ruby_code = if ruby_code.is_a?(Hash) && ruby_code.has_key?(:source)
8
- RubyCode.build_from_source(ruby_code[:source])
8
+ RubyCode.build_from_source(ruby_code[:source], parse_with_comments: ruby_code[:parse_with_comments])
9
9
  elsif ruby_code.is_a?(Hash) && ruby_code.has_key?(:ast)
10
10
  RubyCode.build_from_ast(ruby_code[:ast],
11
11
  comments: ruby_code.fetch(:comments, []))
@@ -1,3 +1,3 @@
1
1
  module DissociatedIntrospection
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dissociated_introspection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-08 00:00:00.000000000 Z
11
+ date: 2016-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser