Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 4 commits
  • 6 files changed
  • 0 commit comments
  • 1 contributor
View
5 CHANGES.md
@@ -1,5 +1,10 @@
# Change Log
+## 0.0.15 [2012-12-26]
+
+* Handle cases where raygun is given a name with dashes (e.g wonder-pets).
+* Replace all instances of app_prototype with the real app name.
+
## 0.0.14 [2012-12-26]
* Basic usage information.
View
7 app_prototype/.gitignore
@@ -7,9 +7,12 @@
# Ignore bundler config
/.bundle
-# Ignore the default SQLite database.
+# Ignore the default SQLite database
/db/*.sqlite3
-# Ignore all logfiles and tempfiles.
+# Ignore all logfiles and tempfiles
/log/*.log
/tmp
+
+# Ignore coverage data.
+/coverage
View
2  app_prototype/public/index.html
@@ -13,7 +13,7 @@
<header class="navbar navbar-fixed-top">
<nav class="navbar-inner">
<div class="container">
- <div class="brand">Project_prototype</div>
+ <div class="brand">App Prototype</div>
<ul class="nav pull-right">
<li><a href="/sign_in">Sign In</a></li>
</ul>
View
6 bin/raygun
@@ -13,14 +13,14 @@ def titleize(underscored_string)
result.gsub(/\b('?[a-z])/) { $1.capitalize }
end
-if !ARGV[0]
+unless ARGV[0]
puts "Please specify where raygun should generate a project (e.g. projects/my_new_project)."
puts "usage: raygun new_app_directory"
exit 1
end
app_dir = ARGV[0]
-app_name_snake = File.basename(app_dir)
+app_name_snake = File.basename(app_dir).gsub('-', '_')
app_name_camel = camelize(app_name_snake)
app_name_title = titleize(app_name_snake)
@@ -33,7 +33,7 @@ FileUtils.cp_r(File.expand_path('../../app_prototype', __FILE__), app_dir)
Dir.chdir(app_dir) do
`find . -type f -print | xargs sed -i '' 's/AppPrototype/#{app_name_camel}/g'`
`find . -type f -print | xargs sed -i '' 's/app_prototype/#{app_name_snake}/g'`
- `sed -i '' 's/App Prototype/#{app_name_title}/' app/views/layouts/application.html.slim`
+ `find . -type f -print | xargs sed -i '' 's/App Prototype/#{app_name_title}/g'`
`sed -i '' 's/SUPER_SECRET_TOKEN_REPLACE_ME_TODO/#{SecureRandom.hex(128)}/' config/initializers/secret_token.rb`
puts "Done! Next steps..."
View
5 cleanup.sh
@@ -1,8 +1,13 @@
#!/bin/sh
+# All git ignored files: git ls-files --others -i --exclude-standard
+
git clean -df
git checkout app_prototype/config/routes.rb app_prototype/db/schema.rb
+find . -name ".DS_Store" -exec rm -f {} \;
+
+rm -rfv app_prototype/.DS_Store
rm -rfv app_prototype/log/*
rm -rfv app_prototype/tmp/*
rm -rfv app_prototype/coverage
View
2  lib/raygun/version.rb
@@ -1,3 +1,3 @@
module Raygun
- VERSION = "0.0.14"
+ VERSION = "0.0.15"
end

No commit comments for this range

Something went wrong with that request. Please try again.