oj-pstore 0.0.2 → 0.0.3

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
- SHA1:
3
- metadata.gz: 2ae69d1e88086797ba1ed8e5d343e3a32d67d305
4
- data.tar.gz: 18ce4d169b36abdd033514b771b0753dde8ca2f9
2
+ SHA256:
3
+ metadata.gz: 259be089b510ae49af0def9ed027c86dee736be25b87d5cb4a35d6d2ce0f4a2c
4
+ data.tar.gz: 641e5b5e4602f016a45d749975d4f6b794c70505bb1df407ac7bd0291e6e0903
5
5
  SHA512:
6
- metadata.gz: 9c8f5f0843c396f5c70fec9f6ecf9a48f96b3fb28408e11663eb2b95d43941c673a2591be5e9aff5e155b941eb8ee37aba4a490390b140ee59d3479ac0c59a59
7
- data.tar.gz: 37d6a78e3d7e89c814c64c6b0c06bbe26aa9bc514ca68a57bd27778770b5dd1ef56c1fcf8394ae0a9a5d137c81e53c9408b3398ae75006efaf0b1e39eddd6281
6
+ metadata.gz: aa1649fd8446f1f39296bf8e64cdd4075ce474c906ceab12a9d61d23df5fb593c08b8ba83a1dd93f5f998ed83f415a6e471b8ebd6b43a2ce143b0cc2fac3f8f2
7
+ data.tar.gz: ac8b820b6edb8d8cf22c324572d7c7bc46e62a57492aa35c57c5efc8621f520207c6df55c493c01903f7757f28bc70ed73338c3942f657d1bed588dfe30861f9
data/.gitignore CHANGED
@@ -1,5 +1,2 @@
1
- .DS_Store
2
- *.old
3
- *.lock
4
- local/
1
+ *.locked
5
2
  tmp/
data/gems.rb ADDED
@@ -0,0 +1 @@
1
+ source('https://rubygems.org'){ gemspec }
data/lib/oj/store.rb CHANGED
@@ -1,13 +1,14 @@
1
1
  require 'pstore'
2
2
  require 'oj'
3
3
 
4
- class Oj::Store < ::PStore
4
+ class Oj::Store < PStore
5
+ VERSION = '0.0.3'.freeze
5
6
 
6
7
  attr_reader :obtions
7
8
 
8
- def initialize(file_name, options= {})
9
+ def initialize(file_name, options = {})
9
10
  super(file_name, options.fetch(:thread_safe, false))
10
- @options= options
11
+ @options = options
11
12
  end
12
13
 
13
14
  def dump(obj)
@@ -34,7 +35,4 @@ class Oj::Store < ::PStore
34
35
 
35
36
  EMPTY_MARSHAL_DATA = Oj.dump({}).freeze
36
37
  EMPTY_MARSHAL_CHECKSUM = Digest::MD5.digest(EMPTY_MARSHAL_DATA)
37
-
38
- autoload(:VERSION, File.expand_path('../store/version', __FILE__))
39
-
40
38
  end
data/oj-pstore.gemspec CHANGED
@@ -1,23 +1,32 @@
1
- require File.expand_path('../lib/oj/store/version', __FILE__)
1
+ require_relative 'lib/oj/store'
2
+
3
+ GemSpec = Gem::Specification.new do |spec|
4
+ spec.name = 'oj-pstore'
5
+ spec.version = Oj::Store::VERSION
6
+ spec.summary = 'PStore based on fast JSON parser/marshaller Oj.'
7
+ spec.description =
8
+ 'This gem implements a PStore alternative using the very fast Oj gem.'
9
+ spec.author = 'Mike Blumtritt'
10
+ spec.email = 'mike.blumtritt@invision.de'
11
+ spec.homepage = 'https://github.com/mblumtritt/oj-pstore'
12
+ spec.metadata = {
13
+ 'issue_tracker' => 'https://github.com/mblumtritt/tcp-client/issues'
14
+ }
15
+ spec.rubyforge_project = spec.name
2
16
 
3
- GemSpec= Gem::Specification.new do |spec|
4
- spec.required_rubygems_version= Gem::Requirement.new('>= 1.3.6')
5
- spec.name= 'oj-pstore'
6
- spec.version= Oj::Store::VERSION
7
- spec.date= Time.now.strftime('%Y-%m-%d')
8
- spec.authors= ['Mike Blumtritt']
9
- # spec.email= ''
10
- spec.summary= 'PStore based on fast JSON parser/marshaller Oj.'
11
- spec.description= 'This gem implements a PStore alternative using the very fast Oj gem.'
12
- spec.homepage= 'https://github.com/mblumtritt/oj-pstore'
13
- spec.platform= Gem::Platform::RUBY
14
- spec.required_ruby_version= '>= 1.9.3'
15
17
  spec.add_dependency 'oj'
