Created
August 25, 2012 20:22
-
-
Save v-yarotsky/3470575 to your computer and use it in GitHub Desktop.
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
| $:.unshift File.join(File.dirname(__FILE__), 'lib') | |
| begin | |
| Bundler.setup(:default, :development) | |
| rescue Bundler::BundlerError => e | |
| $stderr.puts e.message | |
| $stderr.puts "Run `bundle install` to install missing gems" | |
| exit e.status_code | |
| end | |
| require 'sprockets' | |
| require 'coffee_script' #skim doesn't work without it (raises undefined constant Skim::Template::CoffeeScript on mri ruby 1.9.3-p125) | |
| require 'slim' | |
| require 'skim' | |
| require 'torrents_pub' | |
| require 'torrents_pub/environment' | |
| map '/assets' do | |
| sprockets = Sprockets::Environment.new | |
| %w(backbone stylesheets vendor).each do |dir| | |
| sprockets.append_path File.join(TorrentsPub::ROOT, 'assets', dir) | |
| end | |
| run sprockets | |
| end | |
| TorrentsPub::Environment.setup | |
| map '/' do | |
| run TorrentsPub::App | |
| end |
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
| Uncaught Error: Temple::InvalidExpression: Generator supports only core expressions - found [:escape, true, [:dynamic, "t"]] |
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 :gemcutter | |
| gem 'skim' | |
| gem 'slim' | |
| gem 'sinatra', '~> 1.3' | |
| gem 'coffee-script', '~> 2.2' | |
| gem 'json', '~> 1.7' | |
| gem 'sass', '~> 3.1' | |
| gem 'eco', '~> 1.0' | |
| gem 'rake', '~> 0.9' | |
| gem 'sprockets', '~> 2.0' | |
| gem 'slapjack', :path => '/Users/vladimiryarotsky/Projects/slapjack' | |
| gem 'datamapper' | |
| gem 'dm-sqlite-adapter' | |
| group :development, :test do | |
| gem 'jasmine-headless-webkit', '~> 0.8' | |
| gem 'guard-jasmine-headless-webkit', '~> 0.3' | |
| gem 'rspec', '~> 2.11' | |
| gem 'rack-test', '~> 0.6' | |
| end |
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
| PATH | |
| remote: /Users/vladimiryarotsky/Projects/slapjack | |
| specs: | |
| slapjack (0.0.1) | |
| mechanize | |
| pry | |
| GEM | |
| remote: http://rubygems.org/ | |
| specs: | |
| addressable (2.2.8) | |
| bcrypt-ruby (3.0.1) | |
| coderay (1.0.7) | |
| coffee-script (2.2.0) | |
| coffee-script-source | |
| execjs | |
| coffee-script-source (1.3.3) | |
| data_objects (0.10.8) | |
| addressable (~> 2.1) | |
| datamapper (1.2.0) | |
| dm-aggregates (~> 1.2.0) | |
| dm-constraints (~> 1.2.0) | |
| dm-core (~> 1.2.0) | |
| dm-migrations (~> 1.2.0) | |
| dm-serializer (~> 1.2.0) | |
| dm-timestamps (~> 1.2.0) | |
| dm-transactions (~> 1.2.0) | |
| dm-types (~> 1.2.0) | |
| dm-validations (~> 1.2.0) | |
| diff-lcs (1.1.3) | |
| dm-aggregates (1.2.0) | |
| dm-core (~> 1.2.0) | |
| dm-constraints (1.2.0) | |
| dm-core (~> 1.2.0) | |
| dm-core (1.2.0) | |
| addressable (~> 2.2.6) | |
| dm-do-adapter (1.2.0) | |
| data_objects (~> 0.10.6) | |
| dm-core (~> 1.2.0) | |
| dm-migrations (1.2.0) | |
| dm-core (~> 1.2.0) | |
| dm-serializer (1.2.2) | |
| dm-core (~> 1.2.0) | |
| fastercsv (~> 1.5) | |
| json (~> 1.6) | |
| json_pure (~> 1.6) | |
| multi_json (~> 1.0) | |
| dm-sqlite-adapter (1.2.0) | |
| dm-do-adapter (~> 1.2.0) | |
| do_sqlite3 (~> 0.10.6) | |
| dm-timestamps (1.2.0) | |
| dm-core (~> 1.2.0) | |
| dm-transactions (1.2.0) | |
| dm-core (~> 1.2.0) | |
| dm-types (1.2.2) | |
| bcrypt-ruby (~> 3.0) | |
| dm-core (~> 1.2.0) | |
| fastercsv (~> 1.5) | |
| json (~> 1.6) | |
| multi_json (~> 1.0) | |
| stringex (~> 1.4) | |
| uuidtools (~> 2.1) | |
| dm-validations (1.2.0) | |
| dm-core (~> 1.2.0) | |
| do_sqlite3 (0.10.8) | |
| data_objects (= 0.10.8) | |
| domain_name (0.5.3) | |
| unf (~> 0.0.3) | |
| eco (1.0.0) | |
| coffee-script | |
| eco-source | |
| execjs | |
| eco-source (1.1.0.rc.1) | |
| execjs (1.4.0) | |
| multi_json (~> 1.0) | |
| fastercsv (1.5.5) | |
| ffi (1.1.5) | |
| guard (1.3.2) | |
| listen (>= 0.4.2) | |
| thor (>= 0.14.6) | |
| guard-jasmine-headless-webkit (0.3.2) | |
| guard (>= 0.4.0) | |
| jasmine-headless-webkit (>= 0.7.0) | |
| hike (1.2.1) | |
| jasmine-core (1.2.0) | |
| jasmine-headless-webkit (0.8.4) | |
| coffee-script | |
| jasmine-core (~> 1.1) | |
| multi_json | |
| rainbow | |
| sprockets (~> 2) | |
| json (1.7.5) | |
| json_pure (1.7.5) | |
| listen (0.4.7) | |
| rb-fchange (~> 0.0.5) | |
| rb-fsevent (~> 0.9.1) | |
| rb-inotify (~> 0.8.8) | |
| mechanize (2.5.1) | |
| domain_name (~> 0.5, >= 0.5.1) | |
| mime-types (~> 1.17, >= 1.17.2) | |
| net-http-digest_auth (~> 1.1, >= 1.1.1) | |
| net-http-persistent (~> 2.5, >= 2.5.2) | |
| nokogiri (~> 1.4) | |
| ntlm-http (~> 0.1, >= 0.1.1) | |
| webrobots (~> 0.0, >= 0.0.9) | |
| method_source (0.8) | |
| mime-types (1.19) | |
| multi_json (1.3.6) | |
| net-http-digest_auth (1.2.1) | |
| net-http-persistent (2.7) | |
| nokogiri (1.5.5) | |
| ntlm-http (0.1.1) | |
| pry (0.9.10) | |
| coderay (~> 1.0.5) | |
| method_source (~> 0.8) | |
| slop (~> 3.3.1) | |
| rack (1.4.1) | |
| rack-protection (1.2.0) | |
| rack | |
| rack-test (0.6.1) | |
| rack (>= 1.0) | |
| rainbow (1.1.4) | |
| rake (0.9.2.2) | |
| rb-fchange (0.0.5) | |
| ffi | |
| rb-fsevent (0.9.1) | |
| rb-inotify (0.8.8) | |
| ffi (>= 0.5.0) | |
| rspec (2.11.0) | |
| rspec-core (~> 2.11.0) | |
| rspec-expectations (~> 2.11.0) | |
| rspec-mocks (~> 2.11.0) | |
| rspec-core (2.11.1) | |
| rspec-expectations (2.11.2) | |
| diff-lcs (~> 1.1.3) | |
| rspec-mocks (2.11.2) | |
| sass (3.2.1) | |
| sinatra (1.3.3) | |
| rack (~> 1.3, >= 1.3.6) | |
| rack-protection (~> 1.2) | |
| tilt (~> 1.3, >= 1.3.3) | |
| skim (0.8.3) | |
| coffee-script | |
| coffee-script-source (>= 1.2.0) | |
| multi_json | |
| slim (~> 1.2.0) | |
| sprockets | |
| temple (~> 0.4.0) | |
| slim (1.2.2) | |
| temple (~> 0.4.0) | |
| tilt (~> 1.3.3) | |
| slop (3.3.2) | |
| sprockets (2.4.5) | |
| hike (~> 1.2) | |
| multi_json (~> 1.0) | |
| rack (~> 1.0) | |
| tilt (~> 1.1, != 1.3.0) | |
| stringex (1.4.0) | |
| temple (0.4.0) | |
| thor (0.16.0) | |
| tilt (1.3.3) | |
| unf (0.0.5) | |
| unf_ext | |
| unf_ext (0.0.5) | |
| uuidtools (2.1.3) | |
| webrobots (0.0.13) | |
| PLATFORMS | |
| ruby | |
| DEPENDENCIES | |
| coffee-script (~> 2.2) | |
| datamapper | |
| dm-sqlite-adapter | |
| eco (~> 1.0) | |
| guard-jasmine-headless-webkit (~> 0.3) | |
| jasmine-headless-webkit (~> 0.8) | |
| json (~> 1.7) | |
| rack-test (~> 0.6) | |
| rake (~> 0.9) | |
| rspec (~> 2.11) | |
| sass (~> 3.1) | |
| sinatra (~> 1.3) | |
| skim | |
| slapjack! | |
| slim | |
| sprockets (~> 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
| select name="someType" | |
| - for t in ["foo", "bar"] | |
| | #{t} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment