heredoc_unindent 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.rdoc +10 -0
- data/README.rdoc +5 -5
- data/Rakefile +1 -1
- data/lib/heredoc_unindent.rb +1 -1
- data/test/test_heredoc_unindent.rb +1 -0
- metadata +4 -20
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -65,7 +65,7 @@ and generate the RDoc.
|
|
65
65
|
|
66
66
|
== ACKNOWLEDGEMENTS
|
67
67
|
|
68
|
-
|
68
|
+
The initial implementation was based on the answer by Rene Saarsoo to the question
|
69
69
|
{how do i remove leading whitespace chars from ruby heredoc}[http://stackoverflow.com/questions/3772864/how-do-i-remove-leading-whitespace-chars-from-ruby-heredoc].
|
70
70
|
|
71
71
|
== ALTERNATIVES
|
@@ -79,10 +79,10 @@ implement equivalent unindenting functionality:
|
|
79
79
|
|
80
80
|
=== So why another one?
|
81
81
|
|
82
|
-
Well, the
|
83
|
-
already implemented heredoc_unindent. And
|
84
|
-
benchmarking revealed that heredoc_unindent is by far the most
|
85
|
-
|
82
|
+
Well, the fact is that the author only found about the other gems after he had
|
83
|
+
already implemented the initial version of heredoc_unindent. And it was for the
|
84
|
+
good, as benchmarking revealed that heredoc_unindent is by far the most
|
85
|
+
efficient of them, both memory and processor-wise.
|
86
86
|
|
87
87
|
=== Efficiency!
|
88
88
|
|
data/Rakefile
CHANGED
data/lib/heredoc_unindent.rb
CHANGED
@@ -53,7 +53,7 @@ module CoreExt
|
|
53
53
|
in_place ? gsub!(re, '') : gsub(re, '')
|
54
54
|
end
|
55
55
|
|
56
|
-
if RUBY_VERSION >= '1.9' || defined?(RUBY_DESCRIPTION) &&
|
56
|
+
if RUBY_VERSION >= '1.9' || defined?(RUBY_DESCRIPTION) && RUBY_DESCRIPTION =~ /jruby|rubinius/i
|
57
57
|
alias unindent_base unindent_base_new
|
58
58
|
else
|
59
59
|
alias unindent_base unindent_base_old
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heredoc_unindent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 1
|
10
|
-
version: 1.1.1
|
4
|
+
prerelease:
|
5
|
+
version: 1.1.2
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Adriano Mitre
|
@@ -36,7 +31,7 @@ cert_chain:
|
|
36
31
|
9u8N6mQNneIVRh6Xfdko/Q==
|
37
32
|
-----END CERTIFICATE-----
|
38
33
|
|
39
|
-
date: 2011-
|
34
|
+
date: 2011-02-07 00:00:00 -02:00
|
40
35
|
default_executable:
|
41
36
|
dependencies:
|
42
37
|
- !ruby/object:Gem::Dependency
|
@@ -47,11 +42,6 @@ dependencies:
|
|
47
42
|
requirements:
|
48
43
|
- - ">="
|
49
44
|
- !ruby/object:Gem::Version
|
50
|
-
hash: 47
|
51
|
-
segments:
|
52
|
-
- 2
|
53
|
-
- 8
|
54
|
-
- 0
|
55
45
|
version: 2.8.0
|
56
46
|
type: :development
|
57
47
|
version_requirements: *id001
|
@@ -99,23 +89,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
89
|
requirements:
|
100
90
|
- - ">="
|
101
91
|
- !ruby/object:Gem::Version
|
102
|
-
hash: 3
|
103
|
-
segments:
|
104
|
-
- 0
|
105
92
|
version: "0"
|
106
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
94
|
none: false
|
108
95
|
requirements:
|
109
96
|
- - ">="
|
110
97
|
- !ruby/object:Gem::Version
|
111
|
-
hash: 3
|
112
|
-
segments:
|
113
|
-
- 0
|
114
98
|
version: "0"
|
115
99
|
requirements: []
|
116
100
|
|
117
101
|
rubyforge_project: heredoc_unindent
|
118
|
-
rubygems_version: 1.
|
102
|
+
rubygems_version: 1.5.0
|
119
103
|
signing_key:
|
120
104
|
specification_version: 3
|
121
105
|
summary: This gem removes common margin from indented strings, such as the ones produced by indented heredocs
|
metadata.gz.sig
CHANGED
Binary file
|