familia 0.7.1 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +36 -0
- data/{README.rdoc → README.md} +8 -13
- data/VERSION.yml +2 -2
- data/familia.gemspec +17 -68
- data/lib/familia/object.rb +59 -59
- data/lib/familia/redisobject.rb +188 -185
- data/try/21_redis_object_zset_try.rb +3 -3
- metadata +87 -83
- data/Rakefile +0 -68
@@ -9,11 +9,11 @@ require 'familia/test_helpers'
|
|
9
9
|
@a.metrics.add 0, :metric0
|
10
10
|
@a.metrics.add 1, :metric1
|
11
11
|
@a.metrics.add 3, :metric3
|
12
|
-
|
12
|
+
##=> true
|
13
13
|
|
14
14
|
## Familia::SortedSet#members
|
15
15
|
@a.metrics.members
|
16
|
-
|
16
|
+
##=> ['metric0', 'metric1', 'metric2', 'metric3', 'metric4']
|
17
17
|
|
18
18
|
## Familia::SortedSet#members
|
19
19
|
@a.metrics.revmembers
|
@@ -63,4 +63,4 @@ require 'familia/test_helpers'
|
|
63
63
|
@a.metrics.members
|
64
64
|
#=> ['metric2']
|
65
65
|
|
66
|
-
@a.metrics.clear
|
66
|
+
@a.metrics.clear
|
metadata
CHANGED
@@ -1,87 +1,97 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: familia
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.7.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.1
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- Delano Mandelbaum
|
9
8
|
autorequire:
|
10
|
-
bindir:
|
9
|
+
bindir: exe
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2024-04-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
17
14
|
name: redis
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version: 2.1.0
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.1.0
|
25
20
|
type: :runtime
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: uri-redis
|
29
21
|
prerelease: false
|
30
|
-
|
31
|
-
|
32
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 5.1.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: uri-redis
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
33
31
|
- - ">="
|
34
|
-
- !ruby/object:Gem::Version
|
32
|
+
- !ruby/object:Gem::Version
|
35
33
|
version: 0.4.2
|
36
34
|
type: :runtime
|
37
|
-
version_requirements: *id002
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: gibbler
|
40
35
|
prerelease: false
|
41
|
-
|
42
|
-
|
43
|
-
requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
44
38
|
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 0.
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.4.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: gibbler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.0.0
|
47
48
|
type: :runtime
|
48
|
-
version_requirements: *id003
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: storable
|
51
49
|
prerelease: false
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.0.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: storable
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.10.0
|
58
62
|
type: :runtime
|
59
|
-
version_requirements: *id004
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: multi_json
|
62
63
|
prerelease: false
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.10.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: multi_json
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.15'
|
69
76
|
type: :runtime
|
70
|
-
|
71
|
-
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.15'
|
83
|
+
description: 'Familia: Organize and store ruby objects in Redis'
|
72
84
|
email: delano@solutious.com
|
73
85
|
executables: []
|
74
|
-
|
75
86
|
extensions: []
|
76
|
-
|
77
|
-
|
78
|
-
-
|
79
|
-
- README.rdoc
|
80
|
-
files:
|
87
|
+
extra_rdoc_files: []
|
88
|
+
files:
|
89
|
+
- ".gitignore"
|
81
90
|
- CHANGES.txt
|
91
|
+
- Gemfile
|
92
|
+
- Gemfile.lock
|
82
93
|
- LICENSE.txt
|
83
|
-
- README.
|
84
|
-
- Rakefile
|
94
|
+
- README.md
|
85
95
|
- VERSION.yml
|
86
96
|
- familia.gemspec
|
87
97
|
- lib/familia.rb
|
@@ -100,33 +110,27 @@ files:
|
|
100
110
|
- try/24_redis_object_string_try.rb
|
101
111
|
- try/25_redis_object_hash_try.rb
|
102
112
|
- try/30_familia_object_try.rb
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
113
|
+
homepage: https://github.com/delano/familia
|
114
|
+
licenses:
|
115
|
+
- MIT
|
116
|
+
metadata: {}
|
107
117
|
post_install_message:
|
108
|
-
rdoc_options:
|
109
|
-
|
110
|
-
require_paths:
|
118
|
+
rdoc_options: []
|
119
|
+
require_paths:
|
111
120
|
- lib
|
112
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
113
|
-
|
114
|
-
requirements:
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
115
123
|
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version:
|
118
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
-
|
120
|
-
requirements:
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 2.6.8
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
121
128
|
- - ">="
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
version:
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
124
131
|
requirements: []
|
125
|
-
|
126
|
-
rubyforge_project: familia
|
127
|
-
rubygems_version: 1.5.2
|
132
|
+
rubygems_version: 3.2.3
|
128
133
|
signing_key:
|
129
|
-
specification_version:
|
134
|
+
specification_version: 4
|
130
135
|
summary: Organize and store ruby objects in Redis
|
131
136
|
test_files: []
|
132
|
-
|
data/Rakefile
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
require "rubygems"
|
2
|
-
require "rake"
|
3
|
-
require "rake/clean"
|
4
|
-
require 'yaml'
|
5
|
-
|
6
|
-
begin
|
7
|
-
require 'hanna/rdoctask'
|
8
|
-
rescue LoadError
|
9
|
-
require 'rake/rdoctask'
|
10
|
-
end
|
11
|
-
|
12
|
-
config = YAML.load_file("VERSION.yml")
|
13
|
-
task :default => ["build"]
|
14
|
-
CLEAN.include [ 'pkg', 'doc' ]
|
15
|
-
name = "familia"
|
16
|
-
|
17
|
-
begin
|
18
|
-
require "jeweler"
|
19
|
-
Jeweler::Tasks.new do |gem|
|
20
|
-
gem.version = "#{config[:MAJOR]}.#{config[:MINOR]}.#{config[:PATCH]}"
|
21
|
-
gem.name = name
|
22
|
-
gem.rubyforge_project = gem.name
|
23
|
-
gem.summary = "Organize and store ruby objects in Redis"
|
24
|
-
gem.description = gem.summary
|
25
|
-
gem.email = "delano@solutious.com"
|
26
|
-
gem.homepage = "http://github.com/delano/familia"
|
27
|
-
gem.authors = ["Delano Mandelbaum"]
|
28
|
-
gem.add_dependency("redis", ">= 2.1.0")
|
29
|
-
gem.add_dependency("uri-redis", ">= 0.4.2")
|
30
|
-
gem.add_dependency("gibbler", ">= 0.8.6")
|
31
|
-
gem.add_dependency("storable", ">= 0.8.6")
|
32
|
-
gem.add_dependency("multi_json", ">= 0.0.5")
|
33
|
-
end
|
34
|
-
Jeweler::GemcutterTasks.new
|
35
|
-
rescue LoadError
|
36
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
37
|
-
end
|
38
|
-
|
39
|
-
|
40
|
-
Rake::RDocTask.new do |rdoc|
|
41
|
-
version = "#{config[:MAJOR]}.#{config[:MINOR]}.#{config[:PATCH]}"
|
42
|
-
rdoc.rdoc_dir = "doc"
|
43
|
-
rdoc.title = "#{name} #{version}"
|
44
|
-
rdoc.rdoc_files.include("README*")
|
45
|
-
rdoc.rdoc_files.include("LICENSE.txt")
|
46
|
-
rdoc.rdoc_files.include("bin/*.rb")
|
47
|
-
rdoc.rdoc_files.include("lib/**/*.rb")
|
48
|
-
end
|
49
|
-
|
50
|
-
|
51
|
-
# Rubyforge Release / Publish Tasks ==================================
|
52
|
-
|
53
|
-
#about 'Publish website to rubyforge'
|
54
|
-
task 'publish:rdoc' => 'doc/index.html' do
|
55
|
-
#sh "scp -rp doc/* rubyforge.org:/var/www/gforge-projects/#{name}/"
|
56
|
-
end
|
57
|
-
|
58
|
-
#about 'Public release to rubyforge'
|
59
|
-
task 'publish:gem' => [:package] do |t|
|
60
|
-
sh <<-end
|
61
|
-
rubyforge add_release -o Any -a CHANGES.txt -f -n README.md #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.gem &&
|
62
|
-
rubyforge add_file -o Any -a CHANGES.txt -f -n README.md #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.tgz
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|