raygun 0.9.0 → 0.9.1
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.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -0
- data/README.md +1 -2
- data/lib/raygun/raygun.rb +11 -1
- data/lib/raygun/version.rb +1 -1
- data/raygun.gemspec +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c4cb603574114533fb00ba764197f69fb4d92d0
|
4
|
+
data.tar.gz: 8dfe1d7af4aed65fdd0904077339e3fe84c4a90d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deef9b97d82f47c0bb375b06daf41e0fbb106a11b1f51ebb2a7f0d6e6197715d3dfd25fc7fa4e6cdc289a591cb8cc8ddefa8214ea69a01b036de4dc2234e06d4
|
7
|
+
data.tar.gz: 8dbf89d186e963e8ee6e00a7550bda2d01e142bdb2bfc06cef17480213c64db9459dce9a11cd42f7b9b743a1c5e73ab603089ae655f57ffe0ca39453b02f67a3
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.9.1 [2013-11-12]
|
4
|
+
|
5
|
+
* Fixed a bug that fouled up fetching tags from github (#118).
|
6
|
+
* Specify the license in the gemspec (#117).
|
7
|
+
|
3
8
|
## 0.9.0 [2013-11-11]
|
4
9
|
|
5
10
|
Note: All future changes to the application prototype (sample app) will be made in the [raygun-rails4](https://github.com/carbonfive/raygun-rails4) repo.
|
data/README.md
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
[](http://badge.fury.io/rb/raygun)
|
2
|
-
[](https://codeclimate.com/github/carbonfive/raygun)
|
3
2
|
<img src="https://raw.github.com/carbonfive/raygun/master/marvin.jpg" align="right"/>
|
4
3
|
|
5
4
|
# Raygun
|
@@ -15,7 +14,7 @@ Major tools/libraries:
|
|
15
14
|
* Rails 4.0
|
16
15
|
* PostgreSQL
|
17
16
|
* Slim
|
18
|
-
*
|
17
|
+
* Sass
|
19
18
|
* Bootstrap
|
20
19
|
* RSpec
|
21
20
|
* Factory Girl
|
data/lib/raygun/raygun.rb
CHANGED
@@ -35,7 +35,7 @@ module Raygun
|
|
35
35
|
$stdout.flush
|
36
36
|
|
37
37
|
# Check if we can connect, or fail gracefully and use the latest cached version.
|
38
|
-
latest_tag_obj =
|
38
|
+
latest_tag_obj = fetch_latest_tag(prototype_repo)
|
39
39
|
latest_tag = latest_tag_obj['name']
|
40
40
|
tarball_url = latest_tag_obj['tarball_url']
|
41
41
|
|
@@ -173,6 +173,16 @@ module Raygun
|
|
173
173
|
|
174
174
|
protected
|
175
175
|
|
176
|
+
# Fetch the tags for the repo (e.g. 'carbonfive/raygun-rails4') and return the latest as JSON.
|
177
|
+
def fetch_latest_tag(repo)
|
178
|
+
url = "https://api.github.com/repos/#{@prototype_repo}/tags"
|
179
|
+
uri = URI.parse(url)
|
180
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
181
|
+
http.use_ssl = true
|
182
|
+
request = Net::HTTP::Get.new(URI.encode(url))
|
183
|
+
JSON.parse(http.request(request).body).first
|
184
|
+
end
|
185
|
+
|
176
186
|
def camelize(string)
|
177
187
|
result = string.sub(/^[a-z\d]*/) { $&.capitalize }
|
178
188
|
result.gsub(/(?:_|(\/))([a-z\d]*)/) { "#{$1}#{$2.capitalize}" }
|
data/lib/raygun/version.rb
CHANGED
data/raygun.gemspec
CHANGED
@@ -14,6 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.description = %q{Carbon Five Rails application generator}
|
15
15
|
gem.summary = %q{Generates and customizes Rails applications with Carbon Five best practices baked in.}
|
16
16
|
gem.homepage = "https://github.com/carbonfive/raygun"
|
17
|
+
gem..license = 'MIT'
|
17
18
|
|
18
19
|
gem.files = `git ls-files`.split($/)
|
19
20
|
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|