raygun 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -0
- data/lib/raygun/raygun.rb +15 -8
- data/lib/raygun/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1703db24e260082a7cf66ea11ac599a73f3634af
|
4
|
+
data.tar.gz: 3809c2ab8771027ee693678f77bc7c851014f011
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7dbe4a9ef426be99919b88146eda9a40814ac02a4bcf8e02de49dce51a0e9ebb9426e81c84e587cd1262771211eef3cb12f3292c1135b7cbe66c1a584a8c6a3
|
7
|
+
data.tar.gz: 6b36907318c77d815263742dbfdc00c759184a7214bf3ad7fb350e4693f2b1a6cd9afcc2752c479629382de9a069a609c9178d764c93c655f3d8faf602b016ea
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.9.4 [2014-02-11]
|
4
|
+
|
5
|
+
* Don't use patchlevels with ruby v2.1.0+, now that ruby has adopted semantic versioning.
|
6
|
+
* Fixed a typo (#124 , thanks redpoptarts!).
|
7
|
+
|
3
8
|
## 0.9.3 [2014-01-21]
|
4
9
|
|
5
10
|
* Use curl instead of wget, it's available by default on mavericks (wget is not).
|
data/lib/raygun/raygun.rb
CHANGED
@@ -11,7 +11,9 @@ require_relative 'version'
|
|
11
11
|
module Raygun
|
12
12
|
class Runner
|
13
13
|
CARBONFIVE_REPO = 'carbonfive/raygun-rails'
|
14
|
-
|
14
|
+
|
15
|
+
attr_accessor :target_dir, :app_dir, :app_name, :dash_name, :snake_name, :camel_name, :title_name, :prototype_repo,
|
16
|
+
:current_ruby_version, :current_ruby_patch_level
|
15
17
|
|
16
18
|
def initialize(target_dir, prototype_repo)
|
17
19
|
@target_dir = target_dir
|
@@ -22,6 +24,13 @@ module Raygun
|
|
22
24
|
@camel_name = camelize(snake_name)
|
23
25
|
@title_name = titleize(snake_name)
|
24
26
|
@prototype_repo = prototype_repo
|
27
|
+
|
28
|
+
@current_ruby_version = RUBY_VERSION
|
29
|
+
@current_ruby_patch_level = if RUBY_VERSION < '2.1.0' # Ruby adopted semver starting with 2.1.0.
|
30
|
+
"#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
|
31
|
+
else
|
32
|
+
"#{RUBY_VERSION}"
|
33
|
+
end
|
25
34
|
end
|
26
35
|
|
27
36
|
def check_target
|
@@ -125,12 +134,10 @@ module Raygun
|
|
125
134
|
def update_ruby_version
|
126
135
|
prototype_ruby_patch_level = File.read(File.expand_path("#{app_dir}/.ruby-version", __FILE__)).strip
|
127
136
|
prototype_ruby_version = prototype_ruby_patch_level.match(/(\d\.\d\.\d).*/)[1]
|
128
|
-
current_ruby_version = RUBY_VERSION
|
129
|
-
current_ruby_patch_level = "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
|
130
137
|
|
131
138
|
Dir.chdir(app_dir) do
|
132
|
-
shell "#{sed_i} 's/#{prototype_ruby_patch_level}/#{current_ruby_patch_level}/g' .ruby-version README.md"
|
133
|
-
shell "#{sed_i} 's/#{prototype_ruby_version}/#{current_ruby_version}/g' Gemfile"
|
139
|
+
shell "#{sed_i} 's/#{prototype_ruby_patch_level}/#{@current_ruby_patch_level}/g' .ruby-version README.md"
|
140
|
+
shell "#{sed_i} 's/#{prototype_ruby_version}/#{@current_ruby_version}/g' Gemfile"
|
134
141
|
end
|
135
142
|
end
|
136
143
|
|
@@ -150,11 +157,11 @@ module Raygun
|
|
150
157
|
puts ' /_/ |_|\__,_/\__, /\__, /\__,_/_/ /_/ '.colorize(:light_yellow)
|
151
158
|
puts ' /____//____/ '.colorize(:light_yellow)
|
152
159
|
puts
|
153
|
-
puts "Raygun will
|
160
|
+
puts "Raygun will create new app in directory:".colorize(:yellow) + " #{target_dir}".colorize(:yellow) + "...".colorize(:yellow)
|
154
161
|
puts
|
155
162
|
puts "-".colorize(:blue) + " Application Name:".colorize(:light_blue) + " #{title_name}".colorize(:light_reen)
|
156
163
|
puts "-".colorize(:blue) + " Project Template:".colorize(:light_blue) + " #{prototype_repo}".colorize(:light_reen)
|
157
|
-
puts "-".colorize(:blue) + " Ruby Version: ".colorize(:light_blue) + " #{
|
164
|
+
puts "-".colorize(:blue) + " Ruby Version: ".colorize(:light_blue) + " #{@current_ruby_patch_level}".colorize(:light_reen)
|
158
165
|
puts
|
159
166
|
end
|
160
167
|
|
@@ -183,7 +190,7 @@ module Raygun
|
|
183
190
|
puts ""
|
184
191
|
puts "# Run the app and check things out".colorize(:light_green)
|
185
192
|
puts "$".colorize(:blue) + " foreman start".colorize(:light_blue)
|
186
|
-
puts "$".colorize(:blue) + " open http://
|
193
|
+
puts "$".colorize(:blue) + " open http://localhost:3000".colorize(:light_blue)
|
187
194
|
puts ""
|
188
195
|
puts "Enjoy your Carbon Five flavored Rails application!".colorize(:yellow)
|
189
196
|
end
|
data/lib/raygun/version.rb
CHANGED
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.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Nelson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-02-11 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: Carbon Five Rails application generator
|
16
16
|
email:
|
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
54
|
version: '0'
|
55
55
|
requirements: []
|
56
56
|
rubyforge_project:
|
57
|
-
rubygems_version: 2.
|
57
|
+
rubygems_version: 2.0.14
|
58
58
|
signing_key:
|
59
59
|
specification_version: 4
|
60
60
|
summary: Generates and customizes Rails applications with Carbon Five best practices
|