cinch-storage 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: a2f02e78023d652f0d5cab2403f335ea12350429
4
+ data.tar.gz: ff3eede901fc67e52be82a9a18a01c390179b66b
5
+ SHA512:
6
+ metadata.gz: e584cbc1efbe8597368ba75360ffe3e6498ebea1be39acc51f4910065293021b225ff7b3f1892637e0cbc78234a17420a9c25abecce3f60fecc716f9cff26684
7
+ data.tar.gz: 6d62fd67779182afdfd9835fa01bf91695e81aca21835678cee3fdef2e33b524411aa4de5b8eb1bf5f12281b966ec2c4c9d891c2b5e5d85d44eaeed045e38c86
@@ -1,4 +1,24 @@
1
1
  language: ruby
2
+ env:
3
+ global:
4
+ - "JRUBY_OPTS=-Xcext.enabled=true"
2
5
  rvm:
3
- - 1.9.2
6
+ - 2.1.0
7
+ - 2.0.0
4
8
  - 1.9.3
9
+ - 1.9.2
10
+ - 1.8.7
11
+ - jruby-18mode
12
+ - jruby-19mode
13
+ - rbx
14
+ - ruby-head
15
+ - jruby-head
16
+ - ree
17
+ matrix:
18
+ allow_failures:
19
+ - rvm: 1.8.7
20
+ - rvm: ree
21
+ - rvm: jruby-18mode
22
+ - rvm: jruby-19mode
23
+ - rvm: jruby-head
24
+ fast_finish: true
@@ -8,21 +8,20 @@ Gem::Specification.new do |gem|
8
8
  gem.version = Cinch::Storage::VERSION
9
9
  gem.authors = ['Brian Haberer']
10
10
  gem.email = ['bhaberer@gmail.com']
11
- gem.description = %q{Simple YAML backed Storage solution for Cinch plugins.}
12
- gem.summary = %q{Data Storage for Cinch plugins.}
11
+ gem.description = %q(Simple YAML backed Storage for Cinch plugins.)
12
+ gem.summary = %q(Data Storage for Cinch plugins.)
13
13
  gem.homepage = 'https://github.com/bhaberer/cinch-storage'
14
14
  gem.license = 'MIT'
15
-
16
15
  gem.files = `git ls-files`.split($/)
