sexp_processor 4.4.5 → 4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f385f8b415b0831406a38a2ac7a4a69e5777f29a
4
- data.tar.gz: 6accbb025dea238aafbb67696fcd577d124057d4
3
+ metadata.gz: 8b1a7852e40b91a5630473ef5ad0cb8ceee59926
4
+ data.tar.gz: 90ca1ab651c1a308f53c7f2e828d16bb43b43e4a
5
5
  SHA512:
6
- metadata.gz: d40692440a48b6cfcbf9d8408b3e62b3b17e09d0184fb95af95eee666d950b4815ad8b2b22b575ba30c05ca2bdc979b4c404c868dc347aae59b4265ef8123170
7
- data.tar.gz: fdaec6d402f17330dcad524b5e157706fa2e4e1ca70831ac8dff5839c5f0fa44d6547c9183600be5bbf7f4658adf80648bba1bf76ac93d7bf128a4ebb0c845f9
6
+ metadata.gz: df558f45a1c985550f2ac4910132b7f2a171e7db4252b3ca62d6f19ec871be46108874238b660eb0231a9f80ed275df3436ce611f55058310a9686de02a6f518
7
+ data.tar.gz: 07f4d089f5fb5f8bab28f8c96fb7b614decb8a94f3a7a18ae76607794c2498658838fb59d9d99acfc61c10e0f196512bb1f02fc9898666cac8d3eb5b4cc2faf5
checksums.yaml.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 4.5.0 / 2015-03-09
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added SexpProcessor::expand_dirs_to_files as a utility to cmdline tools.
6
+
1
7
  === 4.4.5 / 2015-01-16
2
8
 
3
9
  * 1 bug fix:
data/README.txt CHANGED
@@ -15,6 +15,8 @@ for your language processing pleasure.
15
15
 
16
16
  * Allows you to write very clean filters.
17
17
 
18
+ * Sexp provides a simple and clean interface to creating and manipulating ASTs.
19
+
18
20
  == SYNOPSIS:
19
21
 
20
22
  class MyProcessor < SexpProcessor
@@ -33,7 +33,7 @@ require 'sexp'
33
33
 
34
34
  class SexpProcessor
35
35
 
36
- VERSION = "4.4.5"
36
+ VERSION = "4.5.0"
37
37
 
38
38
  ##
39
39
  # Automatically shifts off the Sexp type before handing the
@@ -92,6 +92,23 @@ class SexpProcessor
92
92
 
93
93
  attr_reader :env
94
94
 
95
+ ##
96
+ # Expand an array of directories into a flattened array of paths, eg:
97
+ #
98
+ # MyProcessor.run MyProcessor.expand_dirs_to_files ARGV
99
+
100
+ def self.expand_dirs_to_files *dirs
101
+ extensions = %w[rb rake]
102
+
103
+ dirs.flatten.map { |p|
104
+ if File.directory? p then
105
+ Dir[File.join(p, '**', "*.{#{extensions.join(',')}}")]
106
+ else
107
+ p
108
+ end
109
+ }.flatten.sort
110
+ end
111
+
95
112
  ##
96
113
  # Creates a new SexpProcessor. Use super to invoke this
97
114
  # initializer from SexpProcessor subclasses, then use the
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sexp_processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.5
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
30
30
  VpzF30vNaJK6ZT7xlIsIlwmH
31
31
  -----END CERTIFICATE-----
32
- date: 2015-01-17 00:00:00.000000000 Z
32
+ date: 2015-03-09 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: minitest
@@ -122,13 +122,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.4.1
125
+ rubygems_version: 2.4.5
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: sexp_processor branches from ParseTree bringing all the generic sexp processing
129
129
  tools with it
130
- test_files:
131
- - test/test_composite_sexp_processor.rb
132
- - test/test_environment.rb
133
- - test/test_sexp.rb
134
- - test/test_sexp_processor.rb
130
+ test_files: []
metadata.gz.sig CHANGED
Binary file