raygun 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGES.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log
2
2
 
3
- ## 0.0.14 [2012-12-??]
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.
@@ -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">Project_prototype</div>
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
- if !ARGV[0]
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}/' app/views/layouts/application.html.slim`
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
@@ -1,3 +1,3 @@
1
1
  module Raygun
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
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.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: