Permalink
Browse files

initial commit

  • Loading branch information...
brantwedel committed Mar 17, 2014
0 parents commit d6ea87e0cecc60e1debe726bfa27a2e15df79be2
Showing with 1,673 additions and 0 deletions.
  1. +8 −0 .gitignore
  2. +14 −0 Gemfile
  3. +89 −0 Gemfile.lock
  4. +20 −0 MIT-LICENSE
  5. +3 −0 README.rdoc
  6. +32 −0 Rakefile
  7. +22 −0 lib/tasks/yaddl_tasks.rake
  8. +810 −0 lib/yaddl.rb
  9. +3 −0 lib/yaddl/version.rb
  10. +28 −0 test/dummy/README.rdoc
  11. +6 −0 test/dummy/Rakefile
  12. 0 test/dummy/app/assets/images/.keep
  13. +13 −0 test/dummy/app/assets/javascripts/application.js
  14. +13 −0 test/dummy/app/assets/stylesheets/application.css
  15. +5 −0 test/dummy/app/controllers/application_controller.rb
  16. 0 test/dummy/app/controllers/concerns/.keep
  17. +2 −0 test/dummy/app/helpers/application_helper.rb
  18. 0 test/dummy/app/mailers/.keep
  19. 0 test/dummy/app/models/.keep
  20. 0 test/dummy/app/models/concerns/.keep
  21. +14 −0 test/dummy/app/views/layouts/application.html.erb
  22. +3 −0 test/dummy/bin/bundle
  23. +4 −0 test/dummy/bin/rails
  24. +4 −0 test/dummy/bin/rake
  25. +4 −0 test/dummy/config.ru
  26. +23 −0 test/dummy/config/application.rb
  27. +5 −0 test/dummy/config/boot.rb
  28. +25 −0 test/dummy/config/database.yml
  29. +5 −0 test/dummy/config/environment.rb
  30. +29 −0 test/dummy/config/environments/development.rb
  31. +80 −0 test/dummy/config/environments/production.rb
  32. +36 −0 test/dummy/config/environments/test.rb
  33. +7 −0 test/dummy/config/initializers/backtrace_silencers.rb
  34. +4 −0 test/dummy/config/initializers/filter_parameter_logging.rb
  35. +16 −0 test/dummy/config/initializers/inflections.rb
  36. +5 −0 test/dummy/config/initializers/mime_types.rb
  37. +12 −0 test/dummy/config/initializers/secret_token.rb
  38. +3 −0 test/dummy/config/initializers/session_store.rb
  39. +14 −0 test/dummy/config/initializers/wrap_parameters.rb
  40. +23 −0 test/dummy/config/locales/en.yml
  41. +56 −0 test/dummy/config/routes.rb
  42. 0 test/dummy/lib/assets/.keep
  43. 0 test/dummy/log/.keep
  44. +58 −0 test/dummy/public/404.html
  45. +58 −0 test/dummy/public/422.html
  46. +57 −0 test/dummy/public/500.html
  47. 0 test/dummy/public/favicon.ico
  48. +19 −0 test/test_helper.rb
  49. +19 −0 test/yaddl_test.rb
  50. +22 −0 yaddl.gemspec
@@ -0,0 +1,8 @@
.bundle/
log/*.log
pkg/
test/dummy/db/*.sqlite3
test/dummy/db/*.sqlite3-journal
test/dummy/log/*.log
test/dummy/tmp/
test/dummy/.sass-cache
14 Gemfile
@@ -0,0 +1,14 @@
source "https://rubygems.org"
# Declare your gem's dependencies in yaddl.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
gemspec
# Declare any dependencies that are still in development here instead of in
# your gemspec. These might include edge Rails or gems from your path or
# Git. Remember to move these dependencies to your gemspec before releasing
# your gem to rubygems.org.
# To use debugger
# gem 'debugger'
@@ -0,0 +1,89 @@
PATH
remote: .
specs:
yaddl (0.0.1)
rails (~> 4.0.0)
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.0.4)
actionpack (= 4.0.4)
mail (~> 2.5.4)
actionpack (4.0.4)
activesupport (= 4.0.4)
builder (~> 3.1.0)
erubis (~> 2.7.0)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
activemodel (4.0.4)
activesupport (= 4.0.4)
builder (~> 3.1.0)
activerecord (4.0.4)
activemodel (= 4.0.4)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.4)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.4)
i18n (~> 0.6, >= 0.6.9)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
arel (4.0.2)
atomic (1.1.16)
builder (3.1.4)
erubis (2.7.0)
hike (1.2.3)
i18n (0.6.9)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.25.1)
minitest (4.7.5)
multi_json (1.9.0)
polyglot (0.3.4)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.0.4)
actionmailer (= 4.0.4)
actionpack (= 4.0.4)
activerecord (= 4.0.4)
activesupport (= 4.0.4)
bundler (>= 1.3.0, < 2.0)
railties (= 4.0.4)
sprockets-rails (~> 2.0.0)
railties (4.0.4)
actionpack (= 4.0.4)
activesupport (= 4.0.4)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.1.1)
sprockets (2.12.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.0.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
sqlite3 (1.3.9)
thor (0.18.1)
thread_safe (0.2.0)
atomic (>= 1.1.7, < 2)
tilt (1.4.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.39)
PLATFORMS
ruby
DEPENDENCIES
rails (= 4.0.4)
sqlite3
yaddl!
@@ -0,0 +1,20 @@
Copyright 2014 Brant Wedel
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,3 @@
= Yaddl
This project rocks and uses MIT-LICENSE.
@@ -0,0 +1,32 @@
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
require 'rdoc/task'
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Yaddl'
rdoc.options << '--line-numbers'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
Bundler::GemHelper.install_tasks
require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = false
end
task default: :test
@@ -0,0 +1,22 @@
namespace :yaddl do
desc "Print generated yaml ddl to console"
task :review do
y = Yaddl::Yaddl::load("#{Rails.root}/db/*.yaddl")
y.review()
end
desc "Scaffold controllers views and models, skips migrations"
task :scaffold do
y = Yaddl::Yaddl::load("#{Rails.root}/db/*.yaddl")
y.generate("--force --no-assets --skip-migration --helpers=false")
end
desc "Regenerate models, skips migrations"
task :models do
y = Yaddl::Yaddl::load("#{Rails.root}/db/*.yaddl")
y.generate("--no-scaffolds")
end
desc "Generate migrations, models, controllers and views"
task :generate do
y = Yaddl::Yaddl::load("#{Rails.root}/db/*.yaddl")
y.generate("--force --no-assets --helpers=false")
end
end
Oops, something went wrong.

0 comments on commit d6ea87e

Please sign in to comment.