cinch-storage 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/cinch-storage.gemspec +1 -1
- data/lib/cinch-storage.rb +2 -2
- data/lib/cinch/storage/version.rb +1 -1
- metadata +5 -5
data/cinch-storage.gemspec
CHANGED
data/lib/cinch-storage.rb
CHANGED
@@ -6,13 +6,13 @@ class CinchStorage
|
|
6
6
|
|
7
7
|
def initialize(file, init = Hash.new)
|
8
8
|
@filename = file
|
9
|
-
@data =
|
9
|
+
@data = Psych::load(File.open(@filename)) if File::exist?(@filename)
|
10
10
|
@data ||= init
|
11
11
|
end
|
12
12
|
|
13
13
|
def save
|
14
14
|
File.open(@filename, 'w') do |file|
|
15
|
-
|
15
|
+
Psych::dump(@data, file)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cinch-storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
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: 2013-
|
12
|
+
date: 2013-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
requirements:
|
83
83
|
- - ~>
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
85
|
+
version: 2.0.0
|
86
86
|
type: :runtime
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -90,7 +90,7 @@ dependencies:
|
|
90
90
|
requirements:
|
91
91
|
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
93
|
+
version: 2.0.0
|
94
94
|
description: Simle YAML backed Storage solution for Cinch plugins.
|
95
95
|
email:
|
96
96
|
- bhaberer@gmail.com
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 1.8.
|
132
|
+
rubygems_version: 1.8.25
|
133
133
|
signing_key:
|
134
134
|
specification_version: 3
|
135
135
|
summary: Simle YAML backed Storage solution for Cinch plugins.
|