-
-
Save sergii/ba9de4e8082d1dd9f52e5aa29389b9fc to your computer and use it in GitHub Desktop.
Single file rails app
This file contains hidden or 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
| __mini_rails__ |
This file contains hidden or 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
| mini_rails |
This file contains hidden or 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
| ruby-2.2.0 |
This file contains hidden or 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
| # Run this file with: | |
| # rackup -p 3030 | |
| require "rubygems" | |
| gem "actionpack" | |
| gem "railties" | |
| require "rails" | |
| require "action_controller/railtie" | |
| class HelloWorldApp < Rails::Application | |
| config.eager_load = "development" | |
| config.consider_all_requests_local = true | |
| config.secret_key_base = "669846b267cea64315663e4f5c124096" | |
| config.secret_token = "9c9846b2f7cea64315503e4f5c124094" | |
| routes.append do | |
| get "/" => "hello#world" | |
| end | |
| end | |
| class HelloController < ActionController::Base | |
| def world | |
| render :text => "Hello world!" | |
| end | |
| end | |
| HelloWorldApp.initialize! | |
| run HelloWorldApp |
This file contains hidden or 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
| source 'http://rubygems.org' | |
| gem 'rails', '~> 4.2.1' |
This file contains hidden or 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
| GEM | |
| remote: http://rubygems.org/ | |
| specs: | |
| actionmailer (4.2.1) | |
| actionpack (= 4.2.1) | |
| actionview (= 4.2.1) | |
| activejob (= 4.2.1) | |
| mail (~> 2.5, >= 2.5.4) | |
| rails-dom-testing (~> 1.0, >= 1.0.5) | |
| actionpack (4.2.1) | |
| actionview (= 4.2.1) | |
| activesupport (= 4.2.1) | |
| rack (~> 1.6) | |
| rack-test (~> 0.6.2) | |
| rails-dom-testing (~> 1.0, >= 1.0.5) | |
| rails-html-sanitizer (~> 1.0, >= 1.0.1) | |
| actionview (4.2.1) | |
| activesupport (= 4.2.1) | |
| builder (~> 3.1) | |
| erubis (~> 2.7.0) | |
| rails-dom-testing (~> 1.0, >= 1.0.5) | |
| rails-html-sanitizer (~> 1.0, >= 1.0.1) | |
| activejob (4.2.1) | |
| activesupport (= 4.2.1) | |
| globalid (>= 0.3.0) | |
| activemodel (4.2.1) | |
| activesupport (= 4.2.1) | |
| builder (~> 3.1) | |
| activerecord (4.2.1) | |
| activemodel (= 4.2.1) | |
| activesupport (= 4.2.1) | |
| arel (~> 6.0) | |
| activesupport (4.2.1) | |
| i18n (~> 0.7) | |
| json (~> 1.7, >= 1.7.7) | |
| minitest (~> 5.1) | |
| thread_safe (~> 0.3, >= 0.3.4) | |
| tzinfo (~> 1.1) | |
| arel (6.0.0) | |
| builder (3.2.2) | |
| erubis (2.7.0) | |
| globalid (0.3.5) | |
| activesupport (>= 4.1.0) | |
| i18n (0.7.0) | |
| json (1.8.3) | |
| loofah (2.0.2) | |
| nokogiri (>= 1.5.9) | |
| mail (2.6.3) | |
| mime-types (>= 1.16, < 3) | |
| mime-types (2.6.1) | |
| mini_portile (0.6.2) | |
| minitest (5.7.0) | |
| nokogiri (1.6.6.2) | |
| mini_portile (~> 0.6.0) | |
| rack (1.6.1) | |
| rack-test (0.6.3) | |
| rack (>= 1.0) | |
| rails (4.2.1) | |
| actionmailer (= 4.2.1) | |
| actionpack (= 4.2.1) | |
| actionview (= 4.2.1) | |
| activejob (= 4.2.1) | |
| activemodel (= 4.2.1) | |
| activerecord (= 4.2.1) | |
| activesupport (= 4.2.1) | |
| bundler (>= 1.3.0, < 2.0) | |
| railties (= 4.2.1) | |
| sprockets-rails | |
| rails-deprecated_sanitizer (1.0.3) | |
| activesupport (>= 4.2.0.alpha) | |
| rails-dom-testing (1.0.6) | |
| activesupport (>= 4.2.0.beta, < 5.0) | |
| nokogiri (~> 1.6.0) | |
| rails-deprecated_sanitizer (>= 1.0.1) | |
| rails-html-sanitizer (1.0.2) | |
| loofah (~> 2.0) | |
| railties (4.2.1) | |
| actionpack (= 4.2.1) | |
| activesupport (= 4.2.1) | |
| rake (>= 0.8.7) | |
| thor (>= 0.18.1, < 2.0) | |
| rake (10.4.2) | |
| sprockets (3.2.0) | |
| rack (~> 1.0) | |
| sprockets-rails (2.3.1) | |
| actionpack (>= 3.0) | |
| activesupport (>= 3.0) | |
| sprockets (>= 2.8, < 4.0) | |
| thor (0.19.1) | |
| thread_safe (0.3.5) | |
| tzinfo (1.2.2) | |
| thread_safe (~> 0.1) | |
| PLATFORMS | |
| ruby | |
| DEPENDENCIES | |
| rails (~> 4.2.1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment