diff --git a/Gemfile b/Gemfile index def8723977..930398e871 100644 --- a/Gemfile +++ b/Gemfile @@ -57,3 +57,7 @@ group :test, :development do gem 'awesome_print' gem "letter_opener" end + +group :chili do + gem 'local_organics_feature', path: 'lib/chili/local_organics_feature' +end diff --git a/Gemfile.lock b/Gemfile.lock index d6befd949e..20d718b147 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -104,6 +104,13 @@ GIT i18n (~> 0.5) spree (~> 1.1) +PATH + remote: lib/chili/local_organics_feature + specs: + local_organics_feature (0.0.1) + chili (~> 3.1) + rails (~> 3.2.11) + GEM remote: http://rubygems.org/ specs: @@ -394,6 +401,7 @@ DEPENDENCIES haml jquery-rails letter_opener + local_organics_feature! newrelic_rpm pg pry-debugger diff --git a/lib/chili/local_organics_feature/.gitignore b/lib/chili/local_organics_feature/.gitignore new file mode 100644 index 0000000000..8619e09c5a --- /dev/null +++ b/lib/chili/local_organics_feature/.gitignore @@ -0,0 +1,3 @@ +.bundle/ +log/*.log +pkg/ diff --git a/lib/chili/local_organics_feature/README.rdoc b/lib/chili/local_organics_feature/README.rdoc new file mode 100644 index 0000000000..b4d54e23c2 --- /dev/null +++ b/lib/chili/local_organics_feature/README.rdoc @@ -0,0 +1,3 @@ += Local Organics Feature + +This project rocks and uses AGPL licence. \ No newline at end of file diff --git a/lib/chili/local_organics_feature/app/assets/images/local_organics_feature/.gitkeep b/lib/chili/local_organics_feature/app/assets/images/local_organics_feature/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/chili/local_organics_feature/app/assets/javascripts/local_organics_feature/application.js b/lib/chili/local_organics_feature/app/assets/javascripts/local_organics_feature/application.js new file mode 100644 index 0000000000..15ebed9422 --- /dev/null +++ b/lib/chili/local_organics_feature/app/assets/javascripts/local_organics_feature/application.js @@ -0,0 +1,13 @@ +// This is a manifest file that'll be compiled into application.js, which will include all the files +// listed below. +// +// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, +// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. +// +// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the +// the compiled file. +// +// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD +// GO AFTER THE REQUIRES BELOW. +// +//= require_tree . diff --git a/lib/chili/local_organics_feature/app/assets/stylesheets/local_organics_feature/application.css b/lib/chili/local_organics_feature/app/assets/stylesheets/local_organics_feature/application.css new file mode 100644 index 0000000000..3192ec897b --- /dev/null +++ b/lib/chili/local_organics_feature/app/assets/stylesheets/local_organics_feature/application.css @@ -0,0 +1,13 @@ +/* + * This is a manifest file that'll be compiled into application.css, which will include all the files + * listed below. + * + * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, + * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. + * + * You're free to add application-wide styles to this file and they'll appear at the top of the + * compiled file, but it's generally better to create a new file per style scope. + * + *= require_self + *= require_tree . + */ diff --git a/lib/chili/local_organics_feature/app/controllers/local_organics_feature/application_controller.rb b/lib/chili/local_organics_feature/app/controllers/local_organics_feature/application_controller.rb new file mode 100644 index 0000000000..ed0f159c0e --- /dev/null +++ b/lib/chili/local_organics_feature/app/controllers/local_organics_feature/application_controller.rb @@ -0,0 +1,4 @@ +module LocalOrganicsFeature + class ApplicationController < Chili::ApplicationController + end +end diff --git a/lib/chili/local_organics_feature/app/overrides/layouts/application/assets.html.erb.deface b/lib/chili/local_organics_feature/app/overrides/layouts/application/assets.html.erb.deface new file mode 100644 index 0000000000..c1fe8ec1e0 --- /dev/null +++ b/lib/chili/local_organics_feature/app/overrides/layouts/application/assets.html.erb.deface @@ -0,0 +1,3 @@ + +<%= stylesheet_link_tag 'local_organics_feature/application' %> +<%= javascript_include_tag 'local_organics_feature/application' %> diff --git a/lib/chili/local_organics_feature/app/overrides/layouts/application/example.html.erb.deface b/lib/chili/local_organics_feature/app/overrides/layouts/application/example.html.erb.deface new file mode 100644 index 0000000000..46f3961a1e --- /dev/null +++ b/lib/chili/local_organics_feature/app/overrides/layouts/application/example.html.erb.deface @@ -0,0 +1,6 @@ + +