riak-shim 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YzQxODU3YzQzMjJhOGQ0MTA1MDVlMzA5ZGU0M2U0MThmOTE3NmNhMA==
5
- data.tar.gz: !binary |-
6
- MWEzZjYyMjlkZjI0ZjE4YWUzYTM3YjhlN2QyMDJiNzY4YmViZDZhMA==
2
+ SHA1:
3
+ metadata.gz: d32ed4518295b0d1a6ea7a62e4eb459a96995b67
4
+ data.tar.gz: f033328bfc5c2d3fcd912c277fdf515484123b96
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YzAwOWMyMWU0YTgyYTg1ZGIwNDFhYWI1N2Y0NWQ2ODA0ZTdkZjVkMzNiYjEz
10
- NGM4YWUxNzNiMWJhNjU4YTUyYTQ4OTcxMGUxZGU3ZGQzNWQyMTc3NGJkYTMz
11
- Y2FiNzFhZjMwYzFlMDU5MDEwY2IwM2U3OWQ2ZTU3YThmYzNjOTA=
12
- data.tar.gz: !binary |-
13
- M2UxMzhmNWEzYjdhNjU2N2YxMWFmNDYwODA1NmQyODk5ZmVmMWQ2ZGYzNjFm
14
- MjRjZWZiNjE1ZGI0NTM3ZTc1NzZmNWU5MmZmMmUzOTE4MDQwNDVkYzBlYTYw
15
- Yzk5MjcwMmE0Y2VkZWE2NWZkNmI5ZjM0Y2Q2YTBmZGU0NWNlOGM=
6
+ metadata.gz: bb6f8735188113c1a61751e2951a46ea307c3a925e54175f3192fd1222e411c6146642f624346496fed0fb829d31d9f3fa1b53b2ab4c36a5a889dc3cc4a2bc66
7
+ data.tar.gz: f21093019e40a409e0182ba6af24c78f40111e57ba8560ad7651b3492c8a92769a23ae412c4238cde4eefc1df6331986142f07810865a6efcc503966ba45bcc9
data/.gitignore CHANGED
@@ -13,3 +13,4 @@ vendor/bundle
13
13
  .yardoc
14
14
  _yardoc
15
15
  doc/
16
+ .vagrant
@@ -1,12 +1,20 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.2
4
- - 1.9.3
3
+ - 2.1
5
4
  - 2.0.0
5
+ - 1.9.3
6
+ - 1.9.2
7
+ - rbx-2
8
+ - rbx-2.1.1
9
+ - rbx-2.0.0
6
10
  - jruby-19mode
7
- - rbx-19mode
8
11
  gemfile: Gemfile.ci
12
+ before_install:
13
+ - 'echo ''gem: --no-ri --no-rdoc'' > ~/.gemrc'
9
14
  script: bundle exec rake travis
10
15
  services: riak
11
-
12
-
16
+ matrix:
17
+ fast_finish: true
18
+ allow_failures:
19
+ - rvm: rbx-2.1.1
20
+ - rvm: rbx-2.0.0
@@ -1,27 +1,20 @@
1
1
  ## The future - mkb
2
2
 
3
- Riak-shim will follow [semantic versioning](http://semver.org) as best I can
3
+ Riak-shim follows [semantic versioning](http://semver.org) as best I can
4
4
  manage.
5
5
 
6
- My plan is to keep tweaking riak-shim to suit my own needs for two internal
7
- projects I am working on. The first of those goes into production shortly,
8
- so I am declaring a 1.0 release. From here on out, minor version releases
9
- might introduce new functionality, but won't break what is already here.
6
+ After plenty of production use, riak-shim hasn't needed much beyond
7
+ gem bumps. The project will be pretty stable for the forseeable
8
+ future.
10
9
 
11
- For the past few weeks riak-shim has been fairly stable and hasn't needed
12
- significant changes. I am hopeful that we can avoid incompatable updates for
13
- a while.
10
+ # TODOS
14
11
 
15
- The area most likely to change is the handling of secondary indexes since I am
16
- unhappy with the current interface.
17
-
18
- ## TODOS
19
-
20
- - Examples directory
21
- - Keep working on docs
22
- - Keep expanding tests
12
+ - Ongoing updates for Ruby and gem versions
13
+ - Alternative to database.yml for config to avoid collisions with AR
14
+ - Improve docs
15
+ - Integrate with coveralls.io
16
+ - Check forks for changes to incorporate
23
17
  - find less horrible way to deal with index names
24
18
  - find less horrible way to deal with key accessor
25
19
  - nice error message when back end doesn't support 2i
26
20
  - nice error message when secondary index is missing?
27
-
data/Gemfile.ci CHANGED
@@ -4,3 +4,9 @@ gemspec
4
4
  platforms :jruby do
5
5
  gem 'jruby-openssl'
6
6
  end
7
+
8
+ platforms :rbx do
9
+ gem 'rubysl', '~> 2.0'
10
+ gem "rubysl-bundler", "~> 2.0"
11
+ gem 'psych'
12
+ end
data/LICENSE CHANGED
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Riak Shim
2
2
 
3
- A teeny shim between your code and the riak-client gem. Reads database
4
- configuration out of config/database.yml and derives bucket names from your
5
- class names and an appropriate prefix.
3
+ A tiny shim between you and riak-client. Reads database config and handles a
4
+ little plumbing for marshalling and unmarshalling your models.
6
5
 
7
6
  Riak is a database from the good people at Basho. Check it out:
8
7
  http://basho.com/products/riak-overview/
@@ -21,7 +20,7 @@ And then execute:
21
20
 
22
21
  $ bundle
23
22
 
24
- Or install it yourself as:
23
+ Or install directly with:
25
24
 
26
25
  $ gem install riak-shim
27
26
 
@@ -108,13 +107,5 @@ Return value is an Array of instances of your class matching the query.
108
107
 
109
108
  ## Contributing
110
109
 
111
- For a look at what work is needed (at least according to me), see
112
- [FUTURE_WORK.md](https://github.com/mkb/riak-shim/blob/master/FUTURE_WORK.md)
113
-
114
- 1. Fork it
115
- 2. Create your feature branch (`git checkout -b my-new-feature`)
116
- 3. Commit your changes (`git commit -am 'Added some feature'`)
117
- 4. Push to the branch (`git push origin my-new-feature`)
118
- 5. Create new Pull Request
119
-
120
-
110
+ Pull requests are very welcome! If you have trouble with your contribution
111
+ go ahed and open a pull request and I'll be happy to work with you.
@@ -0,0 +1,14 @@
1
+
2
+ ENV["VAGRANT_DEFAULT_PROVIDER"] = "docker"
3
+
4
+ Vagrant.configure("2") do |config|
5
+ config.vm.define "riak" do |app|
6
+ app.vm.provider "docker" do |d|
7
+ d.image = "lapax/riak"
8
+ d.name = "riak"
9
+ d.ports << "8087:8087"
10
+ d.ports << "8098:8098"
11
+ d.ports << "8069:8069"
12
+ end
13
+ end
14
+ end
@@ -1,5 +1,5 @@
1
1
  module Riak
2
2
  module Shim
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -15,9 +15,9 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Riak::Shim::VERSION
17
17
 
18
- gem.add_dependency 'riak-client', '~>1.4.2'
19
- gem.add_dependency 'excon', '~>0.29.0'
20
- gem.add_dependency 'uuidtools', '~>2.1.4'
18
+ gem.add_dependency 'riak-client', '~>1.4.4'
19
+ gem.add_dependency 'excon', '~>0.33.0'
20
+ gem.add_dependency 'uuidtools'
21
21
  gem.add_dependency 'json'
22
22
  gem.add_development_dependency 'rake'
23
23
  gem.add_development_dependency 'rspec'
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riak-shim
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Brodhead, Shai Rosenfeld, and Larry Diehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-19 00:00:00.000000000 Z
11
+ date: 2014-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: riak-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.2
19
+ version: 1.4.4
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: 1.4.2
26
+ version: 1.4.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: excon
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.29.0
33
+ version: 0.33.0
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.29.0
40
+ version: 0.33.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: uuidtools
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 2.1.4
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 2.1.4
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: json
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: gem-release
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: awesome_print
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ! '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ! '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  description: Riak shim for bucket naming and config.
@@ -129,8 +129,8 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
- - .gitignore
133
- - .travis.yml
132
+ - ".gitignore"
133
+ - ".travis.yml"
134
134
  - FUTURE_WORK.md
135
135
  - Gemfile
136
136
  - Gemfile.ci
@@ -139,6 +139,7 @@ files:
139
139
  - LICENSE
140
140
  - README.md
141
141
  - Rakefile
142
+ - Vagrantfile
142
143
  - lib/riak-shim.rb
143
144
  - lib/riak-shim/persistable.rb
144
145
  - lib/riak-shim/secondary_index_query.rb
@@ -159,17 +160,17 @@ require_paths:
159
160
  - lib
160
161
  required_ruby_version: !ruby/object:Gem::Requirement
161
162
  requirements:
162
- - - ! '>='
163
+ - - ">="
163
164
  - !ruby/object:Gem::Version
164
165
  version: '0'
165
166
  required_rubygems_version: !ruby/object:Gem::Requirement
166
167
  requirements:
167
- - - ! '>='
168
+ - - ">="
168
169
  - !ruby/object:Gem::Version
169
170
  version: '0'
170
171
  requirements: []
171
172
  rubyforge_project:
172
- rubygems_version: 2.1.11
173
+ rubygems_version: 2.2.2
173
174
  signing_key:
174
175
  specification_version: 4
175
176
  summary: A tiny shim between you and riak-client. Reads config/database.yml and generates