msgpack-coder 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # msgpack-coder
2
+ Use MessagePack for ActiveRecord serialization.
3
+
4
+ Tired of using slow YAML? Serialized data is not valid JSON? Fear not more: Use msgpack-coder!
5
+
6
+ msgpack-coder uses [MessagePack](http://msgpack.org) for serialization. It's way faster than YAML (binary libs) and much more useable than JSON!
7
+
8
+ ## Installation & Usage
9
+ Super simple, just two lines!
10
+
11
+ In your Gemfile add this line:
12
+
13
+ ```ruby
14
+ gem 'msgpack-coder'
15
+ ```
16
+
17
+ Your model gets the other line:
18
+ ```ruby
19
+ serialize :attribute, MessagePack
20
+ ```
21
+
22
+ Really, that's it!
23
+
24
+ ## Contributing
25
+
26
+ 1. Fork it
27
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
28
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
29
+ 4. Push to the branch (`git push origin my-new-feature`)
30
+ 5. Create new Pull Request
31
+
32
+ ## Copyright
33
+
34
+ (The MIT license)
35
+
36
+ Copyright (c) 2012 beenetwork
37
+
38
+ Permission is hereby granted, free of charge, to any person obtaining
39
+ a copy of this software and associated documentation files (the
40
+ "Software"), to deal in the Software without restriction, including
41
+ without limitation the rights to use, copy, modify, merge, publish,
42
+ distribute, sublicense, and/or sell copies of the Software, and to
43
+ permit persons to whom the Software is furnished to do so, subject to
44
+ the following conditions:
45
+
46
+ The above copyright notice and this permission notice shall be
47
+ included in all copies or substantial portions of the Software.
48
+
49
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
50
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
51
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
52
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
53
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
54
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
55
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,8 @@
1
+ require 'msgpack'
2
+
3
+ module MessagePack
4
+ class << self
5
+ alias_method :load, :unpack
6
+ alias_method :dump, :pack
7
+ end
8
+ end
@@ -0,0 +1,14 @@
1
+ Gem::Specification.new do |gem|
2
+ gem.name = 'msgpack-coder'
3
+ gem.version = '0.0.1'
4
+ gem.authors = 'Mario Uher'
5
+ gem.email = 'mu@beenetwork.eu'
6
+ gem.description = 'Use MessagePack for ActiveRecord serialization.'
7
+ gem.summary = 'Tired of using slow YAML? Serialized data is not valid JSON? Fear not more: Use msgpack-coder!'
8
+ gem.homepage = 'http://beenetwork.github.com/msgpack-coder'
9
+
10
+ gem.files = `git ls-files`.split("\n")
11
+ gem.require_path = 'lib'
12
+
13
+ gem.add_dependency 'msgpack'
14
+ end
metadata ADDED
@@ -0,0 +1,65 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: msgpack-coder
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Mario Uher
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-10-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: msgpack
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description: Use MessagePack for ActiveRecord serialization.
31
+ email: mu@beenetwork.eu
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - README.md
37
+ - lib/message_pack.rb
38
+ - msgpack-coder.gemspec
39
+ homepage: http://beenetwork.github.com/msgpack-coder
40
+ licenses: []
41
+ post_install_message:
42
+ rdoc_options: []
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ requirements: []
58
+ rubyforge_project:
59
+ rubygems_version: 1.8.23
60
+ signing_key:
61
+ specification_version: 3
62
+ summary: ! 'Tired of using slow YAML? Serialized data is not valid JSON? Fear not
63
+ more: Use msgpack-coder!'
64
+ test_files: []
65
+ has_rdoc: