spree_testimonials 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ class TestimonialsController < Spree::BaseController
2
+ def index
3
+ @testimonials = Testimonial.featured
4
+ end
5
+
6
+ private
7
+ def accurate_title
8
+ I18n.t('testimonials')
9
+ end
10
+ end
@@ -0,0 +1,12 @@
1
+ <% @body_id = 'testimonials' %>
2
+ <h1><%= t("testimonials") %></h1>
3
+
4
+ <div id="testimonials">
5
+ <% @testimonials.each do |testimonial| %>
6
+ <div class="testimonial">
7
+ <blockquote><%= testimonial.description %></blockquote>
8
+ <span class="name"><%= testimonial.name %></span>
9
+ <span class="location"><%= testimonial.location %></span>
10
+ </div>
11
+ <% end %>
12
+ </div>
data/config/routes.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  Rails.application.routes.draw do
2
+ resources :testimonials
2
3
  namespace :admin do
3
4
  resources :testimonials
4
5
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_testimonials
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease: false
6
- segments:
7
- - 3
8
- - 0
9
- - 3
10
- version: 3.0.3
4
+ prerelease:
5
+ version: 3.0.4
11
6
  platform: ruby
12
7
  authors:
13
8
  - Josh Nussbaum
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-01-06 00:00:00 -05:00
13
+ date: 2011-05-29 00:00:00 -04:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
@@ -26,11 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ">="
28
23
  - !ruby/object:Gem::Version
29
- hash: 101
30
- segments:
31
- - 0
32
- - 30
33
- - 1
34
24
  version: 0.30.1
35
25
  type: :runtime
36
26
  version_requirements: *id001
@@ -49,10 +39,12 @@ files:
49
39
  - lib/spree_testimonials/engine.rb
50
40
  - lib/generators/spree_testimonials/install_generator.rb
51
41
  - lib/generators/templates/db/migrate/20101122222055_create_testimonials.rb
42
+ - app/views/testimonials/index.html.erb
52
43
  - app/views/admin/testimonials/edit.html.erb
53
44
  - app/views/admin/testimonials/new.html.erb
54
45
  - app/views/admin/testimonials/_form.html.erb
55
46
  - app/views/admin/testimonials/index.html.erb
47
+ - app/controllers/testimonials_controller.rb
56
48
  - app/controllers/admin/testimonials_controller.rb
57
49
  - app/models/testimonial.rb
58
50
  - config/routes.rb
@@ -71,25 +63,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
63
  requirements:
72
64
  - - ">="
73
65
  - !ruby/object:Gem::Version
74
- hash: 57
75
- segments:
76
- - 1
77
- - 8
78
- - 7
79
66
  version: 1.8.7
80
67
  required_rubygems_version: !ruby/object:Gem::Requirement
81
68
  none: false
82
69
  requirements:
83
70
  - - ">="
84
71
  - !ruby/object:Gem::Version
85
- hash: 3
86
- segments:
87
- - 0
88
72
  version: "0"
89
73
  requirements:
90
74
  - none
91
75
  rubyforge_project: spree_testimonials
92
- rubygems_version: 1.3.7
76
+ rubygems_version: 1.6.2
93
77
  signing_key:
94
78
  specification_version: 3
95
79
  summary: Adds the ability to manage testimonials to a spree site