spree_online_support 0.50.0 → 0.70.0

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.
@@ -0,0 +1,24 @@
1
+ Deface::Override.new(
2
+ :virtual_path => "admin/configurations/index",
3
+ :name => "spree_online_support_admin_configurations_menu",
4
+ :insert_bottom => "[data-hook='admin_configurations_menu'], #admin_configurations_menu[data-hook]",
5
+ :text => "<tr>
6
+ <td><%= link_to t(\"online_support\"), admin_online_support_settings_path %></td>
7
+ <td><%= t(\"online_support_description\") %></td>
8
+ </tr>",
9
+ :disabled => false)
10
+
11
+ Deface::Override.new(
12
+ :virtual_path => "admin/shared/_configuration_menu",
13
+ :name => "spree_online_support_admin_configurations_sidebar_menu",
14
+ :insert_bottom => "[data-hook='admin_configurations_sidebar_menu'], #admin_configurations_sidebar_menu[data-hook]",
15
+ :text => "<li<%== ' class=\"active\"' if controller.controller_name == 'online_support_settings' %>><%= link_to t(\"online_support\"), admin_online_support_settings_path %></li>",
16
+ :disabled => false)
17
+
18
+ Deface::Override.new(
19
+ :virtual_path => "layouts/spree_application",
20
+ :name => "spree_online_support_inside_head",
21
+ :insert_bottom => "body",
22
+ :partial => "shared/online_support",
23
+ :disabled => false)
24
+
@@ -5,11 +5,11 @@
5
5
  <%= form_tag(admin_online_support_settings_path, :method => :put) do %>
6
6
 
7
7
  <p>
8
- <label><%= t('enable_online_support') %>:</label>
8
+ <%= label_tag 'preferences[enabled]', t('enable_online_support') %>:
9
9
  <%= check_box_tag('preferences[enabled]', '1', Spree::OnlineSupport::Config[:enabled]) %>
10
10
  </p>
11
11
  <p>
12
- <label>Zopim.com <%= t('auth_key') %>:</label>
12
+ <%= label_tag 'preferences[zopim_key]', "Zopim.com" + t('auth_key') %>:
13
13
  <%= text_field_tag('preferences[zopim_key]', Spree::OnlineSupport::Config[:zopim_key])%>
14
14
  </p>
15
15
  <p class="form-buttons">
@@ -1,8 +1,8 @@
1
1
  require 'spree_core'
2
- require 'spree_online_support_hooks'
3
2
 
4
3
  module SpreeOnlineSupport
5
4
  class Engine < Rails::Engine
5
+ engine_name 'spree_online_support'
6
6
 
7
7
  config.autoload_paths += %W(#{config.root}/lib)
8
8
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'spree_online_support'
4
- s.version = '0.50.0'
4
+ s.version = '0.70.0'
5
5
  s.summary = 'Adds integration with online support services, like zopim.com'
6
6
  #s.description = 'Add (optional) gem description here'
7
7
  s.required_ruby_version = '>= 1.8.7'
@@ -17,5 +17,5 @@ Gem::Specification.new do |s|
17
17
  s.require_paths = [ 'lib' ]
18
18
  s.requirements << 'none'
19
19
 
20
- s.add_dependency('spree_core', '>= 0.40.3')
20
+ s.add_dependency('spree_core', '>= 0.70.0')
21
21
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_online_support
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 263
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
- - 50
8
+ - 70
8
9
  - 0
9
- version: 0.50.0
10
+ version: 0.70.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Service & Consulting
@@ -14,21 +15,22 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-04-27 00:00:00 +04:00
18
- default_executable:
18
+ date: 2012-03-01 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: spree_core
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
24
25
  requirements:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
28
+ hash: 263
27
29
  segments:
28
30
  - 0
29
- - 40
30
- - 3
31
- version: 0.40.3
31
+ - 70
32
+ - 0
33
+ version: 0.70.0
32
34
  type: :runtime
33
35
  version_requirements: *id001
34
36
  description:
@@ -44,6 +46,7 @@ files:
44
46
  - README.md
45
47
  - Rakefile
46
48
  - app/controllers/admin/online_support_settings_controller.rb
49
+ - app/overrides/views_decorator.rb
47
50
  - app/views/admin/online_support_settings/edit.html.erb
48
51
  - app/views/admin/online_support_settings/show.html.erb
49
52
  - app/views/shared/_online_support.html.erb
@@ -53,12 +56,8 @@ files:
53
56
  - lib/online_support_configuration.rb
54
57
  - lib/spree/online_support/config.rb
55
58
  - lib/spree_online_support.rb
56
- - lib/spree_online_support_hooks.rb
57
- - lib/tasks/install.rake
58
- - lib/tasks/spree_online_support.rake
59
59
  - spec/spec_helper.rb
60
60
  - spree_online_support.gemspec
61
- has_rdoc: true
62
61
  homepage: https://github.com/secoint/spree_online_support
63
62
  licenses: []
64
63
 
@@ -68,25 +67,29 @@ rdoc_options: []
68
67
  require_paths:
69
68
  - lib
70
69
  required_ruby_version: !ruby/object:Gem::Requirement
70
+ none: false
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
+ hash: 57
74
75
  segments:
75
76
  - 1
76
77
  - 8
77
78
  - 7
78
79
  version: 1.8.7
79
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
+ none: false
80
82
  requirements:
81
83
  - - ">="
82
84
  - !ruby/object:Gem::Version
85
+ hash: 3
83
86
  segments:
84
87
  - 0
85
88
  version: "0"
86
89
  requirements:
87
90
  - none
88
91
  rubyforge_project:
89
- rubygems_version: 1.3.6
92
+ rubygems_version: 1.8.15
90
93
  signing_key:
91
94
  specification_version: 3
92
95
  summary: Adds integration with online support services, like zopim.com
@@ -1,14 +0,0 @@
1
- class SpreeOnlineSupportHooks < Spree::ThemeSupport::HookListener
2
- insert_after :admin_configurations_menu do
3
- %(<tr>
4
- <td><%= link_to t("online_support"), admin_online_support_settings_path %></td>
5
- <td><%= t("online_support_description") %></td>
6
- </ tr>)
7
- end
8
-
9
- insert_after :admin_configurations_sidebar_menu do
10
- %(<li<%== ' class="active"' if controller.controller_name == 'online_support_settings' %>><%= link_to t("online_support"), admin_online_support_settings_path %></li>)
11
- end
12
-
13
- insert_after :inside_head, 'shared/online_support'
14
- end
@@ -1,25 +0,0 @@
1
- namespace :spree_online_support do
2
- desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)"
3
- task :install do
4
- Rake::Task['spree_online_support:install:migrations'].invoke
5
- Rake::Task['spree_online_support:install:assets'].invoke
6
- end
7
-
8
- namespace :install do
9
- desc "Copies all migrations (NOTE: This will be obsolete with Rails 3.1)"
10
- task :migrations do
11
- source = File.join(File.dirname(__FILE__), '..', '..', 'db')
12
- destination = File.join(Rails.root, 'db')
13
- Spree::FileUtilz.mirror_files(source, destination)
14
- end
15
-
16
- desc "Copies all assets (NOTE: This will be obsolete with Rails 3.1)"
17
- task :assets do
18
- source = File.join(File.dirname(__FILE__), '..', '..', 'public')
19
- destination = File.join(Rails.root, 'public')
20
- puts "INFO: Mirroring assets from #{source} to #{destination}"
21
- Spree::FileUtilz.mirror_files(source, destination)
22
- end
23
- end
24
-
25
- end
@@ -1 +0,0 @@
1
- # add custom rake tasks here