esme 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +28 -0
- data/README.md +39 -0
- data/Rakefile +19 -0
- data/esme.gemspec +21 -0
- data/lib/esme.rb +5 -0
- data/lib/esme/version.rb +8 -0
- data/test/version_test.rb +8 -0
- metadata +76 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
esme (0.0.1)
|
5
|
+
pg
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ansi (1.4.3)
|
11
|
+
json (1.7.5)
|
12
|
+
minitest (4.3.3)
|
13
|
+
pg (0.14.1)
|
14
|
+
rake (10.0.3)
|
15
|
+
rdoc (3.12)
|
16
|
+
json (~> 1.4)
|
17
|
+
turn (0.9.6)
|
18
|
+
ansi
|
19
|
+
|
20
|
+
PLATFORMS
|
21
|
+
ruby
|
22
|
+
|
23
|
+
DEPENDENCIES
|
24
|
+
esme!
|
25
|
+
minitest
|
26
|
+
rake
|
27
|
+
rdoc
|
28
|
+
turn
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
Esme is a lightweight SQL object mapper.
|
2
|
+
|
3
|
+
## Setting up a development environment
|
4
|
+
|
5
|
+
Start by installing the dependencies:
|
6
|
+
|
7
|
+
bundle install --binstubs vendor/bin
|
8
|
+
|
9
|
+
Setup test databases and run the test suite:
|
10
|
+
|
11
|
+
rake
|
12
|
+
|
13
|
+
Use `rake createdb` and `rake dropdb` to create and the drop the test
|
14
|
+
database. Use `rake test` or `vendor/bin/turn` to run the test suite.
|
15
|
+
|
16
|
+
## License
|
17
|
+
|
18
|
+
Copyright (c) 2012, Jamshed Kakar <jkakar@kakar.ca>
|
19
|
+
All rights reserved.
|
20
|
+
|
21
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
22
|
+
a copy of this software and associated documentation files (the
|
23
|
+
"Software"), to deal in the Software without restriction, including
|
24
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
25
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
26
|
+
permit persons to whom the Software is furnished to do so, subject to
|
27
|
+
the following conditions:
|
28
|
+
|
29
|
+
The above copyright notice and this permission notice shall be
|
30
|
+
included in all copies or substantial portions of the Software.
|
31
|
+
|
32
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
33
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
34
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
35
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
36
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
37
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
38
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
39
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
|
3
|
+
desc 'Drop and create the esme-test databases.'
|
4
|
+
task :createdb => :dropdb do
|
5
|
+
sh 'createdb esme-test'
|
6
|
+
end
|
7
|
+
|
8
|
+
desc 'Drop the esme-test database.'
|
9
|
+
task :dropdb do
|
10
|
+
sh 'dropdb esme-test || true'
|
11
|
+
end
|
12
|
+
|
13
|
+
desc 'Run the Esme unit tests'
|
14
|
+
task :test do
|
15
|
+
sh 'vendor/bin/turn -Ilib -Itest test'
|
16
|
+
end
|
17
|
+
|
18
|
+
desc 'Reset esme-test database and run the test suite.'
|
19
|
+
task :default => [:createdb, :test]
|
data/esme.gemspec
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'esme/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |gem|
|
8
|
+
gem.name = "esme"
|
9
|
+
gem.version = Esme.version
|
10
|
+
gem.authors = ["Jamu Kakar"]
|
11
|
+
gem.email = ["jkakar@kakar.ca"]
|
12
|
+
gem.description = ""
|
13
|
+
gem.summary = "Esme is a lightweight SQL object mapper."
|
14
|
+
gem.homepage = "https://github.com/jkakar/esme"
|
15
|
+
|
16
|
+
gem.files = `git ls-files`.split($/)
|
17
|
+
gem.test_files = gem.files.grep('^(test|spec|features)/')
|
18
|
+
gem.require_paths = ["lib"]
|
19
|
+
|
20
|
+
gem.add_dependency 'pg'
|
21
|
+
end
|
data/lib/esme.rb
ADDED
data/lib/esme/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: esme
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jamu Kakar
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-12-21 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: pg
|
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: ''
|
31
|
+
email:
|
32
|
+
- jkakar@kakar.ca
|
33
|
+
executables: []
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- .gitignore
|
38
|
+
- Gemfile
|
39
|
+
- Gemfile.lock
|
40
|
+
- README.md
|
41
|
+
- Rakefile
|
42
|
+
- esme.gemspec
|
43
|
+
- lib/esme.rb
|
44
|
+
- lib/esme/version.rb
|
45
|
+
- test/version_test.rb
|
46
|
+
homepage: https://github.com/jkakar/esme
|
47
|
+
licenses: []
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options: []
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
hash: -372326896975989274
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
segments:
|
68
|
+
- 0
|
69
|
+
hash: -372326896975989274
|
70
|
+
requirements: []
|
71
|
+
rubyforge_project:
|
72
|
+
rubygems_version: 1.8.23
|
73
|
+
signing_key:
|
74
|
+
specification_version: 3
|
75
|
+
summary: Esme is a lightweight SQL object mapper.
|
76
|
+
test_files: []
|