synergy_default_theme 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/LICENSE +23 -0
  2. data/README.md +4 -0
  3. data/Rakefile +31 -0
  4. data/app/controllers/home_controller.rb +10 -0
  5. data/app/controllers/products_controller_decorator.rb +3 -0
  6. data/app/helpers/base_helper_decorator.rb +14 -0
  7. data/app/helpers/orders_helper_decorator.rb +5 -0
  8. data/app/helpers/product_helper_decorator.rb +22 -0
  9. data/app/helpers/taxons_helper_decorator.rb +7 -0
  10. data/app/models/page_sweeper.rb +20 -0
  11. data/app/models/tracker_sweeper.rb +20 -0
  12. data/app/views/admin/reviews/index.html.erb +42 -0
  13. data/app/views/admin/taxonomies/_list.html.erb +19 -0
  14. data/app/views/admin/taxonomies/_show_on_homepage_field.html.erb +4 -0
  15. data/app/views/checkout/_delivery.html.erb +25 -0
  16. data/app/views/checkout/_payment.html.erb +34 -0
  17. data/app/views/gateway/robokassa/show.html.erb +22 -0
  18. data/app/views/home/index.html.erb +11 -0
  19. data/app/views/layouts/spree_application.html.erb +110 -0
  20. data/app/views/orders/_advanced_cart.html.erb +45 -0
  21. data/app/views/products/_cart_form.html.erb +59 -0
  22. data/app/views/products/_eot_includes.html.erb +27 -0
  23. data/app/views/products/_image.html.erb +8 -0
  24. data/app/views/products/_properties.html.erb +12 -0
  25. data/app/views/products/_thumbnails.html.erb +36 -0
  26. data/app/views/products/show.html.erb +146 -0
  27. data/app/views/shared/_like_buttons.html.erb +27 -0
  28. data/app/views/shared/_login_bar.html.erb +26 -0
  29. data/app/views/shared/_order_details.html.erb +50 -0
  30. data/app/views/shared/_products.html.erb +42 -0
  31. data/app/views/shared/_rating.html.erb +8 -0
  32. data/app/views/shared/_reviews.html.erb +40 -0
  33. data/app/views/shared/_search.html.erb +3 -0
  34. data/app/views/shared/_synergy_compare_products_js.html.erb +51 -0
  35. data/app/views/shared/_taxonomies.html.erb +16 -0
  36. data/config/initializers/advanced_cart.rb +3 -0
  37. data/config/initializers/constants.rb +3 -0
  38. data/config/initializers/like_buttons.rb +1 -0
  39. data/config/locales/ru.yml +22 -0
  40. data/config/routes.rb +4 -0
  41. data/db/migrate/20110330125354_add_show_on_main_page_flag_to_taxonomies.rb +9 -0
  42. data/db/migrate/20110404120925_change_column_title_in_reviews.rb +13 -0
  43. data/lib/spree_compare_products_hooks.rb +15 -0
  44. data/lib/spree_reviews_hook.rb +24 -0
  45. data/lib/synergy_default_theme.rb +39 -0
  46. data/lib/synergy_default_theme_hooks.rb +5 -0
  47. data/lib/tasks/install.rake +25 -0
  48. data/lib/tasks/synergy_default_theme.rake +1 -0
  49. data/public/images/bubblepopup_bg.png +0 -0
  50. data/public/images/bubblepopup_bottom.png +0 -0
  51. data/public/images/bubblepopup_top.png +0 -0
  52. data/public/images/button_long.png +0 -0
  53. data/public/images/button_short.png +0 -0
  54. data/public/images/cart.png +0 -0
  55. data/public/images/cart_th_bg.png +0 -0
  56. data/public/images/checkout.png +0 -0
  57. data/public/images/close_button.png +0 -0
  58. data/public/images/facebook_32.png +0 -0
  59. data/public/images/footer_panel.png +0 -0
  60. data/public/images/google_32.png +0 -0
  61. data/public/images/header_panel.png +0 -0
  62. data/public/images/libra.png +0 -0
  63. data/public/images/login_bar_bg.png +0 -0
  64. data/public/images/logo.png +0 -0
  65. data/public/images/noimage/product.jpg +0 -0
  66. data/public/images/noimage/small.jpg +0 -0
  67. data/public/images/red_button_bg.png +0 -0
  68. data/public/images/remove_comparable.png +0 -0
  69. data/public/images/search_button.png +0 -0
  70. data/public/images/search_textinput.png +0 -0
  71. data/public/images/search_textinput_active.png +0 -0
  72. data/public/images/star.png +0 -0
  73. data/public/images/star_orange.png +0 -0
  74. data/public/images/star_white.png +0 -0
  75. data/public/images/table_th1_34.png +0 -0
  76. data/public/images/twitter_32.png +0 -0
  77. data/public/images/vkontakte_32.png +0 -0
  78. data/public/images/zoom.png +0 -0
  79. data/public/javascripts/jquery.tools.min.js +23 -0
  80. data/public/javascripts/product.js +64 -0
  81. data/public/javascripts/product_simple.js +54 -0
  82. data/public/stylesheets/style.css +965 -0
  83. data/spec/spec_helper.rb +30 -0
  84. data/synergy_default_theme.gemspec +23 -0
  85. metadata +177 -0
