axiom-memory-adapter 0.0.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f537f965f6592370b4af998267dfb49a9947dea
4
- data.tar.gz: ea837a7c97fbc2454edc0dc214dbd7040c4ae98a
3
+ metadata.gz: 9d45c6bf65fe840240d99906ce8bf6ecc8cbf9a0
4
+ data.tar.gz: 311c251aaa922d2b54345f558a151cd0c5599b78
5
5
  SHA512:
6
- metadata.gz: 09d422d677117fd4b9d948f33b1cf2e6e39133df09aef8b6aa75eb5853449a43df70ed4fa7f50aa43a65df10b000560b87835961f1ea75d6cc7bb781a4c13531
7
- data.tar.gz: cd2abd32706c6d5ec6dfbc17623a21dd35a447ae9f2357ce55db94cd85343326ff7d91772acd95eeb05b150e9afe5271108fb9d9fb5b4d2db3e8e940248d8248
6
+ metadata.gz: 2a9671f9ea4b484af0901a63c616ddab5ea0b073a9ef6a46bf93bcc03c8bd0d5b992b7f26469e092d653a33cc3c29171fe9f185ce7596a7dfb5d67142e1c414d
7
+ data.tar.gz: c0fb6846fa726503450c0cc3fcbef69cb7494ee162560f660e152c334a715ad2c4ac3a0570cbaa44d137c830185a59899bf87d9ec78ab1637103def3923f9494
@@ -0,0 +1,6 @@
1
+ AllCops:
2
+ Includes:
3
+ - 'Gemfile'
4
+ Excludes:
5
+ - 'Gemfile.devtools'
6
+ - 'vendor/**'
@@ -1,29 +1,29 @@
1
1
  language: ruby
2
2
  before_install: gem install bundler
3
3
  bundler_args: --without yard guard benchmarks
4
- script: "bundle exec rake ci"
4
+ script: "bundle exec rake ci:metrics"
5
5
  rvm:
6
6
  - 1.9.3
7
7
  - 2.0.0
8
+ - 2.1.0
8
9
  - ruby-head
9
- - rbx-19mode
10
+ - rbx
10
11
  matrix:
11
12
  include:
12
13
  - rvm: jruby-19mode
13
- env: JRUBY_OPTS="$JRUBY_OPTS --debug"
14
+ env: JRUBY_OPTS="$JRUBY_OPTS --debug" # for simplecov
15
+ - rvm: jruby-20mode
16
+ env: JRUBY_OPTS="$JRUBY_OPTS --debug" # for simplecov
17
+ - rvm: jruby-21mode
18
+ env: JRUBY_OPTS="$JRUBY_OPTS --debug" # for simplecov
14
19
  - rvm: jruby-head
15
- env: JRUBY_OPTS="$JRUBY_OPTS --debug"
20
+ env: JRUBY_OPTS="$JRUBY_OPTS --debug" # for simplecov
16
21
  allow_failures:
17
- # broken on travis
18
- - rvm: ruby-head
22
+ - rvm: 2.1.0 # buggy runtime
23
+ fast_finish: true
19
24
  notifications:
20
25
  irc:
21
26
  channels:
22
27
  - irc.freenode.org#rom-rb
23
28
  on_success: never
24
29
  on_failure: change
25
- email:
26
- recipients:
27
- - dan.kubb@gmail.com
28
- on_success: never
29
- on_failure: change
@@ -1,5 +1,4 @@
1
- Contributing
2
- ------------
1
+ # Contributing
3
2
 
4
3
  * If you want your code merged into the mainline, please discuss the proposed changes with me before doing any work on it. This library is still in early development, and the direction it is going may not always be clear. Some features may not be appropriate yet, may need to be deferred until later when the foundation for them is laid, or may be more applicable in a plugin.
5
4
  * Fork the project.
data/Gemfile CHANGED
@@ -4,7 +4,9 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- gem 'axiom', '~> 0.1.1', git: 'https://github.com/dkubb/axiom.git', branch: 'master'
7
+ platform :rbx do
8
+ gem 'rubysl-bigdecimal', '~> 2.0.2'
9
+ end
8
10
 
9
11
  group :development, :test do
10
12
  gem 'devtools', git: 'https://github.com/rom-rb/devtools.git'
@@ -4,21 +4,24 @@ group :development do
4
4
  gem 'rake', '~> 10.1.0'
5
5
  gem 'rspec', '~> 2.14.1'
6
6
  gem 'yard', '~> 0.8.7'
7
+
8
+ platform :rbx do
9
+ gem 'rubysl-singleton', '~> 2.0.0'
10
+ end
7
11
  end
8
12
 
9
13
  group :yard do
10
- gem 'kramdown', '~> 1.1.0'
14
+ gem 'kramdown', '~> 1.3.0'
11
15
  end
12
16
 
13
17
  group :guard do
14
- gem 'guard', '~> 1.8.1'
15
- gem 'guard-bundler', '~> 1.0.0'
16
- gem 'guard-rspec', '~> 3.0.2'
17
- gem 'guard-rubocop', '~> 0.2.0'
18
- gem 'guard-mutant', '~> 0.0.1'
18
+ gem 'guard', '~> 2.3.0'
19
+ gem 'guard-bundler', '~> 2.0.0'
20
+ gem 'guard-rspec', '~> 4.2.0'
21
+ gem 'guard-rubocop', '~> 1.0.0'
19
22
 
20
23
  # file system change event handling
21
- gem 'listen', '~> 1.3.0'
24
+ gem 'listen', '~> 2.4.0'
22
25
  gem 'rb-fchange', '~> 0.0.6', require: false
23
26
  gem 'rb-fsevent', '~> 0.9.3', require: false
24
27
  gem 'rb-inotify', '~> 0.9.0', require: false
@@ -30,18 +33,29 @@ group :guard do
30
33
  end
31
34
 
32
35
  group :metrics do
33
- gem 'coveralls', '~> 0.6.7'
36
+ gem 'coveralls', '~> 0.7.0'
34
37
  gem 'flay', '~> 2.4.0'
35
- gem 'flog', '~> 4.1.1'
38
+ gem 'flog', '~> 4.2.0'
36
39
  gem 'reek', '~> 1.3.2'
37
- gem 'rubocop', '~> 0.11.0'
38
- gem 'simplecov', '~> 0.7.1'
39
- gem 'yardstick', '~> 0.9.7', git: 'https://github.com/dkubb/yardstick.git'
40
+ gem 'rubocop', '~> 0.16.0'
41
+ gem 'simplecov', '~> 0.8.2'
42
+ gem 'yardstick', '~> 0.9.9'
43
+
44
+ platforms :mri do
45
+ gem 'mutant', '~> 0.3.4'
46
+ end
40
47
 
41
48
  platforms :ruby_19, :ruby_20 do
42
- gem 'mutant', git: 'https://github.com/mbj/mutant.git'
43
49
  gem 'yard-spellcheck', '~> 0.1.5'
44
50
  end
51
+
52
+ platform :rbx do
53
+ gem 'json', '~> 1.8.1'
54
+ gem 'racc', '~> 1.4'
55
+ gem 'rubysl-logger', '~> 2.0.0'
56
+ gem 'rubysl-open-uri', '~> 2.0.0'
57
+ gem 'rubysl-prettyprint', '~> 2.0.2'
58
+ end
45
59
  end
46
60
 
