inversion 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee01a480a807741a298355b17197ed2f27e95331
4
- data.tar.gz: 4a7cb73e31268fa057178f347ace82ac1424d185
3
+ metadata.gz: 6df7097471cc6b39d2572018ecc6542c315079f7
4
+ data.tar.gz: ada69b1cd77734b7ea82f040f8faa55eb651ea33
5
5
  SHA512:
6
- metadata.gz: 17b2389918625d5ca52bdc85266d2f5b2e5dba57eb1f13ed89d3645c614095ed1ffb329174cfd8ed8ea909248ca479fa8f6f4e48d0fcc85a1f62913205096ae0
7
- data.tar.gz: fd494f03728ff030c95589eb40fdc67ce7332d14dd9ee176343e343c7b1925e9f91d304eeeccb7ab74b550c7f00c54167b2b35cf47f6361530a470a3fb243113
6
+ metadata.gz: 94459789bb8f6adca343a4342f90550959a4d602dd6998d33d2840393c801a49a7fe8255cc70e91a013c54f045356e3e7262e7d06510cdd792d73643fb26a777
7
+ data.tar.gz: b82df02a196398221521fb489b34168d37f4e3223e3b39ff20825fd89a84e15b89da6a8a0732655c601d0ed3126441e24709a9a666e1ea8224476bfe2ab16470
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1 @@
1
- ���`}����l�?ڨ5��\h��\��N����dj뮷4�@Q#�z��}c���ygfU��8e+�Fn�d��.Ҵ����v�<�Q��DHYN%� f�=}����i탞��/���8�������t
2
- ;&u�ШrIE�|�N��L����=�>}u���:��SCBW�J�t�؏x�b �A%���uu��v3a�\��.軧�B#�蚶�!�໯�ϻۤ��Ѩ��)A,؅��CnՉ2Z(�^V�
1
+ ,�Pn���@�~�|������<x <^,��{�8�L�����'͵�d�N����I�j�wSh�����⑬Ɖ~XP����l�ҹ��rj�x/�( 0�x�7��HY�`�_����(n >E�7]�3%�����<��d�7hH�\ n4�/ل���5W��?V���x[{i���[����t���Ƭ~*U�<��6#�D������Fٸ��7СGy�8*��<��e����!p#Ψ���)N+\�6���z
data/History.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ == v0.12.3 [2013-09-20] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Don't deep_copy IOs or Tempfiles (bugfix).
4
+
5
+
1
6
  == v0.12.2 [2013-06-19] Michael Granger <ged@FaerieMUD.org>
2
7
 
3
8
  - Fix propagation of config tags into subtemplates (fixes #1)
data/Rakefile CHANGED
@@ -9,6 +9,7 @@ end
9
9
  Hoe.plugin :mercurial
10
10
  Hoe.plugin :signing
11
11
  Hoe.plugin :manualgen
12
+ Hoe.plugin :bundler
12
13
 
13
14
  Hoe.plugins.delete :rubyforge
14
15
 
@@ -16,6 +17,7 @@ hoespec = Hoe.spec 'inversion' do
16
17
  self.readme_file = 'README.rdoc'
17
18
  self.history_file = 'History.rdoc'
18
19
  self.extra_rdoc_files << 'README.rdoc' << 'History.rdoc'
20
+ self.license "BSD"
19
21
 
20
22
  self.developer 'Michael Granger', 'ged@FaerieMUD.org'
21
23
  self.developer 'Mahlon E. Smith', 'mahlon@martini.nu'
@@ -23,19 +25,15 @@ hoespec = Hoe.spec 'inversion' do
23
25
  self.dependency 'loggability', '~> 0.4'
24
26
 
25
27
  self.dependency 'highline', '~> 1.6', :development
26
- self.dependency 'hoe-deveiate', '~> 0.1', :development
27
- self.dependency 'hoe-manualgen', '~> 0.3', :development
28
+ self.dependency 'hoe-deveiate', '~> 0.3', :development
29
+ self.dependency 'hoe-bundler', '~> 1.2', :development
28
30
  self.dependency 'rack-test', '~> 0.6', :development
29
- self.dependency 'rdoc', '~> 3.12', :development
30
- self.dependency 'rspec', '~> 2.10', :development
31
31
  self.dependency 'simplecov', '~> 0.6', :development
32
32
  self.dependency 'sinatra', '~> 1.3', :development
33
- self.dependency 'tilt', '~> 1.3', :development
33
+ self.dependency 'tilt', '~> 1.4', :development
34
34
  self.dependency 'sysexits', '~> 1.0', :development
35
35
  self.dependency 'trollop', '~> 1.16', :development
36
36
 
37
- self.spec_extras[:licenses] = ["BSD"]
38
- self.spec_extras[:rdoc_options] = ['-f', 'fivefish', '-t', 'Inversion Templates']
39
37
  self.require_ruby_version( '>=1.9.2' )
40
38
  self.hg_sign_tags = true if self.respond_to?( :hg_sign_tags= )
41
39
  self.check_history_on_release = true if self.respond_to?( :check_history_on_release= )
@@ -45,7 +43,7 @@ end
45
43
  ENV['VERSION'] ||= hoespec.spec.version.to_s
46
44
 
47
45
  # Ensure the specs pass before checking in
48
- task 'hg:precheckin' => [:check_history, :check_manifest, :spec]
46
+ task 'hg:precheckin' => [:check_history, 'bundler:gemfile', :check_manifest, :spec]
49
47
 
50
48
  if Rake::Task.task_defined?( '.gemtest' )
51
49
  Rake::Task['.gemtest'].clear
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # vim: set nosta noet ts=4 sw=4:
3
3
 
4
+ require 'tempfile'
4
5
 
5
6
  module Inversion
6
7
 
@@ -212,7 +213,8 @@ module Inversion
212
213
  return obj if obj.class.name == 'RSpec::Mocks::Mock'
213
214
 
214
215
  return case obj
215
- when NilClass, Numeric, TrueClass, FalseClass, Symbol, Module, Encoding
216
+ when NilClass, Numeric, TrueClass, FalseClass, Symbol,
217
+ Module, Encoding, IO, Tempfile
216
218
  obj
217
219
 
218
220
  when Array
data/lib/inversion.rb CHANGED
@@ -26,10 +26,10 @@ module Inversion
26
26
  warn ">>> Inversion requires Ruby 1.9.2 or later. <<<" if RUBY_VERSION < '1.9.2'
27
27
 
28
28
  # Library version constant
29
- VERSION = '0.12.2'
29
+ VERSION = '0.12.3'
30
30
 
31
31
  # Version-control revision constant
32
- REVISION = %q$Revision: 0444a00c5e64 $
32
+ REVISION = %q$Revision: 100ed23eb2ba $
33
33
 
34
34
 
35
35
  ### Get the Inversion version.
@@ -155,6 +155,16 @@ describe Inversion, "mixins" do
155
155
  Inversion::DataUtilities.deep_copy( klass ).should be( klass )
156
156
  end
157
157
 
158
+ it "doesn't try to dup IOs" do
159
+ data = [ $stdin ]
160
+ Inversion::DataUtilities.deep_copy( data[0] ).should be( $stdin )
161
+ end
162
+
163
+ it "doesn't try to dup Tempfiles" do
164
+ data = Tempfile.new( 'inversion_deepcopy.XXXXX' )
165
+ Inversion::DataUtilities.deep_copy( data ).should be( data )
166
+ end
167
+
158
168
  it "makes distinct copies of arrays and their members" do
159
169
  original = [ 'foom', Set.new([ 1,2 ]), :a_symbol ]
160
170
 
@@ -32,14 +32,14 @@ describe "Tilt support", :if => $tilt_support do
32
32
  end
33
33
 
34
34
  it "merges locals with template attributes upon evaluation" do
35
- File.stub( :binread ).with( 'test.tmpl' ).and_return( '<?attr foo ?>' )
35
+ File.stub( :open ).with( 'test.tmpl', 'rb' ).and_return( '<?attr foo ?>' )
36
36
  Tilt.new( 'test.tmpl' ).render( Object.new, :foo => 'Booyakasha!' ).should == 'Booyakasha!'
37
37
  end
38
38
 
39
39
  it "merges the 'scope' object if it responds_to #to_h" do
40
40
  scope = Object.new
41
41
  def scope.to_h; { :message => "Respek!" }; end
42
- File.stub( :binread ).with( 'test.tmpl' ).and_return( '<?attr message ?>' )
42
+ File.stub( :open ).with( 'test.tmpl', 'rb' ).and_return( '<?attr message ?>' )
43
43
  Tilt.new( 'test.tmpl' ).render( scope, {} ).should == 'Respek!'
44
44
  end
45
45
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inversion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -31,7 +31,7 @@ cert_chain:
31
31
  6mKCwjpegytE0oifXfF8k75A9105cBnNiMZOe1tXiqYc/exCgWvbggurzDOcRkZu
32
32
  /YSusaiDXHKU2O3Akc3htA==
33
33
  -----END CERTIFICATE-----
34
- date: 2013-06-19 00:00:00.000000000 Z
34
+ date: 2013-09-20 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: loggability
@@ -95,14 +95,14 @@ dependencies:
95
95
  requirements:
96
96
  - - ~>
97
97
  - !ruby/object:Gem::Version
98
- version: '3.10'
98
+ version: '4.0'
99
99
  type: :development
100
100
  prerelease: false
101
101
  version_requirements: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - ~>
104
104
  - !ruby/object:Gem::Version
105
- version: '3.10'
105
+ version: '4.0'
106
106
  - !ruby/object:Gem::Dependency
107
107
  name: highline
108
108
  requirement: !ruby/object:Gem::Requirement
@@ -123,42 +123,42 @@ dependencies:
123
123
  requirements:
124
124
  - - ~>
125
125
  - !ruby/object:Gem::Version
126
- version: '0.1'
126
+ version: '0.3'
127
127
  type: :development
128
128
  prerelease: false
129
129
  version_requirements: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - ~>
132
132
  - !ruby/object:Gem::Version
133
- version: '0.1'
133
+ version: '0.3'
134
134
  - !ruby/object:Gem::Dependency
135
- name: rack-test
135
+ name: hoe-bundler
136
136
  requirement: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - ~>
139
139
  - !ruby/object:Gem::Version
140
- version: '0.6'
140
+ version: '1.2'
141
141
  type: :development
142
142
  prerelease: false
143
143
  version_requirements: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - ~>
146
146
  - !ruby/object:Gem::Version
147
- version: '0.6'
147
+ version: '1.2'
148
148
  - !ruby/object:Gem::Dependency
149
- name: rspec
149
+ name: rack-test
150
150
  requirement: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ~>
153
153
  - !ruby/object:Gem::Version
154
- version: '2.10'
154
+ version: '0.6'
155
155
  type: :development
156
156
  prerelease: false
157
157
  version_requirements: !ruby/object:Gem::Requirement
158
158
  requirements:
159
159
  - - ~>
160
160
  - !ruby/object:Gem::Version
161
- version: '2.10'
161
+ version: '0.6'
162
162
  - !ruby/object:Gem::Dependency
163
163
  name: simplecov
164
164
  requirement: !ruby/object:Gem::Requirement
@@ -193,14 +193,14 @@ dependencies:
193
193
  requirements:
194
194
  - - ~>
195
195
  - !ruby/object:Gem::Version
196
- version: '1.3'
196
+ version: '1.4'
197
197
  type: :development
198
198
  prerelease: false
199
199
  version_requirements: !ruby/object:Gem::Requirement
200
200
  requirements:
201
201
  - - ~>
202
202
  - !ruby/object:Gem::Version
203
- version: '1.3'
203
+ version: '1.4'
204
204
  - !ruby/object:Gem::Dependency
205
205
  name: sysexits
206
206
  requirement: !ruby/object:Gem::Requirement
@@ -235,14 +235,14 @@ dependencies:
235
235
  requirements:
236
236
  - - ~>
237
237
  - !ruby/object:Gem::Version
238
- version: '3.5'
238
+ version: '3.7'
239
239
  type: :development
240
240
  prerelease: false
241
241
  version_requirements: !ruby/object:Gem::Requirement
242
242
  requirements:
243
243
  - - ~>
244
244
  - !ruby/object:Gem::Version
245
- version: '3.5'
245
+ version: '3.7'
246
246
  description: |-
247
247
  Inversion is a templating system for Ruby. It uses the "Inversion of Control"
248
248
  principle to decouple the contents and structure of templates from the code
@@ -347,10 +347,8 @@ licenses:
347
347
  metadata: {}
348
348
  post_install_message:
349
349
  rdoc_options:
350
- - -f
351
- - fivefish
352
- - -t
353
- - Inversion Templates
350
+ - --main
351
+ - README.rdoc
354
352
  require_paths:
355
353
  - lib
356
354
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -365,7 +363,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
365
363
  version: '0'
366
364
  requirements: []
367
365
  rubyforge_project: inversion
368
- rubygems_version: 2.0.3
366
+ rubygems_version: 2.0.5
369
367
  signing_key:
370
368
  specification_version: 4
371
369
  summary: Inversion is a templating system for Ruby
metadata.gz.sig CHANGED
Binary file