Permalink
Browse files

added dummy app to make specs work with full rails stack

ignored spec folder from beign included in final gem
  • Loading branch information...
1 parent bc04298 commit 7da66837b8e6b8ca8a6399b96fdeeb5a7ccd4520 @alextk committed Apr 3, 2012
Showing with 1,035 additions and 63 deletions.
  1. +1 −0 Rakefile
  2. +0 −9 lib/rego-date-time-fields.rb
  3. +1 −1 lib/rego-date-time-fields/railtie.rb
  4. +1 −17 rego-date-time-fields.gemspec
  5. +31 −0 spec/dummy_app/Gemfile
  6. +78 −0 spec/dummy_app/Gemfile.lock
  7. +256 −0 spec/dummy_app/README
  8. +7 −0 spec/dummy_app/Rakefile
  9. +3 −0 spec/dummy_app/app/controllers/application_controller.rb
  10. +2 −0 spec/dummy_app/app/helpers/application_helper.rb
  11. +14 −0 spec/dummy_app/app/views/layouts/application.html.erb
  12. +4 −0 spec/dummy_app/config.ru
  13. +42 −0 spec/dummy_app/config/application.rb
  14. +6 −0 spec/dummy_app/config/boot.rb
  15. +22 −0 spec/dummy_app/config/database.yml
  16. +5 −0 spec/dummy_app/config/environment.rb
  17. +26 −0 spec/dummy_app/config/environments/development.rb
  18. +49 −0 spec/dummy_app/config/environments/production.rb
  19. +35 −0 spec/dummy_app/config/environments/test.rb
  20. +7 −0 spec/dummy_app/config/initializers/backtrace_silencers.rb
  21. +10 −0 spec/dummy_app/config/initializers/inflections.rb
  22. +5 −0 spec/dummy_app/config/initializers/mime_types.rb
  23. +7 −0 spec/dummy_app/config/initializers/secret_token.rb
  24. +8 −0 spec/dummy_app/config/initializers/session_store.rb
  25. +5 −0 spec/dummy_app/config/locales/en.yml
  26. +58 −0 spec/dummy_app/config/routes.rb
  27. +7 −0 spec/dummy_app/db/seeds.rb
  28. +26 −0 spec/dummy_app/public/404.html
  29. +26 −0 spec/dummy_app/public/422.html
  30. +26 −0 spec/dummy_app/public/500.html
  31. 0 spec/dummy_app/public/favicon.ico
  32. BIN spec/dummy_app/public/images/rails.png
  33. +239 −0 spec/dummy_app/public/index.html
  34. 0 spec/dummy_app/public/javascripts/application.js
  35. +5 −0 spec/dummy_app/public/robots.txt
  36. +6 −0 spec/dummy_app/script/rails
  37. +1 −1 spec/rego-date-time-fields/active_record_spec.rb
  38. +1 −1 spec/rego-date-time-fields/time_field_spec.rb
  39. +0 −7 spec/rego-date-time-fields_spec.rb
  40. +0 −11 spec/resources/db/schema_loader.rb
  41. +15 −16 spec/spec_helper.rb
