dissociated_introspection 0.4.1 → 0.5.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 +4 -4
- data/.travis.yml +3 -3
- data/CHANGELOG.md +8 -3
- data/lib/dissociated_introspection.rb +24 -0
- data/lib/dissociated_introspection/recording_parent.rb +1 -1
- data/lib/dissociated_introspection/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: caddb3eab986b9c628d086662b2694a3485f2bd0
|
|
4
|
+
data.tar.gz: dba363070d4bcbf74c7a0ce03007ca885f009418
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac8d89c506185c591453feb85496a463f0697f1f1a042105c7a200a1be7373496145eae2c9384bcaac5c8ae88d03810376b6943afc9e88b80e6cc47b445f8797
|
|
7
|
+
data.tar.gz: 45e2f7fed615fc9fda1fecf63eb8e1d48cdd6f94f2901999dc5b61162ca24a708b5da1ba7e8fa9d3a018ceed3ed9b60d72f09240c745dc72082057e79c2927df
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
-
## 0.
|
|
4
|
+
## 0.5 - 2016-04-30
|
|
5
|
+
### Enhancement
|
|
6
|
+
- `DissociatedIntrospection.listen_to_defined_class_methods=` In addition to ruby methods like
|
|
7
|
+
attr_reader other DSL class methods can be recorded if specified.
|
|
8
|
+
|
|
9
|
+
## 0.4.1 - 2016-01-18
|
|
5
10
|
### Fix
|
|
6
11
|
- `RubyClass#module_nesting` could return modules that were nested inside of a class.
|
|
7
12
|
|
|
8
|
-
## 0.4.0 -
|
|
13
|
+
## 0.4.0 - 2016-01-18
|
|
9
14
|
### Enhancement
|
|
10
15
|
- `RubyClass#module_nesting` returns an array of symbols representing the module namespacing that the class is within.
|
|
11
16
|
|
|
12
17
|
### Fix
|
|
13
18
|
- If a class was not found it could return all given code.
|
|
14
19
|
|
|
15
|
-
## 0.3.1 -
|
|
20
|
+
## 0.3.1 - 2016-01-17
|
|
16
21
|
### Enhancement
|
|
17
22
|
- `DissociatedIntrospection::RubyClass` now can take a `DissociatedIntrospection::RubyCode` which is build with `#build_from_ast`, `#build_from_source`.
|
|
18
23
|
- `DissociatedIntrospection::WrapInModules` given a instance of `DissociatedIntrospection::RubyCode` it will nest any depth of module namespacing.
|
|
@@ -8,3 +8,27 @@ require 'dissociated_introspection/ruby_code'
|
|
|
8
8
|
require 'dissociated_introspection/ruby_class'
|
|
9
9
|
require 'dissociated_introspection/ruby_class/def'
|
|
10
10
|
require 'dissociated_introspection/inspection'
|
|
11
|
+
|
|
12
|
+
module DissociatedIntrospection
|
|
13
|
+
LISTEN_TO_CLASS_METHODS = [
|
|
14
|
+
:attr_reader,
|
|
15
|
+
:attr_writer,
|
|
16
|
+
:attr_accessor,
|
|
17
|
+
:prepend,
|
|
18
|
+
:include,
|
|
19
|
+
:extend,
|
|
20
|
+
:alias_attribute,
|
|
21
|
+
:alias_method,
|
|
22
|
+
:alias_method_chain
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
class << self
|
|
26
|
+
def listen_to_defined_class_methods=(*methods)
|
|
27
|
+
listen_to_defined_class_methods.concat(methods)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def listen_to_defined_class_methods
|
|
31
|
+
@listen_to_defined_class_methods ||= LISTEN_TO_CLASS_METHODS
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
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.
|
|
4
|
+
version: 0.5.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-01
|
|
11
|
+
date: 2016-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: parser
|