arigato 0.1.1 → 0.1.2
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/README.rdoc
CHANGED
|
@@ -13,11 +13,12 @@
|
|
|
13
13
|
|
|
14
14
|
== Description
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Special thanks page generator
|
|
17
|
+
"Arigato" means "Thanks" in Japanese
|
|
17
18
|
|
|
18
19
|
== Features
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
Generate HTML or JSON, YAML, CSV from your Gemfile
|
|
21
22
|
|
|
22
23
|
== Examples
|
|
23
24
|
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
|
|
30
31
|
== Requirements
|
|
31
32
|
|
|
32
|
-
Ruby 1.9+
|
|
33
|
+
* Ruby 1.9+
|
|
33
34
|
|
|
34
35
|
== Install
|
|
35
36
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<%- content_for(:title) { @title } -%>
|
|
1
2
|
<div class="page-header">
|
|
2
3
|
<h1><%= @title %></h1>
|
|
3
4
|
</div>
|
|
@@ -5,8 +6,8 @@
|
|
|
5
6
|
<table class="table table-condensed table-striped table-hover">
|
|
6
7
|
<%- @specs.each do |spec| -%>
|
|
7
8
|
<tr>
|
|
8
|
-
<td><%= link_to
|
|
9
|
-
<td><%= author(spec) %></td>
|
|
9
|
+
<td><%= link_to(spec.name, spec.homepage) %></td>
|
|
10
|
+
<td><%= Arigato::View.author(spec) %></td>
|
|
10
11
|
</tr>
|
|
11
12
|
<%- end -%>
|
|
12
13
|
</table>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
<%- content_for(:title) { @title } -%>
|
|
1
2
|
<h1><%= @title %></h1>
|
|
2
3
|
|
|
3
4
|
<table>
|
|
4
5
|
<%- @specs.each do |spec| -%>
|
|
5
6
|
<tr>
|
|
6
|
-
<td><%= link_to
|
|
7
|
-
<td><%= author(spec) %></td>
|
|
7
|
+
<td><%= link_to(spec.name, spec.homepage) %></td>
|
|
8
|
+
<td><%= Arigato::View.author(spec) %></td>
|
|
8
9
|
</tr>
|
|
9
10
|
<%- end -%>
|
|
10
11
|
</table>
|
data/lib/arigato/version.rb
CHANGED
data/lib/arigato/view.rb
CHANGED
|
@@ -3,13 +3,15 @@ require 'arigato/version'
|
|
|
3
3
|
module Arigato
|
|
4
4
|
class View
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
TITLE = 'Special Thanks'
|
|
7
|
+
|
|
8
|
+
attr_accessor :theme, :specs, :layout, :title
|
|
7
9
|
|
|
8
10
|
def initialize(theme, gemfile = './Gemfile', layout = true)
|
|
9
11
|
@theme = theme
|
|
10
12
|
@specs = Arigato.specs(gemfile)
|
|
11
13
|
@layout = layout
|
|
12
|
-
@title =
|
|
14
|
+
@title = TITLE
|
|
13
15
|
end
|
|
14
16
|
|
|
15
17
|
def render
|
|
@@ -58,7 +60,10 @@ module Arigato
|
|
|
58
60
|
end
|
|
59
61
|
end
|
|
60
62
|
|
|
61
|
-
def
|
|
63
|
+
def content_for(title = nil)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def self.author(spec)
|
|
62
67
|
spec.author ? "by #{spec.author}" : ''
|
|
63
68
|
end
|
|
64
69
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: arigato
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-03-
|
|
12
|
+
date: 2013-03-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -201,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
201
201
|
version: '0'
|
|
202
202
|
segments:
|
|
203
203
|
- 0
|
|
204
|
-
hash:
|
|
204
|
+
hash: 71255887178062773
|
|
205
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
none: false
|
|
207
207
|
requirements:
|
|
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
210
210
|
version: '0'
|
|
211
211
|
segments:
|
|
212
212
|
- 0
|
|
213
|
-
hash:
|
|
213
|
+
hash: 71255887178062773
|
|
214
214
|
requirements: []
|
|
215
215
|
rubyforge_project:
|
|
216
216
|
rubygems_version: 1.8.25
|