exedb 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/lib/exedb/version.rb +1 -1
  3. data/lib/exedb.rb +6 -5
  4. metadata +11 -18
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5372419cdccd2512e7cce207d8a2f5b776154827
4
+ data.tar.gz: 6666d7b9cb0c9024fd98bf705b574a9057e3c262
5
+ SHA512:
6
+ metadata.gz: 926ad8b21503f804fa0103ae086cbf0f462cc042bac75d2de27085ced49b6d7a967436bb5ce030dce57e2c681d07ca056da116c66786ce61c168f4d014a9c33a
7
+ data.tar.gz: aed6a928cb676ad836e8075f288480aa1b887983d882e35ca7391026a6efccb07da1cefc610642ca05170cf9278f8a7964c55cf5637eab43cea0a64e3883b8d2
data/lib/exedb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Exedb
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/exedb.rb CHANGED
@@ -10,12 +10,12 @@ class Exedb
10
10
  attr_accessor :cache_timeout, :cache_dir
11
11
  attr_reader :update_time
12
12
 
13
- def initialize(str=nil)
13
+ def initialize(str='')
14
14
  @update_time=Time.parse("1970-01-01")
15
15
  @cache_timeout=DEF_CACHE_TIMEOUT
16
16
  @cache_dir=DEF_DIR
17
17
  Dir.mkdir DEF_DIR unless File.directory? DEF_DIR
18
- update_method=str
18
+ self.update_method=(str)
19
19
  end
20
20
 
21
21
  def generate_key u
@@ -38,10 +38,11 @@ class Exedb
38
38
  @content
39
39
  end
40
40
 
41
- def update_method= str
41
+ def update_method=(str)
42
42
  @update_method=str
43
43
  @key=generate_key str
44
- @path=File.join DEF_DIR, @key
44
+ @path=File.join(DEF_DIR, @key)
45
+ # warn "key=#{@key}; path=#{@path}; u=#{str}"
45
46
  end
46
47
 
47
48
  def read_cache
@@ -98,4 +99,4 @@ class Exedb
98
99
  end
99
100
  return false
100
101
  end
101
- end
102
+ end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exedb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Sergey Zhumatiy
@@ -14,33 +13,29 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.5'
22
20
  type: :development
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
29
26
  version: '1.5'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
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
45
40
  version: '0'
46
41
  description: Database-like interface to execute long tasks. With caching.
@@ -50,7 +45,7 @@ executables: []
50
45
  extensions: []
51
46
  extra_rdoc_files: []
52
47
  files:
53
- - .gitignore
48
+ - ".gitignore"
54
49
  - Gemfile
55
50
  - LICENSE.txt
56
51
  - README.md
@@ -62,28 +57,26 @@ files:
62
57
  homepage: ''
63
58
  licenses:
64
59
  - MIT
60
+ metadata: {}
65
61
  post_install_message:
66
62
  rdoc_options: []
67
63
  require_paths:
68
64
  - lib
69
65
  required_ruby_version: !ruby/object:Gem::Requirement
70
- none: false
71
66
  requirements:
72
- - - ! '>='
67
+ - - ">="
73
68
  - !ruby/object:Gem::Version
74
69
  version: '0'
75
70
  required_rubygems_version: !ruby/object:Gem::Requirement
76
- none: false
77
71
  requirements:
78
- - - ! '>='
72
+ - - ">="
79
73
  - !ruby/object:Gem::Version
80
74
  version: '0'
81
75
  requirements: []
82
76
  rubyforge_project:
83
- rubygems_version: 1.8.23
77
+ rubygems_version: 2.2.0
84
78
  signing_key:
85
- specification_version: 3
79
+ specification_version: 4
86
80
  summary: Quazi-database for executables.
87
81
  test_files:
88
82
  - spec/exedb_spec.rb
89
- has_rdoc: