raygun 0.0.23 → 0.0.24
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 +6 -0
- data/app_prototype/.ruby-version +1 -1
- data/app_prototype/.rvmrc +1 -1
- data/app_prototype/Gemfile +1 -1
- data/bin/raygun +9 -3
- data/lib/raygun/version.rb +1 -1
- metadata +5 -5
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.3-
|
1
|
+
1.9.3-p385
|
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm use 1.9.3-
|
1
|
+
rvm use 1.9.3-p385@raygun --create
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.24 [2013-02-14]
|
4
|
+
|
5
|
+
* Upgrade to ruby-1.9.3-p385 (thanks @mechfish).
|
6
|
+
* Upgrade to rails ~> 3.2.12 (thanks @mechfish).
|
7
|
+
* Pay attention to shelled command's exit status and bail with a message if a command fails.
|
8
|
+
|
3
9
|
## 0.0.23 [2013-02-07]
|
4
10
|
|
5
11
|
* Fixed a bug with detecting whether we're on darwin or not.
|
data/app_prototype/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.3-
|
1
|
+
1.9.3-p385
|
data/app_prototype/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm use ruby-1.9.3-
|
1
|
+
rvm use ruby-1.9.3-p385@app-prototype --create
|
data/app_prototype/Gemfile
CHANGED
data/bin/raygun
CHANGED
@@ -34,7 +34,7 @@ module Raygun
|
|
34
34
|
'app_prototype' => snake_name,
|
35
35
|
'App Prototype' => title_name
|
36
36
|
}.each do |proto_name, new_name|
|
37
|
-
|
37
|
+
shell "find . -type f -print | xargs #{sed_i} 's/#{proto_name}/#{new_name}/g'"
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
@@ -50,8 +50,8 @@ module Raygun
|
|
50
50
|
current_ruby_patch_level = "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
|
51
51
|
|
52
52
|
Dir.chdir(app_dir) do
|
53
|
-
|
54
|
-
|
53
|
+
shell "#{sed_i} 's/#{prototype_ruby_patch_level}/#{current_ruby_patch_level}/g' .rvmrc .ruby-version"
|
54
|
+
shell "#{sed_i} 's/#{prototype_ruby_version}/#{current_ruby_version}/g' Gemfile"
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
@@ -99,6 +99,12 @@ module Raygun
|
|
99
99
|
RUBY_PLATFORM =~ /darwin/ ? "sed -i ''" : "sed -i"
|
100
100
|
end
|
101
101
|
|
102
|
+
# Run a shell command and raise an exception if it fails.
|
103
|
+
def shell(command)
|
104
|
+
%x{#{command}}
|
105
|
+
raise "#{command} failed with status #{$?.exitstatus}." unless $?.success?
|
106
|
+
end
|
107
|
+
|
102
108
|
class << self
|
103
109
|
def parse(args)
|
104
110
|
raygun = nil
|
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.23
|
5
4
|
prerelease:
|
5
|
+
version: 0.0.24
|
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-14 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: Carbon Five Rails application generator
|
17
17
|
email:
|
@@ -166,20 +166,20 @@ rdoc_options: []
|
|
166
166
|
require_paths:
|
167
167
|
- lib
|
168
168
|
required_ruby_version: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
169
170
|
requirements:
|
170
171
|
- - ! '>='
|
171
172
|
- !ruby/object:Gem::Version
|
172
173
|
version: '0'
|
173
|
-
none: false
|
174
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
|
+
none: false
|
175
176
|
requirements:
|
176
177
|
- - ! '>='
|
177
178
|
- !ruby/object:Gem::Version
|
178
179
|
version: '0'
|
179
|
-
none: false
|
180
180
|
requirements: []
|
181
181
|
rubyforge_project:
|
182
|
-
rubygems_version: 1.8.
|
182
|
+
rubygems_version: 1.8.25
|
183
183
|
signing_key:
|
184
184
|
specification_version: 3
|
185
185
|
summary: Generates and customizes Rails applications with Carbon Five best practices
|