qi 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/VERSION.semver +1 -1
- data/checksum/qi-3.0.1.gem.sha512 +1 -0
- data/fix/store_fix.rb +7 -14
- data/lib/qi/result.rb +1 -1
- data/lib/qi/store.rb +1 -1
- data/qi.gemspec +3 -3
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64fe2d481e16251146a9cccd3c13e7a76d693a96
|
4
|
+
data.tar.gz: 8b3167626ec20d68c1bfcc97bcfe18238370709b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92e457c945435384823cbae7aca0e0432543f5cb73f2033c757985923f4cc019a956e20c91289722a7df43eb90d7b2562d8472785adc9f88b118af8d05e700f5
|
7
|
+
data.tar.gz: 356e52d4a5fc28987ea4467b472c8d6ba4bbfe46b8159da55333832e8be4e191b81052334ca6eb76bad13d9483e3dfc8caaadfa2804365b025ea3dbeecf9680c
|
data/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Qi
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/
|
3
|
+
[![Build Status](https://travis-ci.org/cyril/qi.svg?branch=master)][travis]
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/qi.svg)][gem]
|
5
|
-
[![Inline docs](http://inch-ci.org/github/
|
5
|
+
[![Inline docs](http://inch-ci.org/github/cyril/qi.svg?branch=master)][inchpages]
|
6
6
|
[![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
|
7
7
|
|
8
|
-
> An ordered store to
|
8
|
+
> An ordered store of stuff to manage, for Ruby.
|
9
9
|
|
10
10
|
## Rubies
|
11
11
|
|
@@ -32,11 +32,11 @@ Or install it yourself as:
|
|
32
32
|
```ruby
|
33
33
|
require 'qi'
|
34
34
|
|
35
|
-
db = Qi::Store.new(8)
|
35
|
+
db = Qi::Store.new(8) # => #<Qi::Store:0x007f8c0a82f300 @cells=[nil, nil, nil, nil, nil, nil, nil, nil]>
|
36
36
|
|
37
|
-
result = db.call(2, 3, '
|
38
|
-
result.store.cells
|
39
|
-
result.deleted_content
|
37
|
+
result = db.call(2, 3, 'p') # => #<Qi::Result:0x007ff3539d71e8 @store=#<Qi::Store:0x007ff3539d7238 @cells=[nil, nil, nil, "p", nil, nil, nil, nil]>, @deleted_content=nil>
|
38
|
+
result.store.cells # => [nil, nil, nil, "p", nil, nil, nil, nil]
|
39
|
+
result.deleted_content # => nil
|
40
40
|
```
|
41
41
|
|
42
42
|
## Versioning
|
@@ -45,7 +45,7 @@ __Qi__ follows [Semantic Versioning 2.0](http://semver.org/).
|
|
45
45
|
|
46
46
|
## Contributing
|
47
47
|
|
48
|
-
1. [Fork it](https://github.com/
|
48
|
+
1. [Fork it](https://github.com/cyril/qi/fork)
|
49
49
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
50
50
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
51
51
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -56,6 +56,6 @@ __Qi__ follows [Semantic Versioning 2.0](http://semver.org/).
|
|
56
56
|
See `LICENSE.md` file.
|
57
57
|
|
58
58
|
[gem]: https://rubygems.org/gems/qi
|
59
|
-
[travis]: https://travis-ci.org/
|
60
|
-
[inchpages]: http://inch-ci.org/github/
|
59
|
+
[travis]: https://travis-ci.org/cyril/qi
|
60
|
+
[inchpages]: http://inch-ci.org/github/cyril/qi/
|
61
61
|
[rubydoc]: http://rubydoc.info/gems/qi/frames
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.2
|
@@ -0,0 +1 @@
|
|
1
|
+
03a1a4eb9f239b817fcab338c15c652a47183c0d58a63c505df1f6a7011ef0d9f2c94bb51f25c5ac455536b5f649dcbaa7087c6033ffe35c4acf5265efa0f853
|
data/fix/store_fix.rb
CHANGED
@@ -3,22 +3,15 @@ require_relative File.join '..', 'lib', 'qi'
|
|
3
3
|
require 'fix'
|
4
4
|
|
5
5
|
Fix.describe Qi::Store do
|
6
|
-
on :new,
|
7
|
-
on :
|
6
|
+
on :new, 8 do
|
7
|
+
on :cells do
|
8
|
+
it { MUST eql [nil, nil, nil, nil, nil, nil, nil, nil] }
|
9
|
+
end
|
10
|
+
|
11
|
+
on :call, 2, 3, 'p' do
|
8
12
|
on :store do
|
9
13
|
on :cells do
|
10
|
-
it
|
11
|
-
MUST eql [
|
12
|
-
nil, nil, nil, nil, nil, nil, nil, nil,
|
13
|
-
nil, nil, nil, nil, nil, nil, nil, nil,
|
14
|
-
nil, nil, nil, nil, nil, nil, nil, nil,
|
15
|
-
nil, nil, nil, nil, nil, nil, nil, nil,
|
16
|
-
nil, nil, nil, nil, :'♙', nil, nil, nil,
|
17
|
-
nil, nil, nil, nil, nil, nil, nil, nil,
|
18
|
-
nil, nil, nil, nil, nil, nil, nil, nil,
|
19
|
-
nil, nil, nil, nil, nil, nil, nil, nil
|
20
|
-
]
|
21
|
-
end
|
14
|
+
it { MUST eql [nil, nil, nil, 'p', nil, nil, nil, nil] }
|
22
15
|
end
|
23
16
|
end
|
24
17
|
|
data/lib/qi/result.rb
CHANGED
@@ -2,7 +2,7 @@ module Qi
|
|
2
2
|
# Result class.
|
3
3
|
class Result
|
4
4
|
# @param store [Store] Collection of data.
|
5
|
-
# @param deleted_content [
|
5
|
+
# @param deleted_content [Object, nil] Last deleted content.
|
6
6
|
def initialize(store, deleted_content)
|
7
7
|
@store = store
|
8
8
|
@deleted_content = deleted_content
|
data/lib/qi/store.rb
CHANGED
@@ -18,7 +18,7 @@ module Qi
|
|
18
18
|
|
19
19
|
# @param src_cell [Fixnum] Source cell.
|
20
20
|
# @param dst_cell [Fixnum] Destination cell.
|
21
|
-
# @param content [
|
21
|
+
# @param content [Object] Content.
|
22
22
|
#
|
23
23
|
# @return [Store] The new store.
|
24
24
|
def call(src_cell, dst_cell, content)
|
data/qi.gemspec
CHANGED
@@ -4,9 +4,9 @@ Gem::Specification.new do |spec|
|
|
4
4
|
spec.authors = ['Cyril Wack']
|
5
5
|
spec.email = ['contact@cyril.email']
|
6
6
|
|
7
|
-
spec.summary = 'Store
|
8
|
-
spec.description = 'An ordered store to
|
9
|
-
spec.homepage = 'https://github.com/
|
7
|
+
spec.summary = 'Store to manage ordered stuff.'
|
8
|
+
spec.description = 'An ordered store of stuff to manage, for Ruby.'
|
9
|
+
spec.homepage = 'https://github.com/cyril/qi.rb'
|
10
10
|
spec.license = 'MIT'
|
11
11
|
|
12
12
|
spec.files =
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Wack
|
@@ -94,7 +94,7 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0.16'
|
97
|
-
description: An ordered store to
|
97
|
+
description: An ordered store of stuff to manage, for Ruby.
|
98
98
|
email:
|
99
99
|
- contact@cyril.email
|
100
100
|
executables: []
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- bin/console
|
114
114
|
- bin/setup
|
115
115
|
- checksum/qi-3.0.0.gem.sha512
|
116
|
+
- checksum/qi-3.0.1.gem.sha512
|
116
117
|
- fix/store_fix.rb
|
117
118
|
- fix/support/coverage.rb
|
118
119
|
- lib/qi.rb
|
@@ -120,7 +121,7 @@ files:
|
|
120
121
|
- lib/qi/store.rb
|
121
122
|
- pkg_checksum
|
122
123
|
- qi.gemspec
|
123
|
-
homepage: https://github.com/
|
124
|
+
homepage: https://github.com/cyril/qi.rb
|
124
125
|
licenses:
|
125
126
|
- MIT
|
126
127
|
metadata: {}
|
@@ -143,6 +144,6 @@ rubyforge_project:
|
|
143
144
|
rubygems_version: 2.4.5.1
|
144
145
|
signing_key:
|
145
146
|
specification_version: 4
|
146
|
-
summary: Store
|
147
|
+
summary: Store to manage ordered stuff.
|
147
148
|
test_files: []
|
148
149
|
has_rdoc:
|