View
@@ -22,6 +22,7 @@ Jeweler::Tasks.new do |gem|
gem.email = "tkachev.alex@gmail.com"
gem.authors = ["Alex"]
# dependencies defined in Gemfile
+ gem.files.exclude 'spec/**/*'
end
Jeweler::RubygemsDotOrgTasks.new
@@ -1,15 +1,6 @@
-#puts "load #{__FILE__}"
require 'rego-date-time-fields/active_record'
require 'rego-date-time-fields/type_caster'
require 'rego-date-time-fields/ruby_to_jquery_date_format_convertor'
require 'rego-date-time-fields/action_view'
-#%w{active_record type_caster action_view ruby_to_jquery_date_format_convertor}.each do |file_name|
-# require File.join(File.dirname(__FILE__), 'rego-date-time-fields', file_name)
-#end
-
-#module DateTimeFields
-#
-#end
-
require 'rego-date-time-fields/railtie' if defined?(Rails)
@@ -2,7 +2,7 @@ module DateTimeFields
class Railtie < Rails::Railtie
initializer "gems.date_time_fields" do
::ActiveRecord::Base.send :extend, DateTimeFields::ActiveRecord::ClassMethods
- ::ActionView::Helpers::FormHelper.send :include, DateTimeFields::ActionView::FormOptionsHelper
+ ::ActionView::Base.send :include, DateTimeFields::ActionView::FormOptionsHelper
::ActionView::Helpers::FormBuilder.send :include, DateTimeFields::ActionView::FormBuilder
end
end
@@ -31,23 +31,7 @@ Gem::Specification.new do |s|
"lib/rego-date-time-fields/railtie.rb",
"lib/rego-date-time-fields/ruby_to_jquery_date_format_convertor.rb",
"lib/rego-date-time-fields/type_caster.rb",
- "rego-date-time-fields.gemspec",
- "spec/factories.rb",
- "spec/rego-date-time-fields/active_record_spec.rb",
- "spec/rego-date-time-fields/date_field_spec.rb",
- "spec/rego-date-time-fields/ruby_to_jquery_date_format_convertor_spec.rb",
- "spec/rego-date-time-fields/time_field_spec.rb",
- "spec/rego-date-time-fields/type_caster_spec.rb",
- "spec/rego-date-time-fields_spec.rb",
- "spec/resources/db/database.yml",
- "spec/resources/db/schema.rb",
- "spec/resources/db/schema_loader.rb",
- "spec/resources/models/article.rb",
- "spec/resources/models/sms.rb",
- "spec/resources/views/sms_form_with_date.html.erb",
- "spec/resources/views/sms_form_with_time.html.erb",
- "spec/spec_helper.rb",
- "spec/support/file_macros.rb"
+ "rego-date-time-fields.gemspec"
]
s.homepage = "http://github.com/alextk/rego-date-time-fields"
s.licenses = ["MIT"]
View
@@ -0,0 +1,31 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.0.9'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'sqlite3'
+
+# Use unicorn as the web server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
+# gem 'ruby-debug'
+# gem 'ruby-debug19', :require => 'ruby-debug'
+
+# Bundle the extra gems:
+# gem 'bj'
+# gem 'nokogiri'
+# gem 'sqlite3-ruby', :require => 'sqlite3'
+# gem 'aws-s3', :require => 'aws/s3'
+
+# Bundle gems for the local environment. Make sure to
+# put test-only gems in this group so their generators
+# and rake tasks are available in development mode:
+# group :development, :test do
+# gem 'webrat'
+# end
@@ -0,0 +1,78 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ abstract (1.0.0)
+ actionmailer (3.0.9)
+ actionpack (= 3.0.9)
+ mail (~> 2.2.19)
+ actionpack (3.0.9)
+ activemodel (= 3.0.9)
+ activesupport (= 3.0.9)
+ builder (~> 2.1.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.5.0)
+ rack (~> 1.2.1)
+ rack-mount (~> 0.6.14)
+ rack-test (~> 0.5.7)
+ tzinfo (~> 0.3.23)
+ activemodel (3.0.9)
+ activesupport (= 3.0.9)
+ builder (~> 2.1.2)
+ i18n (~> 0.5.0)
+ activerecord (3.0.9)
+ activemodel (= 3.0.9)
+ activesupport (= 3.0.9)
+ arel (~> 2.0.10)
+ tzinfo (~> 0.3.23)
+ activeresource (3.0.9)
+ activemodel (= 3.0.9)
+ activesupport (= 3.0.9)
+ activesupport (3.0.9)
+ arel (2.0.10)
+ builder (2.1.2)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ i18n (0.5.0)
+ json (1.6.6)
+ mail (2.2.19)
+ activesupport (>= 2.3.6)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.18)
+ polyglot (0.3.3)
+ rack (1.2.5)
+ rack-mount (0.6.14)
+ rack (>= 1.0.0)
+ rack-test (0.5.7)
+ rack (>= 1.0)
+ rails (3.0.9)
+ actionmailer (= 3.0.9)
+ actionpack (= 3.0.9)
+ activerecord (= 3.0.9)
+ activeresource (= 3.0.9)
+ activesupport (= 3.0.9)
+ bundler (~> 1.0)
+ railties (= 3.0.9)
+ railties (3.0.9)
+ actionpack (= 3.0.9)
+ activesupport (= 3.0.9)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.4)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ sqlite3 (1.3.5)
+ thor (0.14.6)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.32)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ rails (= 3.0.9)
+ sqlite3
Oops, something went wrong.

0 comments on commit 7da6683

Please sign in to comment.