moneta 0.7.16 → 0.7.17

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: f0fbb029ab09dd2b73f2b41c9019956b0dee395e
4
+ data.tar.gz: 7f5c47a13a9957dc1508b2b95d4aee866809c8b9
5
+ SHA512:
6
+ metadata.gz: 4fa4a788c787c8750b824c28229757abf3f7cbedabea7e117108bdce6b0f4d540c7f5a61c51b4bfd2195d92c06b43d390695bac8a41192434ae65fb62b0b3984
7
+ data.tar.gz: 2b3a44cb243a4e82764727461cec52597b3a0d71be81fd637042bbebcc6efc810502a0d8328bb13e0ab78293dab56d3eb10fdb738ae6c246f067f94ad2650c27
data/.gitignore CHANGED
@@ -8,3 +8,4 @@ spec/tmp
8
8
  .#*
9
9
  script/benchmarks.tmp
10
10
  Gemfile.lock
11
+ logs
data/CHANGES CHANGED
@@ -1,3 +1,10 @@
1
+ master
2
+
3
+ 0.7.16
4
+
5
+ * Better builder validation
6
+ * Adapters::Sequel: check for correct exceptions
7
+
1
8
  0.7.15
2
9
 
3
10
  * CONTRIBUTORS file added
@@ -1,21 +1,22 @@
1
1
  Adrian Madrid <aemadrid@gmail.com>
2
2
  Alejandro Crosa <acrosa@sharing.local>
3
3
  Anthony Eden <anthonyeden@gmail.com>
4
+ Hendrik Beskow <hendrik-github@beskow.de>
4
5
  Benjamin Yu <benjaminlyu@gmail.com>
5
6
  Ben Schwarz <ben.schwarz@gmail.com>
6
7
  Daniel Mendler <mail@daniel-mendler.de>
7
8
  Derek Kastner <dkastner@gmail.com>
8
9
  Dylan Egan <me@dylanegan.com>
9
10
  Hampton Catlin <hcatlin@gmail.com>
10
- Hannes Georg <hannes.georg@xing.com>
11
+ Hannes Georg <hannes.georg@googlemail.com>
11
12
  Scott Wadden <scott.wadden@gmail.com>
12
13
  Jari Bakken <jari.bakken@gmail.com>
13
14
  Jeremy Voorhis <jvoorhis@gmail.com>
14
15
  Jon Crosby <jon@joncrosby.me>
15
16
  lakshan <lakshan@web2media.net>
17
+ Piotr Murach <pmurach@gmail.com>
16
18
  Potapov Sergey <blake131313@gmail.com>
17
19
  Quin Hoxie <quin@aboutus.org>
18
20
  Tom Meier <ozmeier@yahoo.co.uk>
19
21
  Xavier Shay <xavier@rhnh.net>
20
22
  Yehuda Katz <wycats@gmail.com>
21
-
data/Gemfile CHANGED
@@ -21,6 +21,7 @@ gem 'bert', :platforms => :ruby
21
21
  if RUBY_VERSION < '2.0'
22
22
  gem 'bzip2-ruby', :platforms => :mri # Only on mri currently
23
23
  end
24
+ gem 'lz4-ruby', :platforms => :ruby
24
25
  gem 'ruby-lzma', :platforms => :ruby
25
26
  gem 'lzoruby', :platforms => :ruby
26
27
  gem 'snappy', :platforms => :ruby
@@ -32,12 +33,12 @@ gem 'daybreak'
32
33
  gem 'dm-core'
33
34
  gem 'dm-migrations'
34
35
  gem 'dm-mysql-adapter'
35
- gem 'fog'
36
+ # FIXME: Use fog master because of failing tests, fixed after 1.11.1
37
+ gem 'fog', :github => 'fog/fog'
36
38
  gem 'activerecord', '>= 3.2.11'
37
39
  gem 'redis'
38
40
  gem 'mongo'
39
- # Use sequel master because of deprecation warnings
40
- gem 'sequel', :github => 'jeremyevans/sequel'
41
+ gem 'sequel'
41
42
  gem 'dalli'
42
43
  gem 'riak-client'
43
44
  gem 'cassandra'
@@ -71,4 +72,4 @@ gem 'rack-cache'
71
72
 
72
73
  # Rails integration testing
73
74
  gem 'actionpack', '>= 3.2.11'
74
- gem 'minitest'
75
+ gem 'minitest', '~> 4.7.4'
data/README.md CHANGED
@@ -249,6 +249,7 @@ Supported serializers:
249
249
 
250
250
  Supported value compressors:
251
251
 
252
+ * LZ4 (`:lz4`)
252
253
  * LZMA (`:lzma`)
253
254
  * LZO (`:lzo`)
254
255
  * Snappy (`:snappy`)
@@ -1,4 +1,5 @@
1
1
  require 'pstore'
2
+ require 'fileutils'
2
3
 
3
4
  module Moneta
4
5
  module Adapters
@@ -13,6 +13,7 @@ module Moneta
13
13
  :tnet => [ :serialize, '::TNetstring.parse(%s).first', '::TNetstring.dump(%s)', 'tnetstring' ],
