axiom-memory-adapter 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3f537f965f6592370b4af998267dfb49a9947dea
4
+ data.tar.gz: ea837a7c97fbc2454edc0dc214dbd7040c4ae98a
5
+ SHA512:
6
+ metadata.gz: 09d422d677117fd4b9d948f33b1cf2e6e39133df09aef8b6aa75eb5853449a43df70ed4fa7f50aa43a65df10b000560b87835961f1ea75d6cc7bb781a4c13531
7
+ data.tar.gz: cd2abd32706c6d5ec6dfbc17623a21dd35a447ae9f2357ce55db94cd85343326ff7d91772acd95eeb05b150e9afe5271108fb9d9fb5b4d2db3e8e940248d8248
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- gem 'axiom', '~> 0.1.1', git: 'https://github.com/dkubb/axiom.git'
7
+ gem 'axiom', '~> 0.1.1', git: 'https://github.com/dkubb/axiom.git', branch: 'master'
8
8
 
9
9
  group :development, :test do
10
10
  gem 'devtools', git: 'https://github.com/rom-rb/devtools.git'
@@ -72,7 +72,7 @@ module Axiom
72
72
  #
73
73
  # @api public
74
74
  def []=(name, relation)
75
- schema[name] = Relation::Variable.new(relation)
75
+ schema[name] = Relation::Variable::Materialized.new(relation)
76
76
  end
77
77
 
78
78
  end # Memory
@@ -5,7 +5,7 @@ module Axiom
5
5
  class Memory
6
6
 
7
7
  # Gem version
8
- VERSION = '0.0.2'.freeze
8
+ VERSION = '0.0.3'.freeze
9
9
 
10
10
  end # Memory
11
11
  end # Adapter
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  shared_context 'relation' do
2
4
  let(:relation) { Relation.new(header, body) }
3
5
  let(:body) { [[1], [2], [3]] }
@@ -11,7 +11,7 @@ describe Adapter::Memory, '#[]' do
11
11
  context 'with a known name' do
12
12
  let(:name) { :users }
13
13
 
14
- it { should eql(Relation::Variable.new(relation)) }
14
+ it { should eql(Relation::Variable::Materialized.new(relation)) }
15
15
  end
16
16
 
17
17
  context 'with an unknown name' do
@@ -13,6 +13,6 @@ describe Adapter::Memory, '#[]=' do
13
13
 
14
14
  it 'wraps the relation in in a relation variable' do
15
15
  subject
16
- expect(object[name]).to eql(Relation::Variable.new(relation))
16
+ expect(object[name]).to eql(Relation::Variable::Materialized.new(relation))
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: axiom-memory-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dan Kubb
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-22 00:00:00.000000000 Z
11
+ date: 2013-09-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: axiom
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
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
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: thread_safe
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
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
@@ -46,23 +41,21 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: bundler
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.3'
54
- - - ! '>='
48
+ - - '>='
55
49
  - !ruby/object:Gem::Version
56
50
  version: 1.3.5
57
51
  type: :development
58
52
  prerelease: false
59
53
  version_requirements: !ruby/object:Gem::Requirement
60
- none: false
61
54
  requirements:
62
55
  - - ~>
63
56
  - !ruby/object:Gem::Version
64
57
  version: '1.3'
65
- - - ! '>='
58
+ - - '>='
66
59
  - !ruby/object:Gem::Version
67
60
  version: 1.3.5
68
61
  description: Use Axiom relations with an in-memory datastore
@@ -110,27 +103,31 @@ files:
110
103
  homepage: https://github.com/dkubb/axiom-memory-adapter
111
104
  licenses:
112
105
  - MIT
106
+ metadata: {}
113
107
  post_install_message:
114
108
  rdoc_options: []
115
109
  require_paths:
116
110
  - lib
117
111
  required_ruby_version: !ruby/object:Gem::Requirement
118
- none: false
119
112
  requirements:
120
- - - ! '>='
113
+ - - '>='
121
114
  - !ruby/object:Gem::Version
122
115
  version: '0'
123
116
  required_rubygems_version: !ruby/object:Gem::Requirement
124
- none: false
125
117
  requirements:
126
- - - ! '>='
118
+ - - '>='
127
119
  - !ruby/object:Gem::Version
128
120
  version: '0'
129
121
  requirements: []
130
122
  rubyforge_project:
131
- rubygems_version: 1.8.23
123
+ rubygems_version: 2.0.3
132
124
  signing_key:
133
- specification_version: 3
125
+ specification_version: 4
134
126
  summary: Axiom Memory adapter
135
- test_files: []
136
- has_rdoc:
127
+ test_files:
128
+ - spec/integration/axiom/adapter/memory_spec.rb
129
+ - spec/unit/axiom/adapter/memory/class_methods/new_spec.rb
130
+ - spec/unit/axiom/adapter/memory/element_reader_spec.rb
131
+ - spec/unit/axiom/adapter/memory/element_writer_spec.rb
132
+ - spec/unit/axiom/relation/variable/materialized/update_spec.rb
133
+ - spec/unit/axiom/relation/variable/update_spec.rb