raygun 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4af228a652b962b65192cdef9f192c1621aeecc
4
- data.tar.gz: ca3d0276ea7960e2f93e934f168e2e2ea6747044
3
+ metadata.gz: 5c4cb603574114533fb00ba764197f69fb4d92d0
4
+ data.tar.gz: 8dfe1d7af4aed65fdd0904077339e3fe84c4a90d
5
5
  SHA512:
6
- metadata.gz: e2d50c542725e88e009e71e9eba66bec7cf0fcff6c5f957dd5eb5c6cc078c349f8c3e5ebf41634d1743bcc4ae8de8018370915424784b9364e70c82bdcbe2801
7
- data.tar.gz: 3247d96a9422dc9007a2f126eab4bc6cb46e459493ed7e640a9c9ed23da0cf74ce54adda72fb43c091ffe6db68191b010a25f4f8738d90758d660eb5db2bac4d
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
  [![Gem Version](https://badge.fury.io/rb/raygun.png)](http://badge.fury.io/rb/raygun)
2
- [![Code Climate](https://codeclimate.com/github/carbonfive/raygun.png)](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
- * Less
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 = JSON.parse(Net::HTTP.get(URI("https://api.github.com/repos/#{@prototype_repo}/tags"))).first
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}" }
@@ -1,3 +1,3 @@
1
1
  module Raygun
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
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) }
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.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Nelson