14
14
  :yaml => [ :serialize, '::YAML.load(%s)', '::YAML.dump(%s)', 'yaml' ],
15
15
  :bzip2 => [ :compress, '::Bzip2.uncompress(%s)', '::Bzip2.compress(%s)', 'bzip2' ],
16
+ :lz4 => [ :compress, '::LZ4.uncompress(%s)', '::LZ4.compress(%s)', 'lz4-ruby' ],
16
17
  :lzma => [ :compress, '::LZMA.decompress(%s)', '::LZMA.compress(%s)', 'lzma' ],
17
18
  :lzo => [ :compress, '::LZO.decompress(%s)', '::LZO.compress(%s)', 'lzoruby' ],
18
19
  :snappy => [ :compress, '::Snappy.inflate(%s)', '::Snappy.deflate(%s)', 'snappy' ],
@@ -1,5 +1,5 @@
1
1
  module Moneta
2
2
  # Moneta version number
3
3
  # @api public
4
- VERSION = '0.7.16'
4
+ VERSION = '0.7.17'
5
5
  end
@@ -14,6 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
15
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
16
  s.homepage = 'http://github.com/minad/moneta'
17
- s.require_paths = ['lib']
17
+ s.licenses = %w(MIT)
18
+ s.require_paths = %w(lib)
18
19
  s.summary = %{A unified interface to key/value stores, including Redis, Memcached, TokyoCabinet, ActiveRecord and many more}
19
20
  end
@@ -695,6 +695,19 @@ end},
695
695
  it 'compile transformer class' do
696
696
  store.should_not be_nil
697
697
  Moneta::Transformer::LzoValue.should_not be_nil
698
+ end}
699
+ },
700
+ 'transformer_lz4' => {
701
+ :build => %{Moneta.build do
702
+ use :Transformer, :value => :lz4
703
+ adapter :Memory
704
+ end},
705
+ :specs => TRANSFORMER_SPECS.stringvalues_only,
706
+ :load_value => '::LZ4.uncompress(value)',
707
+ :tests => %{
708
+ it 'compile transformer class' do
709
+ store.should_not be_nil
710
+ Moneta::Transformer::Lz4Value.should_not be_nil
698
711
  end}
699
712
  },
