raygun 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.md +6 -1
- data/app_prototype/.gitignore +5 -2
- data/app_prototype/public/index.html +1 -1
- data/bin/raygun +3 -3
- data/cleanup.sh +5 -0
- data/lib/raygun/version.rb +1 -1
- metadata +1 -1
data/CHANGES.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## 0.0.
|
3
|
+
## 0.0.15 [2012-12-26]
|
4
|
+
|
5
|
+
* Handle cases where raygun is given a name with dashes (e.g wonder-pets).
|
6
|
+
* Replace all instances of app_prototype with the real app name.
|
7
|
+
|
8
|
+
## 0.0.14 [2012-12-26]
|
4
9
|
|
5
10
|
* Basic usage information.
|
6
11
|
* Added guard-livereload to Guardfile.
|
data/app_prototype/.gitignore
CHANGED
@@ -7,9 +7,12 @@
|
|
7
7
|
# Ignore bundler config
|
8
8
|
/.bundle
|
9
9
|
|
10
|
-
# Ignore the default SQLite database
|
10
|
+
# Ignore the default SQLite database
|
11
11
|
/db/*.sqlite3
|
12
12
|
|
13
|
-
# Ignore all logfiles and tempfiles
|
13
|
+
# Ignore all logfiles and tempfiles
|
14
14
|
/log/*.log
|
15
15
|
/tmp
|
16
|
+
|
17
|
+
# Ignore coverage data.
|
18
|
+
/coverage
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<header class="navbar navbar-fixed-top">
|
14
14
|
<nav class="navbar-inner">
|
15
15
|
<div class="container">
|
16
|
-
<div class="brand">
|
16
|
+
<div class="brand">App Prototype</div>
|
17
17
|
<ul class="nav pull-right">
|
18
18
|
<li><a href="/sign_in">Sign In</a></li>
|
19
19
|
</ul>
|
data/bin/raygun
CHANGED
@@ -13,14 +13,14 @@ def titleize(underscored_string)
|
|
13
13
|
result.gsub(/\b('?[a-z])/) { $1.capitalize }
|
14
14
|
end
|
15
15
|
|
16
|
-
|
16
|
+
unless ARGV[0]
|
17
17
|
puts "Please specify where raygun should generate a project (e.g. projects/my_new_project)."
|
18
18
|
puts "usage: raygun new_app_directory"
|
19
19
|
exit 1
|
20
20
|
end
|
21
21
|
|
22
22
|
app_dir = ARGV[0]
|
23
|
-
app_name_snake = File.basename(app_dir)
|
23
|
+
app_name_snake = File.basename(app_dir).gsub('-', '_')
|
24
24
|
app_name_camel = camelize(app_name_snake)
|
25
25
|
app_name_title = titleize(app_name_snake)
|
26
26
|
|
@@ -33,7 +33,7 @@ FileUtils.cp_r(File.expand_path('../../app_prototype', __FILE__), app_dir)
|
|
33
33
|
Dir.chdir(app_dir) do
|
34
34
|
`find . -type f -print | xargs sed -i '' 's/AppPrototype/#{app_name_camel}/g'`
|
35
35
|
`find . -type f -print | xargs sed -i '' 's/app_prototype/#{app_name_snake}/g'`
|
36
|
-
`sed -i '' 's/App Prototype/#{app_name_title}/'
|
36
|
+
`find . -type f -print | xargs sed -i '' 's/App Prototype/#{app_name_title}/g'`
|
37
37
|
`sed -i '' 's/SUPER_SECRET_TOKEN_REPLACE_ME_TODO/#{SecureRandom.hex(128)}/' config/initializers/secret_token.rb`
|
38
38
|
|
39
39
|
puts "Done! Next steps..."
|
data/cleanup.sh
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
|
3
|
+
# All git ignored files: git ls-files --others -i --exclude-standard
|
4
|
+
|
3
5
|
git clean -df
|
4
6
|
git checkout app_prototype/config/routes.rb app_prototype/db/schema.rb
|
5
7
|
|
8
|
+
find . -name ".DS_Store" -exec rm -f {} \;
|
9
|
+
|
10
|
+
rm -rfv app_prototype/.DS_Store
|
6
11
|
rm -rfv app_prototype/log/*
|
7
12
|
rm -rfv app_prototype/tmp/*
|
8
13
|
rm -rfv app_prototype/coverage
|
data/lib/raygun/version.rb
CHANGED