bazarvoice 0.0.1 → 0.0.3
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 +1 -1
- data/bazarvoice.gemspec +1 -22
- data/generators/bazarvoice/templates/bazarvoice_template.yml +4 -4
- data/lib/bazarvoice/token.rb +1 -1
- data/lib/bazarvoice/view_helpers.rb +4 -11
- metadata +26 -69
- checksums.yaml +0 -7
data/README.rdoc
CHANGED
data/bazarvoice.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{bazarvoice}
|
|
5
|
-
s.version = "0.0.
|
|
5
|
+
s.version = "0.0.3"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Sapna Jadon"]
|
|
@@ -34,26 +34,5 @@ Gem::Specification.new do |s|
|
|
|
34
34
|
s.rubygems_version = %q{1.3.6}
|
|
35
35
|
s.summary = %q{bazarvoice for your Rails application}
|
|
36
36
|
|
|
37
|
-
if s.respond_to? :specification_version then
|
|
38
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
39
|
-
s.specification_version = 3
|
|
40
|
-
|
|
41
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
42
|
-
s.add_runtime_dependency(%q<ezcrypto>, [">= 0.7.2"])
|
|
43
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 2.1"])
|
|
44
|
-
s.add_runtime_dependency(%q<actionpack>, [">= 2.1"])
|
|
45
|
-
s.add_runtime_dependency(%q<rails>, [">= 2.1"])
|
|
46
|
-
else
|
|
47
|
-
s.add_dependency(%q<ezcrypto>, [">= 0.7.2"])
|
|
48
|
-
s.add_dependency(%q<activesupport>, [">= 2.1"])
|
|
49
|
-
s.add_dependency(%q<actionpack>, [">= 2.1"])
|
|
50
|
-
s.add_dependency(%q<rails>, [">= 2.1"])
|
|
51
|
-
end
|
|
52
|
-
else
|
|
53
|
-
s.add_dependency(%q<ezcrypto>, [">= 0.7.2"])
|
|
54
|
-
s.add_dependency(%q<activesupport>, [">= 2.1"])
|
|
55
|
-
s.add_dependency(%q<actionpack>, [">= 2.1"])
|
|
56
|
-
s.add_dependency(%q<rails>, [">= 2.1"])
|
|
57
|
-
end
|
|
58
37
|
end
|
|
59
38
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
uservoice_options:
|
|
2
2
|
# required
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
forum: <%= args.second %>
|
|
3
|
+
api_server: "http://reviews.apitestcustomer.bazaarvoice.com/bvstaging/data"
|
|
4
|
+
|
|
6
5
|
# optional
|
|
7
6
|
showTab: true
|
|
8
7
|
alignment: left
|
|
@@ -10,6 +9,7 @@ uservoice_options:
|
|
|
10
9
|
text_color: white
|
|
11
10
|
hover_color: "#06C"
|
|
12
11
|
lang: en
|
|
12
|
+
num_items: 5
|
|
13
13
|
|
|
14
14
|
uservoice_api:
|
|
15
|
-
api_key: <%= args.
|
|
15
|
+
api_key: <%= args.first %>
|
data/lib/bazarvoice/token.rb
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
# This module holds all frontend helper methods
|
|
2
|
-
# for bazarvoice in a Rails app.
|
|
3
|
-
#
|
|
4
|
-
# Author:: Alexander Greim (mailto:alexxx@iltempo.de)
|
|
5
|
-
# Copyright:: Copyright (c) 2010 il tempo
|
|
6
|
-
# License:: Distributes under the same terms as Ruby
|
|
7
|
-
|
|
8
1
|
module Bazarvoice
|
|
9
2
|
module BazarvoiceViewHelpers
|
|
10
3
|
|
|
@@ -27,10 +20,10 @@ module Bazarvoice
|
|
|
27
20
|
|
|
28
21
|
<<-EOS
|
|
29
22
|
<script type="text/javascript">
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
$(document).ready(function() {
|
|
24
|
+
$.ajaxSetup({ cache: true });
|
|
25
|
+
$.getJSON(api_server+"/reviews.json?callback=?",
|
|
26
|
+
"apiversion=4.9&include=products,authors&filter=DisplayLocale:en_US&passkey=" + bazarvoice_configuration['bazarvoice_api']['api_key'] + "&limit=" + num_items,
|
|
34
27
|
function(json){
|
|
35
28
|
jQuery.each(json.Results, function(index, review) {
|
|
36
29
|
$("#module").append("<h1>"+review['Title']+"</h1>");
|
metadata
CHANGED
|
@@ -1,67 +1,26 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bazarvoice
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.3
|
|
5
|
+
prerelease:
|
|
5
6
|
platform: ruby
|
|
6
|
-
authors:
|
|
7
|
+
authors:
|
|
7
8
|
- Sapna Jadon
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
name: ezcrypto
|
|
16
|
-
prerelease: false
|
|
17
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
|
18
|
-
requirements:
|
|
19
|
-
- - ">="
|
|
20
|
-
- !ruby/object:Gem::Version
|
|
21
|
-
version: 0.7.2
|
|
22
|
-
type: :runtime
|
|
23
|
-
version_requirements: *id001
|
|
24
|
-
- !ruby/object:Gem::Dependency
|
|
25
|
-
name: activesupport
|
|
26
|
-
prerelease: false
|
|
27
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
|
28
|
-
requirements:
|
|
29
|
-
- - ">="
|
|
30
|
-
- &id003 !ruby/object:Gem::Version
|
|
31
|
-
version: "2.1"
|
|
32
|
-
type: :runtime
|
|
33
|
-
version_requirements: *id002
|
|
34
|
-
- !ruby/object:Gem::Dependency
|
|
35
|
-
name: actionpack
|
|
36
|
-
prerelease: false
|
|
37
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
|
38
|
-
requirements:
|
|
39
|
-
- - ">="
|
|
40
|
-
- *id003
|
|
41
|
-
type: :runtime
|
|
42
|
-
version_requirements: *id004
|
|
43
|
-
- !ruby/object:Gem::Dependency
|
|
44
|
-
name: rails
|
|
45
|
-
prerelease: false
|
|
46
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
|
47
|
-
requirements:
|
|
48
|
-
- - ">="
|
|
49
|
-
- *id003
|
|
50
|
-
type: :runtime
|
|
51
|
-
version_requirements: *id005
|
|
52
|
-
description: |-
|
|
53
|
-
This adds bazarvoice support to your Rails application
|
|
54
|
-
including single sign-on.
|
|
12
|
+
date: 2013-10-16 00:00:00.000000000 Z
|
|
13
|
+
dependencies: []
|
|
14
|
+
description: ! "This adds bazarvoice support to your Rails application\n including
|
|
15
|
+
single sign-on."
|
|
55
16
|
email:
|
|
56
17
|
executables: []
|
|
57
|
-
|
|
58
18
|
extensions: []
|
|
59
|
-
|
|
60
|
-
extra_rdoc_files:
|
|
19
|
+
extra_rdoc_files:
|
|
61
20
|
- CHANGELOG.rdoc
|
|
62
21
|
- LICENSE
|
|
63
22
|
- README.rdoc
|
|
64
|
-
files:
|
|
23
|
+
files:
|
|
65
24
|
- .gitignore
|
|
66
25
|
- CHANGELOG.rdoc
|
|
67
26
|
- LICENSE
|
|
@@ -77,29 +36,27 @@ files:
|
|
|
77
36
|
- bazarvoice.gemspec
|
|
78
37
|
homepage:
|
|
79
38
|
licenses: []
|
|
80
|
-
|
|
81
|
-
metadata: {}
|
|
82
|
-
|
|
83
39
|
post_install_message:
|
|
84
|
-
rdoc_options:
|
|
40
|
+
rdoc_options:
|
|
85
41
|
- --charset=UTF-8
|
|
86
|
-
require_paths:
|
|
42
|
+
require_paths:
|
|
87
43
|
- lib
|
|
88
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
- !ruby/object:Gem::Version
|
|
93
|
-
version:
|
|
94
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
|
-
|
|
96
|
-
|
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
45
|
+
none: false
|
|
46
|
+
requirements:
|
|
47
|
+
- - ! '>='
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: '0'
|
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
|
+
none: false
|
|
52
|
+
requirements:
|
|
53
|
+
- - ! '>='
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: '0'
|
|
97
56
|
requirements: []
|
|
98
|
-
|
|
99
57
|
rubyforge_project:
|
|
100
|
-
rubygems_version:
|
|
58
|
+
rubygems_version: 1.8.25
|
|
101
59
|
signing_key:
|
|
102
60
|
specification_version: 3
|
|
103
61
|
summary: bazarvoice for your Rails application
|
|
104
62
|
test_files: []
|
|
105
|
-
|
checksums.yaml
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
SHA1:
|
|
3
|
-
data.tar.gz: f699bda014b26c32c479e724172697bbf7b4a8ff
|
|
4
|
-
metadata.gz: f4df8da0dc0bb81c3e75a5f940053b819fd149b2
|
|
5
|
-
SHA512:
|
|
6
|
-
data.tar.gz: 6b495a137d14010fdf8ae1b77a4c5e2bd5c39ce6fc0f45fc33aba444c3cf76ed61712919426c574b4424a2a19f604952a4419c503d07cb9d419a2753da63a777
|
|
7
|
-
metadata.gz: 46a57405d17dad5e266f4b347c80d129aea4ffdce03db1e55d082fb28a79c6f7bf50db8271f56117de5f1a9c7679cbaad9d68be4925260eb38bb1290ca436a86
|