better_plist 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest ADDED
@@ -0,0 +1,5 @@
1
+ Manifest
2
+ README.rdoc
3
+ Rakefile
4
+ rails/init.rb
5
+ lib/better_plist.rb
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = better_plist
2
+
3
+ Extend ActiveRecord::Base to incude a to_plist method to parallel the to_json that already exists.
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'echoe'
4
+
5
+ Echoe.new('better_plist', '0.0.2') do |p|
6
+ p.description = "Extend ActiveRecord::Base to incude a to_plist method to parallel the to_json that already exists."
7
+ p.url = "http://bitbucket.org/seanhealy/better_plist"
8
+ p.author = "Sean Healy"
9
+ p.email = "sean@pointscape.org"
10
+ p.ignore_pattern = ["tmp/*", "script/*"]
11
+ p.dependencies = [{"plist", ">= 3.1.0"}]
12
+ p.development_dependencies = []
13
+ end
14
+
15
+ Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
@@ -0,0 +1,33 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{better_plist}
5
+ s.version = "0.0.2"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Sean Healy"]
9
+ s.date = %q{2010-06-28}
10
+ s.description = %q{Extend ActiveRecord::Base to incude a to_plist method to parallel the to_json that already exists.}
11
+ s.email = %q{sean@pointscape.org}
12
+ s.extra_rdoc_files = ["README.rdoc", "lib/better_plist.rb"]
13
+ s.files = ["Manifest", "README.rdoc", "Rakefile", "rails/init.rb", "lib/better_plist.rb", "better_plist.gemspec"]
14
+ s.homepage = %q{http://bitbucket.org/seanhealy/better_plist}
15
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Better_plist", "--main", "README.rdoc"]
16
+ s.require_paths = ["lib"]
17
+ s.rubyforge_project = %q{better_plist}
18
+ s.rubygems_version = %q{1.3.7}
19
+ s.summary = %q{Extend ActiveRecord::Base to incude a to_plist method to parallel the to_json that already exists.}
20
+
21
+ if s.respond_to? :specification_version then
22
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
+ s.specification_version = 3
24
+
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
+ s.add_runtime_dependency(%q<plist>= 3.1.0>, [">= 0"])
27
+ else
28
+ s.add_dependency(%q<plist>= 3.1.0>, [">= 0"])
29
+ end
30
+ else
31
+ s.add_dependency(%q<plist>= 3.1.0>, [">= 0"])
32
+ end
33
+ end
@@ -0,0 +1,23 @@
1
+ # class BetterPlist
2
+ # VERSION = '0.0.1'
3
+ # end
4
+
5
+ module BetterPListExtensions
6
+ def self.included(base)
7
+ base.extend(ClassMethods)
8
+ end
9
+
10
+ # add your instance methods here
11
+ def to_plist
12
+ result = self.attributes
13
+ result.delete_if {|key,value| value == nil }
14
+ result.to_plist
15
+ end
16
+
17
+ module ClassMethods
18
+
19
+ end
20
+ end
21
+ # include the extension
22
+ ActiveRecord::Base.send :include, BetterPListExtensions
23
+
data/rails/init.rb ADDED
@@ -0,0 +1 @@
1
+ require File.join(File.dirname(__FILE__), "..", "lib", "better_plist")
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: better_plist
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
11
+ platform: ruby
12
+ authors:
13
+ - Sean Healy
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-06-28 00:00:00 -06:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name:
23
+ - plist
24
+ - ">= 3.1.0"
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ hash: 3
32
+ segments:
33
+ - 0
34
+ version: "0"
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ description: Extend ActiveRecord::Base to incude a to_plist method to parallel the to_json that already exists.
38
+ email: sean@pointscape.org
39
+ executables: []
40
+
41
+ extensions: []
42
+
43
+ extra_rdoc_files:
44
+ - README.rdoc
45
+ - lib/better_plist.rb
46
+ files:
47
+ - Manifest
48
+ - README.rdoc
49
+ - Rakefile
50
+ - rails/init.rb
51
+ - lib/better_plist.rb
52
+ - better_plist.gemspec
53
+ has_rdoc: true
54
+ homepage: http://bitbucket.org/seanhealy/better_plist
55
+ licenses: []
56
+
57
+ post_install_message:
58
+ rdoc_options:
59
+ - --line-numbers
60
+ - --inline-source
61
+ - --title
62
+ - Better_plist
63
+ - --main
64
+ - README.rdoc
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ hash: 11
82
+ segments:
83
+ - 1
84
+ - 2
85
+ version: "1.2"
86
+ requirements: []
87
+
88
+ rubyforge_project: better_plist
89
+ rubygems_version: 1.3.7
90
+ signing_key:
91
+ specification_version: 3
92
+ summary: Extend ActiveRecord::Base to incude a to_plist method to parallel the to_json that already exists.
93
+ test_files: []
94
+