yogo-framework 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,3 @@
1
+ README.txt
2
+ lib/**/*.rb
3
+ LICENSE
data/.gitignore ADDED
@@ -0,0 +1,36 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## Rubinius
17
+ *.rbc
18
+
19
+ ## PROJECT::GENERAL
20
+ *.gem
21
+ coverage
22
+ rdoc
23
+ pkg
24
+ tmp
25
+ doc
26
+ log
27
+ .yardoc
28
+ measurements
29
+
30
+ ## BUNDLER
31
+ .bundle
32
+ Gemfile.local
33
+ Gemfile.lock
34
+ Gemfile.local.lock
35
+
36
+ ## PROJECT::SPECIFIC
data/Gemfile ADDED
@@ -0,0 +1,43 @@
1
+ source :rubygems
2
+ gemspec
3
+
4
+ gem "yogo-db" , :git => "git://github.com/yogo/yogo-db.git"
5
+ gem "yogo-datamapper" , :git => "git://github.com/yogo/yogo-datamapper.git"
6
+ gem "yogo-operation" , :git => "git://github.com/yogo/yogo-operation.git"
7
+ # gem "yogo-support" , :git => "git://github.com/yogo/yogo-support.git"
8
+ gem "yogo-project" , :git => "git://github.com/yogo/yogo-project.git"
9
+
10
+ #
11
+ # Development and Test Dependencies
12
+ #
13
+ group :development, :test do
14
+ # Development gems
15
+ gem "racksh"
16
+ gem "sinatra-reloader"
17
+ gem "rake"
18
+ gem "jeweler"
19
+ gem "yard"
20
+ gem "yardstick"
21
+ gem "metric_fu"
22
+ gem "rcov"
23
+ gem "reek"
24
+ gem "roodi"
25
+
26
+ # Testing gems
27
+ gem "rspec"
28
+ gem "rack-test"
29
+ gem "cucumber"
30
+ gem "autotest"
31
+ gem 'factory_girl'
32
+
33
+ # 1.9 vs 1.8 issues
34
+ platforms(:mri_19) do
35
+ gem "ruby-debug19", :require => "ruby-debug"
36
+ gem "rack-debug19", :require => "rack-debug"
37
+ end
38
+
39
+ platforms(:ruby_18) do
40
+ gem "ruby-debug"
41
+ gem "rack-debug"
42
+ end
43
+ end
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 Ivan R. Judson, Montana State University
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.txt ADDED
@@ -0,0 +1,58 @@
1
+ = The Yogo Data Management Framework
2
+
3
+ * http://yogo.msu.montana.edu
4
+
5
+ == DESCRIPTION:
6
+
7
+ This is a meta-gem that packages up and provides a single installable piece of software for users of the Yogo Data Management Framework.
8
+
9
+ == FEATURES/PROBLEMS:
10
+
11
+ * Forthcoming...
12
+
13
+ == SYNOPSIS:
14
+
15
+ FIX (code sample of usage)
16
+
17
+ == REQUIREMENTS:
18
+
19
+ * FIX (list of requirements)
20
+
21
+ == INSTALL:
22
+
23
+ * gem install yogo-framework
24
+
25
+ == DEVELOPERS:
26
+
27
+ After checking out the source, run:
28
+
29
+ $ bundle install
30
+ $ ...
31
+
32
+ This task will install any missing dependencies, run the tests/specs,
33
+ and generate the RDoc.
34
+
35
+ == LICENSE:
36
+
37
+ (The MIT License)
38
+
39
+ Copyright (c) 2010 Ivan R. Judson, Montana State University
40
+
41
+ Permission is hereby granted, free of charge, to any person obtaining
42
+ a copy of this software and associated documentation files (the
43
+ 'Software'), to deal in the Software without restriction, including
44
+ without limitation the rights to use, copy, modify, merge, publish,
45
+ distribute, sublicense, and/or sell copies of the Software, and to
46
+ permit persons to whom the Software is furnished to do so, subject to
47
+ the following conditions:
48
+
49
+ The above copyright notice and this permission notice shall be
50
+ included in all copies or substantial portions of the Software.
51
+
52
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
53
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
54
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
55
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
56
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
57
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
58
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,32 @@
1
+ begin
2
+ require 'bundler'
3
+ Bundler.setup
4
+ rescue LoadError
5
+ puts "Bundler is not installed. Install with: gem install bundler"
6
+ end
7
+
8
+ require 'jeweler'
9
+ Jeweler::Tasks.new do |gem|
10
+ gem.name = %q{yogo-framework}
11
+ gem.authors = ["The Yogo Team"]
12
+ gem.description = %q{Faster, Better, Simpler Data Management.}
13
+ gem.email = %q{yogo@msu.montana.edu}
14
+ gem.homepage = %q{http://yogo.msu.montana.edu}
15
+ gem.summary = %q{A framework for building user managable data management applications.}
16
+ gem.add_dependency(%q<data_mapper> )
17
+ gem.add_dependency(%q<dm-is-list> )
18
+ gem.add_dependency(%q<dm-is-versioned> )
19
+ gem.add_dependency(%q<dm-rest-adapter> )
20
+ # gem.add_dependency(%q<yogo-db> , "~> 0.2.0")
21
+ # gem.add_dependency(%q<yogo-datamapper> , "~> 0.2.0")
22
+ # gem.add_dependency(%q<yogo-operation> , "~> 0.2.0")
23
+ # gem.add_dependency(%q<yogo-support> , "~> 0.2.0")
24
+ # gem.add_dependency(%q<yogo-project> , "~> 0.2.0")
25
+ # Once this gets factored out
26
+ # gem.add_dependency(%q<yogo-auth> , "~> 0.2.0")
27
+ gem.add_dependency(%q<racksh> )
28
+ gem.add_dependency(%q<rake> )
29
+ gem.add_dependency(%q<jeweler> )
30
+ gem.add_dependency(%q<yard> )
31
+ gem.add_dependency(%q<sinatra-reloader> )
32
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.2.0
data/config.ru ADDED
@@ -0,0 +1,28 @@
1
+ # encoding: utf-8
2
+ # Standard requirements for Bundler management
3
+ require 'rubygems'
4
+ require 'bundler/setup'
5
+
6
+ # Load the bundler gemset
7
+ Bundler.require(:default, ENV['RACK_ENV'] || :development )
8
+
9
+ # Mess with load paths
10
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
11
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
12
+
13
+ # Configure DataMapper
14
+ require 'config/datamapper'
15
+
16
+ # Load Application pieces
17
+ require 'yogo/rack/model_lookup'
18
+ require 'yogo/schema_app'
19
+ require 'yogo/data_app'
20
+
21
+ # Load the Application Version
22
+ APP_VERSION = IO.readlines(File.join(File.dirname(__FILE__), 'VERSION'))[0]
23
+
24
+ # Make the model lookup map
25
+ use Yogo::Rack::ModelLookup, :paths => ['schema', 'data']
26
+
27
+ # Run the app
28
+ run Rack::Cascade.new([Yogo::SchemaApp, Yogo::DataApp])
@@ -0,0 +1,19 @@
1
+ # This is only for this particular app
2
+
3
+ development:
4
+ adapter: postgres
5
+ database: yogo_development
6
+ host: localhost
7
+
8
+ test:
9
+ adapter: postgres
10
+ database: yogo_test
11
+ host: localhost
12
+
13
+ # development:
14
+ # adapter: sqlite3
15
+ # database: db/devlopment.sqlite3
16
+ #
17
+ # test:
18
+ # adapter: sqlite3
19
+ # database: db/test.sqlite3
@@ -0,0 +1,10 @@
1
+ #
2
+ # DataMapper Configuration
3
+ #
4
+ databases = YAML.load_file(File.join(File.dirname(__FILE__), '..', 'config', 'database.yml'))
5
+
6
+ DataMapper::Model.raise_on_save_failure = true
7
+
8
+ DataMapper::Logger.new('log/datamapper.log', :debug)
9
+
10
+ DataMapper.setup(:default, databases[ENV['RACK_ENV'] || 'development'])
@@ -0,0 +1,5 @@
1
+ %w[
2
+ yogo_db
3
+ ].each do |lib|
4
+ require lib
5
+ end
@@ -0,0 +1,76 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{yogo-framework}
8
+ s.version = "0.2.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["The Yogo Team"]
12
+ s.date = %q{2010-10-29}
13
+ s.description = %q{Faster, Better, Simpler Data Management.}
14
+ s.email = %q{yogo@msu.montana.edu}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.txt"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "Gemfile",
23
+ "LICENSE",
24
+ "README.txt",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "config.ru",
28
+ "config/database.yml",
29
+ "config/datamapper.rb",
30
+ "lib/yogo_framework.rb",
31
+ "yogo-framework.gemspec"
32
+ ]
33
+ s.homepage = %q{http://yogo.msu.montana.edu}
34
+ s.rdoc_options = ["--charset=UTF-8"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = %q{1.3.7}
37
+ s.summary = %q{A framework for building user managable data management applications.}
38
+
39
+ if s.respond_to? :specification_version then
40
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
41
+ s.specification_version = 3
42
+
43
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
+ s.add_runtime_dependency(%q<data_mapper>, [">= 0"])
45
+ s.add_runtime_dependency(%q<dm-is-list>, [">= 0"])
46
+ s.add_runtime_dependency(%q<dm-is-versioned>, [">= 0"])
47
+ s.add_runtime_dependency(%q<dm-rest-adapter>, [">= 0"])
48
+ s.add_runtime_dependency(%q<racksh>, [">= 0"])
49
+ s.add_runtime_dependency(%q<rake>, [">= 0"])
50
+ s.add_runtime_dependency(%q<jeweler>, [">= 0"])
51
+ s.add_runtime_dependency(%q<yard>, [">= 0"])
52
+ s.add_runtime_dependency(%q<sinatra-reloader>, [">= 0"])
53
+ else
54
+ s.add_dependency(%q<data_mapper>, [">= 0"])
55
+ s.add_dependency(%q<dm-is-list>, [">= 0"])
56
+ s.add_dependency(%q<dm-is-versioned>, [">= 0"])
57
+ s.add_dependency(%q<dm-rest-adapter>, [">= 0"])
58
+ s.add_dependency(%q<racksh>, [">= 0"])
59
+ s.add_dependency(%q<rake>, [">= 0"])
60
+ s.add_dependency(%q<jeweler>, [">= 0"])
61
+ s.add_dependency(%q<yard>, [">= 0"])
62
+ s.add_dependency(%q<sinatra-reloader>, [">= 0"])
63
+ end
64
+ else
65
+ s.add_dependency(%q<data_mapper>, [">= 0"])
66
+ s.add_dependency(%q<dm-is-list>, [">= 0"])
67
+ s.add_dependency(%q<dm-is-versioned>, [">= 0"])
68
+ s.add_dependency(%q<dm-rest-adapter>, [">= 0"])
69
+ s.add_dependency(%q<racksh>, [">= 0"])
70
+ s.add_dependency(%q<rake>, [">= 0"])
71
+ s.add_dependency(%q<jeweler>, [">= 0"])
72
+ s.add_dependency(%q<yard>, [">= 0"])
73
+ s.add_dependency(%q<sinatra-reloader>, [">= 0"])
74
+ end
75
+ end
76
+
metadata ADDED
@@ -0,0 +1,193 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yogo-framework
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
10
+ platform: ruby
11
+ authors:
12
+ - The Yogo Team
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-10-29 00:00:00 -06:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: data_mapper
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :runtime
31
+ prerelease: false
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: dm-is-list
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ segments:
41
+ - 0
42
+ version: "0"
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: *id002
46
+ - !ruby/object:Gem::Dependency
47
+ name: dm-is-versioned
48
+ requirement: &id003 !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ type: :runtime
57
+ prerelease: false
58
+ version_requirements: *id003
59
+ - !ruby/object:Gem::Dependency
60
+ name: dm-rest-adapter
61
+ requirement: &id004 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ segments:
67
+ - 0
68
+ version: "0"
69
+ type: :runtime
70
+ prerelease: false
71
+ version_requirements: *id004
72
+ - !ruby/object:Gem::Dependency
73
+ name: racksh
74
+ requirement: &id005 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ segments:
80
+ - 0
81
+ version: "0"
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: *id005
85
+ - !ruby/object:Gem::Dependency
86
+ name: rake
87
+ requirement: &id006 !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ segments:
93
+ - 0
94
+ version: "0"
95
+ type: :runtime
96
+ prerelease: false
97
+ version_requirements: *id006
98
+ - !ruby/object:Gem::Dependency
99
+ name: jeweler
100
+ requirement: &id007 !ruby/object:Gem::Requirement
101
+ none: false
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ segments:
106
+ - 0
107
+ version: "0"
108
+ type: :runtime
109
+ prerelease: false
110
+ version_requirements: *id007
111
+ - !ruby/object:Gem::Dependency
112
+ name: yard
113
+ requirement: &id008 !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ segments:
119
+ - 0
120
+ version: "0"
121
+ type: :runtime
122
+ prerelease: false
123
+ version_requirements: *id008
124
+ - !ruby/object:Gem::Dependency
125
+ name: sinatra-reloader
126
+ requirement: &id009 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ segments:
132
+ - 0
133
+ version: "0"
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: *id009
137
+ description: Faster, Better, Simpler Data Management.
138
+ email: yogo@msu.montana.edu
139
+ executables: []
140
+
141
+ extensions: []
142
+
143
+ extra_rdoc_files:
144
+ - LICENSE
145
+ - README.txt
146
+ files:
147
+ - .document
148
+ - .gitignore
149
+ - Gemfile
150
+ - LICENSE
151
+ - README.txt
152
+ - Rakefile
153
+ - VERSION
154
+ - config.ru
155
+ - config/database.yml
156
+ - config/datamapper.rb
157
+ - lib/yogo_framework.rb
158
+ - yogo-framework.gemspec
159
+ has_rdoc: true
160
+ homepage: http://yogo.msu.montana.edu
161
+ licenses: []
162
+
163
+ post_install_message:
164
+ rdoc_options:
165
+ - --charset=UTF-8
166
+ require_paths:
167
+ - lib
168
+ required_ruby_version: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ hash: 3985051387490015666
174
+ segments:
175
+ - 0
176
+ version: "0"
177
+ required_rubygems_version: !ruby/object:Gem::Requirement
178
+ none: false
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ segments:
183
+ - 0
184
+ version: "0"
185
+ requirements: []
186
+
187
+ rubyforge_project:
188
+ rubygems_version: 1.3.7
189
+ signing_key:
190
+ specification_version: 3
191
+ summary: A framework for building user managable data management applications.
192
+ test_files: []
193
+