processr 0.9.5 → 0.9.6
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.
- data/VERSION +1 -1
- data/examples/all.rb +1 -1
- data/lib/processr.rb +4 -0
- data/processr.gemspec +1 -1
- data/spec/lib/processr_spec.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.6
|
data/examples/all.rb
CHANGED
@@ -78,7 +78,7 @@ InBetweenFilter = lambda do |filename, contents|
|
|
78
78
|
end
|
79
79
|
|
80
80
|
processor = Processr.new
|
81
|
-
processor.
|
81
|
+
processor.add_file_filter(InBetweenFilter)
|
82
82
|
processor.files << File.join('..', 'spec', 'fixtures', 'one.txt')
|
83
83
|
processor.files << File.join('..', 'spec', 'fixtures', 'two.txt')
|
84
84
|
puts processor.process!
|
data/lib/processr.rb
CHANGED
data/processr.gemspec
CHANGED
data/spec/lib/processr_spec.rb
CHANGED
@@ -81,7 +81,7 @@ describe Processr do
|
|
81
81
|
it "should allow the use of inbetween filters to modify file buffer content" do
|
82
82
|
Processr.out = nil
|
83
83
|
@processor.buffer.should == ""
|
84
|
-
@processor.
|
84
|
+
@processor.add_file_filter(lambda { |filename, contents| contents + "{mod}" })
|
85
85
|
@processor.files << File.join('fixtures', 'one.txt')
|
86
86
|
@processor.files << File.join('fixtures', 'two.txt')
|
87
87
|
@processor.process!.should == "one\n{mod}two\n{mod}"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: processr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 6
|
10
|
+
version: 0.9.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josh Nesbitt
|