rmails 0.1.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.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/Gemfile +24 -0
- data/Gemfile.lock +167 -0
- data/LICENSE.txt +20 -0
- data/README.markdown +9 -0
- data/Rakefile +31 -0
- data/Rakefile1 +9 -0
- data/Vagrantfile +51 -0
- data/app/assets/images/arrow_bottom.gif +0 -0
- data/app/assets/images/arrow_right.gif +0 -0
- data/app/assets/images/at-sign.png +0 -0
- data/app/assets/images/checkerboard.gif +0 -0
- data/app/assets/images/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/glyphicons-halflings.png +0 -0
- data/app/assets/images/icon_draft.gif +0 -0
- data/app/assets/images/icon_layout.gif +0 -0
- data/app/assets/images/icon_move.gif +0 -0
- data/app/assets/images/icon_regular.gif +0 -0
- data/app/assets/images/icon_snippet.gif +0 -0
- data/app/assets/images/nav_arrow.png +0 -0
- data/app/assets/images/x.png +0 -0
- data/app/assets/javascripts/application.coffee.erb +27 -0
- data/app/assets/javascripts/canjs/can.construct.proxy.js +60 -0
- data/app/assets/javascripts/canjs/can.construct.super.js +44 -0
- data/app/assets/javascripts/canjs/can.control.plugin.js +245 -0
- data/app/assets/javascripts/canjs/can.control.view.js +88 -0
- data/app/assets/javascripts/canjs/can.dojo.js +3669 -0
- data/app/assets/javascripts/canjs/can.dojo.min.js +66 -0
- data/app/assets/javascripts/canjs/can.fixture.js +1020 -0
- data/app/assets/javascripts/canjs/can.jquery.js +2995 -0
- data/app/assets/javascripts/canjs/can.jquery.min.js +52 -0
- data/app/assets/javascripts/canjs/can.mootools.js +3462 -0
- data/app/assets/javascripts/canjs/can.mootools.min.js +63 -0
- data/app/assets/javascripts/canjs/can.observe.attributes.js +293 -0
- data/app/assets/javascripts/canjs/can.observe.backup.js +368 -0
- data/app/assets/javascripts/canjs/can.observe.delegate.js +359 -0
- data/app/assets/javascripts/canjs/can.observe.setter.js +58 -0
- data/app/assets/javascripts/canjs/can.observe.validations.js +374 -0
- data/app/assets/javascripts/canjs/can.view.modifiers.js +292 -0
- data/app/assets/javascripts/canjs/can.yui.js +3530 -0
- data/app/assets/javascripts/canjs/can.yui.min.js +65 -0
- data/app/assets/javascripts/canjs/can.zepto.js +3426 -0
- data/app/assets/javascripts/canjs/can.zepto.min.js +62 -0
- data/app/assets/javascripts/controls/admins.coffee.erb +105 -0
- data/app/assets/javascripts/controls/aliases.coffee.erb +91 -0
- data/app/assets/javascripts/controls/domains.coffee.erb +115 -0
- data/app/assets/javascripts/controls/settings.coffee.erb +47 -0
- data/app/assets/javascripts/controls/users.coffee.erb +94 -0
- data/app/assets/javascripts/lib/facebox.js +311 -0
- data/app/assets/javascripts/lib/html5.js +2 -0
- data/app/assets/javascripts/lib/jquery.js +9301 -0
- data/app/assets/javascripts/lib/jquery_formparams.js +108 -0
- data/app/assets/javascripts/lib/jquery_input_hint.js +20 -0
- data/app/assets/javascripts/lib/jquery_paginate.js +120 -0
- data/app/assets/javascripts/lib/jquery_ui_custom.js +6 -0
- data/app/assets/javascripts/lib/json2.js +487 -0
- data/app/assets/javascripts/lib/utils.coffee.erb +48 -0
- data/app/assets/javascripts/models/admin.coffee.erb +42 -0
- data/app/assets/javascripts/models/alias.coffee.erb +28 -0
- data/app/assets/javascripts/models/domain.coffee.erb +39 -0
- data/app/assets/javascripts/models/property.coffee.erb +18 -0
- data/app/assets/javascripts/models/user.coffee.erb +29 -0
- data/app/assets/stylesheets/application.sass +156 -0
- data/app/assets/stylesheets/base.css.sass +243 -0
- data/app/assets/stylesheets/facebox.css +80 -0
- data/app/assets/stylesheets/lib/bootstrap.css +9 -0
- data/app/assets/stylesheets/twitter/bootstrap-responsive.scss +1 -0
- data/app/assets/stylesheets/twitter/bootstrap.scss +63 -0
- data/app/assets/stylesheets/twitter/bootstrap/_accordion.scss +34 -0
- data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +79 -0
- data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +24 -0
- data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +229 -0
- data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +228 -0
- data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +158 -0
- data/app/assets/stylesheets/twitter/bootstrap/_close.scss +32 -0
- data/app/assets/stylesheets/twitter/bootstrap/_code.scss +61 -0
- data/app/assets/stylesheets/twitter/bootstrap/_component-animations.scss +22 -0
- data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +237 -0
- data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +689 -0
- data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +21 -0
- data/app/assets/stylesheets/twitter/bootstrap/_hero-unit.scss +25 -0
- data/app/assets/stylesheets/twitter/bootstrap/_labels-badges.scss +83 -0
- data/app/assets/stylesheets/twitter/bootstrap/_layouts.scss +16 -0
- data/app/assets/stylesheets/twitter/bootstrap/_media.scss +55 -0
- data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +690 -0
- data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +95 -0
- data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +497 -0
- data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +409 -0
- data/app/assets/stylesheets/twitter/bootstrap/_pager.scss +43 -0
- data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +123 -0
- data/app/assets/stylesheets/twitter/bootstrap/_popovers.scss +133 -0
- data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +122 -0
- data/app/assets/stylesheets/twitter/bootstrap/_reset.scss +216 -0
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.scss +28 -0
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.scss +193 -0
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.scss +19 -0
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-navbar.scss +189 -0
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +74 -0
- data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +53 -0
- data/app/assets/stylesheets/twitter/bootstrap/_sprites.scss +197 -0
- data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +235 -0
- data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +53 -0
- data/app/assets/stylesheets/twitter/bootstrap/_tooltip.scss +70 -0
- data/app/assets/stylesheets/twitter/bootstrap/_type.scss +247 -0
- data/app/assets/stylesheets/twitter/bootstrap/_utilities.scss +45 -0
- data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +301 -0
- data/app/assets/stylesheets/twitter/bootstrap/_wells.scss +29 -0
- data/app/assets/stylesheets/twitter/bootstrap/responsive.scss +48 -0
- data/app/controllers/admin_users_controller.rb +62 -0
- data/app/controllers/aliases_controller.rb +35 -0
- data/app/controllers/application_controller.rb +20 -0
- data/app/controllers/domains_controller.rb +48 -0
- data/app/controllers/server_controller.rb +28 -0
- data/app/controllers/users_controller.rb +35 -0
- data/app/helpers/admin_users_helper.rb +11 -0
- data/app/helpers/application_helper.rb +2 -0
- data/app/helpers/domains_helper.rb +25 -0
- data/app/helpers/server_helper.rb +30 -0
- data/app/mailers/.gitkeep +0 -0
- data/app/models/.gitkeep +0 -0
- data/app/models/admin_user.rb +54 -0
- data/app/models/certificate_manager.rb +46 -0
- data/app/models/property.rb +103 -0
- data/app/models/property/awstats.rb +15 -0
- data/app/models/property/dovecot.rb +61 -0
- data/app/models/property/dspam.rb +45 -0
- data/app/models/property/nginx.rb +47 -0
- data/app/models/property/postfix.rb +64 -0
- data/app/models/property_value_validator.rb +41 -0
- data/app/models/system_manager.rb +88 -0
- data/app/models/virtual_alias.rb +13 -0
- data/app/models/virtual_domain.rb +15 -0
- data/app/models/virtual_user.rb +51 -0
- data/app/views/admin_users/_form.html.haml +21 -0
- data/app/views/admin_users/first.html.haml +12 -0
- data/app/views/admin_users/index.html.haml +61 -0
- data/app/views/aliases/_form.html.haml +11 -0
- data/app/views/aliases/_list.html.haml +0 -0
- data/app/views/devise/confirmations/new.html.haml +9 -0
- data/app/views/devise/mailer/confirmation_instructions.html.haml +4 -0
- data/app/views/devise/mailer/reset_password_instructions.html.haml +6 -0
- data/app/views/devise/mailer/unlock_instructions.html.haml +5 -0
- data/app/views/devise/passwords/edit.html.haml +14 -0
- data/app/views/devise/passwords/new.html.haml +12 -0
- data/app/views/devise/registrations/edit.html.haml +18 -0
- data/app/views/devise/registrations/new.html.haml +10 -0
- data/app/views/devise/sessions/new.html.haml +16 -0
- data/app/views/devise/shared/_links.haml +17 -0
- data/app/views/devise/unlocks/new.html.haml +11 -0
- data/app/views/domains/_fields.html.haml +0 -0
- data/app/views/domains/_form.html.haml +7 -0
- data/app/views/domains/index.html.haml +133 -0
- data/app/views/domains/show.html.haml +1 -0
- data/app/views/layouts/_nav.html.haml +3 -0
- data/app/views/layouts/application.html.haml +29 -0
- data/app/views/server/_certificates.html.haml +10 -0
- data/app/views/server/_dovecot.html.haml +27 -0
- data/app/views/server/_dspam.html.haml +9 -0
- data/app/views/server/_postfix_info.html.haml +5 -0
- data/app/views/server/_postfix_test.html.haml +5 -0
- data/app/views/server/_status.html.haml +11 -0
- data/app/views/server/index.html.haml +36 -0
- data/app/views/users/_form.html.haml +11 -0
- data/app/views/users/_list.html.haml +0 -0
- data/bin/rmails +43 -0
- data/config.ru +4 -0
- data/config/application.rb +62 -0
- data/config/boot.rb +6 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +37 -0
- data/config/environments/production.rb +67 -0
- data/config/environments/test.rb +37 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/devise.rb +240 -0
- data/config/initializers/devise_encryptable.rb +37 -0
- data/config/initializers/devise_models.rb +86 -0
- data/config/initializers/inflections.rb +15 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/secret_token.rb +7 -0
- data/config/initializers/session_store.rb +8 -0
- data/config/initializers/simple_form.rb +142 -0
- data/config/initializers/simple_form_bootstrap.rb +45 -0
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/locales/cz.yml +45 -0
- data/config/locales/devise.cz.yml +47 -0
- data/config/locales/devise.en.yml +60 -0
- data/config/locales/en.yml +5 -0
- data/config/locales/server/cz.yml +14 -0
- data/config/locales/server/en.yml +7 -0
- data/config/locales/server/help/dovecot/cz.yml +21 -0
- data/config/locales/server/help/dovecot/en.yml +18 -0
- data/config/locales/server/help/dspam/cz.yml +10 -0
- data/config/locales/server/help/dspam/en.yml +4 -0
- data/config/locales/server/key/dovecot/cz.yml +23 -0
- data/config/locales/server/key/dovecot/en.yml +20 -0
- data/config/locales/server/key/dspam/cz.yml +10 -0
- data/config/locales/server/key/dspam/en.yml +4 -0
- data/config/locales/simple_form.en.yml +26 -0
- data/config/locales/views/admin_users/cz.yml +25 -0
- data/config/locales/views/admin_users/en.yml +5 -0
- data/config/locales/views/aliases/cz.yml +17 -0
- data/config/locales/views/aliases/en.yml +1 -0
- data/config/locales/views/devise/cz.yml +26 -0
- data/config/locales/views/devise/en.yml +13 -0
- data/config/locales/views/domains/cz.yml +15 -0
- data/config/locales/views/domains/en.yml +15 -0
- data/config/locales/views/server/cz.yml +19 -0
- data/config/locales/views/server/en.yml +3 -0
- data/config/locales/views/users/cz.yml +18 -0
- data/config/locales/views/users/en.yml +1 -0
- data/config/routes.rb +80 -0
- data/db/migrate/20121112201233_virtual_domain.rb +11 -0
- data/db/migrate/20121112201247_virtual_alias.rb +10 -0
- data/db/migrate/20121112201341_virtual_user.rb +34 -0
- data/db/migrate/20121112201359_create_admin_user.rb +30 -0
- data/db/migrate/20121112201411_server_configuration.rb +13 -0
- data/db/migrate/20130304083938_join_domains_users.rb +12 -0
- data/db/migrate/20130311214040_create_versions.rb +18 -0
- data/db/seeds.rb +45 -0
- data/lib/devise-encryptable.rb +1 -0
- data/lib/rmails.rb +5 -0
- data/lib/rmails/installer.rb +37 -0
- data/lib/rmails/version.rb +3 -0
- data/lib/tasks/.gitkeep +0 -0
- data/lib/templates/haml/scaffold/_form.html.haml +10 -0
- data/locals +0 -0
- data/log/.gitkeep +0 -0
- data/public/404.html +26 -0
- data/public/422.html +26 -0
- data/public/500.html +25 -0
- data/public/favicon.ico +0 -0
- data/public/fonts/London.eot +0 -0
- data/public/fonts/London.otf +0 -0
- data/public/fonts/London.woff +0 -0
- data/public/fonts/LondonBold.otf +0 -0
- data/public/robots.txt +5 -0
- data/rmails.gemspec +35 -0
- data/script/prepflog.pl +576 -0
- data/script/rails +6 -0
- data/system/config/automateit_env.rb +16 -0
- data/system/config/fields.yml +48 -0
- data/system/config/tags.yml +39 -0
- data/system/dist/README_AutomateIt_dist.txt +20 -0
- data/system/dist/amavis/spamassassin.cf.erb +85 -0
- data/system/dist/amavis/user.erb +33 -0
- data/system/dist/awstats/awstats.mail.conf.erb +41 -0
- data/system/dist/awstats/prepflog.pl +576 -0
- data/system/dist/dovecot/dovecot-sql.conf.ext.erb +14 -0
- data/system/dist/dovecot/dovecot.conf.erb +297 -0
- data/system/dist/dovecot/old_dovecot.conf.erb +63 -0
- data/system/dist/dspam/conf.erb +96 -0
- data/system/dist/dspam/pgsql.conf +33 -0
- data/system/dist/nginx/awstats.erb +17 -0
- data/system/dist/nginx/rmails.erb +40 -0
- data/system/dist/postfix/email2email.cf.erb +5 -0
- data/system/dist/postfix/main.cf.erb +118 -0
- data/system/dist/postfix/master.cf.erb +74 -0
- data/system/dist/postfix/sasl.conf.erb +3 -0
- data/system/dist/postfix/sender_login_maps.cf.erb +5 -0
- data/system/dist/postfix/virtual_alias_maps.cf.erb +5 -0
- data/system/dist/postfix/virtual_mailbox_domains.cf.erb +5 -0
- data/system/dist/postfix/virtual_mailbox_maps.cf.erb +5 -0
- data/system/dist/postgresql/postgresql.conf.erb +54 -0
- data/system/dist/rmails/Gemfile.1 +8 -0
- data/system/dist/rmails/Gemfile.2 +24 -0
- data/system/dist/rmails/database.yml.erb +15 -0
- data/system/dist/sudoers +37 -0
- data/system/lib/README_AutomateIt_lib.txt +22 -0
- data/system/lib/dkim_key.rb +9 -0
- data/system/lib/smtpd_key.rb +39 -0
- data/system/lib/ssl.rb +23 -0
- data/system/recipes/01_prepare_server.rb +84 -0
- data/system/recipes/02_setup_database.rb +65 -0
- data/system/recipes/03_setup_postfix.rb +124 -0
- data/system/recipes/04_setup_dovecot.rb +78 -0
- data/system/recipes/05_setup_nginx.rb +29 -0
- data/system/recipes/06_setup_dspam.rb +24 -0
- data/system/recipes/07_setup_amavis.rb +16 -0
- data/system/recipes/08_setup_spamassassin.rb +22 -0
- data/system/recipes/09_setup_awstats.rb +49 -0
- data/system/recipes/XX_start_services.rb +5 -0
- data/test/fixtures/.gitkeep +0 -0
- data/test/functional/.gitkeep +0 -0
- data/test/functional/aliases_controller_test.rb +7 -0
- data/test/functional/domains_controller_test.rb +7 -0
- data/test/functional/users_controller_test.rb +7 -0
- data/test/integration/.gitkeep +0 -0
- data/test/performance/browsing_test.rb +12 -0
- data/test/test_helper.rb +13 -0
- data/test/unit/.gitkeep +0 -0
- data/test/unit/helpers/aliases_helper_test.rb +4 -0
- data/test/unit/helpers/domains_helper_test.rb +4 -0
- data/test/unit/helpers/users_helper_test.rb +4 -0
- data/vendor/assets/javascripts/.gitkeep +0 -0
- data/vendor/assets/javascripts/canjs/can.construct.proxy.js +60 -0
- data/vendor/assets/javascripts/canjs/can.construct.super.js +44 -0
- data/vendor/assets/javascripts/canjs/can.control.plugin.js +245 -0
- data/vendor/assets/javascripts/canjs/can.control.view.js +88 -0
- data/vendor/assets/javascripts/canjs/can.dojo.js +3669 -0
- data/vendor/assets/javascripts/canjs/can.dojo.min.js +66 -0
- data/vendor/assets/javascripts/canjs/can.fixture.js +1020 -0
- data/vendor/assets/javascripts/canjs/can.jquery.js +2995 -0
- data/vendor/assets/javascripts/canjs/can.jquery.min.js +52 -0
- data/vendor/assets/javascripts/canjs/can.mootools.js +3462 -0
- data/vendor/assets/javascripts/canjs/can.mootools.min.js +63 -0
- data/vendor/assets/javascripts/canjs/can.observe.attributes.js +293 -0
- data/vendor/assets/javascripts/canjs/can.observe.backup.js +368 -0
- data/vendor/assets/javascripts/canjs/can.observe.delegate.js +359 -0
- data/vendor/assets/javascripts/canjs/can.observe.setter.js +58 -0
- data/vendor/assets/javascripts/canjs/can.observe.validations.js +374 -0
- data/vendor/assets/javascripts/canjs/can.view.modifiers.js +292 -0
- data/vendor/assets/javascripts/canjs/can.yui.js +3530 -0
- data/vendor/assets/javascripts/canjs/can.yui.min.js +65 -0
- data/vendor/assets/javascripts/canjs/can.zepto.js +3426 -0
- data/vendor/assets/javascripts/canjs/can.zepto.min.js +62 -0
- data/vendor/assets/javascripts/twitter/bootstrap-affix.js +104 -0
- data/vendor/assets/javascripts/twitter/bootstrap-alert.js +90 -0
- data/vendor/assets/javascripts/twitter/bootstrap-button.js +96 -0
- data/vendor/assets/javascripts/twitter/bootstrap-carousel.js +176 -0
- data/vendor/assets/javascripts/twitter/bootstrap-collapse.js +158 -0
- data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +150 -0
- data/vendor/assets/javascripts/twitter/bootstrap-modal.js +239 -0
- data/vendor/assets/javascripts/twitter/bootstrap-popover.js +103 -0
- data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +151 -0
- data/vendor/assets/javascripts/twitter/bootstrap-tab.js +135 -0
- data/vendor/assets/javascripts/twitter/bootstrap-tooltip.js +275 -0
- data/vendor/assets/javascripts/twitter/bootstrap-transition.js +60 -0
- data/vendor/assets/javascripts/twitter/bootstrap-typeahead.js +300 -0
- data/vendor/assets/javascripts/twitter/my/bootstrap-typeahead.js +311 -0
- data/vendor/assets/stylesheets/.gitkeep +0 -0
- metadata +470 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 6e36cff2bf9d0a4fbcc5ae27ce38f79f413395d8
|
|
4
|
+
data.tar.gz: 980b29364e92c415bcb090dbb1431269aea5fce4
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: bd58fa3cfda8462e1bccd4fe6f5795c86662963299cf12c75775b466ce12d965774d41093fc4bf07e5719e283467025d3f3434737b3ad268c7f6912fe31a8c85
|
|
7
|
+
data.tar.gz: b8fd0f5a3b24ad4db83377c554482ac0e36fb577b9415a9e121de981c12fe67e7075a2651678e68654689bb242bc21b9f03bf52f121d0fdbfe43f9571e231ffd
|
data/.gitignore
ADDED
data/Gemfile
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
|
+
|
|
3
|
+
gem 'hoe'
|
|
4
|
+
gem 'open4'
|
|
5
|
+
gem 'rails', '~> 3.2'
|
|
6
|
+
gem 'devise'
|
|
7
|
+
gem 'thin'
|
|
8
|
+
gem 'pg'
|
|
9
|
+
|
|
10
|
+
gem 'automateit', '0.0.0', :path => "vendor/gems/automateit"
|
|
11
|
+
|
|
12
|
+
gem 'simple_form'
|
|
13
|
+
gem 'paper_trail'
|
|
14
|
+
|
|
15
|
+
['haml', 'jquery', 'chosen'].each do |g|
|
|
16
|
+
gem "#{g}-rails"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
#group :assets do
|
|
20
|
+
gem 'sass-rails', '~> 3.2.3'
|
|
21
|
+
gem 'coffee-rails', '~> 3.2.1'
|
|
22
|
+
gem 'therubyracer', :platforms => :ruby
|
|
23
|
+
gem 'uglifier', '>= 1.0.3'
|
|
24
|
+
#end
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: vendor/gems/automateit
|
|
3
|
+
specs:
|
|
4
|
+
automateit (0.0.0)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
actionmailer (3.2.12)
|
|
10
|
+
actionpack (= 3.2.12)
|
|
11
|
+
mail (~> 2.4.4)
|
|
12
|
+
actionpack (3.2.12)
|
|
13
|
+
activemodel (= 3.2.12)
|
|
14
|
+
activesupport (= 3.2.12)
|
|
15
|
+
builder (~> 3.0.0)
|
|
16
|
+
erubis (~> 2.7.0)
|
|
17
|
+
journey (~> 1.0.4)
|
|
18
|
+
rack (~> 1.4.5)
|
|
19
|
+
rack-cache (~> 1.2)
|
|
20
|
+
rack-test (~> 0.6.1)
|
|
21
|
+
sprockets (~> 2.2.1)
|
|
22
|
+
activemodel (3.2.12)
|
|
23
|
+
activesupport (= 3.2.12)
|
|
24
|
+
builder (~> 3.0.0)
|
|
25
|
+
activerecord (3.2.12)
|
|
26
|
+
activemodel (= 3.2.12)
|
|
27
|
+
activesupport (= 3.2.12)
|
|
28
|
+
arel (~> 3.0.2)
|
|
29
|
+
tzinfo (~> 0.3.29)
|
|
30
|
+
activeresource (3.2.12)
|
|
31
|
+
activemodel (= 3.2.12)
|
|
32
|
+
activesupport (= 3.2.12)
|
|
33
|
+
activesupport (3.2.12)
|
|
34
|
+
i18n (~> 0.6)
|
|
35
|
+
multi_json (~> 1.0)
|
|
36
|
+
arel (3.0.2)
|
|
37
|
+
bcrypt-ruby (3.0.1)
|
|
38
|
+
builder (3.0.4)
|
|
39
|
+
chosen-rails (0.9.12)
|
|
40
|
+
coffee-rails (>= 3.2)
|
|
41
|
+
railties (>= 3.0)
|
|
42
|
+
sass-rails (>= 3.2)
|
|
43
|
+
coffee-rails (3.2.2)
|
|
44
|
+
coffee-script (>= 2.2.0)
|
|
45
|
+
railties (~> 3.2.0)
|
|
46
|
+
coffee-script (2.2.0)
|
|
47
|
+
coffee-script-source
|
|
48
|
+
execjs
|
|
49
|
+
coffee-script-source (1.6.1)
|
|
50
|
+
daemons (1.1.9)
|
|
51
|
+
devise (2.2.3)
|
|
52
|
+
bcrypt-ruby (~> 3.0)
|
|
53
|
+
orm_adapter (~> 0.1)
|
|
54
|
+
railties (~> 3.1)
|
|
55
|
+
warden (~> 1.2.1)
|
|
56
|
+
erubis (2.7.0)
|
|
57
|
+
eventmachine (1.0.3)
|
|
58
|
+
execjs (1.4.0)
|
|
59
|
+
multi_json (~> 1.0)
|
|
60
|
+
haml (4.0.0)
|
|
61
|
+
tilt
|
|
62
|
+
haml-rails (0.4)
|
|
63
|
+
actionpack (>= 3.1, < 4.1)
|
|
64
|
+
activesupport (>= 3.1, < 4.1)
|
|
65
|
+
haml (>= 3.1, < 4.1)
|
|
66
|
+
railties (>= 3.1, < 4.1)
|
|
67
|
+
hike (1.2.1)
|
|
68
|
+
hoe (3.5.1)
|
|
69
|
+
rake (>= 0.8, < 11.0)
|
|
70
|
+
i18n (0.6.4)
|
|
71
|
+
journey (1.0.4)
|
|
72
|
+
jquery-rails (2.2.1)
|
|
73
|
+
railties (>= 3.0, < 5.0)
|
|
74
|
+
thor (>= 0.14, < 2.0)
|
|
75
|
+
json (1.7.7)
|
|
76
|
+
libv8 (3.11.8.13)
|
|
77
|
+
mail (2.4.4)
|
|
78
|
+
i18n (>= 0.4.0)
|
|
79
|
+
mime-types (~> 1.16)
|
|
80
|
+
treetop (~> 1.4.8)
|
|
81
|
+
mime-types (1.21)
|
|
82
|
+
multi_json (1.6.1)
|
|
83
|
+
open4 (1.3.0)
|
|
84
|
+
orm_adapter (0.4.0)
|
|
85
|
+
paper_trail (2.7.1)
|
|
86
|
+
activerecord (~> 3.0)
|
|
87
|
+
railties (~> 3.0)
|
|
88
|
+
pg (0.14.1)
|
|
89
|
+
polyglot (0.3.3)
|
|
90
|
+
rack (1.4.5)
|
|
91
|
+
rack-cache (1.2)
|
|
92
|
+
rack (>= 0.4)
|
|
93
|
+
rack-ssl (1.3.3)
|
|
94
|
+
rack
|
|
95
|
+
rack-test (0.6.2)
|
|
96
|
+
rack (>= 1.0)
|
|
97
|
+
rails (3.2.12)
|
|
98
|
+
actionmailer (= 3.2.12)
|
|
99
|
+
actionpack (= 3.2.12)
|
|
100
|
+
activerecord (= 3.2.12)
|
|
101
|
+
activeresource (= 3.2.12)
|
|
102
|
+
activesupport (= 3.2.12)
|
|
103
|
+
bundler (~> 1.0)
|
|
104
|
+
railties (= 3.2.12)
|
|
105
|
+
railties (3.2.12)
|
|
106
|
+
actionpack (= 3.2.12)
|
|
107
|
+
activesupport (= 3.2.12)
|
|
108
|
+
rack-ssl (~> 1.3.2)
|
|
109
|
+
rake (>= 0.8.7)
|
|
110
|
+
rdoc (~> 3.4)
|
|
111
|
+
thor (>= 0.14.6, < 2.0)
|
|
112
|
+
rake (10.0.3)
|
|
113
|
+
rdoc (3.12.2)
|
|
114
|
+
json (~> 1.4)
|
|
115
|
+
ref (1.0.2)
|
|
116
|
+
sass (3.2.7)
|
|
117
|
+
sass-rails (3.2.6)
|
|
118
|
+
railties (~> 3.2.0)
|
|
119
|
+
sass (>= 3.1.10)
|
|
120
|
+
tilt (~> 1.3)
|
|
121
|
+
simple_form (2.1.0)
|
|
122
|
+
actionpack (~> 3.0)
|
|
123
|
+
activemodel (~> 3.0)
|
|
124
|
+
sprockets (2.2.2)
|
|
125
|
+
hike (~> 1.2)
|
|
126
|
+
multi_json (~> 1.0)
|
|
127
|
+
rack (~> 1.0)
|
|
128
|
+
tilt (~> 1.1, != 1.3.0)
|
|
129
|
+
therubyracer (0.11.4)
|
|
130
|
+
libv8 (~> 3.11.8.12)
|
|
131
|
+
ref
|
|
132
|
+
thin (1.5.0)
|
|
133
|
+
daemons (>= 1.0.9)
|
|
134
|
+
eventmachine (>= 0.12.6)
|
|
135
|
+
rack (>= 1.0.0)
|
|
136
|
+
thor (0.17.0)
|
|
137
|
+
tilt (1.3.4)
|
|
138
|
+
treetop (1.4.12)
|
|
139
|
+
polyglot
|
|
140
|
+
polyglot (>= 0.3.1)
|
|
141
|
+
tzinfo (0.3.35)
|
|
142
|
+
uglifier (1.3.0)
|
|
143
|
+
execjs (>= 0.3.0)
|
|
144
|
+
multi_json (~> 1.0, >= 1.0.2)
|
|
145
|
+
warden (1.2.1)
|
|
146
|
+
rack (>= 1.0)
|
|
147
|
+
|
|
148
|
+
PLATFORMS
|
|
149
|
+
ruby
|
|
150
|
+
|
|
151
|
+
DEPENDENCIES
|
|
152
|
+
automateit (= 0.0.0)!
|
|
153
|
+
chosen-rails
|
|
154
|
+
coffee-rails (~> 3.2.1)
|
|
155
|
+
devise
|
|
156
|
+
haml-rails
|
|
157
|
+
hoe
|
|
158
|
+
jquery-rails
|
|
159
|
+
open4
|
|
160
|
+
paper_trail
|
|
161
|
+
pg
|
|
162
|
+
rails (~> 3.2)
|
|
163
|
+
sass-rails (~> 3.2.3)
|
|
164
|
+
simple_form
|
|
165
|
+
therubyracer
|
|
166
|
+
thin
|
|
167
|
+
uglifier (>= 1.0.3)
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2013 Pavel Novotný, programator.pro
|
|
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.markdown
ADDED
data/Rakefile
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env rake
|
|
2
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
3
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
4
|
+
require 'rake/dsl_definition'
|
|
5
|
+
require File.expand_path('../config/application', __FILE__)
|
|
6
|
+
Rmails::Application.load_tasks
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
require "rmails/installer"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
=begin
|
|
13
|
+
desc "Interactive AutomateIt shell"
|
|
14
|
+
task :automateit do
|
|
15
|
+
@interpreter = AutomateIt.new(:project => "system")
|
|
16
|
+
@interpreter.include_in(self)
|
|
17
|
+
AutomateIt::CLI.run
|
|
18
|
+
=end
|
|
19
|
+
|
|
20
|
+
namespace :system do
|
|
21
|
+
desc "Prepare server by installing required software"
|
|
22
|
+
task :install do
|
|
23
|
+
setup = Rmails::Installer.new
|
|
24
|
+
setup.run
|
|
25
|
+
#@interpreter = AutomateIt.new(:project => "system")
|
|
26
|
+
#@interpreter.include_in(self)
|
|
27
|
+
#@interpreter.set :rake_task, Rake::Task
|
|
28
|
+
#@interpreter.set :rails_root, Rails.root
|
|
29
|
+
#invoke '01_prepare_server'
|
|
30
|
+
end
|
|
31
|
+
end
|
data/Rakefile1
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env rake
|
|
2
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
3
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
4
|
+
require 'rake/dsl_definition'
|
|
5
|
+
require File.expand_path('../config/application', __FILE__)
|
|
6
|
+
Rmails::Application.load_tasks
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
data/Vagrantfile
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# -*- mode: ruby -*-
|
|
2
|
+
# vi: set ft=ruby :
|
|
3
|
+
|
|
4
|
+
Vagrant::Config.run do |config|
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
config.vm.define :ubuntu do |c|
|
|
8
|
+
c.vm.box = "ubuntu12"
|
|
9
|
+
c.vm.forward_port 80, 8090
|
|
10
|
+
c.vm.forward_port 3000, 4000
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
config.vm.define :debian do |c|
|
|
14
|
+
c.vm.box = "debian32"
|
|
15
|
+
c.vm.forward_port 80, 8091
|
|
16
|
+
c.vm.forward_port 3000, 4001
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# Every Vagrant virtual environment requires a box to build off of.
|
|
22
|
+
#config.vm.box = "debian32"
|
|
23
|
+
|
|
24
|
+
# The url from where the 'config.vm.box' box will be fetched if it
|
|
25
|
+
# doesn't already exist on the user's system.
|
|
26
|
+
# config.vm.box_url = "http://domain.com/path/to/above.box"
|
|
27
|
+
|
|
28
|
+
# Boot with a GUI so you can see the screen. (Default is headless)
|
|
29
|
+
# config.vm.boot_mode = :gui
|
|
30
|
+
|
|
31
|
+
# Assign this VM to a host-only network IP, allowing you to access it
|
|
32
|
+
# via the IP. Host-only networks can talk to the host machine as well as
|
|
33
|
+
# any other machines on the same network, but cannot be accessed (through this
|
|
34
|
+
# network interface) by any external networks.
|
|
35
|
+
# config.vm.network :hostonly, "192.168.33.10"
|
|
36
|
+
|
|
37
|
+
# Assign this VM to a bridged network, allowing you to connect directly to a
|
|
38
|
+
# network using the host's network device. This makes the VM appear as another
|
|
39
|
+
# physical device on your network.
|
|
40
|
+
# config.vm.network :bridged
|
|
41
|
+
|
|
42
|
+
# Forward a port from the guest to the host, which allows for outside
|
|
43
|
+
# computers to access the VM, whereas host only networking does not.
|
|
44
|
+
# config.vm.forward_port 80, 8080
|
|
45
|
+
|
|
46
|
+
# Share an additional folder to the guest VM. The first argument is
|
|
47
|
+
# an identifier, the second is the path on the guest to mount the
|
|
48
|
+
# folder, and the third is the path on the host to the actual folder.
|
|
49
|
+
# config.vm.share_folder "v-data", "/vagrant_data", "../data"
|
|
50
|
+
|
|
51
|
+
end
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#= require ./lib/jquery
|
|
2
|
+
#= require jquery_ujs
|
|
3
|
+
#= require chosen-jquery
|
|
4
|
+
#= require ./canjs/can.jquery
|
|
5
|
+
#= require ./canjs/can.observe.validations
|
|
6
|
+
#= require ./canjs/can.observe.setter
|
|
7
|
+
#= require ./lib/jquery_formparams
|
|
8
|
+
#= require ./lib/jquery_input_hint
|
|
9
|
+
#= require ./lib/jquery_paginate
|
|
10
|
+
#= require ./lib/json2
|
|
11
|
+
#= require ./lib/utils
|
|
12
|
+
#= require ./lib/facebox
|
|
13
|
+
#= require_tree ./models
|
|
14
|
+
#= require_tree ./controls
|
|
15
|
+
#= require_self
|
|
16
|
+
|
|
17
|
+
$(document).ready ->
|
|
18
|
+
$('a[rel*=facebox]').facebox({
|
|
19
|
+
loading_image : 'loading.gif',
|
|
20
|
+
close_image : 'closelabel.gif'
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
#$(window).scroll(sticky)
|
|
24
|
+
#$(window).resize(sticky)
|
|
25
|
+
return
|
|
26
|
+
|
|
27
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
(function(can, window, undefined){
|
|
2
|
+
var isFunction = can.isFunction,
|
|
3
|
+
isArray = can.isArray,
|
|
4
|
+
makeArray = can.makeArray,
|
|
5
|
+
|
|
6
|
+
proxy = function( funcs ) {
|
|
7
|
+
|
|
8
|
+
//args that should be curried
|
|
9
|
+
var args = makeArray(arguments),
|
|
10
|
+
self;
|
|
11
|
+
|
|
12
|
+
// get the functions to callback
|
|
13
|
+
funcs = args.shift();
|
|
14
|
+
|
|
15
|
+
// if there is only one function, make funcs into an array
|
|
16
|
+
if (!isArray(funcs) ) {
|
|
17
|
+
funcs = [funcs];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// keep a reference to us in self
|
|
21
|
+
self = this;
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
return function class_cb() {
|
|
25
|
+
// add the arguments after the curried args
|
|
26
|
+
var cur = args.concat(makeArray(arguments)),
|
|
27
|
+
isString,
|
|
28
|
+
length = funcs.length,
|
|
29
|
+
f = 0,
|
|
30
|
+
func;
|
|
31
|
+
|
|
32
|
+
// go through each function to call back
|
|
33
|
+
for (; f < length; f++ ) {
|
|
34
|
+
func = funcs[f];
|
|
35
|
+
if (!func ) {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// set called with the name of the function on self (this is how this.view works)
|
|
40
|
+
isString = typeof func == "string";
|
|
41
|
+
|
|
42
|
+
// call the function
|
|
43
|
+
cur = (isString ? self[func] : func).apply(self, cur || []);
|
|
44
|
+
|
|
45
|
+
// pass the result to the next function (if there is a next function)
|
|
46
|
+
if ( f < length - 1 ) {
|
|
47
|
+
cur = !isArray(cur) || cur._use_call ? [cur] : cur
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return cur;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
can.Construct.proxy = can.Construct.prototype.proxy = proxy;
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
})(this.can, this )
|