@@ -0,0 +1,30 @@
1
+ # This file is copied to ~/spec when you run 'ruby script/generate rspec'
2
+ # from the project root directory.
3
+ ENV["RAILS_ENV"] ||= 'test'
4
+ require File.expand_path("../../../config/environment", __FILE__)
5
+ require 'rspec/rails'
6
+
7
+ # Requires supporting files with custom matchers and macros, etc,
8
+ # in ./support/ and its subdirectories.
9
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
10
+
11
+ RSpec.configure do |config|
12
+ # == Mock Framework
13
+ #
14
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
15
+ #
16
+ # config.mock_with :mocha
17
+ # config.mock_with :flexmock
18
+ # config.mock_with :rr
19
+ config.mock_with :rspec
20
+
21
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
22
+
23
+ #config.include Devise::TestHelpers, :type => :controller
24
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
25
+ # examples within a transaction, comment the following line or assign false
26
+ # instead of true.
27
+ config.use_transactional_fixtures = true
28
+ end
29
+
30
+ @configuration ||= AppConfiguration.find_or_create_by_name("Default configuration")
@@ -0,0 +1,23 @@
1
+ Gem::Specification.new do |s|
2
+ s.platform = Gem::Platform::RUBY
3
+ s.name = 'synergy_default_theme'
4
+ s.version = '1.0.0'
5
+ s.summary = 'Default theme for Synergy'
6
+ s.description = 'Тема по умолчанию для платформы электронной коммерции Synergy, основанной на Spree'
7
+ s.required_ruby_version = '>= 1.8.7'
8
+
9
+ s.author = 'Service & Consulting'
10
+ s.email = 'r.smirnov@secoint.ru'
11
+ s.homepage = 'https://github.com/romul/synergy_default_theme/'
12
+ # s.rubyforge_project = 'actionmailer'
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.require_path = 'lib'
17
+ s.requirements << 'none'
18
+
19
+
20
+ s.add_dependency('synergy')
21
+ s.add_dependency('dalli', '~> 1.0.3')
22
+
23
+ end
metadata ADDED
@@ -0,0 +1,177 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: synergy_default_theme
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 0
9
+ version: 1.0.0
10
+ platform: ruby
11
+ authors:
12
+ - Service & Consulting
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-05-06 00:00:00 +04:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: synergy
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :runtime
31
+ version_requirements: *id001
32
+ - !ruby/object:Gem::Dependency
33
+ name: dalli
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ~>
38
+ - !ruby/object:Gem::Version
39
+ segments:
40
+ - 1
41
+ - 0
42
+ - 3
43
+ version: 1.0.3
44
+ type: :runtime
45
+ version_requirements: *id002
46
+ description: !binary |
47
+ 0KLQtdC80LAg0L/QviDRg9C80L7Qu9GH0LDQvdC40Y4g0LTQu9GPINC/0LvQ
48
+ sNGC0YTQvtGA0LzRiyDRjdC70LXQutGC0YDQvtC90L3QvtC5INC60L7QvNC8
49
+ 0LXRgNGG0LjQuCBTeW5lcmd5LCDQvtGB0L3QvtCy0LDQvdC90L7QuSDQvdCw
50
+ IFNwcmVl
51
+
52
+ email: r.smirnov@secoint.ru
53
+ executables: []
54
+
55
+ extensions: []
56
+
57
+ extra_rdoc_files: []
58
+
59
+ files:
60
+ - LICENSE
61
+ - README.md
62
+ - Rakefile
63
+ - app/controllers/home_controller.rb
64
+ - app/controllers/products_controller_decorator.rb
65
+ - app/helpers/base_helper_decorator.rb
66
+ - app/helpers/orders_helper_decorator.rb
67
+ - app/helpers/product_helper_decorator.rb
68
+ - app/helpers/taxons_helper_decorator.rb
69
+ - app/models/page_sweeper.rb
70
+ - app/models/tracker_sweeper.rb
71
+ - app/views/admin/reviews/index.html.erb
72
+ - app/views/admin/taxonomies/_list.html.erb
73
+ - app/views/admin/taxonomies/_show_on_homepage_field.html.erb
74
+ - app/views/checkout/_delivery.html.erb
75
+ - app/views/checkout/_payment.html.erb
76
+ - app/views/gateway/robokassa/show.html.erb
77
+ - app/views/home/index.html.erb
78
+ - app/views/layouts/spree_application.html.erb
79
+ - app/views/orders/_advanced_cart.html.erb
80
+ - app/views/products/_cart_form.html.erb
81
+ - app/views/products/_eot_includes.html.erb
82
+ - app/views/products/_image.html.erb
83
+ - app/views/products/_properties.html.erb
84
+ - app/views/products/_thumbnails.html.erb
85
+ - app/views/products/show.html.erb
86
+ - app/views/shared/_like_buttons.html.erb
87
+ - app/views/shared/_login_bar.html.erb
88
+ - app/views/shared/_order_details.html.erb
89
+ - app/views/shared/_products.html.erb
90
+ - app/views/shared/_rating.html.erb
91
+ - app/views/shared/_reviews.html.erb
92
+ - app/views/shared/_search.html.erb
93
+ - app/views/shared/_synergy_compare_products_js.html.erb
94
+ - app/views/shared/_taxonomies.html.erb
95
+ - config/initializers/advanced_cart.rb
96
+ - config/initializers/constants.rb
97
+ - config/initializers/like_buttons.rb
98
+ - config/locales/ru.yml
99
+ - config/routes.rb
100
+ - db/migrate/20110330125354_add_show_on_main_page_flag_to_taxonomies.rb
101
+ - db/migrate/20110404120925_change_column_title_in_reviews.rb
102
+ - lib/spree_compare_products_hooks.rb
103
+ - lib/spree_reviews_hook.rb
104
+ - lib/synergy_default_theme.rb
105
+ - lib/synergy_default_theme_hooks.rb
106
+ - lib/tasks/install.rake
107
+ - lib/tasks/synergy_default_theme.rake
108
+ - public/images/bubblepopup_bg.png
109
+ - public/images/bubblepopup_bottom.png
110
+ - public/images/bubblepopup_top.png
111
+ - public/images/button_long.png
112
+ - public/images/button_short.png
113
+ - public/images/cart.png
114
+ - public/images/cart_th_bg.png
115
+ - public/images/checkout.png
116
+ - public/images/close_button.png
117
+ - public/images/facebook_32.png
118
+ - public/images/footer_panel.png
119
+ - public/images/google_32.png
120
+ - public/images/header_panel.png
121
+ - public/images/libra.png
122
+ - public/images/login_bar_bg.png
123
+ - public/images/logo.png
124
+ - public/images/noimage/product.jpg
125
+ - public/images/noimage/small.jpg
126
+ - public/images/red_button_bg.png
127
+ - public/images/remove_comparable.png
128
+ - public/images/search_button.png
129
+ - public/images/search_textinput.png
130
+ - public/images/search_textinput_active.png
131
+ - public/images/star.png
132
+ - public/images/star_orange.png
133
+ - public/images/star_white.png
134
+ - public/images/table_th1_34.png
135
+ - public/images/twitter_32.png
136
+ - public/images/vkontakte_32.png
137
+ - public/images/zoom.png
138
+ - public/javascripts/jquery.tools.min.js
139
+ - public/javascripts/product.js
140
+ - public/javascripts/product_simple.js
141
+ - public/stylesheets/style.css
142
+ - spec/spec_helper.rb
143
+ - synergy_default_theme.gemspec
144
+ has_rdoc: true
145
+ homepage: https://github.com/romul/synergy_default_theme/
146
+ licenses: []
147
+
148
+ post_install_message:
149
+ rdoc_options: []
150
+
151
+ require_paths:
152
+ - lib
153
+ required_ruby_version: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ segments:
158
+ - 1
159
+ - 8
160
+ - 7
161
+ version: 1.8.7
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ segments:
167
+ - 0
168
+ version: "0"
169
+ requirements:
170
+ - none
171
+ rubyforge_project:
172
+ rubygems_version: 1.3.6
173
+ signing_key:
174
+ specification_version: 3
175
+ summary: Default theme for Synergy
176
+ test_files: []
177
+