shelr 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -6,4 +6,4 @@ doc
6
6
  vendor/bundle
7
7
  TAGS
8
8
  tags
9
-
9
+ .pc/
data/lib/shelr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Shelr
2
- VERSION = '0.12.0'
2
+ VERSION = '0.12.1'
3
3
  end
@@ -26,15 +26,16 @@ describe Shelr::Publisher do
26
26
  end
27
27
 
28
28
  describe "#dump(id)" do
29
+ let(:file) { mock('dump file') }
30
+
29
31
  before do
30
- @file = mock('dump file')
31
- File.stub(:open).and_yield @file
32
+ File.stub(:open).and_yield file
32
33
  end
33
34
 
34
35
  it "saves prepared dump to #dump_filename" do
35
36
  File.should_receive(:open).with(subject.send(:dump_filename), 'w+')
36
37
  subject.should_receive(:prepare).with('hello').and_return('dump')
37
- @file.should_receive(:puts).with('dump')
38
+ file.should_receive(:puts).with('dump')
38
39
  subject.dump('hello')
39
40
  end
40
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shelr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-04-01 00:00:00.000000000 Z
14
+ date: 2012-04-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json
@@ -82,12 +82,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
82
  - - ! '>='
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
+ segments:
86
+ - 0
87
+ hash: -3545260186803621288
85
88
  required_rubygems_version: !ruby/object:Gem::Requirement
86
89
  none: false
87
90
  requirements:
88
91
  - - ! '>='
89
92
  - !ruby/object:Gem::Version
90
93
  version: '0'
94
+ segments:
95
+ - 0
96
+ hash: -3545260186803621288
91
97
  requirements: []
92
98
  rubyforge_project:
93
99
  rubygems_version: 1.8.21