source_finder 2.2.0 → 2.2.1

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: e7b55168a3b981eec4f34fe8cf056924b56937c7
4
- data.tar.gz: 80592fe7311db327cc785d827fd1ac5e9d52aef1
3
+ metadata.gz: cbd54e9969626af1d9f74c71b531e44df3f3ac54
4
+ data.tar.gz: c68d121b49ef130d61f0c3aad30d991ac1bcaea6
5
5
  SHA512:
6
- metadata.gz: 5bd5ec615a0d56511e37b54d0013da44366b99271da410f77d891ea3a43ddd8fc548ca71f0d60a61210798acd5809ac80838cf4722803e94ed68f452f446956c
7
- data.tar.gz: cdfc37095caacef15f48c1ed0d28d73f9413c02f2b9d81014a68db9c6674f3ae46bf11abbaaf04b5a5b8afaaf888935ce78de36c95f77be4c582ad326fc8fdf5
6
+ metadata.gz: 805199bed5eaa6973e53b15d28f20b652392597d9ed2f08cedb34d5ed78664cf45f0b6e4e292495275bf1088f39b7e36c88cbededdc3141533852b941e70f03e
7
+ data.tar.gz: b933183a3ce98344eeaeb97ba4b8e81a9d8ebe4af9cf9b252bd47c5440f7042d98440f5dc0c3969bdad2b66fd41d4494fe61bf846a6222622812bfa5459a0994
@@ -3,7 +3,6 @@ module SourceFinder
3
3
  # inclusion and exclusion glob
4
4
  class SourceFileGlobber
5
5
  # See README.md for documentation on these configuration parameters.
6
-
7
6
  attr_accessor :ruby_dirs_arr, :source_dirs_arr, :extra_source_files_arr,
8
7
  :extra_ruby_files_arr, :ruby_file_extensions_arr,
9
8
  :source_file_extensions_arr, :exclude_files_arr,
@@ -40,9 +39,9 @@ module SourceFinder
40
39
  end
41
40
 
42
41
  def source_file_extensions_arr
43
- @source_file_extensions_arr ||= ruby_file_extensions_arr +
44
- %w(swift cpp c java py clj cljs scala js
45
- yml sh json)
42
+ @source_file_extensions_arr ||=
43
+ ruby_file_extensions_arr +
44
+ %w(swift cpp c java py clj cljs scala js yml sh json)
46
45
  end
47
46
 
48
47
  def doc_file_extensions_arr
@@ -63,26 +62,24 @@ module SourceFinder
63
62
  end
64
63
 
65
64
  def source_files_glob
66
- @source_files_glob || make_source_files_glob(extra_source_files_arr,
67
- source_dirs_arr,
68
- source_file_extensions_glob)
65
+ @source_files_glob ||
66
+ make_files_glob(extra_source_files_arr, source_dirs_arr,
67
+ source_file_extensions_glob)
69
68
  end
70
69
 
71
70
  def source_and_doc_files_glob
72
- make_source_files_glob(extra_source_files_arr,
73
- source_dirs_arr,
74
- source_and_doc_file_extensions_glob)
71
+ make_files_glob(extra_source_files_arr, source_dirs_arr,
72
+ source_and_doc_file_extensions_glob)
75
73
  end
76
74
 
77
- def make_source_files_glob(extra_source_files_arr,
78
- dirs_arr,
79
- extensions_glob)
75
+ def make_files_glob(extra_source_files_arr,
76
+ dirs_arr,
77
+ extensions_glob)
80
78
  "{#{extra_source_files_arr.join(',')}," \
81
79
  "{*,.*}.{#{extensions_glob}}," +
82
80
  File.join("{#{dirs_arr.join(',')}}",
83
81
  '**',
84
- "{*,.*}.{#{extensions_glob}}") +
85
- '}'
82
+ "{*,.*}.{#{extensions_glob}}") + '}'
86
83
  end
87
84
 
88
85
  def source_files_exclude_glob
@@ -98,9 +95,8 @@ module SourceFinder
98
95
  end
99
96
 
100
97
  def ruby_files_glob
101
- make_source_files_glob(extra_ruby_files_arr,
102
- ruby_dirs_arr,
103
- ruby_file_extensions_glob)
98
+ make_files_glob(extra_ruby_files_arr, ruby_dirs_arr,
99
+ ruby_file_extensions_glob)
104
100
  end
105
101
 
106
102
  def emacs_lockfile?(filename)
@@ -1,4 +1,4 @@
1
1
  # SourceFinder finds source and documentation files within a project.
2
2
  module SourceFinder
3
- VERSION = '2.2.0'
3
+ VERSION = '2.2.1'
4
4
  end
@@ -14,9 +14,10 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = 'https://github.com/apiology/source_finder'
15
15
  spec.license = 'MIT'
16
16
 
17
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
- f.match(%r{^(test|spec|features)/})
19
- end
17
+ spec.files = Dir["CODE_OF_CONDUCT.md", "LICENSE.txt", "README.md",
18
+ "{lib}/source_finder.rb",
19
+ "{lib}/source_finder/**/*.rb",
20
+ "source_finder.gemspec"]
20
21
  spec.bindir = 'exe'
21
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
23
  spec.require_paths = ['lib']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: source_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-13 00:00:00.000000000 Z
11
+ date: 2015-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -87,37 +87,13 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - .gitignore
91
- - .rubocop.yml
92
- - .ruby-version
93
- - .travis.yml
94
90
  - CODE_OF_CONDUCT.md
95
- - Gemfile
96
91
  - LICENSE.txt
97
92
  - README.md
98
- - Rakefile
99
- - bin/console
100
- - bin/setup
101
- - circle.yml
102
- - coverage/.last_run.json
103
93
  - lib/source_finder.rb
104
94
  - lib/source_finder/option_parser.rb
105
95
  - lib/source_finder/source_file_globber.rb
106
96
  - lib/source_finder/version.rb
107
- - lib/tasks/ci.rake
108
- - lib/tasks/clear_metrics.rake
109
- - lib/tasks/default.rake
110
- - lib/tasks/feature.rake
111
- - lib/tasks/localtest.rake
112
- - lib/tasks/quality.rake
113
- - lib/tasks/spec.rake
114
- - metrics/bigfiles_high_water_mark
115
- - metrics/brakeman_high_water_mark
116
- - metrics/cane_high_water_mark
117
- - metrics/flay_high_water_mark
118
- - metrics/flog_high_water_mark
119
- - metrics/punchlist_high_water_mark
120
- - metrics/rubocop_high_water_mark
121
97
  - source_finder.gemspec
122
98
  homepage: https://github.com/apiology/source_finder
123
99
  licenses:
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- /coverage/.resultset.json
10
- /coverage/assets/
11
- /coverage/index.html
12
- /pkg
data/.rubocop.yml DELETED
@@ -1,32 +0,0 @@
1
- # I like trailing commas in maps. They let me insert new elements and
2
- # see them as one line in a diff, not two.
3
- TrailingComma:
4
- Enabled: false
5
-
6
- # I use keyword arguments for a poor man's dependency injection to cut
7
- # down on the magic in my tests.
8
- ParameterLists:
9
- CountKeywordArgs: false
10
-
11
- # If i'm using one function name and returning the contents of an
12
- # attribute, that's OK. The alternative would be this, which I find
13
- # confusing and often not really what I mean:
14
- #
15
- # attr_reader :something_else
16
- # alias_method :something, :something_else
17
- TrivialAccessors:
18
- ExactNameMatch: true
19
-
20
- #
21
- # Add 'XX X' to the standard list
22
- #
23
- Style/CommentAnnotation:
24
- Keywords:
25
- - "TOD\
26
- O"
27
- - FIXME
28
- - OPTIMIZE
29
- - HACK
30
- - REVIEW
31
- - "XX\
32
- X"
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- ruby-2.0.0
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- before_install: gem install bundler
2
- language: ruby
3
- rvm:
4
- - 2.0
5
- - 2.1
6
- - 2.2
7
- - jruby-head
8
- - ruby-head
9
-
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in source_finder.gemspec
4
- gemspec
data/Rakefile DELETED
@@ -1,5 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- Dir['lib/tasks/**/*.rake'].each { |t| load t }
3
-
4
- desc 'Default: Run specs and check quality.'
5
- task default: [:localtest]
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "source_finder"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here
data/circle.yml DELETED
@@ -1,6 +0,0 @@
1
- dependencies:
2
- pre:
3
- - gem install bundler
4
- test:
5
- override:
6
- - bundle exec rake localtest
@@ -1,5 +0,0 @@
1
- {
2
- "result": {
3
- "covered_percent": 97.78
4
- }
5
- }
data/lib/tasks/ci.rake DELETED
@@ -1 +0,0 @@
1
- task ci: :localtest
@@ -1,5 +0,0 @@
1
- task :clear_metrics do |_t|
2
- ret =
3
- system('git checkout coverage/.last_run.json metrics/*_high_water_mark')
4
- fail unless ret
5
- end
@@ -1 +0,0 @@
1
- task default: :localtest
@@ -1,7 +0,0 @@
1
- require 'rspec/core/rake_task'
2
-
3
- desc 'Run features'
4
- RSpec::Core::RakeTask.new(:feature) do |task|
5
- task.pattern = 'feature/**/*_spec.rb'
6
- task.rspec_opts = '--format doc'
7
- end
@@ -1 +0,0 @@
1
- task localtest: [:clear_metrics, :spec, :quality]
@@ -1,6 +0,0 @@
1
- require 'quality/rake/task'
2
-
3
- Quality::Rake::Task.new do |task|
4
- task.skip_tools = ['reek']
5
- task.output_dir = 'metrics'
6
- end
data/lib/tasks/spec.rake DELETED
@@ -1,7 +0,0 @@
1
- require 'rspec/core/rake_task'
2
-
3
- desc 'Run specs'
4
- RSpec::Core::RakeTask.new(:spec) do |task|
5
- task.pattern = 'spec/**/*_spec.rb'
6
- task.rspec_opts = '--format doc'
7
- end
@@ -1,2 +0,0 @@
1
- 300
2
-
@@ -1 +0,0 @@
1
- 0
@@ -1 +0,0 @@
1
- 0
@@ -1 +0,0 @@
1
- 0
@@ -1 +0,0 @@
1
- 0
@@ -1 +0,0 @@
1
- 0
@@ -1 +0,0 @@
1
- 0