47
61
  group :benchmarks do
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ # axiom-memory-adapter
2
+
3
+ Use Axiom relations with an in-memory datastore
4
+
1
5
  [![Gem Version](https://badge.fury.io/rb/axiom-memory-adapter.png)][gem]
2
6
  [![Build Status](https://secure.travis-ci.org/dkubb/axiom-memory-adapter.png?branch=master)][travis]
3
7
  [![Dependency Status](https://gemnasium.com/dkubb/axiom-memory-adapter.png)][gemnasium]
@@ -10,13 +14,7 @@
10
14
  [codeclimate]: https://codeclimate.com/github/dkubb/axiom-memory-adapter
11
15
  [coveralls]: https://coveralls.io/r/dkubb/axiom-memory-adapter
12
16
 
13
- axiom-memory-adapter
14
- ====================
15
-
16
- Use Axiom relations with an in-memory datastore
17
-
18
- Examples
19
- --------
17
+ ## Examples
20
18
 
21
19
  ```ruby
22
20
  require 'axiom-memory-adapter'
@@ -60,12 +58,10 @@ customers.count # => 2
60
58
  orders.count # => 4
61
59
  ```
62
60
 
63
- Contributing
64
- -------------
61
+ ## Contributing
65
62
 
66
63
  See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
67
64
 
68
- Copyright
69
- ---------
65
+ ## Copyright
70
66
 
71
67
  Copyright © 2013 Dan Kubb. See LICENSE for details.
@@ -17,8 +17,8 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = `git ls-files -- spec/{unit,integration}`.split($/)
18
18
  gem.extra_rdoc_files = %w[LICENSE README.md CONTRIBUTING.md TODO]
19
19
 
20
- gem.add_runtime_dependency('axiom', '~> 0.1.1')
21
- gem.add_runtime_dependency('thread_safe', '~> 0.1.0')
20
+ gem.add_runtime_dependency('axiom', '~> 0.2.0')
21
+ gem.add_runtime_dependency('thread_safe', '~> 0.1.3')
22
22
 
23
- gem.add_development_dependency('bundler', '~> 1.3', '>= 1.3.5')
23
+ gem.add_development_dependency('bundler', '~> 1.5', '>= 1.5.2')
24
24
  end
@@ -1,10 +1,4 @@
1
- AllCops:
2
- Includes:
3
- - '**/*.rake'
4
- - 'Gemfile'
5
- - 'Gemfile.devtools'
6
- Excludes:
7
- - '**/vendor/**'
1
+ inherit_from: ../.rubocop.yml
8
2
 
9
3
  # Avoid parameter lists longer than five parameters.
10
4
  ParameterLists:
@@ -29,5 +23,37 @@ CollectionMethods:
29
23
  # sections of code and visually separate them. When the keyword is at the same
30
24
  # level I think it sort of blends in with the def keywords and makes it harder
31
25
  # to scan the code and see where the sections are.
32
- AccessControl:
26
+ AccessModifierIndentation:
27
+ Enabled: false
28
+
29
+ # Limit line length
30
+ LineLength:
31
+ Max: 79
32
+
33
+ # Disable documentation checking until a class needs to be documented once
34
+ Documentation:
35
+ Enabled: false
36
+
37
+ # Do not always use &&/|| instead of and/or.
38
+ AndOr:
39
+ Enabled: false
40
+
41
+ # Do not favor modifier if/unless usage when you have a single-line body
42
+ IfUnlessModifier:
43
+ Enabled: false
44
+
45
+ # Allow case equality operator (in limited use within the specs)
46
+ CaseEquality:
47
+ Enabled: false
48
+
49
+ # Constants do not always have to use SCREAMING_SNAKE_CASE
50
+ ConstantName:
51
+ Enabled: false
52
+
53
+ # Not all trivial readers/writers can be defined with attr_* methods
54
+ TrivialAccessors:
55
+ Enabled: false
56
+
57
+ # Allow empty lines around body
58
+ EmptyLinesAroundBody:
33
59
  Enabled: false
@@ -15,7 +15,7 @@ module Axiom
15
15
 
16
16
  # The schema
17
17
  #
18
- # @return [Hash{Symbol => Axiom::Relation::Variable}]
18
+ # @return [Hash{Symbol => Axiom::Relation}]
19
19
  #
20
20
  # @api private
21
21
  attr_reader :schema
@@ -34,7 +34,7 @@ module Axiom
34
34
  # @example without a schema
35
35
  # adapter = Axiom::Adapter::Memory.new
36
36
  #
37
- # @param [Hash{Symbol => Axiom::Relation::Variable}] schema
37
+ # @param [Hash{Symbol => Axiom::Relation}] schema
38
38
  #
39
39
  # @return [undefined]
40
40
  #
@@ -51,12 +51,12 @@ module Axiom
51
51
  #
52
52
  # @param [Symbol] name
53
53
  #
54
- # @return [Axiom::Relation::Variable]
54
+ # @return [Axiom::Relation]
55
55
  #
56
56
  # @api public
57
57
  def [](name)
58
58
  schema.fetch(name) do
59
- raise UnknownRelationError, "the relation named #{name} is unknown"
59
+ fail UnknownRelationError, "the relation named #{name} is unknown"
60
60
  end
61
61
  end
62
62
 
@@ -66,7 +66,7 @@ module Axiom
66
66
  # adapter[:users] = users_relation
67
67
  #
68
68
  # @param [Symbol] name
69
- # @param [Axiom::Relation::Materialized] relation
69
+ # @param [Axiom::Relation] relation
70
70
  #
71
71
  # @return [undefined]
72
72
  #
@@ -5,7 +5,7 @@ module Axiom
5
5
  class Memory
6
6
 
7
7
  # Gem version
8
- VERSION = '0.0.3'.freeze
8
+ VERSION = '0.2.0'.freeze
9
9
 
10
10
  end # Memory
11
11
  end # Adapter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: axiom-memory-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Kubb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-02 00:00:00.000000000 Z
11
+ date: 2014-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: axiom
@@ -16,48 +16,48 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.1
19
+ version: 0.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.1
26
+ version: 0.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thread_safe
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.0
33
+ version: 0.1.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.0
40
+ version: 0.1.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '1.3'
47
+ version: '1.5'
48
48
  - - '>='
49
49
  - !ruby/object:Gem::Version
50
- version: 1.3.5
50
+ version: 1.5.2
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - ~>
56
56
  - !ruby/object:Gem::Version
57
- version: '1.3'
57
+ version: '1.5'
58
58
  - - '>='
59
59
  - !ruby/object:Gem::Version
60
- version: 1.3.5
60
+ version: 1.5.2
61
61
  description: Use Axiom relations with an in-memory datastore
62
62
  email: dan.kubb@gmail.com
63
63
  executables: []
@@ -70,6 +70,7 @@ extra_rdoc_files:
70
70
  files:
71
71
  - .gitignore
72
72
  - .rspec
73
+ - .rubocop.yml
73
74
  - .ruby-gemset
74
75
  - .travis.yml
75
76
  - .yardopts
@@ -120,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
121
  version: '0'
121
122
  requirements: []
122
123
  rubyforge_project:
123
- rubygems_version: 2.0.3
124
+ rubygems_version: 2.1.11
124
125
  signing_key:
125
126
  specification_version: 4
126
127
  summary: Axiom Memory adapter
@@ -131,3 +132,4 @@ test_files:
131
132
  - spec/unit/axiom/adapter/memory/element_writer_spec.rb
132
133
  - spec/unit/axiom/relation/variable/materialized/update_spec.rb
133
134
  - spec/unit/axiom/relation/variable/update_spec.rb
135
+ has_rdoc: