cerealize 0.8.7 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ pkg
2
+ doc
3
+ slide
data/CHANGES CHANGED
@@ -1,5 +1,13 @@
1
1
  = cerealize changes history
2
2
 
3
+ == cerealize 0.9.0 -- 2011-04-28
4
+
5
+ * changed class_inheritable_accessor to superclass_delegating_accessor.
6
+ Because the behaviour of superclass_delegating_accessor is more
7
+ predictable, it won't be suffering from class load order issue as
8
+ superclass_delegating_accessor would be. This might fix some weird
9
+ missing cerealize option problem.
10
+
3
11
  == cerealize 0.8.7 -- 2010-10-20
4
12
 
5
13
  * Added a special encoding: "text". The purpose of this encoding is to
data/README CHANGED
@@ -1,4 +1,4 @@
1
- = cerealize 0.8.7
1
+ = cerealize
2
2
  by Cardinal Blue ( http://cardinalblue.com )
3
3
 
4
4
  == LINKS:
@@ -21,7 +21,7 @@ by Cardinal Blue ( http://cardinalblue.com )
21
21
  3. JSON (planned)
22
22
 
23
23
  Current supported ORM:
24
- 1. ActiveRecord (tested with 2.3.10)
24
+ 1. ActiveRecord (tested with 2.3.11)
25
25
  2. DataMapper (planned)
26
26
 
27
27
  == SYNOPSIS:
@@ -1,4 +1,4 @@
1
- = cerealize 0.8.7
1
+ = cerealize
2
2
  by Cardinal Blue ( http://cardinalblue.com )
3
3
 
4
4
  == LINKS:
@@ -21,7 +21,7 @@ by Cardinal Blue ( http://cardinalblue.com )
21
21
  3. JSON (planned)
22
22
 
23
23
  Current supported ORM:
24
- 1. ActiveRecord (tested with 2.3.10)
24
+ 1. ActiveRecord (tested with 2.3.11)
25
25
  2. DataMapper (planned)
26
26
 
27
27
  == SYNOPSIS:
data/Rakefile CHANGED
@@ -1,39 +1,26 @@
1
1
  # encoding: utf-8
2
2
 
3
- begin
4
- require 'bones'
5
- rescue LoadError
6
- abort '### Please install the "bones" gem ###'
7
- end
8
-
9
- ensure_in_path 'lib'
10
- proj = 'cerealize'
11
- require "#{proj}/version"
12
-
13
- Bones{
14
- ruby_opts [''] # silence warning for now
3
+ require "#{dir = File.dirname(__FILE__)}/task/gemgem"
4
+ Gemgem.dir = dir
15
5
 
16
- version Cerealize::VERSION
6
+ ($LOAD_PATH << File.expand_path("#{Gemgem.dir}/lib" )).uniq!
17
7
 
18
- depend_on 'activerecord', :version => '<3'
19
- # depend_on 'activerecord', :development => true, :version => '>=2.3.5'
20
- depend_on 'sqlite3-ruby', :development => true
8
+ desc 'Generate gemspec'
9
+ task 'gem:spec' do
10
+ Gemgem.spec = Gemgem.create do |s|
11
+ require 'cerealize/version'
12
+ s.name = 'cerealize'
13
+ s.version = Cerealize::VERSION
14
+ # s.executables = [s.name]
21
15
 
22
- name proj
23
- url "http://github.com/cardinalblue/#{proj}"
24
- authors ['Cardinal Blue', 'Lin Jen-Shin (aka godfat 真常)', 'Jaime Cham']
25
- email 'dev (XD) cardinalblue.com'
16
+ %w[activerecord].each{ |g| s.add_runtime_dependency(g, '<3') }
17
+ %w[sqlite3 ].each{ |g| s.add_development_dependency(g) }
26
18
 
27
- history_file 'CHANGES'
28
- readme_file 'README'
29
- ignore_file '.gitignore'
30
- rdoc.include ['\w+']
31
- rdoc.exclude ['test', 'doc', 'Rakefile', 'slide']
32
- }
19
+ s.authors = ['Cardinal Blue', 'Lin Jen-Shin (godfat)', 'Jaime Cham']
20
+ s.email = ['dev (XD) cardinalblue.com']
33
21
 
34
- CLEAN.include Dir['**/*.rbc']
22
+ s.files.reject!{ |p| p.start_with?('slide/') }
23
+ end
35
24
 
36
- task :default do
37
- Rake.application.options.show_task_pattern = /./
38
- Rake.application.display_tasks_and_comments
25
+ Gemgem.write
39
26
  end
@@ -1,139 +1,36 @@
1
- --- !ruby/object:Gem::Specification
2
- name: cerealize
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 8
8
- - 7
9
- version: 0.8.7
10
- platform: ruby
11
- authors:
12
- - Cardinal Blue
13
- - "Lin Jen-Shin (aka godfat \xE7\x9C\x9F\xE5\xB8\xB8)"
14
- - Jaime Cham
15
- autorequire:
16
- bindir: bin
17
- cert_chain: []
1
+ # -*- encoding: utf-8 -*-
18
2
 
19
- date: 2010-10-20 00:00:00 +08:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
23
- name: activerecord
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - <
29
- - !ruby/object:Gem::Version
30
- segments:
31
- - 3
32
- version: "3"
33
- type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: sqlite3-ruby
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 1
45
- - 3
46
- - 1
47
- version: 1.3.1
48
- type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: bones
52
- prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 3
60
- - 5
61
- - 0
62
- version: 3.5.0
63
- type: :development
64
- version_requirements: *id003
65
- description: " Serialize out of the Cerealize Box\n - a drop-in replacement for ActiveRecord's serialize\n\n It can auto transcode old encoding (yaml if you're using AR's serialize),\n to new encoding (marshal, json, you name it) without any migration.\n\n Current supported encoding:\n 1. YAML\n 2. Marshal\n 3. JSON (planned)\n\n Current supported ORM:\n 1. ActiveRecord (tested with 2.3.10)\n 2. DataMapper (planned)"
66
- email: dev (XD) cardinalblue.com
67
- executables: []
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{cerealize}
5
+ s.version = "0.9.0"
68
6
 
69
- extensions: []
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Cardinal Blue", "Lin Jen-Shin (godfat)", "Jaime Cham"]
9
+ s.date = %q{2011-04-28}
10
+ s.description = %q{Serialize out of the Cerealize Box - a drop-in replacement for ActiveRecord's serialize}
11
+ s.email = ["dev (XD) cardinalblue.com"]
12
+ s.extra_rdoc_files = ["CHANGES", "LICENSE", "TODO"]
13
+ s.files = [".gitignore", "CHANGES", "LICENSE", "README", "README.rdoc", "Rakefile", "TODO", "bench/simple.png", "bench/simple.rb", "cerealize.gemspec", "init.rb", "lib/cerealize.rb", "lib/cerealize/attr_hash.rb", "lib/cerealize/codec/marshal.rb", "lib/cerealize/codec/text.rb", "lib/cerealize/codec/yaml.rb", "lib/cerealize/version.rb", "task/gemgem.rb", "test/common.rb", "test/real.rb", "test/stub.rb", "test/test_all_codec.rb", "test/test_attr_hash.rb", "test/test_basic.rb", "test/test_transcode.rb"]
14
+ s.homepage = %q{http://github.com/godfat/}
15
+ s.rdoc_options = ["--main", "README"]
16
+ s.require_paths = ["lib"]
17
+ s.rubygems_version = %q{1.3.7}
18
+ s.summary = %q{Serialize out of the Cerealize Box - a drop-in replacement for ActiveRecord's serialize}
19
+ s.test_files = ["test/test_all_codec.rb", "test/test_attr_hash.rb", "test/test_basic.rb", "test/test_transcode.rb"]
70
20
 
71
- extra_rdoc_files:
72
- - CHANGES
73
- - LICENSE
74
- - README
75
- - TODO
76
- - bench/simple.png
77
- - cerealize.gemspec
78
- files:
79
- - CHANGES
80
- - LICENSE
81
- - README
82
- - README.rdoc
83
- - Rakefile
84
- - TODO
85
- - bench/simple.png
86
- - bench/simple.rb
87
- - cerealize.gemspec
88
- - init.rb
89
- - lib/cerealize.rb
90
- - lib/cerealize/attr_hash.rb
91
- - lib/cerealize/codec/marshal.rb
92
- - lib/cerealize/codec/text.rb
93
- - lib/cerealize/codec/yaml.rb
94
- - lib/cerealize/version.rb
95
- - test/common.rb
96
- - test/real.rb
97
- - test/stub.rb
98
- - test/test_all_codec.rb
99
- - test/test_attr_hash.rb
100
- - test/test_basic.rb
101
- - test/test_transcode.rb
102
- has_rdoc: true
103
- homepage: http://github.com/cardinalblue/cerealize
104
- licenses: []
21
+ if s.respond_to? :specification_version then
22
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
+ s.specification_version = 3
105
24
 
106
- post_install_message:
107
- rdoc_options:
108
- - --main
109
- - README
110
- require_paths:
111
- - lib
112
- required_ruby_version: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- segments:
118
- - 0
119
- version: "0"
120
- required_rubygems_version: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- segments:
126
- - 0
127
- version: "0"
128
- requirements: []
129
-
130
- rubyforge_project: cerealize
131
- rubygems_version: 1.3.7
132
- signing_key:
133
- specification_version: 3
134
- summary: Serialize out of the Cerealize Box - a drop-in replacement for ActiveRecord's serialize It can auto transcode old encoding (yaml if you're using AR's serialize), to new encoding (marshal, json, you name it) without any migration
135
- test_files:
136
- - test/test_all_codec.rb
137
- - test/test_attr_hash.rb
138
- - test/test_basic.rb
139
- - test/test_transcode.rb
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
+ s.add_runtime_dependency(%q<activerecord>, ["< 3"])
27
+ s.add_development_dependency(%q<sqlite3>, [">= 0"])
28
+ else
29
+ s.add_dependency(%q<activerecord>, ["< 3"])
30
+ s.add_dependency(%q<sqlite3>, [">= 0"])
31
+ end
32
+ else
33
+ s.add_dependency(%q<activerecord>, ["< 3"])
34
+ s.add_dependency(%q<sqlite3>, [">= 0"])
35
+ end
36
+ end
@@ -25,7 +25,7 @@ module Cerealize
25
25
  def self.included(base)
26
26
  base.send( :extend, ClassMethods)
27
27
  base.send(:include, InstanceMethods)
28
- base.class_inheritable_accessor :cerealize_option
28
+ base.superclass_delegating_accessor :cerealize_option
29
29
  base.cerealize_option = {}
30
30
  end
31
31
 
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Cerealize
3
- VERSION = '0.8.7'
3
+ VERSION = '0.9.0'
4
4
  end
@@ -0,0 +1,155 @@
1
+
2
+ require 'pathname'
3
+
4
+ module Gemgem
5
+ class << self
6
+ attr_accessor :dir, :spec
7
+ end
8
+
9
+ module_function
10
+ def create
11
+ yield(spec = Gem::Specification.new{ |s|
12
+ s.authors = ['Lin Jen-Shin (godfat)']
13
+ s.email = ['godfat (XD) godfat.org']
14
+ s.homepage = "http://github.com/godfat/#{s.name}"
15
+
16
+ s.summary = File.read("#{Gemgem.dir}/README").
17
+ match(/DESCRIPTION:\n\n(.+?)\n\n/m)[1]
18
+ s.description = s.summary
19
+
20
+ s.extra_rdoc_files = %w[CHANGES LICENSE TODO]
21
+ s.rdoc_options = %w[--main README]
22
+ s.rubygems_version = Gem::VERSION
23
+ s.date = Time.now.strftime('%Y-%m-%d')
24
+ s.files = gem_files
25
+ s.test_files = gem_files.grep(%r{^test/(.+?/)*test_.+?\.rb$})
26
+ s.require_paths = %w[lib]
27
+ })
28
+ spec
29
+ end
30
+
31
+ def gem_tag
32
+ "#{spec.name}-#{spec.version}"
33
+ end
34
+
35
+ def write
36
+ File.open("#{dir}/#{spec.name}.gemspec", 'w'){ |f| f << spec.to_ruby }
37
+ end
38
+
39
+ def all_files
40
+ @all_files ||= find_files(Pathname.new(dir)).map{ |file|
41
+ if file.to_s =~ %r{\.git/}
42
+ nil
43
+ else
44
+ file.to_s
45
+ end
46
+ }.compact.sort
47
+ end
48
+
49
+ def gem_files
50
+ @gem_files ||= all_files - ignored_files
51
+ end
52
+
53
+ def ignored_files
54
+ @ignored_file ||= all_files.select{ |path| ignore_patterns.find{ |ignore|
55
+ path =~ ignore && !git_files.include?(path)}}
56
+ end
57
+
58
+ def git_files
59
+ @git_files ||= if File.exist?("#{dir}/.git")
60
+ `git ls-files`.split("\n")
61
+ else
62
+ []
63
+ end
64
+ end
65
+
66
+ # protected
67
+ def find_files path
68
+ path.children.select(&:file?).map{|file| file.to_s[(dir.size+1)..-1]} +
69
+ path.children.select(&:directory?).map{|dir| find_files(dir)}.flatten
70
+ end
71
+
72
+ def ignore_patterns
73
+ @ignore_files ||= expand_patterns(
74
+ File.read("#{dir}/.gitignore").split("\n").reject{ |pattern|
75
+ pattern.strip == ''
76
+ }).map{ |pattern| %r{^([^/]+/)*?#{Regexp.escape(pattern)}(/[^/]+)*?$} }
77
+ end
78
+
79
+ def expand_patterns pathes
80
+ pathes.map{ |path|
81
+ if path !~ /\*/
82
+ path
83
+ else
84
+ expand_patterns(
85
+ Dir[path] +
86
+ Pathname.new(File.dirname(path)).children.select(&:directory?).
87
+ map{ |prefix| "#{prefix}/#{File.basename(path)}" })
88
+ end
89
+ }.flatten
90
+ end
91
+ end
92
+
93
+ namespace :gem do
94
+
95
+ desc 'Install gem'
96
+ task :install => [:build] do
97
+ sh("#{Gem.ruby} -S gem install pkg/#{Gemgem.gem_tag}")
98
+ end
99
+
100
+ desc 'Build gem'
101
+ task :build => [:spec] do
102
+ sh("#{Gem.ruby} -S gem build #{Gemgem.spec.name}.gemspec")
103
+ sh("mkdir -p pkg")
104
+ sh("mv #{Gemgem.gem_tag}.gem pkg/")
105
+ end
106
+
107
+ desc 'Release gem'
108
+ task :release => [:spec, :check, :build] do
109
+ sh("git tag #{Gemgem.gem_tag}")
110
+ sh("git push")
111
+ sh("git push --tags")
112
+ sh("#{Gem.ruby} -S gem push pkg/#{Gemgem.gem_tag}.gem")
113
+ end
114
+
115
+ task :check do
116
+ ver = Gemgem.spec.version.to_s
117
+
118
+ if ENV['VERSION'].nil?
119
+ puts("\x1b[35mExpected " \
120
+ "\x1b[33mVERSION\x1b[35m=\x1b[33m#{ver}\x1b[m")
121
+ exit(1)
122
+
123
+ elsif ENV['VERSION'] != ver
124
+ puts("\x1b[35mExpected \x1b[33mVERSION\x1b[35m=\x1b[33m#{ver} " \
125
+ "\x1b[35mbut got\n " \
126
+ "\x1b[33mVERSION\x1b[35m=\x1b[33m#{ENV['VERSION']}\x1b[m")
127
+ exit(2)
128
+ end
129
+ end
130
+
131
+ end # of gem namespace
132
+
133
+ desc 'Run tests'
134
+ task :test do
135
+ sh("#{Gem.ruby} -I lib -S bacon test/test_*.rb")
136
+ end
137
+
138
+ desc 'Generate rdoc'
139
+ task :doc => ['gem:spec'] do
140
+ sh("yardoc -o rdoc --main README.md" \
141
+ " --files #{Gemgem.spec.extra_rdoc_files.join(',')}")
142
+ end
143
+
144
+ desc 'Removed ignored files'
145
+ task :clean => ['gem:spec'] do
146
+ trash = "~/.Trash/#{Gemgem.spec.name}/"
147
+ sh "mkdir -p #{trash}" unless File.exist?(File.expand_path(trash))
148
+ Gemgem.ignored_files.each{ |file| sh "mv #{file} #{trash}" }
149
+ end
150
+
151
+
152
+ task :default do
153
+ Rake.application.options.show_task_pattern = /./
154
+ Rake.application.display_tasks_and_comments
155
+ end
@@ -91,7 +91,7 @@ class BasicTest < Test::Unit::TestCase
91
91
  hook = {:hook => {:class => Integer,
92
92
  :encoding => :marshal,
93
93
  :codec => Cerealize::Codec::Marshal}}
94
- assert_equal(mood , Dog.cerealize_option)
94
+ assert_equal(mood.merge(hook), Dog.cerealize_option)
95
95
  assert_equal(mood.merge(hook), BigDog.cerealize_option)
96
96
  end
97
97
 
metadata CHANGED
@@ -4,19 +4,19 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 8
8
- - 7
9
- version: 0.8.7
7
+ - 9
8
+ - 0
9
+ version: 0.9.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Cardinal Blue
13
- - "Lin Jen-Shin (aka godfat \xE7\x9C\x9F\xE5\xB8\xB8)"
13
+ - Lin Jen-Shin (godfat)
14
14
  - Jaime Cham
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-20 00:00:00 +08:00
19
+ date: 2011-04-28 00:00:00 +08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -33,7 +33,7 @@ dependencies:
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
36
- name: sqlite3-ruby
36
+ name: sqlite3
37
37
  prerelease: false
38
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
@@ -41,43 +41,23 @@ dependencies:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  segments:
44
- - 1
45
- - 3
46
- - 1
47
- version: 1.3.1
48
- type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: bones
52
- prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 3
60
- - 5
61
44
  - 0
62
- version: 3.5.0
45
+ version: "0"
63
46
  type: :development
64
- version_requirements: *id003
65
- description: " Serialize out of the Cerealize Box\n - a drop-in replacement for ActiveRecord's serialize\n\n It can auto transcode old encoding (yaml if you're using AR's serialize),\n to new encoding (marshal, json, you name it) without any migration.\n\n Current supported encoding:\n 1. YAML\n 2. Marshal\n 3. JSON (planned)\n\n Current supported ORM:\n 1. ActiveRecord (tested with 2.3.10)\n 2. DataMapper (planned)"
66
- email: dev (XD) cardinalblue.com
47
+ version_requirements: *id002
48
+ description: Serialize out of the Cerealize Box - a drop-in replacement for ActiveRecord's serialize
49
+ email:
50
+ - dev (XD) cardinalblue.com
67
51
  executables: []
68
52
 
69
53
  extensions: []
70
54
 
71
55
  extra_rdoc_files:
72
- - .specification
73
56
  - CHANGES
74
57
  - LICENSE
75
- - README
76
58
  - TODO
77
- - bench/simple.png
78
- - cerealize.gemspec
79
59
  files:
80
- - .specification
60
+ - .gitignore
81
61
  - CHANGES
82
62
  - LICENSE
83
63
  - README
@@ -94,6 +74,7 @@ files:
94
74
  - lib/cerealize/codec/text.rb
95
75
  - lib/cerealize/codec/yaml.rb
96
76
  - lib/cerealize/version.rb
77
+ - task/gemgem.rb
97
78
  - test/common.rb
98
79
  - test/real.rb
99
80
  - test/stub.rb
@@ -102,7 +83,7 @@ files:
102
83
  - test/test_basic.rb
103
84
  - test/test_transcode.rb
104
85
  has_rdoc: true
105
- homepage: http://github.com/cardinalblue/cerealize
86
+ homepage: http://github.com/godfat/
106
87
  licenses: []
107
88
 
108
89
  post_install_message:
@@ -129,11 +110,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
110
  version: "0"
130
111
  requirements: []
131
112
 
132
- rubyforge_project: cerealize
113
+ rubyforge_project:
133
114
  rubygems_version: 1.3.7
134
115
  signing_key:
135
116
  specification_version: 3
136
- summary: Serialize out of the Cerealize Box - a drop-in replacement for ActiveRecord's serialize It can auto transcode old encoding (yaml if you're using AR's serialize), to new encoding (marshal, json, you name it) without any migration
117
+ summary: Serialize out of the Cerealize Box - a drop-in replacement for ActiveRecord's serialize
137
118
  test_files:
138
119
  - test/test_all_codec.rb
139
120
  - test/test_attr_hash.rb
@@ -1,139 +0,0 @@
1
- --- !ruby/object:Gem::Specification
2
- name: cerealize
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 8
8
- - 7
9
- version: 0.8.7
10
- platform: ruby
11
- authors:
12
- - Cardinal Blue
13
- - "Lin Jen-Shin (aka godfat \xE7\x9C\x9F\xE5\xB8\xB8)"
14
- - Jaime Cham
15
- autorequire:
16
- bindir: bin
17
- cert_chain: []
18
-
19
- date: 2010-10-20 00:00:00 +08:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
23
- name: activerecord
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - <
29
- - !ruby/object:Gem::Version
30
- segments:
31
- - 3
32
- version: "3"
33
- type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: sqlite3-ruby
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 1
45
- - 3
46
- - 1
47
- version: 1.3.1
48
- type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: bones
52
- prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 3
60
- - 5
61
- - 0
62
- version: 3.5.0
63
- type: :development
64
- version_requirements: *id003
65
- description: " Serialize out of the Cerealize Box\n - a drop-in replacement for ActiveRecord's serialize\n\n It can auto transcode old encoding (yaml if you're using AR's serialize),\n to new encoding (marshal, json, you name it) without any migration.\n\n Current supported encoding:\n 1. YAML\n 2. Marshal\n 3. JSON (planned)\n\n Current supported ORM:\n 1. ActiveRecord (tested with 2.3.10)\n 2. DataMapper (planned)"
66
- email: dev (XD) cardinalblue.com
67
- executables: []
68
-
69
- extensions: []
70
-
71
- extra_rdoc_files:
72
- - CHANGES
73
- - LICENSE
74
- - README
75
- - TODO
76
- - bench/simple.png
77
- - cerealize.gemspec
78
- files:
79
- - CHANGES
80
- - LICENSE
81
- - README
82
- - README.rdoc
83
- - Rakefile
84
- - TODO
85
- - bench/simple.png
86
- - bench/simple.rb
87
- - cerealize.gemspec
88
- - init.rb
89
- - lib/cerealize.rb
90
- - lib/cerealize/attr_hash.rb
91
- - lib/cerealize/codec/marshal.rb
92
- - lib/cerealize/codec/text.rb
93
- - lib/cerealize/codec/yaml.rb
94
- - lib/cerealize/version.rb
95
- - test/common.rb
96
- - test/real.rb
97
- - test/stub.rb
98
- - test/test_all_codec.rb
99
- - test/test_attr_hash.rb
100
- - test/test_basic.rb
101
- - test/test_transcode.rb
102
- has_rdoc: true
103
- homepage: http://github.com/cardinalblue/cerealize
104
- licenses: []
105
-
106
- post_install_message:
107
- rdoc_options:
108
- - --main
109
- - README
110
- require_paths:
111
- - lib
112
- required_ruby_version: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- segments:
118
- - 0
119
- version: "0"
120
- required_rubygems_version: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- segments:
126
- - 0
127
- version: "0"
128
- requirements: []
129
-
130
- rubyforge_project: cerealize
131
- rubygems_version: 1.3.7
132
- signing_key:
133
- specification_version: 3
134
- summary: Serialize out of the Cerealize Box - a drop-in replacement for ActiveRecord's serialize It can auto transcode old encoding (yaml if you're using AR's serialize), to new encoding (marshal, json, you name it) without any migration
135
- test_files:
136
- - test/test_all_codec.rb
137
- - test/test_attr_hash.rb
138
- - test/test_basic.rb
139
- - test/test_transcode.rb