Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Extraction of template from ryandaigle.com

  • Loading branch information...
commit 19284e7788e2af08810fa47bac6f575bff307075 1 parent f06eb35
@rwdaigle authored
View
21 .env
@@ -0,0 +1,21 @@
+RACK_ENV=development
+DEFAULT_TTL=0
+
+NESTA_TITLE=My Name
+NESTA_FEED_URL=http://feeds.feedburner.com/MyBlogToken
+
+NESTA_AUTHOR__NAME=Your Name
+NESTA_AUTHOR__EMAIL=your.email@gmail.com
+NESTA_AUTHOR__URI=http://mysite.com
+NESTA_AUTHOR__TWITTER=twitter-handle
+NESTA_AUTHOR__GITHUB=github-handle
+NESTA_AUTHOR__LINKEDIN=linkedin-handle
+
+NESTA_THEME=clean
+NESTA_POWERED_BY=true
+
+NESTA_CACHE=false
+NESTA_CONTENT=content
+
+NESTA_DISQUS_SHORT_NAME=disqus-shortname
+NESTA_PRODUCTION__GOOGLE_ANALYTICS_CODE=UA-ga-code
View
3  .gitignore
@@ -0,0 +1,3 @@
+.rvmrc
+tmp/
+.sass-cache
View
3  .gitmodules
@@ -0,0 +1,3 @@
+[submodule "themes/clean"]
+ path = themes/clean
+ url = git@github.com:rwdaigle/nesta-theme-clean.git
View
21 Gemfile
@@ -0,0 +1,21 @@
+source :rubygems
+
+gem 'thin'
+gem 'nesta'
+gem 'rack-contrib'
+gem 'rack-cache'
+gem 'rack-rewrite'
+gem 'dalli'
+gem 'rack-pygmoku', :git => "git://github.com/krohrbaugh/rack-pygmoku.git"
+gem 'maruku'
+
+gem 'nesta-plugin-sluggable'
+
+group :development do
+ gem 'heroku'
+ gem 'foreman'
+end
+
+group :production do
+ gem 'newrelic_rpm'
+end
View
92 Gemfile.lock
@@ -0,0 +1,92 @@
+GIT
+ remote: git://github.com/krohrbaugh/rack-pygmoku.git
+ revision: 8ef8c473c01ea9751cf7820896b45269cf492f25
+ specs:
+ rack-pygmoku (0.1.0)
+ nokogiri (~> 1.4)
+ nokogiri (~> 1.4)
+ pygments.rb (~> 0)
+ pygments.rb (~> 0.1)
+ rack
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ RedCloth (4.2.9)
+ addressable (2.2.6)
+ blankslate (2.1.2.4)
+ daemons (1.1.8)
+ dalli (1.1.4)
+ eventmachine (0.12.10)
+ ffi (1.0.11)
+ foreman (0.39.0)
+ term-ansicolor (~> 1.0.7)
+ thor (>= 0.13.6)
+ haml (3.1.4)
+ heroku (2.19.2)
+ launchy (>= 0.3.2)
+ rest-client (~> 1.6.1)
+ rubyzip
+ term-ansicolor (~> 1.0.5)
+ launchy (2.0.5)
+ addressable (~> 2.2.6)
+ maruku (0.6.0)
+ syntax (>= 1.0.0)
+ mime-types (1.17.2)
+ nesta (0.9.11)
+ RedCloth (~> 4.2)
+ haml (~> 3.1)
+ rdiscount (~> 1.6)
+ sass (~> 3.1)
+ shotgun (>= 0.8)
+ sinatra (= 1.2.6)
+ nesta-plugin-sluggable (0.0.1)
+ nesta (>= 0.9.11)
+ newrelic_rpm (3.3.1)
+ nokogiri (1.5.0)
+ pygments.rb (0.2.4)
+ rubypython (~> 0.5.3)
+ rack (1.4.1)
+ rack-cache (1.1)
+ rack (>= 0.4)
+ rack-contrib (1.1.0)
+ rack (>= 0.9.1)
+ rack-rewrite (1.2.1)
+ rdiscount (1.6.8)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
+ rubypython (0.5.3)
+ blankslate (>= 2.1.2.3)
+ ffi (~> 1.0.7)
+ rubyzip (0.9.5)
+ sass (3.1.14)
+ shotgun (0.9)
+ rack (>= 1.0)
+ sinatra (1.2.6)
+ rack (~> 1.1)
+ tilt (< 2.0, >= 1.2.2)
+ syntax (1.0.0)
+ term-ansicolor (1.0.7)
+ thin (1.3.1)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
+ thor (0.14.6)
+ tilt (1.3.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ dalli
+ foreman
+ heroku
+ maruku
+ nesta
+ nesta-plugin-sluggable
+ newrelic_rpm
+ rack-cache
+ rack-contrib
+ rack-pygmoku!
+ rack-rewrite
+ thin
View
1  Procfile
@@ -0,0 +1 @@
+web: bundle exec thin start -p $PORT
View
4 app.rb
@@ -0,0 +1,4 @@
+module Nesta
+ class App
+ end
+end
View
44 config.ru
@@ -0,0 +1,44 @@
+require 'rubygems'
+require 'bundler/setup'
+
+Bundler.require(:default, ENV['RACK_ENV'])
+require 'rack/contrib'
+require 'newrelic_rpm'
+
+use Rack::ShowExceptions if ENV['RACK_ENV'] == 'development'
+
+ttl = ENV['DEFAULT_TTL'].to_i || 300
+use Rack::Cache,
+ :verbose => true,
+ :default_ttl => ttl,
+ :allow_reload => true,
+ :allow_revalidate => true,
+ :private_headers => [],
+ :metastore => "memcached://#{ENV['MEMCACHE_SERVERS'] || 'localhost:11211'}/meta",
+ :entitystore => "file:tmp/cache/rack/body"
+
+use Rack::ResponseHeaders do |headers|
+ headers['Cache-Control'] = "public, max-age=#{ttl}"
+end
+use Rack::ETag
+use Rack::CommonLogger
+
+use Rack::Rewrite do
+
+ # Old ryan's scraps URLs
+ # http://ryandaigle.com/articles/2009/8/6/what-s-new-in-edge-rails-cleaner-restful-controllers-w-respond_with
+ r301 %r{/articles/(\d{4})/(\d+)/(\d+)/(.+)}, 'http://archives.ryandaigle.com/articles/$1/$2/$3/$4'
+
+ # http://ryandaigle.com/archives/2007/10
+ r301 %r{/archives/(\d{4})/(\d+)}, 'http://archives.ryandaigle.com/archives/$1/$2'
+
+ r301 %r{/articles.xml(\?.*)?}, 'http://feeds.feedburner.com/RyansScraps', :if => Proc.new { |rack_env|
+ ENV['RACK_ENV'] == 'production' && rack_env['HTTP_USER_AGENT'] !~ /FeedBurner/
+ }
+end
+
+require 'nesta/env'
+Nesta::Env.root = ::File.expand_path('.', ::File.dirname(__FILE__))
+
+require 'nesta/app'
+run Nesta::App
View
19 config/newrelic.yml
@@ -0,0 +1,19 @@
+---
+production:
+ error_collector:
+ capture_source: true
+ enabled: true
+ ignore_errors: ActionController::RoutingError
+ apdex_t: 0.5
+ ssl: false
+ monitor_mode: true
+ license_key: <%= ENV["NEW_RELIC_LICENSE_KEY"] %>
+ developer_mode: false
+ app_name: <%= ENV["NEW_RELIC_APP_NAME"] %>
+ transaction_tracer:
+ record_sql: obfuscated
+ enabled: true
+ stack_trace_threshold: 0.5
+ transaction_threshold: apdex_f
+ capture_params: false
+ log_level: info
View
21 content/pages/index.haml
@@ -0,0 +1,21 @@
+Template: home
+
+%ol.index
+ - latest_articles(15).each do |article|
+ %li
+ %span.header= format_date(article.date)
+ %span.arrow &raquo;
+ %span.main
+ %a(href="#{article.abspath}")= article.title || article.heading
+ %span.meta
+ %a(href="#{article.abspath}#disqus_thread")
+
+:javascript
+ var disqus_shortname = '#{Nesta::Config.disqus_short_name}';
+
+ (function () {
+ var s = document.createElement('script'); s.async = true;
+ s.type = 'text/javascript';
+ s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
+ (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
+ }());
1  themes/clean
@@ -0,0 +1 @@
+Subproject commit bb79925030ae8378663a834552e6a1cec562a6a0
Please sign in to comment.
Something went wrong with that request. Please try again.