raygun 0.0.26 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-version +1 -1
- data/.rvmrc +1 -1
- data/CHANGES.md +8 -2
- data/app_prototype/.ruby-version +1 -1
- data/app_prototype/.rvmrc +1 -1
- data/app_prototype/README.md +2 -2
- data/bin/raygun +14 -3
- data/lib/raygun/version.rb +1 -1
- metadata +2 -2
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.3-
|
1
|
+
1.9.3-p392
|
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm use 1.9.3-
|
1
|
+
rvm use 1.9.3-p392@raygun --create
|
data/CHANGES.md
CHANGED
@@ -1,9 +1,15 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.27 [2013-02-27]
|
4
|
+
|
5
|
+
* Make sure the target directory is empty, otherwise misfire.
|
6
|
+
* Use ruby-1.9.3-p392 for the project (new apps still use the version that invoked raygun) (thanks @rpak).
|
7
|
+
* Better detection of BSD vs GNU sed (thanks @orangejulius).
|
8
|
+
|
3
9
|
## 0.0.26 [2013-02-24]
|
4
10
|
|
5
|
-
* Validate presense of name on User
|
6
|
-
* Drop rspec and capybara version constraints from the Gemfile
|
11
|
+
* Validate presense of name on User.
|
12
|
+
* Drop rspec and capybara version constraints from the Gemfile.
|
7
13
|
|
8
14
|
## 0.0.25 [2013-02-20]
|
9
15
|
|
data/app_prototype/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.3-
|
1
|
+
1.9.3-p392
|
data/app_prototype/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm use ruby-1.9.3-
|
1
|
+
rvm use ruby-1.9.3-p392@app-prototype --create
|
data/app_prototype/README.md
CHANGED
@@ -8,7 +8,7 @@ Generated with [Raygun](https://github.com/carbonfive/raygun).
|
|
8
8
|
|
9
9
|
To run the specs or fire up the server, be sure you have these:
|
10
10
|
|
11
|
-
* Ruby 1.9.3-
|
11
|
+
* Ruby 1.9.3-p392
|
12
12
|
* PostgreSQL 9.x with superuser 'postgres' with no password (```createuser -s postgres```)
|
13
13
|
* PhantomJS for JavaScript testing (```brew install phantomjs```)
|
14
14
|
|
@@ -37,7 +37,7 @@ Again, with coverage for the ruby specs:
|
|
37
37
|
### Running the Application Locally
|
38
38
|
|
39
39
|
$ foreman start
|
40
|
-
$ open http://0.0.0.0:3000
|
40
|
+
$ open http://0.0.0.0:3000
|
41
41
|
|
42
42
|
### Using Guard
|
43
43
|
|
data/bin/raygun
CHANGED
@@ -17,6 +17,13 @@ module Raygun
|
|
17
17
|
@title_name = titleize(snake_name)
|
18
18
|
end
|
19
19
|
|
20
|
+
def check_target
|
21
|
+
unless Dir["#{@app_dir}/*"].empty?
|
22
|
+
puts "Misfire! The target directory isn't empty... aim elsewhere."
|
23
|
+
exit 1
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
20
27
|
def copy_prototype
|
21
28
|
FileUtils.mkdir_p(app_dir)
|
22
29
|
|
@@ -51,7 +58,7 @@ module Raygun
|
|
51
58
|
current_ruby_patch_level = "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
|
52
59
|
|
53
60
|
Dir.chdir(app_dir) do
|
54
|
-
shell "#{sed_i} 's/#{prototype_ruby_patch_level}/#{current_ruby_patch_level}/g' .rvmrc .ruby-version"
|
61
|
+
shell "#{sed_i} 's/#{prototype_ruby_patch_level}/#{current_ruby_patch_level}/g' .rvmrc .ruby-version README.md"
|
55
62
|
shell "#{sed_i} 's/#{prototype_ruby_version}/#{current_ruby_version}/g' Gemfile"
|
56
63
|
end
|
57
64
|
end
|
@@ -103,9 +110,12 @@ module Raygun
|
|
103
110
|
result.gsub(/\b('?[a-z])/) { $1.capitalize }
|
104
111
|
end
|
105
112
|
|
106
|
-
#
|
113
|
+
# Distinguish BSD vs GNU sed with the --version flag (only present in GNU sed).
|
107
114
|
def sed_i
|
108
|
-
|
115
|
+
@sed_format ||= begin
|
116
|
+
%x{sed --version &> /dev/null}
|
117
|
+
$?.success? ? "sed -i" : "sed -i ''"
|
118
|
+
end
|
109
119
|
end
|
110
120
|
|
111
121
|
# Run a shell command and raise an exception if it fails.
|
@@ -150,6 +160,7 @@ module Raygun
|
|
150
160
|
end
|
151
161
|
|
152
162
|
raygun = Raygun::Runner.parse(ARGV)
|
163
|
+
raygun.check_target
|
153
164
|
raygun.print_plan
|
154
165
|
raygun.copy_prototype
|
155
166
|
raygun.rename_new_app
|
data/lib/raygun/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raygun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.27
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.26
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Christian Nelson
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-02-
|
14
|
+
date: 2013-02-28 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: Carbon Five Rails application generator
|
17
17
|
email:
|