raygun 0.0.22 → 0.0.23
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/.gitignore +2 -1
- data/CHANGES.md +5 -0
- data/bin/raygun +1 -8
- data/lib/raygun/version.rb +1 -1
- metadata +1 -1
data/.gitignore
CHANGED
data/CHANGES.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.23 [2013-02-07]
|
4
|
+
|
5
|
+
* Fixed a bug with detecting whether we're on darwin or not.
|
6
|
+
* Remove some dead code (thanks @bemurphy).
|
7
|
+
|
3
8
|
## 0.0.22 [2013-02-07]
|
4
9
|
|
5
10
|
* Support ubuntu and darwin (sed has slightly different syntax for in-place substitution).
|
data/bin/raygun
CHANGED
@@ -40,16 +40,9 @@ module Raygun
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def configure_new_app
|
43
|
-
generate_tokens
|
44
43
|
update_ruby_version
|
45
44
|
end
|
46
45
|
|
47
|
-
def generate_tokens
|
48
|
-
Dir.chdir(app_dir) do
|
49
|
-
`#{sed_i} 's/SUPER_SECRET_TOKEN_REPLACE_ME_TODO/#{SecureRandom.hex(128)}/' #{app_dir}/.env`
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
46
|
def update_ruby_version
|
54
47
|
prototype_ruby_patch_level = File.read(File.expand_path('../../.ruby-version', __FILE__)).strip
|
55
48
|
prototype_ruby_version = prototype_ruby_patch_level.match(/(\d\.\d\.\d).*/)[1]
|
@@ -103,7 +96,7 @@ module Raygun
|
|
103
96
|
|
104
97
|
# Mac sed works differently than ubuntu sed when it comes to in-place substituion.
|
105
98
|
def sed_i
|
106
|
-
RUBY_PLATFORM =~ /
|
99
|
+
RUBY_PLATFORM =~ /darwin/ ? "sed -i ''" : "sed -i"
|
107
100
|
end
|
108
101
|
|
109
102
|
class << self
|
data/lib/raygun/version.rb
CHANGED