Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First commit with passing test. This project will demonstrate a drast…
…ic change in refinery engine development ... I hope.
- Loading branch information
Showing
40 changed files
with
934 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
--color | |||
-I app/models/refinery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
rvm use --create 1.9.3@refinerycms-calendar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,67 @@ | |||
source "http://rubygems.org" | |||
|
|||
gemspec | |||
|
|||
gem 'refinerycms', '~> 2.0.2' | |||
|
|||
# Refinery/rails should pull in the proper versions of these | |||
group :assets do | |||
gem 'sass-rails' | |||
gem 'coffee-rails' | |||
gem 'uglifier' | |||
end | |||
|
|||
gem 'jquery-rails' | |||
|
|||
group :development, :test do | |||
gem 'generator_spec' | |||
|
|||
require 'rbconfig' | |||
|
|||
platforms :jruby do | |||
gem 'activerecord-jdbcsqlite3-adapter' | |||
gem 'activerecord-jdbcmysql-adapter' | |||
gem 'activerecord-jdbcpostgresql-adapter' | |||
gem 'jruby-openssl' | |||
end | |||
|
|||
unless defined?(JRUBY_VERSION) | |||
gem 'sqlite3' | |||
gem 'mysql2' | |||
gem 'pg' | |||
end | |||
|
|||
platforms :mswin, :mingw do | |||
gem 'win32console' | |||
gem 'rb-fchange', '~> 0.0.5' | |||
gem 'rb-notifu', '~> 0.0.4' | |||
end | |||
|
|||
platforms :ruby do | |||
gem 'spork', '0.9.0.rc9' | |||
gem 'guard-spork' | |||
|
|||
unless ENV['TRAVIS'] | |||
if RbConfig::CONFIG['target_os'] =~ /darwin/i | |||
gem 'rb-fsevent', '>= 0.3.9' | |||
gem 'growl', '~> 1.0.3' | |||
end | |||
if RbConfig::CONFIG['target_os'] =~ /linux/i | |||
gem 'rb-inotify', '>= 0.5.1' | |||
gem 'libnotify', '~> 0.1.3' | |||
end | |||
end | |||
end | |||
|
|||
platforms :jruby do | |||
unless ENV['TRAVIS'] | |||
if RbConfig::CONFIG['target_os'] =~ /darwin/i | |||
gem 'growl', '~> 1.0.3' | |||
end | |||
if RbConfig::CONFIG['target_os'] =~ /linux/i | |||
gem 'rb-inotify', '>= 0.5.1' | |||
gem 'libnotify', '~> 0.1.3' | |||
end | |||
end | |||
end | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,258 @@ | |||
PATH | |||
remote: . | |||
specs: | |||
refinerycms-calendar (1.0) | |||
refinerycms-core (~> 2.0.2) | |||
|
|||
GEM | |||
remote: http://rubygems.org/ | |||
specs: | |||
actionmailer (3.2.2) | |||
actionpack (= 3.2.2) | |||
mail (~> 2.4.0) | |||
actionpack (3.2.2) | |||
activemodel (= 3.2.2) | |||
activesupport (= 3.2.2) | |||
builder (~> 3.0.0) | |||
erubis (~> 2.7.0) | |||
journey (~> 1.0.1) | |||
rack (~> 1.4.0) | |||
rack-cache (~> 1.1) | |||
rack-test (~> 0.6.1) | |||
sprockets (~> 2.1.2) | |||
activemodel (3.2.2) | |||
activesupport (= 3.2.2) | |||
builder (~> 3.0.0) | |||
activerecord (3.2.2) | |||
activemodel (= 3.2.2) | |||
activesupport (= 3.2.2) | |||
arel (~> 3.0.2) | |||
tzinfo (~> 0.3.29) | |||
activeresource (3.2.2) | |||
activemodel (= 3.2.2) | |||
activesupport (= 3.2.2) | |||
activesupport (3.2.2) | |||
i18n (~> 0.6) | |||
multi_json (~> 1.0) | |||
acts_as_indexed (0.7.8) | |||
arel (3.0.2) | |||
awesome_nested_set (2.1.2) | |||
activerecord (>= 3.0.0) | |||
babosa (0.3.7) | |||
bcrypt-ruby (3.0.1) | |||
builder (3.0.0) | |||
capybara (1.1.2) | |||
mime-types (>= 1.16) | |||
nokogiri (>= 1.3.3) | |||
rack (>= 1.0.0) | |||
rack-test (>= 0.5.4) | |||
selenium-webdriver (~> 2.0) | |||
xpath (~> 0.1.4) | |||
childprocess (0.3.1) | |||
ffi (~> 1.0.6) | |||
coffee-rails (3.2.2) | |||
coffee-script (>= 2.2.0) | |||
railties (~> 3.2.0) | |||
coffee-script (2.2.0) | |||
coffee-script-source | |||
execjs | |||
coffee-script-source (1.2.0) | |||
database_cleaner (0.7.2) | |||
devise (2.0.4) | |||
bcrypt-ruby (~> 3.0) | |||
orm_adapter (~> 0.0.3) | |||
railties (~> 3.1) | |||
warden (~> 1.1.1) | |||
diff-lcs (1.1.3) | |||
dragonfly (0.9.11) | |||
rack | |||
erubis (2.7.0) | |||
execjs (1.3.0) | |||
multi_json (~> 1.0) | |||
factory_girl (2.6.4) | |||
activesupport (>= 2.3.9) | |||
factory_girl_rails (1.7.0) | |||
factory_girl (~> 2.6.0) | |||
railties (>= 3.0.0) | |||
ffi (1.0.11) | |||
friendly_id (4.0.4) | |||
generator_spec (0.8.5) | |||
rails (>= 3.0, < 4.0) | |||
rspec-rails | |||
globalize3 (0.2.0) | |||
activemodel (>= 3.0.0) | |||
activerecord (>= 3.0.0) | |||
paper_trail (~> 2) | |||
growl (1.0.3) | |||
guard (1.0.1) | |||
ffi (>= 0.5.0) | |||
thor (~> 0.14.6) | |||
guard-spork (0.5.2) | |||
guard (>= 0.10.0) | |||
spork (>= 0.8.4) | |||
hike (1.2.1) | |||
i18n (0.6.0) | |||
journey (1.0.3) | |||
jquery-rails (2.0.1) | |||
railties (>= 3.2.0, < 5.0) | |||
thor (~> 0.14) | |||
json (1.6.6) | |||
mail (2.4.4) | |||
i18n (>= 0.4.0) | |||
mime-types (~> 1.16) | |||
treetop (~> 1.4.8) | |||
mime-types (1.18) | |||
multi_json (1.2.0) | |||
mysql2 (0.3.11) | |||
nokogiri (1.5.2) | |||
orm_adapter (0.0.7) | |||
paper_trail (2.6.3) | |||
activerecord (~> 3.0) | |||
railties (~> 3.0) | |||
pg (0.13.2) | |||
polyglot (0.3.3) | |||
rack (1.4.1) | |||
rack-cache (1.2) | |||
rack (>= 0.4) | |||
rack-ssl (1.3.2) | |||
rack | |||
rack-test (0.6.1) | |||
rack (>= 1.0) | |||
rails (3.2.2) | |||
actionmailer (= 3.2.2) | |||
actionpack (= 3.2.2) | |||
activerecord (= 3.2.2) | |||
activeresource (= 3.2.2) | |||
activesupport (= 3.2.2) | |||
bundler (~> 1.0) | |||
railties (= 3.2.2) | |||
railties (3.2.2) | |||
actionpack (= 3.2.2) | |||
activesupport (= 3.2.2) | |||
rack-ssl (~> 1.3.2) | |||
rake (>= 0.8.7) | |||
rdoc (~> 3.4) | |||
thor (~> 0.14.6) | |||
rake (0.9.2.2) | |||
rb-fsevent (0.9.0) | |||
rdoc (3.12) | |||
json (~> 1.4) | |||
refinerycms (2.0.2) | |||
bundler (~> 1.0) | |||
refinerycms-authentication (= 2.0.2) | |||
refinerycms-core (= 2.0.2) | |||
refinerycms-dashboard (= 2.0.2) | |||
refinerycms-images (= 2.0.2) | |||
refinerycms-pages (= 2.0.2) | |||
refinerycms-resources (= 2.0.2) | |||
refinerycms-authentication (2.0.2) | |||
devise (~> 2.0.0) | |||
refinerycms-core (= 2.0.2) | |||
refinerycms-core (2.0.2) | |||
acts_as_indexed (~> 0.7.7) | |||
awesome_nested_set (~> 2.1.0) | |||
coffee-rails (~> 3.2.1) | |||
friendly_id (~> 4.0.1) | |||
globalize3 (~> 0.2.0) | |||
jquery-rails (~> 2.0.0) | |||
rails (>= 3.1.3, < 3.3) | |||
sass-rails (~> 3.2.3) | |||
truncate_html (~> 0.5) | |||
uglifier (>= 1.0.3) | |||
will_paginate (~> 3.0.2) | |||
refinerycms-dashboard (2.0.2) | |||
refinerycms-core (= 2.0.2) | |||
refinerycms-images (2.0.2) | |||
dragonfly (~> 0.9.8) | |||
rack-cache (>= 0.5.3) | |||
refinerycms-core (= 2.0.2) | |||
refinerycms-pages (2.0.2) | |||
awesome_nested_set (~> 2.1.0) | |||
babosa (!= 0.3.6) | |||
refinerycms-core (= 2.0.2) | |||
seo_meta (~> 1.2.0) | |||
refinerycms-resources (2.0.2) | |||
dragonfly (~> 0.9.8) | |||
rack-cache (>= 0.5.3) | |||
refinerycms-core (= 2.0.2) | |||
refinerycms-testing (2.0.2) | |||
capybara (~> 1.1.0) | |||
database_cleaner (~> 0.7.1) | |||
factory_girl_rails (~> 1.7.0) | |||
rack-test (~> 0.6.0) | |||
refinerycms-core (= 2.0.2) | |||
rspec-rails (~> 2.8.1) | |||
rspec (2.8.0) | |||
rspec-core (~> 2.8.0) | |||
rspec-expectations (~> 2.8.0) | |||
rspec-mocks (~> 2.8.0) | |||
rspec-core (2.8.0) | |||
rspec-expectations (2.8.0) | |||
diff-lcs (~> 1.1.2) | |||
rspec-mocks (2.8.0) | |||
rspec-rails (2.8.1) | |||
actionpack (>= 3.0) | |||
activesupport (>= 3.0) | |||
railties (>= 3.0) | |||
rspec (~> 2.8.0) | |||
rubyzip (0.9.6.1) | |||
sass (3.1.15) | |||
sass-rails (3.2.5) | |||
railties (~> 3.2.0) | |||
sass (>= 3.1.10) | |||
tilt (~> 1.3) | |||
selenium-webdriver (2.20.0) | |||
childprocess (>= 0.2.5) | |||
ffi (~> 1.0) | |||
multi_json (~> 1.0) | |||
rubyzip | |||
seo_meta (1.2.0) | |||
railties (>= 3.0.0) | |||
spork (0.9.0.rc9) | |||
sprockets (2.1.2) | |||
hike (~> 1.2) | |||
rack (~> 1.0) | |||
tilt (~> 1.1, != 1.3.0) | |||
sqlite3 (1.3.5) | |||
thor (0.14.6) | |||
tilt (1.3.3) | |||
treetop (1.4.10) | |||
polyglot | |||
polyglot (>= 0.3.1) | |||
truncate_html (0.5.4) | |||
tzinfo (0.3.32) | |||
uglifier (1.2.3) | |||
execjs (>= 0.3.0) | |||
multi_json (>= 1.0.2) | |||
warden (1.1.1) | |||
rack (>= 1.0) | |||
will_paginate (3.0.3) | |||
xpath (0.1.4) | |||
nokogiri (~> 1.3) | |||
|
|||
PLATFORMS | |||
ruby | |||
|
|||
DEPENDENCIES | |||
activerecord-jdbcmysql-adapter | |||
activerecord-jdbcpostgresql-adapter | |||
activerecord-jdbcsqlite3-adapter | |||
coffee-rails | |||
generator_spec | |||
growl (~> 1.0.3) | |||
guard-spork | |||
jquery-rails | |||
jruby-openssl | |||
mysql2 | |||
pg | |||
rb-fchange (~> 0.0.5) | |||
rb-fsevent (>= 0.3.9) | |||
rb-notifu (~> 0.0.4) | |||
refinerycms (~> 2.0.2) | |||
refinerycms-calendar! | |||
refinerycms-testing (~> 2.0.2) | |||
sass-rails | |||
spork (= 0.9.0.rc9) | |||
sqlite3 | |||
uglifier | |||
win32console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,27 @@ | |||
guard 'spork', :wait => 60, :cucumber => false, :rspec_env => { 'RAILS_ENV' => 'test' } do | |||
watch('config/application.rb') | |||
watch('config/environment.rb') | |||
watch(%r{^config/environments/.+\.rb$}) | |||
watch(%r{^config/initializers/.+\.rb$}) | |||
watch('spec/spec_helper.rb') | |||
watch(%r{^spec/support/.+\.rb$}) | |||
watch(%r{^vendor/extensions/(.+)/spec/support/.+\.rb$}) | |||
end | |||
|
|||
guard 'rspec', :version => 2, :cli => "--color --drb --format Fuubar", :all_on_start => false, :all_after_pass => false do | |||
watch(%r{^spec/.+_spec\.rb$}) | |||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | |||
watch('spec/spec_helper.rb') { "spec" } | |||
|
|||
# Rails example | |||
watch(%r{^spec/.+_spec\.rb$}) | |||
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | |||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | |||
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/requests/#{m[1]}_spec.rb"] } | |||
watch(%r{^spec/support/(.+)\.rb$}) { "spec" } | |||
watch('spec/spec_helper.rb') { "spec" } | |||
watch('config/routes.rb') { "spec/routing" } | |||
watch('app/controllers/application_controller.rb') { "spec/controllers" } | |||
# Capybara request specs | |||
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,20 @@ | |||
#!/usr/bin/env rake | |||
begin | |||
require 'bundler/setup' | |||
rescue LoadError | |||
puts 'You must `gem install bundler` and `bundle install` to run rake tasks' | |||
end | |||
|
|||
ENGINE_PATH = File.dirname(__FILE__) | |||
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) | |||
|
|||
if File.exists?(APP_RAKEFILE) | |||
load 'rails/tasks/engine.rake' | |||
end | |||
|
|||
require "refinerycms-testing" | |||
Refinery::Testing::Railtie.load_tasks | |||
Refinery::Testing::Railtie.load_dummy_tasks(ENGINE_PATH) | |||
|
|||
load File.expand_path('../tasks/testing.rake', __FILE__) | |||
load File.expand_path('../tasks/rspec.rake', __FILE__) |
11 changes: 11 additions & 0 deletions
11
app/controllers/refinery/calendar/admin/events_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
module Refinery | |||
module Calendar | |||
module Admin | |||
class EventsController < ::Refinery::AdminController | |||
|
|||
crudify :'refinery/calendar/event', :xhr_paging => true | |||
|
|||
end | |||
end | |||
end | |||
end |
Oops, something went wrong.