16
18
  spec.add_development_dependency 'minitest'
17
- spec.has_rdoc= false # TODO: we need a RDOC!
18
- spec.extra_rdoc_files= ['README.md']
19
- spec.require_paths = ['lib']
20
- spec.files = `git ls-files`.split("\n")
21
- spec.test_files = `git ls-files -- spec/*`.split("\n")
22
- spec.rubyforge_project= spec.name
19
+ spec.add_development_dependency 'rake'
20
+
21
+ spec.platform = Gem::Platform::RUBY
22
+ spec.required_ruby_version = '>= 2.0.0'
23
+ spec.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
24
+
25
+ spec.require_paths = %w[lib]
26
+
27
+ all_files = %x(git ls-files -z).split(0.chr)
28
+ spec.test_files = all_files.grep(%r{^(spec|test)/})
29
+ spec.files = all_files - spec.test_files
30
+
31
+ spec.extra_rdoc_files = %w[README.md]
23
32
  end
data/rakefile.rb ADDED
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rake/clean'
4
+ require 'rake/testtask'
5
+ require 'bundler/gem_tasks'
6
+
7
+ STDOUT.sync = STDERR.sync = true
8
+
9
+ CLOBBER << 'prj'
10
+
11
+ Rake::TestTask.new(:test) do |t|
12
+ t.ruby_opts = %w[-w]
13
+ t.verbose = true
14
+ t.test_files = FileList['test/**/*_test.rb']
15
+ end
16
+
17
+ task :default do
18
+ exec("#{$PROGRAM_NAME} --tasks")
19
+ end
@@ -145,6 +145,5 @@ class OjStoreTest < Minitest::Test
145
145
  assert_equal s.name, @store[:sample].name
146
146
  assert_equal s.number, @store[:sample].number
147
147
  end
148
-
149
148
  end
150
149
  end
metadata CHANGED
@@ -1,78 +1,93 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oj-pstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Blumtritt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-06 00:00:00.000000000 Z
11
+ date: 2018-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '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
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  description: This gem implements a PStore alternative using the very fast Oj gem.
42
- email:
56
+ email: mike.blumtritt@invision.de
43
57
  executables: []
44
58
  extensions: []
45
59
  extra_rdoc_files:
46
60
  - README.md
47
61
  files:
48
- - .gitignore
49
- - Gemfile
62
+ - ".gitignore"
50
63
  - README.md
64
+ - gems.rb
51
65
  - lib/oj/store.rb
52
- - lib/oj/store/version.rb
53
66
  - oj-pstore.gemspec
54
- - test/test_oj_store.rb
67
+ - rakefile.rb
68
+ - test/oj_store_test.rb
55
69
  homepage: https://github.com/mblumtritt/oj-pstore
56
70
  licenses: []
57
- metadata: {}
71
+ metadata:
72
+ issue_tracker: https://github.com/mblumtritt/tcp-client/issues
58
73
  post_install_message:
59
74
  rdoc_options: []
60
75
  require_paths:
61
76
  - lib
62
77
  required_ruby_version: !ruby/object:Gem::Requirement
63
78
  requirements:
64
- - - '>='
79
+ - - ">="
65
80
  - !ruby/object:Gem::Version
66
- version: 1.9.3
81
+ version: 2.0.0
67
82
  required_rubygems_version: !ruby/object:Gem::Requirement
68
83
  requirements:
69
- - - '>='
84
+ - - ">="
70
85
  - !ruby/object:Gem::Version
71
86
  version: 1.3.6
72
87
  requirements: []
73
- rubyforge_project: oj-pstore
74
- rubygems_version: 2.0.14
88
+ rubygems_version: 3.0.1
75
89
  signing_key:
76
90
  specification_version: 4
77
91
  summary: PStore based on fast JSON parser/marshaller Oj.
78
- test_files: []
92
+ test_files:
93
+ - test/oj_store_test.rb
data/Gemfile DELETED
@@ -1,2 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
@@ -1,5 +0,0 @@
1
- module Oj
2
- class Store
3
- VERSION= '0.0.2'
4
- end
5
- end