active_metadata 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in active_metadata.gemspec
4
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "active_metadata/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "active_metadata"
7
+ s.version = ActiveMetadata::VERSION
8
+ s.authors = ["Andrea Campolonghi"]
9
+ s.email = ["acampolonghi@gmail.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{Add metadata to fields in an active record model}
12
+ s.description = %q{First implementation will write metadata on mongodb}
13
+
14
+ s.rubyforge_project = "active_metadata"
15
+
16
+ s.add_development_dependency "rspec"
17
+ s.add_dependency "mongo"
18
+ s.add_dependency "bson_ext"
19
+
20
+ s.files = `git ls-files`.split("\n")
21
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
22
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
23
+ s.require_paths = ["lib"]
24
+ end
@@ -0,0 +1,13 @@
1
+ require "active_metadata/version"
2
+ require "mongo"
3
+
4
+ module ActiveMetadata
5
+
6
+ #TODO add a configure routine
7
+ MONGO = Mongo::Connection.new.db "metadata"
8
+
9
+ def act_as_metadata
10
+
11
+ end
12
+
13
+ end
@@ -0,0 +1,3 @@
1
+ module ActiveMetadata
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_metadata
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Andrea Campolonghi
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-07-19 00:00:00.000000000 +02:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ requirement: &2164896720 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: *2164896720
26
+ - !ruby/object:Gem::Dependency
27
+ name: mongo
28
+ requirement: &2164896240 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *2164896240
37
+ - !ruby/object:Gem::Dependency
38
+ name: bson_ext
39
+ requirement: &2164895800 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: *2164895800
48
+ description: First implementation will write metadata on mongodb
49
+ email:
50
+ - acampolonghi@gmail.com
51
+ executables: []
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - .gitignore
56
+ - Gemfile
57
+ - Rakefile
58
+ - active_metadata.gemspec
59
+ - lib/active_metadata.rb
60
+ - lib/active_metadata/version.rb
61
+ has_rdoc: true
62
+ homepage: ''
63
+ licenses: []
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubyforge_project: active_metadata
82
+ rubygems_version: 1.6.2
83
+ signing_key:
84
+ specification_version: 3
85
+ summary: Add metadata to fields in an active record model
86
+ test_files: []