analyst 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -5
- data/analyst.gemspec +2 -2
- data/lib/analyst/entities/entity.rb +5 -1
- data/lib/analyst/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef0606c47d485669c6b06a188473cc7f0d591f02
|
4
|
+
data.tar.gz: 7333bd69b30680a216b2be313ca3ba6bfd76b253
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c64bab567ff4e1707e15eb1a39f36044e1f36d993410509d76f9dfc1ec51c9e1c6a1d715d18c0446bdd1ed4004e581deb62defa0adbe225cc8fd9a6798540e5
|
7
|
+
data.tar.gz: 1f2ae6ae9bf0694a3205449582e0bc5e57800fb1491b44d96edf6f12c9f3f0e662fdd0bef4304c7c0e32f41b7048e8946b4a6d091df64e6da864339cac138ee9
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Analyst
|
2
2
|
|
3
|
-
|
3
|
+
Analyst provides a DOM-like interface to abstract syntax trees, allowing querying by type (e.g. method or constant). It is a utility gem used by higher-level libraries such as fukuzatsu and snuffle.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -16,12 +16,9 @@ Or install it yourself as:
|
|
16
16
|
|
17
17
|
$ gem install analyst
|
18
18
|
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
TODO: Write usage instructions here
|
22
19
|
|
23
20
|
## Contributing
|
24
|
-
Please note that this project is released with a [Contributor Code of Conduct](https://
|
21
|
+
Please note that this project is released with a [Contributor Code of Conduct](https://github.com/coralineada/analyst/blob/master/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
|
25
22
|
|
26
23
|
1. Fork it ( https://github.com/[my-github-username]/analyst/fork )
|
27
24
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
data/analyst.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'analyst/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "analyst"
|
8
8
|
spec.version = Analyst::VERSION
|
9
|
-
spec.authors = ["Coraline Ada Ehmke", "Mike Ziwisky"]
|
10
|
-
spec.email = ["coraline@idolhands.com", "mikezx@gmail.com"]
|
9
|
+
spec.authors = ["Coraline Ada Ehmke", "Mike Ziwisky", "Instructure"]
|
10
|
+
spec.email = ["coraline@idolhands.com", "mikezx@gmail.com", "eng@instructure.com"]
|
11
11
|
spec.summary = %q{A nice API for interacting with parsed Ruby source code.}
|
12
12
|
spec.description = %q{A nice API for interacting with parsed Ruby source code.}
|
13
13
|
spec.homepage = "https://gitlab.com/coraline/analyst"
|
@@ -71,7 +71,11 @@ module Analyst
|
|
71
71
|
# kind of Method, right??
|
72
72
|
# ref: http://www.devalot.com/articles/2008/09/ruby-singleton
|
73
73
|
def methods
|
74
|
-
@methods
|
74
|
+
return @methods if defined?(@methods)
|
75
|
+
@methods = contents_of_type(Entities::InstanceMethod)
|
76
|
+
@methods << contents_of_type(Entities::ClassMethod)
|
77
|
+
@methods << contents_of_type(Entities::SingletonMethod)
|
78
|
+
@methods.flatten!
|
75
79
|
end
|
76
80
|
|
77
81
|
def conditionals
|
data/lib/analyst/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: analyst
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Coraline Ada Ehmke
|
8
8
|
- Mike Ziwisky
|
9
|
+
- Instructure
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2016-12-19 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: haml
|
@@ -155,6 +156,7 @@ description: A nice API for interacting with parsed Ruby source code.
|
|
155
156
|
email:
|
156
157
|
- coraline@idolhands.com
|
157
158
|
- mikezx@gmail.com
|
159
|
+
- eng@instructure.com
|
158
160
|
executables: []
|
159
161
|
extensions: []
|
160
162
|
extra_rdoc_files: []
|
@@ -229,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
231
|
version: '0'
|
230
232
|
requirements: []
|
231
233
|
rubyforge_project:
|
232
|
-
rubygems_version: 2.
|
234
|
+
rubygems_version: 2.5.1
|
233
235
|
signing_key:
|
234
236
|
specification_version: 4
|
235
237
|
summary: A nice API for interacting with parsed Ruby source code.
|
@@ -250,4 +252,3 @@ test_files:
|
|
250
252
|
- spec/fixtures/syntax_errors/good.rb
|
251
253
|
- spec/parser_spec.rb
|
252
254
|
- spec/spec_helper.rb
|
253
|
-
has_rdoc:
|