rufus-cloche 0.1.20 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +5 -0
- data/CREDITS.txt +2 -1
- data/LICENSE.txt +1 -1
- data/Rakefile +45 -39
- data/lib/rufus/cloche/version.rb +36 -0
- data/lib/rufus/cloche.rb +4 -9
- data/rufus-cloche.gemspec +26 -55
- data/test/test.rb +10 -1
- metadata +35 -23
data/CHANGELOG.txt
CHANGED
data/CREDITS.txt
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
Copyright (c) 2009-
|
2
|
+
Copyright (c) 2009-2011, John Mettraux, jmettraux@gmail.com
|
3
3
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
data/Rakefile
CHANGED
@@ -1,78 +1,84 @@
|
|
1
1
|
|
2
2
|
require 'rubygems'
|
3
|
-
require '
|
4
|
-
|
3
|
+
require 'rubygems/user_interaction' if Gem::RubyGemsVersion == '1.5.0'
|
5
4
|
|
6
|
-
|
5
|
+
require 'rake'
|
6
|
+
require 'rake/clean'
|
7
|
+
require 'rake/rdoctask'
|
7
8
|
|
8
9
|
|
9
10
|
#
|
10
|
-
#
|
11
|
+
# clean
|
11
12
|
|
12
|
-
|
13
|
-
CLEAN.include('pkg', 'tmp', 'html')
|
14
|
-
task :default => [ :clean ]
|
13
|
+
CLEAN.include('pkg', 'rdoc', 'cloche', 'bm_cloche', 'tcloche')
|
15
14
|
|
16
15
|
|
17
16
|
#
|
18
|
-
#
|
17
|
+
# test / spec
|
18
|
+
|
19
|
+
task :test do
|
19
20
|
|
20
|
-
|
21
|
+
sh 'ruby -I. test/test.rb'
|
22
|
+
end
|
21
23
|
|
22
|
-
|
24
|
+
task :default => :test
|
23
25
|
|
24
|
-
gem.version = Rufus::Cloche::VERSION
|
25
|
-
gem.name = 'rufus-cloche'
|
26
|
-
gem.summary = 'a very stupid JSON hash store'
|
27
|
-
gem.description = %{
|
28
|
-
A very stupid JSON hash store.
|
29
26
|
|
30
|
-
|
27
|
+
#
|
28
|
+
# gem
|
31
29
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
gem.homepage = 'http://github.com/jmettraux/rufus-cloche/'
|
36
|
-
gem.authors = [ 'John Mettraux' ]
|
37
|
-
gem.rubyforge_project = 'rufus'
|
30
|
+
GEMSPEC_FILE = Dir['*.gemspec'].first
|
31
|
+
GEMSPEC = eval(File.read(GEMSPEC_FILE))
|
32
|
+
GEMSPEC.validate
|
38
33
|
|
39
|
-
gem.test_file = 'test/test.rb'
|
40
34
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
gem.add_development_dependency 'jeweler'
|
35
|
+
desc %{
|
36
|
+
builds the gem and places it in pkg/
|
37
|
+
}
|
38
|
+
task :build do
|
46
39
|
|
47
|
-
|
40
|
+
sh "gem build #{GEMSPEC_FILE}"
|
41
|
+
sh "mkdir pkg" rescue nil
|
42
|
+
sh "mv #{GEMSPEC.name}-#{GEMSPEC.version}.gem pkg/"
|
48
43
|
end
|
49
|
-
Jeweler::GemcutterTasks.new
|
50
44
|
|
45
|
+
desc %{
|
46
|
+
builds the gem and pushes it to rubygems.org
|
47
|
+
}
|
48
|
+
task :push => :build do
|
51
49
|
|
52
|
-
|
53
|
-
|
50
|
+
sh "gem push pkg/#{GEMSPEC.name}-#{GEMSPEC.version}.gem"
|
51
|
+
end
|
54
52
|
|
55
53
|
|
56
54
|
#
|
57
|
-
#
|
55
|
+
# rdoc
|
58
56
|
#
|
59
|
-
|
57
|
+
# make sure to have rdoc 2.5.x to run that
|
58
|
+
|
60
59
|
Rake::RDocTask.new do |rd|
|
60
|
+
|
61
61
|
rd.main = 'README.rdoc'
|
62
|
-
rd.rdoc_dir =
|
63
|
-
|
64
|
-
rd.
|
62
|
+
rd.rdoc_dir = "rdoc/#{GEMSPEC.name}"
|
63
|
+
|
64
|
+
rd.rdoc_files.include(
|
65
|
+
'README.rdoc', 'CHANGELOG.txt', 'CREDITS.txt', 'lib/**/*.rb')
|
66
|
+
|
67
|
+
rd.title = "#{GEMSPEC.name} #{GEMSPEC.version}"
|
65
68
|
end
|
66
69
|
|
67
70
|
|
68
71
|
#
|
69
|
-
#
|
72
|
+
# upload_rdoc
|
70
73
|
|
74
|
+
desc %{
|
75
|
+
upload the rdoc to rubyforge
|
76
|
+
}
|
71
77
|
task :upload_rdoc => [ :clean, :rdoc ] do
|
72
78
|
|
73
79
|
account = 'jmettraux@rubyforge.org'
|
74
80
|
webdir = '/var/www/gforge-projects/rufus'
|
75
81
|
|
76
|
-
sh "rsync -azv -e ssh rdoc
|
82
|
+
sh "rsync -azv -e ssh rdoc/#{GEMSPEC.name} #{account}:#{webdir}/"
|
77
83
|
end
|
78
84
|
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2009-2011, John Mettraux, jmettraux@gmail.com
|
3
|
+
#
|
4
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
# of this software and associated documentation files (the "Software"), to deal
|
6
|
+
# in the Software without restriction, including without limitation the rights
|
7
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
# copies of the Software, and to permit persons to whom the Software is
|
9
|
+
# furnished to do so, subject to the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be included in
|
12
|
+
# all copies or substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
20
|
+
# THE SOFTWARE.
|
21
|
+
#
|
22
|
+
# Made in Japan.
|
23
|
+
#++
|
24
|
+
|
25
|
+
|
26
|
+
module Rufus
|
27
|
+
|
28
|
+
#
|
29
|
+
# Just for the version.
|
30
|
+
#
|
31
|
+
class Cloche
|
32
|
+
|
33
|
+
VERSION = '0.1.21'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
data/lib/rufus/cloche.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2009-
|
2
|
+
# Copyright (c) 2009-2011, John Mettraux, jmettraux@gmail.com
|
3
3
|
#
|
4
4
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
5
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -25,14 +25,11 @@
|
|
25
25
|
require 'thread'
|
26
26
|
require 'fileutils'
|
27
27
|
|
28
|
-
|
29
|
-
require 'yajl'
|
30
|
-
rescue LoadError
|
31
|
-
require 'json'
|
32
|
-
end
|
33
|
-
require 'rufus/json'
|
28
|
+
require 'rufus-json'
|
34
29
|
Rufus::Json.detect_backend
|
35
30
|
|
31
|
+
require 'rufus/cloche/version'
|
32
|
+
|
36
33
|
|
37
34
|
module Rufus
|
38
35
|
|
@@ -43,8 +40,6 @@ module Rufus
|
|
43
40
|
#
|
44
41
|
class Cloche
|
45
42
|
|
46
|
-
VERSION = '0.1.20'
|
47
|
-
|
48
43
|
WIN = (RUBY_PLATFORM.match(/mswin|mingw/) != nil)
|
49
44
|
|
50
45
|
attr_reader :dir
|
data/rufus-cloche.gemspec
CHANGED
@@ -1,15 +1,21 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
load 'lib/rufus/cloche/version.rb'
|
4
|
+
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{rufus-cloche}
|
8
|
-
s.version = "0.1.20"
|
9
7
|
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
8
|
+
s.name = 'rufus-cloche'
|
9
|
+
s.version = Rufus::Cloche::VERSION
|
10
|
+
s.platform = Gem::Platform::RUBY
|
11
|
+
s.authors = [ 'John Mettraux' ]
|
12
|
+
s.email = [ 'jmettraux@gmail.com' ]
|
13
|
+
s.homepage = 'http://ruote.rubyforge.org'
|
14
|
+
s.rubyforge_project = 'rufus'
|
15
|
+
s.summary = 'an open source Ruby workflow engine'
|
16
|
+
s.description = %{
|
17
|
+
A very stupid JSON hash store.
|
18
|
+
}
|
13
19
|
s.description = %q{
|
14
20
|
A very stupid JSON hash store.
|
15
21
|
|
@@ -17,54 +23,19 @@ It's built on top of yajl-ruby and File.lock. Defaults to 'json' (or 'json_pure'
|
|
17
23
|
|
18
24
|
Strives to be process-safe and thread-safe.
|
19
25
|
}
|
20
|
-
|
21
|
-
s.
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
"CHANGELOG.txt",
|
27
|
-
"CREDITS.txt",
|
28
|
-
"LICENSE.txt",
|
29
|
-
"README.rdoc",
|
30
|
-
"Rakefile",
|
31
|
-
"TODO.txt",
|
32
|
-
"lib/rufus-cloche.rb",
|
33
|
-
"lib/rufus/cloche.rb",
|
34
|
-
"rufus-cloche.gemspec",
|
35
|
-
"test/bm/bm0.rb",
|
36
|
-
"test/conc/put_vs_delete.rb",
|
37
|
-
"test/ct_worker.rb",
|
38
|
-
"test/ct_writer.rb",
|
39
|
-
"test/test.rb"
|
40
|
-
]
|
41
|
-
s.homepage = %q{http://github.com/jmettraux/rufus-cloche/}
|
42
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
43
|
-
s.require_paths = ["lib"]
|
44
|
-
s.rubyforge_project = %q{rufus}
|
45
|
-
s.rubygems_version = %q{1.3.6}
|
46
|
-
s.summary = %q{a very stupid JSON hash store}
|
47
|
-
s.test_files = [
|
48
|
-
"test/test.rb"
|
26
|
+
|
27
|
+
#s.files = `git ls-files`.split("\n")
|
28
|
+
s.files = Dir[
|
29
|
+
'Rakefile',
|
30
|
+
'lib/**/*.rb', 'spec/**/*.rb', 'test/**/*.rb',
|
31
|
+
'*.gemspec', '*.txt', '*.rdoc', '*.md'
|
49
32
|
]
|
50
33
|
|
51
|
-
|
52
|
-
|
53
|
-
|
34
|
+
s.add_runtime_dependency 'rufus-json', '>= 0.2.5'
|
35
|
+
|
36
|
+
s.add_development_dependency 'rake'
|
37
|
+
s.add_development_dependency 'json'
|
54
38
|
|
55
|
-
|
56
|
-
s.add_runtime_dependency(%q<rufus-json>, [">= 0.2.5"])
|
57
|
-
s.add_development_dependency(%q<rake>, [">= 0"])
|
58
|
-
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
59
|
-
else
|
60
|
-
s.add_dependency(%q<rufus-json>, [">= 0.2.5"])
|
61
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
62
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
63
|
-
end
|
64
|
-
else
|
65
|
-
s.add_dependency(%q<rufus-json>, [">= 0.2.5"])
|
66
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
67
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
68
|
-
end
|
39
|
+
s.require_path = 'lib'
|
69
40
|
end
|
70
41
|
|
data/test/test.rb
CHANGED
@@ -7,10 +7,19 @@
|
|
7
7
|
|
8
8
|
require 'rubygems'
|
9
9
|
|
10
|
+
begin
|
11
|
+
require 'yajl'
|
12
|
+
rescue
|
13
|
+
require 'json'
|
14
|
+
end
|
15
|
+
|
10
16
|
ROOT = File.join(File.dirname(__FILE__), '..')
|
11
17
|
|
12
18
|
require 'test/unit'
|
13
|
-
|
19
|
+
|
20
|
+
$:.unshift(File.join(ROOT, 'lib'))
|
21
|
+
|
22
|
+
require 'rufus/cloche'
|
14
23
|
|
15
24
|
|
16
25
|
class ClocheTest < Test::Unit::TestCase
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rufus-cloche
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 49
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
9
|
+
- 21
|
10
|
+
version: 0.1.21
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- John Mettraux
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2011-04-19 00:00:00 +09:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: rufus-json
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 29
|
27
30
|
segments:
|
28
31
|
- 0
|
29
32
|
- 2
|
@@ -35,21 +38,25 @@ dependencies:
|
|
35
38
|
name: rake
|
36
39
|
prerelease: false
|
37
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
38
42
|
requirements:
|
39
43
|
- - ">="
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
41
46
|
segments:
|
42
47
|
- 0
|
43
48
|
version: "0"
|
44
49
|
type: :development
|
45
50
|
version_requirements: *id002
|
46
51
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
52
|
+
name: json
|
48
53
|
prerelease: false
|
49
54
|
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
50
56
|
requirements:
|
51
57
|
- - ">="
|
52
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
53
60
|
segments:
|
54
61
|
- 0
|
55
62
|
version: "0"
|
@@ -59,58 +66,63 @@ description: "\n\
|
|
59
66
|
A very stupid JSON hash store.\n\n\
|
60
67
|
It's built on top of yajl-ruby and File.lock. Defaults to 'json' (or 'json_pure') if yajl-ruby is not present (it's probably just a \"gem install yajl-ruby\" away.\n\n\
|
61
68
|
Strives to be process-safe and thread-safe.\n "
|
62
|
-
email:
|
69
|
+
email:
|
70
|
+
- jmettraux@gmail.com
|
63
71
|
executables: []
|
64
72
|
|
65
73
|
extensions: []
|
66
74
|
|
67
|
-
extra_rdoc_files:
|
68
|
-
|
69
|
-
- README.rdoc
|
75
|
+
extra_rdoc_files: []
|
76
|
+
|
70
77
|
files:
|
71
|
-
- CHANGELOG.txt
|
72
|
-
- CREDITS.txt
|
73
|
-
- LICENSE.txt
|
74
|
-
- README.rdoc
|
75
78
|
- Rakefile
|
76
|
-
-
|
77
|
-
- lib/rufus-cloche.rb
|
79
|
+
- lib/rufus/cloche/version.rb
|
78
80
|
- lib/rufus/cloche.rb
|
79
|
-
- rufus-cloche.
|
81
|
+
- lib/rufus-cloche.rb
|
80
82
|
- test/bm/bm0.rb
|
81
83
|
- test/conc/put_vs_delete.rb
|
82
84
|
- test/ct_worker.rb
|
83
85
|
- test/ct_writer.rb
|
84
86
|
- test/test.rb
|
87
|
+
- rufus-cloche.gemspec
|
88
|
+
- CHANGELOG.txt
|
89
|
+
- CREDITS.txt
|
90
|
+
- LICENSE.txt
|
91
|
+
- TODO.txt
|
92
|
+
- README.rdoc
|
85
93
|
has_rdoc: true
|
86
|
-
homepage: http://
|
94
|
+
homepage: http://ruote.rubyforge.org
|
87
95
|
licenses: []
|
88
96
|
|
89
97
|
post_install_message:
|
90
|
-
rdoc_options:
|
91
|
-
|
98
|
+
rdoc_options: []
|
99
|
+
|
92
100
|
require_paths:
|
93
101
|
- lib
|
94
102
|
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
95
104
|
requirements:
|
96
105
|
- - ">="
|
97
106
|
- !ruby/object:Gem::Version
|
107
|
+
hash: 3
|
98
108
|
segments:
|
99
109
|
- 0
|
100
110
|
version: "0"
|
101
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
102
113
|
requirements:
|
103
114
|
- - ">="
|
104
115
|
- !ruby/object:Gem::Version
|
116
|
+
hash: 3
|
105
117
|
segments:
|
106
118
|
- 0
|
107
119
|
version: "0"
|
108
120
|
requirements: []
|
109
121
|
|
110
122
|
rubyforge_project: rufus
|
111
|
-
rubygems_version: 1.
|
123
|
+
rubygems_version: 1.5.0
|
112
124
|
signing_key:
|
113
125
|
specification_version: 3
|
114
|
-
summary:
|
115
|
-
test_files:
|
116
|
-
|
126
|
+
summary: an open source Ruby workflow engine
|
127
|
+
test_files: []
|
128
|
+
|