raygun 0.0.30 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.0.31 [2013-06-16]
4
+
5
+ * For Heroku, default to serving static assets and the logger is synchronous by default (we don't have to set it) (#103).
6
+ * Less duplication in acceptance.rb, since it's basicially the same as production.rb.
7
+ * Fixed a regression where new apps might be configured with a non-existent ruby (#104).
8
+
3
9
  ## 0.0.30 [2013-06-14]
4
10
 
5
11
  * Bug fix.
data/README.md CHANGED
@@ -9,13 +9,13 @@ best practices baked right in. Spend less time configuring and more building coo
9
9
 
10
10
  Major tools/libraries:
11
11
 
12
- * Rails
12
+ * Rails (3.2.x or 4.0.x)
13
13
  * PostgreSQL
14
14
  * Slim
15
15
  * Less
16
16
  * Bootstrap
17
- * Sorcery
18
- * Cancan
17
+ * Sorcery (rails 3.2 projects only)
18
+ * Cancan (rails 3.2 projects only)
19
19
  * RSpec
20
20
  * Factory Girl
21
21
  * Jasmine
@@ -58,6 +58,9 @@ another ruby, just change the ```Gemfile``` and ```.ruby-version``` as necessary
58
58
 
59
59
  $ raygun your-project
60
60
 
61
+ Try ```raygun -r 40 your-project``` to generate a Rails 4 project (pssst! does not include authentication
62
+ or authorization yet).
63
+
61
64
  Once your project is baked out, you can easily kick the wheels. Be sure that you have the prerequities
62
65
  covered (see above).
63
66
 
@@ -77,11 +80,11 @@ covered (see above).
77
80
 
78
81
  ## Internal Mechanics
79
82
 
80
- Raygun simply copies the [rails_32](rails_32) tree and then runs a small set of commands to customize
81
- the copied project. So, what you get looks a lot like [rails_32](rails_32). Check out
82
- [raygun](bin/raygun) to see how it's massaged after being copied.
83
+ Raygun simply copies the [rails_40](rails_40) (or [rails_32](rails_32)) tree and then runs a small set of
84
+ commands to customize the copied project. So, what you get looks a lot like [rails_40](rails_40)
85
+ ([rails_32](rails_32)). Check out [raygun](bin/raygun) to see how it's massaged after being copied.
83
86
 
84
- This approach is fast, simple, and makes raygun developement very easy. Make changes to [rails_32](rails_32),
87
+ This approach is fast, simple, and makes raygun developement very easy. Make changes to [rails_40](rails_40),
85
88
  run its specs and fire up the server to see what happens.
86
89
 
87
90
  ## Contributing
data/bin/raygun CHANGED
@@ -56,7 +56,7 @@ module Raygun
56
56
  end
57
57
 
58
58
  def update_ruby_version
59
- prototype_ruby_patch_level = File.read(File.expand_path('../../.ruby-version', __FILE__)).strip
59
+ prototype_ruby_patch_level = File.read(File.expand_path("../../#{prototype}/.ruby-version", __FILE__)).strip
60
60
  prototype_ruby_version = prototype_ruby_patch_level.match(/(\d\.\d\.\d).*/)[1]
61
61
  current_ruby_version = RUBY_VERSION
62
62
  current_ruby_patch_level = "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
@@ -77,7 +77,7 @@ module Raygun
77
77
 
78
78
  def print_plan
79
79
 
80
- project_template = prototype == 'rails_32' ? '3.2' : '4'
80
+ project_template = (prototype == 'rails_32') ? '3.2' : '4'
81
81
 
82
82
  puts ' ____ '.colorize(:light_yellow)
83
83
  puts ' / __ \____ ___ ______ ___ ______ '.colorize(:light_yellow)
@@ -1,3 +1,3 @@
1
1
  module Raygun
2
- VERSION = "0.0.30"
2
+ VERSION = "0.0.31"
3
3
  end
@@ -1,82 +1,8 @@
1
- AppPrototype::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # Code is not reloaded between requests.
5
- config.cache_classes = true
6
-
7
- # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both thread web servers
9
- # and those relying on copy on write to perform better.
10
- # Rake tasks automatically ignore this option for performance.
11
- config.eager_load = true
12
-
13
- # Full error reports are disabled and caching is turned on.
14
- config.consider_all_requests_local = false
15
- config.action_controller.perform_caching = true
16
-
17
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
- # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
- # config.action_dispatch.rack_cache = true
21
-
22
- # Disable Rails's static asset server (Apache or nginx will already do this).
23
- config.serve_static_assets = false
24
-
25
- # Compress JavaScripts and CSS.
26
- config.assets.js_compressor = :uglifier
27
- # config.assets.css_compressor = :sass
28
-
29
- # Do not fallback to assets pipeline if a precompiled asset is missed.
30
- config.assets.compile = false
31
-
32
- # Generate digests for assets URLs.
33
- config.assets.digest = true
34
-
35
- # Version of your assets, change this if you want to expire all your assets.
36
- config.assets.version = '1.0'
37
-
38
- # Specifies the header that your server uses for sending files.
39
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for apache
40
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41
-
42
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
- # config.force_ssl = true
1
+ # Acceptance builds on production's configuration.
2
+ require Rails.root.join('config/environments/production')
44
3
 
45
- # Set to :debug to see everything in the log.
46
- config.log_level = :info
47
-
48
- # Prepend all log lines with the following tags.
49
- # config.log_tags = [ :subdomain, :uuid ]
50
-
51
- # Use a different logger for distributed setups.
52
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
53
-
54
- # Use a different cache store in production.
55
- # config.cache_store = :mem_cache_store
56
-
57
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
58
- # config.action_controller.asset_host = "http://assets.example.com"
59
-
60
- # Precompile additional assets.
61
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
62
- # config.assets.precompile += %w( search.js )
63
-
64
- # Ignore bad email addresses and do not raise email delivery errors.
65
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
66
- # config.action_mailer.raise_delivery_errors = false
67
-
68
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
- # the I18n.default_locale when a translation can not be found).
70
- config.i18n.fallbacks = true
71
-
72
- # Send deprecation notices to registered listeners.
73
- config.active_support.deprecation = :notify
74
-
75
- # Disable automatic flushing of the log to improve performance.
76
- # config.autoflush_log = false
77
-
78
- # Use default logging formatter so that PID and timestamp are not suppressed.
79
- config.log_formatter = ::Logger::Formatter.new
4
+ AppPrototype::Application.configure do
5
+ # Settings specified here will take precedence over those in config/application.rb and config/production.rb.
80
6
 
81
7
  config.action_mailer.default_url_options = { host: 'app-prototype-acceptance.herokuapp.com' }
82
8
  end
@@ -19,8 +19,8 @@ AppPrototype::Application.configure do
19
19
  # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
20
  # config.action_dispatch.rack_cache = true
21
21
 
22
- # Disable Rails's static asset server (Apache or nginx will already do this).
23
- config.serve_static_assets = false
22
+ # When deploying to Heroku, the app must serve static assets (or serve them from a CDN).
23
+ config.serve_static_assets = true
24
24
 
25
25
  # Compress JavaScripts and CSS.
26
26
  config.assets.js_compressor = :uglifier
data/rails_40/config.ru CHANGED
@@ -2,9 +2,6 @@
2
2
 
3
3
  require ::File.expand_path('../config/environment', __FILE__)
4
4
 
5
- # Disable buffering for real time logging, see: https://devcenter.heroku.com/articles/logging#writing-to-your-log
6
- $stdout.sync = true
7
-
8
5
  # Optional Basic Auth - Enabled if BASIC_AUTH_PASSWORD is set. User is optional (any value will be accepted).
9
6
  BASIC_AUTH_USER = ENV['BASIC_AUTH_USER']
10
7
  BASIC_AUTH_PASSWORD = ENV['BASIC_AUTH_PASSWORD']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.30
4
+ version: 0.0.31
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-06-14 00:00:00.000000000 Z
14
+ date: 2013-06-16 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: Carbon Five Rails application generator
17
17
  email: