society 1.2.3 → 1.3.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: 85c1eae0a8b3cb13418839814477f569457b96d7
4
- data.tar.gz: 5a667b71fdc0747f3e7ab75b852ae639dffd94d9
3
+ metadata.gz: ece134a594e56a7b6bd70a7cdfdbcdce5b9b205b
4
+ data.tar.gz: 3df24ffefa92ae84882b0f33c22b82af9296f3d9
5
5
  SHA512:
6
- metadata.gz: 6e7167dc8ea3ae1ef5b063ef24b3f4572f35bc47be65600fe745f7de6d61ed766bdcbeba63e37df06adee15e47799d53ef676ce4ec51a0589b807b5a76f3b807
7
- data.tar.gz: 47e8273c30ef00d30f4e062ed3af0e356696ac9657c8e85630e32f0a8a7dbe9c04fa2e519c88bc7741ae49dbe8279e63f2c393e3f281d9b6ab4cc3daeb23a007
6
+ metadata.gz: ba596e1e5a19570378e3e23a830a5abed5ec6e529a7a141c4fa1d53e9cbb442c880a73122d43a2c391f81bfcffeea40faf603d6330d86f71c94bb1e440fac29a
7
+ data.tar.gz: 8b19a6a857b89de29129a65301ab726ebf5e2a1fe0144b48436ddde868ed789d8ff647ad2cf471238552444c2146eb01408c3adbd5716be19a90aad60a63be55
data/README.md CHANGED
@@ -26,6 +26,8 @@ From your terminal:
26
26
 
27
27
  and then open `doc/society/index.htm` in your browser.
28
28
 
29
+ You can also pass in a file glob, but it must be enclosed in quotes.
30
+
29
31
  The default format is HTML; you can skip the HTML interface and just get the
30
32
  JSON by passing `--format json`
31
33
 
@@ -13,7 +13,7 @@ module Society
13
13
  #
14
14
  # Returns a Parser.
15
15
  def self.for_files(*file_paths)
16
- files = file_paths.flatten.flat_map do |path|
16
+ files = Dir.glob(file_paths).flatten.flat_map do |path|
17
17
  File.directory?(path) ? Dir.glob(File.join(path, '**', '*.rb')) : path
18
18
  end
19
19
  new(files.lazy.map { |f| File.read(f) })
@@ -489,4 +489,3 @@ module Society
489
489
  end
490
490
 
491
491
  end
492
-
@@ -1,3 +1,3 @@
1
1
  module Society
2
- VERSION = "1.2.3"
2
+ VERSION = "1.3.0"
3
3
  end
data/society.gemspec CHANGED
@@ -6,8 +6,8 @@ require 'society/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "society"
8
8
  spec.version = Society::VERSION
9
- spec.authors = ["Coraline Ada Ehmke"]
10
- spec.email = ["coraline@instructure.com"]
9
+ spec.authors = ["Coraline Ada Ehmke", "Instructure"]
10
+ spec.email = ["coraline@instructure.com", "eng@instructure.com"]
11
11
  spec.summary = %q{Social graph for Ruby objects}
12
12
  spec.description = %q{Social graph for Ruby objects. Based on an original idea by Kerri Miller.}
13
13
  spec.homepage = "https://github.com/CoralineAda/society"
data/spec/parser_spec.rb CHANGED
@@ -205,6 +205,9 @@ describe Society::Parser do
205
205
  expect(Society::Parser.for_files('./spec/fixtures/for_parser_spec').classes).to eq(["Whaler"])
206
206
  end
207
207
 
208
+ it "returns a parser object when given a glob" do
209
+ expect(Society::Parser.for_files("#{Dir.getwd}/lib/society/{parser.rb,node.rb}").classes).to eq(["Society", "Society::Parser", "Society::Node"])
210
+ end
208
211
  end
209
212
 
210
213
  describe "#initialize" do
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: society
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coraline Ada Ehmke
8
+ - Instructure
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-05-14 00:00:00.000000000 Z
12
+ date: 2016-03-16 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activesupport
@@ -181,6 +182,7 @@ dependencies:
181
182
  description: Social graph for Ruby objects. Based on an original idea by Kerri Miller.
182
183
  email:
183
184
  - coraline@instructure.com
185
+ - eng@instructure.com
184
186
  executables:
185
187
  - society
186
188
  extensions: []
@@ -239,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
241
  version: '0'
240
242
  requirements: []
241
243
  rubyforge_project:
242
- rubygems_version: 2.4.6
244
+ rubygems_version: 2.4.5.1
243
245
  signing_key:
244
246
  specification_version: 4
245
247
  summary: Social graph for Ruby objects
@@ -251,4 +253,3 @@ test_files:
251
253
  - spec/object_graph_spec.rb
252
254
  - spec/parser_spec.rb
253
255
  - spec/spec_helper.rb
254
- has_rdoc: