bini 0.5.2 → 0.5.4

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/Gemfile CHANGED
@@ -3,7 +3,18 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development do
6
+ gem "guard"
7
+ gem "guard-bundler"
8
+ gem "guard-rspec"
9
+ gem "guard-yard"
10
+ gem "guard-shell"
11
+ gem "reek"
6
12
  gem "pry"
13
+ gem 'libnotify', :require => false
14
+ gem 'growl', :require => false
15
+ gem 'rb-inotify', :require => false
16
+ gem 'rb-fsevent', :require => false
17
+ gem 'rb-fchange', :require => false
7
18
  end
8
19
 
9
20
  group :test do
data/Guardfile ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/ruby
2
+ # A sample Guardfile
3
+ # More info at https://github.com/guard/guard#readme
4
+
5
+ guard :bundler do
6
+ watch('Gemfile')
7
+
8
+ end
9
+
10
+ guard :rspec do
11
+ watch(%r{^spec/.+_spec\.rb$})
12
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
13
+ watch('spec/spec_helper.rb') { "spec" }
14
+ end
15
+
16
+ # guard :yard do
17
+ # watch(%r{^lib/(.+)\.rb$})
18
+ # end
data/lib/bini/sash.rb CHANGED
@@ -63,7 +63,7 @@ module Bini
63
63
  self.clear
64
64
  if @file && File.exist?(@file) && File.stat(@file).size > 0
65
65
  h = YAML::load open(@file, 'r').read
66
- h.each { |k,v| self[k.to_sym] = v}
66
+ h.each { |k,v| self[k] = v}
67
67
  return true
68
68
  end
69
69
  false
data/lib/bini/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bini
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.4"
3
3
  end
@@ -2,6 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  describe "FileMagic" do
4
4
  it "it will return a ruby mime type when targeting a ruby file." do
5
- Bini::FileMagic.mime_type("./Rakefile").should eq "text/x-ruby"
5
+ Bini::FileMagic.mime_type("./lib/bini.rb").should eq "text/x-ruby"
6
6
  end
7
7
  end
data/spec/sash_spec.rb CHANGED
@@ -26,12 +26,13 @@ describe "Sash" do
26
26
  end
27
27
 
28
28
  it "can save" do
29
- @s[:foo] = :bar
29
+ @s['foo'] = :bar
30
30
  @s.save
31
31
  @s2 = Sash.new file:@filename
32
32
  @s2.load
33
- @s2[:foo].should eq :bar
33
+ @s2['foo'].should eq :bar
34
34
  end
35
+
35
36
  it "can set the mode" do
36
37
  @s.mode = 0600
37
38
  @s.set_mode
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bini
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-03 00:00:00.000000000 Z
12
+ date: 2012-11-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sys-proctable
@@ -38,6 +38,7 @@ files:
38
38
  - .rspec
39
39
  - .travis.yml
40
40
  - Gemfile
41
+ - Guardfile
41
42
  - LICENSE.txt
42
43
  - README.md
43
44
  - Rakefile
@@ -70,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
71
  version: '0'
71
72
  segments:
72
73
  - 0
73
- hash: -247432938325807426
74
+ hash: -1433625329977626208
74
75
  required_rubygems_version: !ruby/object:Gem::Requirement
75
76
  none: false
76
77
  requirements:
@@ -79,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
80
  version: '0'
80
81
  segments:
81
82
  - 0
82
- hash: -247432938325807426
83
+ hash: -1433625329977626208
83
84
  requirements: []
84
85
  rubyforge_project:
85
86
  rubygems_version: 1.8.21
@@ -96,3 +97,4 @@ test_files:
96
97
  - spec/optparser_spec.rb
97
98
  - spec/sash_spec.rb
98
99
  - spec/spec_helper.rb
100
+ has_rdoc: