rubygems_herald 0.0.4 → 0.0.5

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: 38c4c5173829211389c5f171891d36810e0bd0ff
4
- data.tar.gz: 65c08ed454e2811834f689cc935aee0b83e10d33
3
+ metadata.gz: 0ba5757856766e1dfb47fd117859e9c387da495a
4
+ data.tar.gz: d121e0f61d5c0d7551130900bdada8bcd8ae4175
5
5
  SHA512:
6
- metadata.gz: 2afd707ecae718669c0fc52097e011c06950b1d1de5790980677f8b4a2521339f8b4bbd23ced9a644ade8da19d3e55c01c29cfd0ff56bd49251d3c10193b3983
7
- data.tar.gz: 6caabacdfe8725b28ce55e111d72c35e82664f215a898129fb3099755a026520cab1a3fb4e5662d5237ec094dffb1cfc929381ebc7d511e30a9bfc58e48768d4
6
+ metadata.gz: 2c0e25ea41bc8f05de396bc341a73660d54fb5eebbabfe5bece0491d31114b1297e2fe069ce96ece3c804fa4283e4176e4c0c5d230c21df3934ed0e00645a838
7
+ data.tar.gz: 58b74fbfb9e1a947f6e62d5b5c591d3fc695a342ac565460e1f213412c436d2910782891cd4f4785ad2294c989c160835c246d4e9ce204600301d4518690ffc0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -44,4 +44,8 @@ class GemDisplay < ActiveRecord::Base
44
44
  def to_param
45
45
  name
46
46
  end
47
+
48
+ def title
49
+ name.tr!('_', ' ').titleize
50
+ end
47
51
  end
@@ -1,4 +1,4 @@
1
1
  %h3= :top_gem_displays.l
2
2
  %ul.list-group
3
3
  - for gem_display in GemDisplay.order(version_downloads: :desc)
4
- %li.list-group-item= badge_to gem_display.name, 'v ' + gem_display.version, gem_display
4
+ %li.list-group-item= badge_to gem_display.title, 'v ' + gem_display.version, gem_display
@@ -3,4 +3,4 @@
3
3
  - for gem_display in @gem_displays
4
4
  %h2= gem_display.name
5
5
  %p= gem_display.info
6
- = badge_to gem_display.name, gem_display.version, gem_display, class: 'btn btn-large btn-success'
6
+ = badge_to gem_display.title, gem_display.version, gem_display, class: 'btn btn-large btn-success'
@@ -1,4 +1,6 @@
1
- -add_title @gem_display.name
1
+ -add_title @gem_display.title
2
+ -add_subtitle @gem_display.name
3
+
2
4
  %h2
3
5
  = :by_authors.l authors: @gem_display.authors
4
6
  .small
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rubygems_herald"
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Karen Lundgren"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems_herald
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren