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 CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,13 @@
1
+ === 1.1.2 / 2011-02-07
2
+
3
+ * 1 minor bugfixes
4
+
5
+ * Temporary file is now being deleted after tests
6
+
7
+ * 1 minor enhancements
8
+
9
+ * Minor improvements in README
10
+
1
11
  === 1.1.1 / 2011-01-29
2
12
 
3
13
  * 1 bugfix
data/README.rdoc CHANGED
@@ -65,7 +65,7 @@ and generate the RDoc.
65
65
 
66
66
  == ACKNOWLEDGEMENTS
67
67
 
68
- Based on the answer by Rene Saarsoo to the question
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 Fact is that the author only found about the other gems after he had
83
- already implemented heredoc_unindent. And, frankly, that was fortunate:
84
- benchmarking revealed that heredoc_unindent is by far the most efficient, both
85
- in space (memory) and time (cycles).
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
@@ -6,7 +6,7 @@ require 'hoe'
6
6
  Hoe.spec 'heredoc_unindent' do
7
7
  developer('Adriano Mitre', 'adriano.mitre@gmail.com')
8
8
 
9
- self.version = '1.1.1'
9
+ self.version = '1.1.2'
10
10
 
11
11
  self.readme_file = 'README.rdoc'
12
12
  self.history_file = 'History.rdoc'
@@ -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) && (RUBY_DESCRIPTION =~ /jruby/i || RUBY_DESCRIPTION =~ /rubinius/i)
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
@@ -112,6 +112,7 @@ EOS
112
112
  end
113
113
  assert File.exist?(filename), "file should exist"
114
114
  assert_equal File.read(filename).chomp, "warning: margin of the first line differs from minimum margin"
115
+ assert_nothing_raised { File.delete(filename) }
115
116
  end
116
117
 
117
118
  end
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
- hash: 17
5
- prerelease: false
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-01-29 00:00:00 -02:00
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.3.7
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