cubbyhole 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/.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 cubbyhole.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,14 @@
1
+ # Cubbyhole - The zero config, non-production, activemodel compliant datastore
2
+
3
+ Sinatra is dead simple, but it's more interesting to play with if you can store some data. The problem is that setting up ActiveRecord or DataMapper significantly complicates things.
4
+
5
+ Cubbyhole is designed to be absolutely zero config.
6
+
7
+ ```ruby
8
+ require 'cubbyhole'
9
+
10
+
11
+ post = Post.create(:title => "Foo", :text => "Bar")
12
+
13
+ Post.get(post.id).title # => Foo
14
+ ```
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/cubbyhole.gemspec ADDED
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "cubbyhole/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "cubbyhole"
7
+ s.version = Cubbyhole::VERSION
8
+ s.authors = ["Andy Delcambre"]
9
+ s.email = ["adelcambre@engineyard.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{A zero config data store}
12
+ s.description = %q{This project will be a zero configuation datastore that aims to be ActiveModel compliant}
13
+
14
+ s.rubyforge_project = "cubbyhole"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ # specify any dependencies here; for example:
22
+ # s.add_development_dependency "rspec"
23
+ # s.add_runtime_dependency "rest-client"
24
+ end
@@ -0,0 +1,3 @@
1
+ module Cubbyhole
2
+ VERSION = "0.0.1"
3
+ end
data/lib/cubbyhole.rb ADDED
@@ -0,0 +1,13 @@
1
+ require "cubbyhole/version"
2
+
3
+ def Object.const_missing(name)
4
+ eval "#{name} = Class.new(Cubbyhole::Base)"
5
+ end
6
+
7
+ module Cubbyhole
8
+ class Base
9
+ def foo
10
+ "asf"
11
+ end
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cubbyhole
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Andy Delcambre
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-08-19 00:00:00 -07:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: This project will be a zero configuation datastore that aims to be ActiveModel compliant
23
+ email:
24
+ - adelcambre@engineyard.com
25
+ executables: []
26
+
27
+ extensions: []
28
+
29
+ extra_rdoc_files: []
30
+
31
+ files:
32
+ - .gitignore
33
+ - Gemfile
34
+ - README.md
35
+ - Rakefile
36
+ - cubbyhole.gemspec
37
+ - lib/cubbyhole.rb
38
+ - lib/cubbyhole/version.rb
39
+ has_rdoc: true
40
+ homepage: ""
41
+ licenses: []
42
+
43
+ post_install_message:
44
+ rdoc_options: []
45
+
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ hash: 3
54
+ segments:
55
+ - 0
56
+ version: "0"
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ hash: 3
63
+ segments:
64
+ - 0
65
+ version: "0"
66
+ requirements: []
67
+
68
+ rubyforge_project: cubbyhole
69
+ rubygems_version: 1.6.2
70
+ signing_key:
71
+ specification_version: 3
72
+ summary: A zero config data store
73
+ test_files: []
74
+