rubygems_herald 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/controllers/gem_displays_controller.rb +1 -1
- data/app/helpers/gem_displays_helper.rb +5 -0
- data/app/views/gem_displays/_widget.html.haml +4 -0
- data/app/views/gem_displays/index.html.haml +4 -3
- data/app/views/gem_displays/show.html.haml +8 -8
- data/config/locales/en.yml +2 -1
- data/lib/generators/rubygems_herald/views/views_generator.rb +17 -0
- data/lib/rubygems_herald/spider.rb +1 -1
- data/rubygems_herald.gemspec +5 -2
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38c4c5173829211389c5f171891d36810e0bd0ff
|
4
|
+
data.tar.gz: 65c08ed454e2811834f689cc935aee0b83e10d33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2afd707ecae718669c0fc52097e011c06950b1d1de5790980677f8b4a2521339f8b4bbd23ced9a644ade8da19d3e55c01c29cfd0ff56bd49251d3c10193b3983
|
7
|
+
data.tar.gz: 6caabacdfe8725b28ce55e111d72c35e82664f215a898129fb3099755a026520cab1a3fb4e5662d5237ec094dffb1cfc929381ebc7d511e30a9bfc58e48768d4
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
@@ -1,5 +1,6 @@
|
|
1
1
|
-add_title :gem_displays.l
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
- for gem_display in @gem_displays
|
4
|
+
%h2= gem_display.name
|
5
|
+
%p= gem_display.info
|
6
|
+
= badge_to gem_display.name, gem_display.version, gem_display, class: 'btn btn-large btn-success'
|
@@ -13,18 +13,18 @@
|
|
13
13
|
= '(' + @gem_display.version_downloads.to_s + ' ' + :for_this_version.l + ')'
|
14
14
|
|
15
15
|
%h3= :links.l
|
16
|
-
|
16
|
+
.btn-group
|
17
17
|
- if @gem_display.project_uri.present?
|
18
|
-
=
|
18
|
+
.btn.btn-default= link_to :project.l, @gem_display.project_uri
|
19
19
|
- if @gem_display.homepage_uri.present?
|
20
|
-
=
|
20
|
+
.btn.btn-default= link_to :homepage.l, @gem_display.homepage_uri
|
21
21
|
- if @gem_display.wiki_uri.present?
|
22
|
-
=
|
22
|
+
.btn.btn-default= link_to :wiki.l, @gem_display.wiki_uri
|
23
23
|
- if @gem_display.documentation_uri.present?
|
24
|
-
=
|
24
|
+
.btn.btn-default= link_to :documentation.l, @gem_display.documentation_uri
|
25
25
|
- if @gem_display.mailing_list_uri.present?
|
26
|
-
=
|
26
|
+
.btn.btn-default= link_to :mailing_list.l, @gem_display.mailing_list_uri
|
27
27
|
- if @gem_display.source_code_uri.present?
|
28
|
-
=
|
28
|
+
.btn.btn-default= link_to :source_code.l, @gem_display.source_code_uri
|
29
29
|
- if @gem_display.bug_tracker_uri.present?
|
30
|
-
=
|
30
|
+
.btn.btn-default= link_to :bug_tracker.l, @gem_display.bug_tracker_uri
|
data/config/locales/en.yml
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
module RubygemsHerald
|
2
|
+
class ViewsGenerator < Rails::Generators::Base
|
3
|
+
source_root File.expand_path('../../../../../app/views/gem_displays', __FILE__)
|
4
|
+
require File.expand_path('../../utils', __FILE__)
|
5
|
+
include Generators::Utils
|
6
|
+
include Rails::Generators::Migration
|
7
|
+
|
8
|
+
# all public methods in here will be run in order
|
9
|
+
|
10
|
+
def add_views
|
11
|
+
output "I'm copying the default views into app/views/gem_displays for you.", :magenta
|
12
|
+
template "index.html.haml", "app/views/gem_displays/index.html.haml"
|
13
|
+
template "show.html.haml", "app/views/gem_displays/show.html.haml"
|
14
|
+
template "_widget.html.haml", "app/views/gem_displays/_widget.html.haml"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/rubygems_herald.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "rubygems_herald"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.4"
|
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"]
|
12
|
-
s.date = "2014-05-
|
12
|
+
s.date = "2014-05-15"
|
13
13
|
s.description = "For organizations that want to market a gem in style, Rubygems Herald syncs your gems' data via the RubyGems.org API so that your software marketing website stays up to date with the latest information about your gems."
|
14
14
|
s.email = "karen.e.lundgren@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -27,7 +27,9 @@ Gem::Specification.new do |s|
|
|
27
27
|
"Rakefile",
|
28
28
|
"VERSION",
|
29
29
|
"app/controllers/gem_displays_controller.rb",
|
30
|
+
"app/helpers/gem_displays_helper.rb",
|
30
31
|
"app/models/gem_display.rb",
|
32
|
+
"app/views/gem_displays/_widget.html.haml",
|
31
33
|
"app/views/gem_displays/index.html.haml",
|
32
34
|
"app/views/gem_displays/show.html.haml",
|
33
35
|
"config/locales/en.yml",
|
@@ -36,6 +38,7 @@ Gem::Specification.new do |s|
|
|
36
38
|
"lib/generators/rubygems_herald/install/templates/initializer.rb",
|
37
39
|
"lib/generators/rubygems_herald/install/templates/migrate/create_gem_displays_table.rb",
|
38
40
|
"lib/generators/rubygems_herald/utils.rb",
|
41
|
+
"lib/generators/rubygems_herald/views/views_generator.rb",
|
39
42
|
"lib/rubygems_herald.rb",
|
40
43
|
"lib/rubygems_herald/configuration.rb",
|
41
44
|
"lib/rubygems_herald/engine.rb",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems_herald
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karen Lundgren
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -226,7 +226,9 @@ files:
|
|
226
226
|
- Rakefile
|
227
227
|
- VERSION
|
228
228
|
- app/controllers/gem_displays_controller.rb
|
229
|
+
- app/helpers/gem_displays_helper.rb
|
229
230
|
- app/models/gem_display.rb
|
231
|
+
- app/views/gem_displays/_widget.html.haml
|
230
232
|
- app/views/gem_displays/index.html.haml
|
231
233
|
- app/views/gem_displays/show.html.haml
|
232
234
|
- config/locales/en.yml
|
@@ -235,6 +237,7 @@ files:
|
|
235
237
|
- lib/generators/rubygems_herald/install/templates/initializer.rb
|
236
238
|
- lib/generators/rubygems_herald/install/templates/migrate/create_gem_displays_table.rb
|
237
239
|
- lib/generators/rubygems_herald/utils.rb
|
240
|
+
- lib/generators/rubygems_herald/views/views_generator.rb
|
238
241
|
- lib/rubygems_herald.rb
|
239
242
|
- lib/rubygems_herald/configuration.rb
|
240
243
|
- lib/rubygems_herald/engine.rb
|