application_module 0.0.1 → 0.0.2

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.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +3 -0
  3. data/Gemfile +1 -3
  4. data/application_module.gemspec +1 -1
  5. data/gemfiles/Gemfile.rails-3.2.11 +8 -0
  6. data/gemfiles/Gemfile.rails-3.2.11.lock +87 -0
  7. data/gemfiles/Gemfile.rails-4.0.0 +8 -0
  8. data/gemfiles/Gemfile.rails-4.0.0.lock +81 -0
  9. data/lib/application_module.rb +2 -2
  10. data/lib/{autoloading.rb → application_module/autoloading.rb} +1 -1
  11. data/lib/application_module/version.rb +1 -1
  12. data/spec/dummies/dummy-rails-4.0.0/.gitignore +16 -0
  13. data/spec/dummies/dummy-rails-4.0.0/Gemfile +45 -0
  14. data/spec/dummies/dummy-rails-4.0.0/README.rdoc +28 -0
  15. data/spec/dummies/dummy-rails-4.0.0/Rakefile +6 -0
  16. data/spec/dummies/dummy-rails-4.0.0/app/assets/images/.keep +0 -0
  17. data/spec/dummies/dummy-rails-4.0.0/app/assets/javascripts/application.js +16 -0
  18. data/spec/dummies/dummy-rails-4.0.0/app/assets/stylesheets/application.css +13 -0
  19. data/spec/dummies/dummy-rails-4.0.0/app/controllers/application_controller.rb +5 -0
  20. data/spec/dummies/dummy-rails-4.0.0/app/controllers/concerns/.keep +0 -0
  21. data/spec/dummies/dummy-rails-4.0.0/app/helpers/application_helper.rb +2 -0
  22. data/spec/dummies/dummy-rails-4.0.0/app/mailers/.keep +0 -0
  23. data/spec/dummies/dummy-rails-4.0.0/app/models/.keep +0 -0
  24. data/spec/dummies/dummy-rails-4.0.0/app/models/concerns/.keep +0 -0
  25. data/spec/dummies/dummy-rails-4.0.0/app/views/layouts/application.html.erb +14 -0
  26. data/spec/dummies/dummy-rails-4.0.0/bin/bundle +3 -0
  27. data/spec/dummies/dummy-rails-4.0.0/bin/rails +4 -0
  28. data/spec/dummies/dummy-rails-4.0.0/bin/rake +4 -0
  29. data/spec/dummies/dummy-rails-4.0.0/config.ru +4 -0
  30. data/spec/dummies/dummy-rails-4.0.0/config/application.rb +32 -0
  31. data/spec/dummies/dummy-rails-4.0.0/config/boot.rb +4 -0
  32. data/spec/dummies/dummy-rails-4.0.0/config/database.yml +25 -0
  33. data/spec/dummies/dummy-rails-4.0.0/config/environment.rb +5 -0
  34. data/spec/dummies/dummy-rails-4.0.0/config/environments/development.rb +29 -0
  35. data/spec/dummies/dummy-rails-4.0.0/config/environments/production.rb +80 -0
  36. data/spec/dummies/dummy-rails-4.0.0/config/environments/test.rb +36 -0
  37. data/spec/dummies/dummy-rails-4.0.0/config/initializers/backtrace_silencers.rb +7 -0
  38. data/spec/dummies/dummy-rails-4.0.0/config/initializers/filter_parameter_logging.rb +4 -0
  39. data/spec/dummies/dummy-rails-4.0.0/config/initializers/inflections.rb +16 -0
  40. data/spec/dummies/dummy-rails-4.0.0/config/initializers/mime_types.rb +5 -0
  41. data/spec/dummies/dummy-rails-4.0.0/config/initializers/secret_token.rb +12 -0
  42. data/spec/dummies/dummy-rails-4.0.0/config/initializers/session_store.rb +3 -0
  43. data/spec/dummies/dummy-rails-4.0.0/config/initializers/wrap_parameters.rb +14 -0
  44. data/spec/dummies/dummy-rails-4.0.0/config/locales/en.yml +23 -0
  45. data/spec/dummies/dummy-rails-4.0.0/config/routes.rb +59 -0
  46. data/spec/dummies/dummy-rails-4.0.0/db/seeds.rb +7 -0
  47. data/spec/dummies/dummy-rails-4.0.0/lib/assets/.keep +0 -0
  48. data/spec/dummies/dummy-rails-4.0.0/lib/tasks/.keep +0 -0
  49. data/spec/dummies/dummy-rails-4.0.0/log/.keep +0 -0
  50. data/spec/dummies/dummy-rails-4.0.0/modules/animals.rb +4 -0
  51. data/spec/dummies/dummy-rails-4.0.0/modules/animals/controllers/tigers_controller.rb +7 -0
  52. data/spec/dummies/dummy-rails-4.0.0/modules/animals/decorators/tiger_decorator.rb +2 -0
  53. data/spec/dummies/dummy-rails-4.0.0/modules/animals/tiger.rb +2 -0
  54. data/spec/dummies/dummy-rails-4.0.0/modules/animals/views/tigers/index.html.erb +1 -0
  55. data/spec/dummies/dummy-rails-4.0.0/public/404.html +58 -0
  56. data/spec/dummies/dummy-rails-4.0.0/public/422.html +58 -0
  57. data/spec/dummies/dummy-rails-4.0.0/public/500.html +57 -0
  58. data/spec/dummies/dummy-rails-4.0.0/public/favicon.ico +0 -0
  59. data/spec/dummies/dummy-rails-4.0.0/public/robots.txt +5 -0
  60. data/spec/dummies/dummy-rails-4.0.0/test/controllers/.keep +0 -0
  61. data/spec/dummies/dummy-rails-4.0.0/test/fixtures/.keep +0 -0
  62. data/spec/dummies/dummy-rails-4.0.0/test/helpers/.keep +0 -0
  63. data/spec/dummies/dummy-rails-4.0.0/test/integration/.keep +0 -0
  64. data/spec/dummies/dummy-rails-4.0.0/test/mailers/.keep +0 -0
  65. data/spec/dummies/dummy-rails-4.0.0/test/models/.keep +0 -0
  66. data/spec/dummies/dummy-rails-4.0.0/test/test_helper.rb +15 -0
  67. data/spec/dummies/dummy-rails-4.0.0/vendor/assets/javascripts/.keep +0 -0
  68. data/spec/dummies/dummy-rails-4.0.0/vendor/assets/stylesheets/.keep +0 -0
  69. data/spec/test_helper.rb +3 -1
  70. metadata +136 -26
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4bec20dcb55078c6ab519d344b091c56adcfd566
4
+ data.tar.gz: 2bb764e2aa793361a49f6132bf7c2b0c0ada47d5
5
+ SHA512:
6
+ metadata.gz: f614e80affd1e415e91b37602ae891af65621c70ba635fef114832a56130278e4aafd7106e0bd823536cf7ed7babb79bb37aba62d835eb2b764e93dc5c76a176
7
+ data.tar.gz: 6405c015b079b9c37dc633f2d7d9aaf63962d965c34cd1c93565df8b9bd1ddb047a89dd3433c9301b3a19d5daf8acd670fa1ad7cbde6d3d59684ae9ca3574660
@@ -5,4 +5,7 @@ rvm:
5
5
  - 2.0.0
6
6
  - jruby-19mode
7
7
  - rbx-19mode
8
+ gemfile:
9
+ - gemfile/Gemfile.rails-3.2.11
10
+ - gemfile/Gemfile.rails-4.0.0
8
11
 
data/Gemfile CHANGED
@@ -3,6 +3,4 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in application_module.gemspec
4
4
  gemspec
5
5
 
6
- group :test do
7
- gem 'rake'
8
- end
6
+ gem 'rails', ENV['RAILS_VERSION'] || '4.0.0'
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "rails", "~> 3.2.11"
21
+ spec.add_dependency "rails"
22
22
  spec.add_development_dependency "bundler", "~> 1.3"
23
23
  spec.add_development_dependency "rake"
24
24
  end
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+
4
+ gem 'rails', '3.2.11'
5
+
6
+ group :test do
7
+ gem 'rake'
8
+ end
@@ -0,0 +1,87 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ actionmailer (3.2.11)
5
+ actionpack (= 3.2.11)
6
+ mail (~> 2.4.4)
7
+ actionpack (3.2.11)
8
+ activemodel (= 3.2.11)
9
+ activesupport (= 3.2.11)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ journey (~> 1.0.4)
13
+ rack (~> 1.4.0)
14
+ rack-cache (~> 1.2)
15
+ rack-test (~> 0.6.1)
16
+ sprockets (~> 2.2.1)
17
+ activemodel (3.2.11)
18
+ activesupport (= 3.2.11)
19
+ builder (~> 3.0.0)
20
+ activerecord (3.2.11)
21
+ activemodel (= 3.2.11)
22
+ activesupport (= 3.2.11)
23
+ arel (~> 3.0.2)
24
+ tzinfo (~> 0.3.29)
25
+ activeresource (3.2.11)
26
+ activemodel (= 3.2.11)
27
+ activesupport (= 3.2.11)
28
+ activesupport (3.2.11)
29
+ i18n (~> 0.6)
30
+ multi_json (~> 1.0)
31
+ arel (3.0.3)
32
+ builder (3.0.4)
33
+ erubis (2.7.0)
34
+ hike (1.2.3)
35
+ i18n (0.6.5)
36
+ journey (1.0.4)
37
+ json (1.8.1)
38
+ mail (2.4.4)
39
+ i18n (>= 0.4.0)
40
+ mime-types (~> 1.16)
41
+ treetop (~> 1.4.8)
42
+ mime-types (1.25)
43
+ multi_json (1.8.2)
44
+ polyglot (0.3.3)
45
+ rack (1.4.5)
46
+ rack-cache (1.2)
47
+ rack (>= 0.4)
48
+ rack-ssl (1.3.3)
49
+ rack
50
+ rack-test (0.6.2)
51
+ rack (>= 1.0)
52
+ rails (3.2.11)
53
+ actionmailer (= 3.2.11)
54
+ actionpack (= 3.2.11)
55
+ activerecord (= 3.2.11)
56
+ activeresource (= 3.2.11)
57
+ activesupport (= 3.2.11)
58
+ bundler (~> 1.0)
59
+ railties (= 3.2.11)
60
+ railties (3.2.11)
61
+ actionpack (= 3.2.11)
62
+ activesupport (= 3.2.11)
63
+ rack-ssl (~> 1.3.2)
64
+ rake (>= 0.8.7)
65
+ rdoc (~> 3.4)
66
+ thor (>= 0.14.6, < 2.0)
67
+ rake (10.1.0)
68
+ rdoc (3.12.2)
69
+ json (~> 1.4)
70
+ sprockets (2.2.2)
71
+ hike (~> 1.2)
72
+ multi_json (~> 1.0)
73
+ rack (~> 1.0)
74
+ tilt (~> 1.1, != 1.3.0)
75
+ thor (0.18.1)
76
+ tilt (1.4.1)
77
+ treetop (1.4.15)
78
+ polyglot
79
+ polyglot (>= 0.3.1)
80
+ tzinfo (0.3.38)
81
+
82
+ PLATFORMS
83
+ ruby
84
+
85
+ DEPENDENCIES
86
+ rails (= 3.2.11)
87
+ rake
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+
4
+ gem 'rails', '4.0.0'
5
+
6
+ group :test do
7
+ gem 'rake'
8
+ end
@@ -0,0 +1,81 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ actionmailer (4.0.0)
5
+ actionpack (= 4.0.0)
6
+ mail (~> 2.5.3)
7
+ actionpack (4.0.0)
8
+ activesupport (= 4.0.0)
9
+ builder (~> 3.1.0)
10
+ erubis (~> 2.7.0)
11
+ rack (~> 1.5.2)
12
+ rack-test (~> 0.6.2)
13
+ activemodel (4.0.0)
14
+ activesupport (= 4.0.0)
15
+ builder (~> 3.1.0)
16
+ activerecord (4.0.0)
17
+ activemodel (= 4.0.0)
18
+ activerecord-deprecated_finders (~> 1.0.2)
19
+ activesupport (= 4.0.0)
20
+ arel (~> 4.0.0)
21
+ activerecord-deprecated_finders (1.0.3)
22
+ activesupport (4.0.0)
23
+ i18n (~> 0.6, >= 0.6.4)
24
+ minitest (~> 4.2)
25
+ multi_json (~> 1.3)
26
+ thread_safe (~> 0.1)
27
+ tzinfo (~> 0.3.37)
28
+ arel (4.0.1)
29
+ atomic (1.1.14)
30
+ builder (3.1.4)
31
+ erubis (2.7.0)
32
+ hike (1.2.3)
33
+ i18n (0.6.5)
34
+ mail (2.5.4)
35
+ mime-types (~> 1.16)
36
+ treetop (~> 1.4.8)
37
+ mime-types (1.25)
38
+ minitest (4.7.5)
39
+ multi_json (1.8.2)
40
+ polyglot (0.3.3)
41
+ rack (1.5.2)
42
+ rack-test (0.6.2)
43
+ rack (>= 1.0)
44
+ rails (4.0.0)
45
+ actionmailer (= 4.0.0)
46
+ actionpack (= 4.0.0)
47
+ activerecord (= 4.0.0)
48
+ activesupport (= 4.0.0)
49
+ bundler (>= 1.3.0, < 2.0)
50
+ railties (= 4.0.0)
51
+ sprockets-rails (~> 2.0.0)
52
+ railties (4.0.0)
53
+ actionpack (= 4.0.0)
54
+ activesupport (= 4.0.0)
55
+ rake (>= 0.8.7)
56
+ thor (>= 0.18.1, < 2.0)
57
+ rake (10.1.0)
58
+ sprockets (2.10.0)
59
+ hike (~> 1.2)
60
+ multi_json (~> 1.0)
61
+ rack (~> 1.0)
62
+ tilt (~> 1.1, != 1.3.0)
63
+ sprockets-rails (2.0.1)
64
+ actionpack (>= 3.0)
65
+ activesupport (>= 3.0)
66
+ sprockets (~> 2.8)
67
+ thor (0.18.1)
68
+ thread_safe (0.1.3)
69
+ atomic
70
+ tilt (1.4.1)
71
+ treetop (1.4.15)
72
+ polyglot
73
+ polyglot (>= 0.3.1)
74
+ tzinfo (0.3.38)
75
+
76
+ PLATFORMS
77
+ ruby
78
+
79
+ DEPENDENCIES
80
+ rails (= 4.0.0)
81
+ rake
@@ -1,5 +1,5 @@
1
1
  require "application_module/version"
2
- require 'autoloading'
2
+ require 'application_module/autoloading'
3
3
 
4
4
  module ApplicationModule
5
5
  autoload :Controller, 'application_module/controller'
@@ -12,7 +12,7 @@ module ApplicationModule
12
12
  Pathname.new( caller.first[%r{^[^:]+}].sub(%r{\.rb$}, '') )
13
13
  )
14
14
  app_module.instance_eval do
15
- extend Autoloading
15
+ extend ApplicationModule::Autoloading
16
16
  autoload_without_namespacing %w(
17
17
  models
18
18
  views
@@ -1,5 +1,5 @@
1
1
  require 'active_support/inflector'
2
- module Autoloading
2
+ module ApplicationModule::Autoloading
3
3
  def autoload_file(filepath)
4
4
  klass_name = filepath[%r{([^/]+)\.rb$}, 1].camelize
5
5
  autoload klass_name.to_sym, filepath
@@ -1,3 +1,3 @@
1
1
  module ApplicationModule
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,16 @@
1
+ # See http://help.github.com/ignore-files/ for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Ignore bundler config.
8
+ /.bundle
9
+
10
+ # Ignore the default SQLite database.
11
+ /db/*.sqlite3
12
+ /db/*.sqlite3-journal
13
+
14
+ # Ignore all logfiles and tempfiles.
15
+ /log/*.log
16
+ /tmp
@@ -0,0 +1,45 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
4
+ gem 'rails', '4.0.0'
5
+
6
+ # Use sqlite3 as the database for Active Record
7
+ gem 'sqlite3'
8
+
9
+ # Use SCSS for stylesheets
10
+ gem 'sass-rails', '~> 4.0.0'
11
+
12
+ # Use Uglifier as compressor for JavaScript assets
13
+ gem 'uglifier', '>= 1.3.0'
14
+
15
+ # Use CoffeeScript for .js.coffee assets and views
16
+ gem 'coffee-rails', '~> 4.0.0'
17
+
18
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
19
+ # gem 'therubyracer', platforms: :ruby
20
+
21
+ # Use jquery as the JavaScript library
22
+ gem 'jquery-rails'
23
+
24
+ # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
25
+ gem 'turbolinks'
26
+
27
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
28
+ gem 'jbuilder', '~> 1.2'
29
+
30
+ group :doc do
31
+ # bundle exec rake doc:rails generates the API under doc/api.
32
+ gem 'sdoc', require: false
33
+ end
34
+
35
+ # Use ActiveModel has_secure_password
36
+ # gem 'bcrypt-ruby', '~> 3.0.0'
37
+
38
+ # Use unicorn as the app server
39
+ # gem 'unicorn'
40
+
41
+ # Use Capistrano for deployment
42
+ # gem 'capistrano', group: :development
43
+
44
+ # Use debugger
45
+ # gem 'debugger', group: [:development, :test]
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ DummyRails400::Application.load_tasks
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require turbolinks
16
+ //= require_tree .
@@ -0,0 +1,13 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
@@ -0,0 +1,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>DummyRails400</title>
5
+ <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
6
+ <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application