700
713
  'transformer_lzma' => {
@@ -0,0 +1,13 @@
1
+ #! /usr/bin/env ruby
2
+ require 'travis'
3
+ require 'cgi'
4
+ require 'fileutils'
5
+ FileUtils.mkpath('logs')
6
+ `git remote -v | grep origin | head -n1` =~ /github\.com:(.*?)\.git/
7
+ repo = Travis::Repository.find($1)
8
+ repo.last_build.jobs.each do |j|
9
+ c = j.config
10
+ id = "logs/#{j.allow_failures? ? 'allowed-' : ''}#{j.state}-#{c['rvm']}-#{CGI.escape c['env']}"
11
+ puts "Downloading #{j.id}"
12
+ File.open(id, 'w') {|f| f.write(j.log.body) }
13
+ end
@@ -0,0 +1,48 @@
1
+ # Generated by generate-specs
2
+ require 'helper'
3
+
4
+ describe_moneta "transformer_lz4" do
5
+ def features
6
+ [:create, :increment]
7
+ end
8
+
9
+ def new_store
10
+ Moneta.build do
11
+ use :Transformer, :value => :lz4
12
+ adapter :Memory
13
+ end
14
+ end
15
+
16
+ def load_value(value)
17
+ ::LZ4.uncompress(value)
18
+ end
19
+
20
+ include_context 'setup_store'
21
+ it_should_behave_like 'create'
22
+ it_should_behave_like 'features'
23
+ it_should_behave_like 'increment'
24
+ it_should_behave_like 'null_objectkey_stringvalue'
25
+ it_should_behave_like 'null_stringkey_stringvalue'
26
+ it_should_behave_like 'null_hashkey_stringvalue'
27
+ it_should_behave_like 'null_booleankey_stringvalue'
28
+ it_should_behave_like 'null_nilkey_stringvalue'
29
+ it_should_behave_like 'null_integerkey_stringvalue'
30
+ it_should_behave_like 'returndifferent_objectkey_stringvalue'
31
+ it_should_behave_like 'returndifferent_stringkey_stringvalue'
32
+ it_should_behave_like 'returndifferent_hashkey_stringvalue'
33
+ it_should_behave_like 'returndifferent_booleankey_stringvalue'
34
+ it_should_behave_like 'returndifferent_nilkey_stringvalue'
35
+ it_should_behave_like 'returndifferent_integerkey_stringvalue'
36
+ it_should_behave_like 'store_objectkey_stringvalue'
37
+ it_should_behave_like 'store_stringkey_stringvalue'
38
+ it_should_behave_like 'store_hashkey_stringvalue'
39
+ it_should_behave_like 'store_booleankey_stringvalue'
40
+ it_should_behave_like 'store_nilkey_stringvalue'
41
+ it_should_behave_like 'store_integerkey_stringvalue'
42
+ it_should_behave_like 'store_large'
43
+ it_should_behave_like 'transform_value'
44
+ it 'compile transformer class' do
45
+ store.should_not be_nil
46
+ Moneta::Transformer::Lz4Value.should_not be_nil
47
+ end
48
+ end
metadata CHANGED
@@ -1,39 +1,29 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: moneta
3
- version: !ruby/object:Gem::Version
4
- hash: 35
5
- prerelease:
6
- segments:
7
- - 0
8
- - 7
9
- - 16
10
- version: 0.7.16
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.17
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Daniel Mendler
14
8
  - Yehuda Katz
15
9
  - Hannes Georg
16
10
  autorequire:
17
11
  bindir: bin
18
12
  cert_chain: []
19
-
20
- date: 2013-05-23 00:00:00 Z
13
+ date: 2013-06-10 00:00:00.000000000 Z
21
14
  dependencies: []
22
-
23
15
  description: A unified interface to key/value stores
24
- email:
16
+ email:
25
17
  - mail@daniel-mendler.de
26
18
  - wycats@gmail.com
27
19
  - hannes.georg@googlemail.com
28
20
  executables: []
29
-
30
21
  extensions: []
31
-
32
- extra_rdoc_files:
22
+ extra_rdoc_files:
33
23
  - README.md
34
24
  - SPEC.md
35
25
  - LICENSE
36
- files:
26
+ files:
37
27
  - .gitignore
38
28
  - .travis.yml
39
29
  - .yardopts
@@ -113,6 +103,7 @@ files:
113
103
  - script/kill-travis
114
104
  - script/memusage
115
105
  - script/start-services
106
+ - script/travis-logs
116
107
  - script/upload-bundle
117
108
  - spec/action_dispatch/fixtures/session_autoload_test/foo.rb
118
109
  - spec/action_dispatch/session_moneta_store_spec.rb
@@ -250,6 +241,7 @@ files:
250
241
  - spec/moneta/transformer_key_marshal_spec.rb
251
242
  - spec/moneta/transformer_key_to_s_spec.rb
252
243
  - spec/moneta/transformer_key_yaml_spec.rb
244
+ - spec/moneta/transformer_lz4_spec.rb
253
245
  - spec/moneta/transformer_lzma_spec.rb
254
246
  - spec/moneta/transformer_lzo_spec.rb
255
247
  - spec/moneta/transformer_marshal_base64_spec.rb
@@ -284,39 +276,31 @@ files:
284
276
  - spec/rack/moneta_store_spec.rb
285
277
  - spec/rack/session_moneta_spec.rb
286
278
  homepage: http://github.com/minad/moneta
287
- licenses: []
288
-
279
+ licenses:
280
+ - MIT
281
+ metadata: {}
289
282
  post_install_message:
290
283
  rdoc_options: []
291
-
292
- require_paths:
284
+ require_paths:
293
285
  - lib
294
- required_ruby_version: !ruby/object:Gem::Requirement
295
- none: false
296
- requirements:
297
- - - ">="
298
- - !ruby/object:Gem::Version
299
- hash: 3
300
- segments:
301
- - 0
302
- version: "0"
303
- required_rubygems_version: !ruby/object:Gem::Requirement
304
- none: false
305
- requirements:
306
- - - ">="
307
- - !ruby/object:Gem::Version
308
- hash: 3
309
- segments:
310
- - 0
311
- version: "0"
286
+ required_ruby_version: !ruby/object:Gem::Requirement
287
+ requirements:
288
+ - - '>='
289
+ - !ruby/object:Gem::Version
290
+ version: '0'
291
+ required_rubygems_version: !ruby/object:Gem::Requirement
292
+ requirements:
293
+ - - '>='
294
+ - !ruby/object:Gem::Version
295
+ version: '0'
312
296
  requirements: []
313
-
314
297
  rubyforge_project:
315
- rubygems_version: 1.8.24
298
+ rubygems_version: 2.0.0
316
299
  signing_key:
317
- specification_version: 3
318
- summary: A unified interface to key/value stores, including Redis, Memcached, TokyoCabinet, ActiveRecord and many more
319
- test_files:
300
+ specification_version: 4
301
+ summary: A unified interface to key/value stores, including Redis, Memcached, TokyoCabinet,
302
+ ActiveRecord and many more
303
+ test_files:
320
304
  - spec/action_dispatch/fixtures/session_autoload_test/foo.rb
321
305
  - spec/action_dispatch/session_moneta_store_spec.rb
322
306
  - spec/active_support/cache_moneta_store_spec.rb
@@ -453,6 +437,7 @@ test_files:
453
437
  - spec/moneta/transformer_key_marshal_spec.rb
454
438
  - spec/moneta/transformer_key_to_s_spec.rb
455
439
  - spec/moneta/transformer_key_yaml_spec.rb
440
+ - spec/moneta/transformer_lz4_spec.rb
456
441
  - spec/moneta/transformer_lzma_spec.rb
457
442
  - spec/moneta/transformer_lzo_spec.rb
458
443
  - spec/moneta/transformer_marshal_base64_spec.rb