17
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
+ gem.executables = gem.files.grep(/^bin\//).map { |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(/^(test|spec|features)\//)
19
18
  gem.require_paths = ['lib']
20
19
 
21
- gem.add_development_dependency 'rake'
22
- gem.add_development_dependency 'rspec'
23
- gem.add_development_dependency 'coveralls'
24
- gem.add_development_dependency 'cinch-test'
20
+ gem.add_development_dependency 'rake', '~> 0.9'
21
+ gem.add_development_dependency 'rspec', '~> 3'
22
+ gem.add_development_dependency 'coveralls', '~> 0.7'
23
+ gem.add_development_dependency 'cinch-test', '~> 0.0', '>= 0.0.2'
25
24
 
26
- gem.add_dependency 'cinch', '~> 2.0.12'
27
- gem.add_dependency 'psych', '~> 1.3.4'
25
+ gem.add_dependency 'cinch', '~> 2', '>= 2.0.8'
26
+ gem.add_dependency 'psych', '~> 2.0', '>= 2.0.4'
28
27
  end
@@ -2,6 +2,6 @@
2
2
  module Cinch
3
3
  # versioning info
4
4
  class Storage
5
- VERSION = '1.1.0'
5
+ VERSION = '1.2.0'
6
6
  end
7
7
  end
@@ -40,19 +40,17 @@ describe Cinch::Storage do
40
40
  storage.data << 'foo'
41
41
  storage.save
42
42
 
43
- Cinch::Storage.new(@filename).data
44
- .should include 'foo'
43
+ expect(Cinch::Storage.new(@filename).data)
44
+ .to include('foo')
45
45
  end
46
46
 
47
47
  it 'should handle multiple bot threads attempting to write to the same file' do
48
48
  10.times { |x| get_replies(make_message(@bot, "!store #{x}")) }
49
- Cinch::Storage.new(@filename).data.length
50
- .should == 10
49
+ expect(Cinch::Storage.new(@filename).data.length).to eq(10)
51
50
  end
52
51
 
53
52
  it 'should write object data to the disk' do
54
53
  get_replies(make_message(@bot, "!storething foobar"))
55
- Cinch::Storage.new(@filename).data.first
56
- .should == Thing.new('foobar')
54
+ expect(Cinch::Storage.new(@filename).data.first).to eq(Thing.new('foobar'))
57
55
  end
58
56
  end
metadata CHANGED
@@ -1,113 +1,118 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Brian Haberer
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-02-18 00:00:00.000000000 Z
11
+ date: 2014-07-28 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: '0.9'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: '0'
26
+ version: '0.9'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ~>
36
32
  - !ruby/object:Gem::Version
37
- version: '0'
33
+ version: '3'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ~>
44
39
  - !ruby/object:Gem::Version
45
- version: '0'
40
+ version: '3'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: coveralls
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ~>
52
46
  - !ruby/object:Gem::Version
53
- version: '0'
47
+ version: '0.7'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ~>
60
53
  - !ruby/object:Gem::Version
61
- version: '0'
54
+ version: '0.7'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: cinch-test
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '0.0'
67
62
  - - ! '>='
68
63
  - !ruby/object:Gem::Version
69
- version: '0'
64
+ version: 0.0.2
70
65
  type: :development
71
66
  prerelease: false
72
67
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
68
  requirements:
69
+ - - ~>
70
+ - !ruby/object:Gem::Version
71
+ version: '0.0'
75
72
  - - ! '>='
76
73
  - !ruby/object:Gem::Version
77
- version: '0'
74
+ version: 0.0.2
78
75
  - !ruby/object:Gem::Dependency
79
76
  name: cinch
80
77
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
78
  requirements:
83
79
  - - ~>
84
80
  - !ruby/object:Gem::Version
85
- version: 2.0.12
81
+ version: '2'
82
+ - - ! '>='
83
+ - !ruby/object:Gem::Version
84
+ version: 2.0.8
86
85
  type: :runtime
87
86
  prerelease: false
88
87
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
88
  requirements:
91
89
  - - ~>
92
90
  - !ruby/object:Gem::Version
93
- version: 2.0.12
91
+ version: '2'
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: 2.0.8
94
95
  - !ruby/object:Gem::Dependency
95
96
  name: psych
96
97
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
98
  requirements:
99
99
  - - ~>
100
100
  - !ruby/object:Gem::Version
101
- version: 1.3.4
101
+ version: '2.0'
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: 2.0.4
102
105
  type: :runtime
103
106
  prerelease: false
104
107
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
108
  requirements:
107
109
  - - ~>
108
110
  - !ruby/object:Gem::Version
109
- version: 1.3.4
110
- description: Simple YAML backed Storage solution for Cinch plugins.
111
+ version: '2.0'
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: 2.0.4
115
+ description: Simple YAML backed Storage for Cinch plugins.
111
116
  email:
112
117
  - bhaberer@gmail.com
113
118
  executables: []
@@ -128,29 +133,27 @@ files:
128
133
  homepage: https://github.com/bhaberer/cinch-storage
129
134
  licenses:
130
135
  - MIT
136
+ metadata: {}
131
137
  post_install_message:
132
138
  rdoc_options: []
133
139
  require_paths:
134
140
  - lib
135
141
  required_ruby_version: !ruby/object:Gem::Requirement
136
- none: false
137
142
  requirements:
138
143
  - - ! '>='
139
144
  - !ruby/object:Gem::Version
140
145
  version: '0'
141
146
  required_rubygems_version: !ruby/object:Gem::Requirement
142
- none: false
143
147
  requirements:
144
148
  - - ! '>='
145
149
  - !ruby/object:Gem::Version
146
150
  version: '0'
147
151
  requirements: []
148
152
  rubyforge_project:
149
- rubygems_version: 1.8.25
153
+ rubygems_version: 2.2.2
150
154
  signing_key:
151
- specification_version: 3
155
+ specification_version: 4
152
156
  summary: Data Storage for Cinch plugins.
153
157
  test_files:
154
158
  - spec/cinch-storage_spec.rb
155
159
  - spec/spec_helper.rb
156
- has_rdoc: