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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ea5bd57c9b1d90428240940a4f84ced00e3f743
4
- data.tar.gz: 7c681665591d6fe4fcbf600fc536f669da9899fa
3
+ metadata.gz: ef0606c47d485669c6b06a188473cc7f0d591f02
4
+ data.tar.gz: 7333bd69b30680a216b2be313ca3ba6bfd76b253
5
5
  SHA512:
6
- metadata.gz: 46712d33f6615c99cefc252eec3c33b52956ad15ca78ee18ac30028c1f79d2033b1828f042fe6cdb44f5b5fdf691bb23a0c219a990603156b86b9f884e66cd59
7
- data.tar.gz: adf555e1ec1e3c7124a08e02a0c2fb5e373c87ee652a98e7ee10d1bd5b7169c54e8fb999fb542801068596757a106f9e6785fe312ced1efd18373ce2261e520e
6
+ metadata.gz: 4c64bab567ff4e1707e15eb1a39f36044e1f36d993410509d76f9dfc1ec51c9e1c6a1d715d18c0446bdd1ed4004e581deb62defa0adbe225cc8fd9a6798540e5
7
+ data.tar.gz: 1f2ae6ae9bf0694a3205449582e0bc5e57800fb1491b44d96edf6f12c9f3f0e662fdd0bef4304c7c0e32f41b7048e8946b4a6d091df64e6da864339cac138ee9
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Analyst
2
2
 
3
- TODO: Write a gem description
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://gitlab.com/coraline/analyst/blob/master/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
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`)
@@ -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 ||= contents_of_type(Entities::InstanceMethod)
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
@@ -1,3 +1,3 @@
1
1
  module Analyst
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
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.3
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: 2015-09-27 00:00:00.000000000 Z
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.4.6
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: