radiant-shop_discounts-extension 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ begin
5
5
  gem.summary = %Q{Shop Discounts Extension for Radiant CMS}
6
6
  gem.description = %Q{RadiantShop: Apply discounts to Products and Categories and have them accessed through codes}
7
7
  gem.email = "dk@dirkkelly.com"
8
- gem.homepage = "http://github.com/thefrontiergroup/shop_discounts"
8
+ gem.homepage = "https://github.com/thefrontiergroup/radiant-shop_discounts-extension"
9
9
  gem.authors = ["Dirk Kelly"]
10
10
  gem.add_dependency 'radiant-shop-extension'
11
11
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.3
@@ -0,0 +1 @@
1
+ # Nothing to see here
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-shop_discounts-extension}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dirk Kelly"]
12
- s.date = %q{2010-11-10}
12
+ s.date = %q{2010-12-01}
13
13
  s.description = %q{RadiantShop: Apply discounts to Products and Categories and have them accessed through codes}
14
14
  s.email = %q{dk@dirkkelly.com}
15
15
  s.extra_rdoc_files = [
@@ -17,95 +17,94 @@ Gem::Specification.new do |s|
17
17
  ]
18
18
  s.files = [
19
19
  ".DS_Store",
20
- ".gitignore",
21
- "README",
22
- "Rakefile",
23
- "VERSION",
24
- "app/controllers/admin/shop/discounts/discountables_controller.rb",
25
- "app/controllers/admin/shop/discounts_controller.rb",
26
- "app/models/form_discount.rb",
27
- "app/models/shop_discount.rb",
28
- "app/models/shop_discountable.rb",
29
- "app/views/admin/shop/discounts/edit.html.haml",
30
- "app/views/admin/shop/discounts/edit/_foot.html.haml",
31
- "app/views/admin/shop/discounts/edit/_form.html.haml",
32
- "app/views/admin/shop/discounts/edit/_head.html.haml",
33
- "app/views/admin/shop/discounts/edit/_inputs.html.haml",
34
- "app/views/admin/shop/discounts/edit/_meta.html.haml",
35
- "app/views/admin/shop/discounts/edit/_parts.html.haml",
36
- "app/views/admin/shop/discounts/edit/_popups.html.haml",
37
- "app/views/admin/shop/discounts/edit/buttons/_browse_categories.html.haml",
38
- "app/views/admin/shop/discounts/edit/buttons/_browse_products.html.haml",
39
- "app/views/admin/shop/discounts/edit/inputs/_amount.html.haml",
40
- "app/views/admin/shop/discounts/edit/inputs/_code.html.haml",
41
- "app/views/admin/shop/discounts/edit/inputs/_name.html.haml",
42
- "app/views/admin/shop/discounts/edit/meta/_finish.html.haml",
43
- "app/views/admin/shop/discounts/edit/meta/_start.html.haml",
44
- "app/views/admin/shop/discounts/edit/parts/_categories.html.haml",
45
- "app/views/admin/shop/discounts/edit/parts/_products.html.haml",
46
- "app/views/admin/shop/discounts/edit/popups/_browse_categories.html.haml",
47
- "app/views/admin/shop/discounts/edit/popups/_browse_products.html.haml",
48
- "app/views/admin/shop/discounts/edit/shared/_category.html.haml",
49
- "app/views/admin/shop/discounts/edit/shared/_product.html.haml",
50
- "app/views/admin/shop/discounts/index.html.haml",
51
- "app/views/admin/shop/discounts/index/_discount.html.haml",
52
- "app/views/admin/shop/discounts/index/_foot.html.haml",
53
- "app/views/admin/shop/discounts/index/_head.html.haml",
54
- "app/views/admin/shop/discounts/index/buttons/_new_discount.html.haml",
55
- "app/views/admin/shop/discounts/new.html.haml",
56
- "app/views/admin/shop/discounts/remove.html.haml",
57
- "config/locales/en.yml",
58
- "config/routes.rb",
59
- "cucumber.yml",
60
- "db/migrate/20101015162137_setup_shop_discounts.rb",
61
- "features/support/env.rb",
62
- "features/support/paths.rb",
63
- "lib/shop_discounts/models/discountable.rb",
64
- "lib/shop_discounts/models/product.rb",
65
- "lib/shop_discounts/models/purchaseable.rb",
66
- "lib/shop_discounts/tags/cart.rb",
67
- "lib/shop_discounts/tags/item.rb",
68
- "lib/tasks/shop_discounts_extension_tasks.rake",
69
- "public/javascripts/admin/extensions/shop/discounts/edit.js",
70
- "public/stylesheets/sass/admin/extensions/shop/discounts/edit.sass",
71
- "radiant-shop_discounts-extension.gemspec",
72
- "shop_discounts_extension.rb",
73
- "spec/controllers/admin/shop/discounts/discountables_controller_spec.rb",
74
- "spec/controllers/admin/shop/discounts_controller_spec.rb",
75
- "spec/datasets/forms_discount.rb",
76
- "spec/datasets/shop_discountables.rb",
77
- "spec/datasets/shop_discounts.rb",
78
- "spec/lib/shop_discounts/models/discountable_spec.rb",
79
- "spec/lib/shop_discounts/models/purchaseable_spec.rb",
80
- "spec/lib/shop_discounts/tags/item_spec.rb",
81
- "spec/models/form_discount_spec.rb",
82
- "spec/models/shop_category_spec.rb",
83
- "spec/models/shop_discount_spec.rb",
84
- "spec/models/shop_line_item_spec.rb",
85
- "spec/models/shop_product_spec.rb",
86
- "spec/spec.opts",
87
- "spec/spec_helper.rb"
20
+ "README",
21
+ "Rakefile",
22
+ "VERSION",
23
+ "app/controllers/admin/shop/discounts/discountables_controller.rb",
24
+ "app/controllers/admin/shop/discounts_controller.rb",
25
+ "app/models/form_discount.rb",
26
+ "app/models/shop_discount.rb",
27
+ "app/models/shop_discountable.rb",
28
+ "app/views/admin/shop/discounts/edit.html.haml",
29
+ "app/views/admin/shop/discounts/edit/_foot.html.haml",
30
+ "app/views/admin/shop/discounts/edit/_form.html.haml",
31
+ "app/views/admin/shop/discounts/edit/_head.html.haml",
32
+ "app/views/admin/shop/discounts/edit/_inputs.html.haml",
33
+ "app/views/admin/shop/discounts/edit/_meta.html.haml",
34
+ "app/views/admin/shop/discounts/edit/_parts.html.haml",
35
+ "app/views/admin/shop/discounts/edit/_popups.html.haml",
36
+ "app/views/admin/shop/discounts/edit/buttons/_browse_categories.html.haml",
37
+ "app/views/admin/shop/discounts/edit/buttons/_browse_products.html.haml",
38
+ "app/views/admin/shop/discounts/edit/inputs/_amount.html.haml",
39
+ "app/views/admin/shop/discounts/edit/inputs/_code.html.haml",
40
+ "app/views/admin/shop/discounts/edit/inputs/_name.html.haml",
41
+ "app/views/admin/shop/discounts/edit/meta/_finish.html.haml",
42
+ "app/views/admin/shop/discounts/edit/meta/_start.html.haml",
43
+ "app/views/admin/shop/discounts/edit/parts/_categories.html.haml",
44
+ "app/views/admin/shop/discounts/edit/parts/_products.html.haml",
45
+ "app/views/admin/shop/discounts/edit/popups/_browse_categories.html.haml",
46
+ "app/views/admin/shop/discounts/edit/popups/_browse_products.html.haml",
47
+ "app/views/admin/shop/discounts/edit/shared/_category.html.haml",
48
+ "app/views/admin/shop/discounts/edit/shared/_product.html.haml",
49
+ "app/views/admin/shop/discounts/index.html.haml",
50
+ "app/views/admin/shop/discounts/index/_discount.html.haml",
51
+ "app/views/admin/shop/discounts/index/_foot.html.haml",
52
+ "app/views/admin/shop/discounts/index/_head.html.haml",
53
+ "app/views/admin/shop/discounts/index/buttons/_new_discount.html.haml",
54
+ "app/views/admin/shop/discounts/new.html.haml",
55
+ "app/views/admin/shop/discounts/remove.html.haml",
56
+ "config/locales/en.yml",
57
+ "config/routes.rb",
58
+ "cucumber.yml",
59
+ "db/migrate/20101015162137_setup_shop_discounts.rb",
60
+ "features/support/env.rb",
61
+ "features/support/paths.rb",
62
+ "lib/radiant-shop_discounts-extension.rb",
63
+ "lib/shop_discounts/models/discountable.rb",
64
+ "lib/shop_discounts/models/product.rb",
65
+ "lib/shop_discounts/models/purchaseable.rb",
66
+ "lib/shop_discounts/tags/cart.rb",
67
+ "lib/shop_discounts/tags/item.rb",
68
+ "lib/tasks/shop_discounts_extension_tasks.rake",
69
+ "public/javascripts/admin/extensions/shop/discounts/edit.js",
70
+ "public/stylesheets/sass/admin/extensions/shop/discounts/edit.sass",
71
+ "radiant-shop_discounts-extension.gemspec",
72
+ "shop_discounts_extension.rb",
73
+ "spec/controllers/admin/shop/discounts/discountables_controller_spec.rb",
74
+ "spec/controllers/admin/shop/discounts_controller_spec.rb",
75
+ "spec/datasets/forms_discount.rb",
76
+ "spec/datasets/shop_discountables.rb",
77
+ "spec/datasets/shop_discounts.rb",
78
+ "spec/lib/shop_discounts/models/discountable_spec.rb",
79
+ "spec/lib/shop_discounts/models/purchaseable_spec.rb",
80
+ "spec/lib/shop_discounts/tags/item_spec.rb",
81
+ "spec/models/form_discount_spec.rb",
82
+ "spec/models/shop_category_spec.rb",
83
+ "spec/models/shop_discount_spec.rb",
84
+ "spec/models/shop_line_item_spec.rb",
85
+ "spec/models/shop_product_spec.rb",
86
+ "spec/spec.opts",
87
+ "spec/spec_helper.rb"
88
88
  ]
89
- s.homepage = %q{http://github.com/thefrontiergroup/shop_discounts}
90
- s.rdoc_options = ["--charset=UTF-8"]
89
+ s.homepage = %q{https://github.com/thefrontiergroup/radiant-shop_discounts-extension}
91
90
  s.require_paths = ["lib"]
92
91
  s.rubygems_version = %q{1.3.7}
93
92
  s.summary = %q{Shop Discounts Extension for Radiant CMS}
94
93
  s.test_files = [
95
94
  "spec/controllers/admin/shop/discounts/discountables_controller_spec.rb",
96
- "spec/controllers/admin/shop/discounts_controller_spec.rb",
97
- "spec/datasets/forms_discount.rb",
98
- "spec/datasets/shop_discountables.rb",
99
- "spec/datasets/shop_discounts.rb",
100
- "spec/lib/shop_discounts/models/discountable_spec.rb",
101
- "spec/lib/shop_discounts/models/purchaseable_spec.rb",
102
- "spec/lib/shop_discounts/tags/item_spec.rb",
103
- "spec/models/form_discount_spec.rb",
104
- "spec/models/shop_category_spec.rb",
105
- "spec/models/shop_discount_spec.rb",
106
- "spec/models/shop_line_item_spec.rb",
107
- "spec/models/shop_product_spec.rb",
108
- "spec/spec_helper.rb"
95
+ "spec/controllers/admin/shop/discounts_controller_spec.rb",
96
+ "spec/datasets/forms_discount.rb",
97
+ "spec/datasets/shop_discountables.rb",
98
+ "spec/datasets/shop_discounts.rb",
99
+ "spec/lib/shop_discounts/models/discountable_spec.rb",
100
+ "spec/lib/shop_discounts/models/purchaseable_spec.rb",
101
+ "spec/lib/shop_discounts/tags/item_spec.rb",
102
+ "spec/models/form_discount_spec.rb",
103
+ "spec/models/shop_category_spec.rb",
104
+ "spec/models/shop_discount_spec.rb",
105
+ "spec/models/shop_line_item_spec.rb",
106
+ "spec/models/shop_product_spec.rb",
107
+ "spec/spec_helper.rb"
109
108
  ]
110
109
 
111
110
  if s.respond_to? :specification_version then
@@ -1,13 +1,10 @@
1
- # Uncomment this if you reference any of your controllers in activate
2
- # require_dependency 'application_controller'
3
-
4
1
  class ShopDiscountsExtension < Radiant::Extension
5
- version "1.0"
6
- description "Describe your extension here"
7
- url "http://yourwebsite.com/shop_discounts"
2
+ version YAML::load_file(File.join(File.dirname(__FILE__), 'VERSION'))
3
+ description "Add Discounts to Radiant Shop"
4
+ url "https://github.com/thefrontiergroup/radiant-shop_discounts-extension"
8
5
 
9
6
  extension_config do |config|
10
- #config.gem 'radiant-shop-extension', :lib => false
7
+ config.gem 'radiant-shop-extension'
11
8
  end
12
9
 
13
10
  UserActionObserver.instance.send :add_observer!, ShopDiscount
@@ -16,7 +13,7 @@ class ShopDiscountsExtension < Radiant::Extension
16
13
  def activate
17
14
 
18
15
  tab "Shop" do
19
- add_item "Discounts", "/admin/shop/discounts"
16
+ add_item "Discounts", "/admin/shop/discounts", :before => "Orders"
20
17
  end
21
18
 
22
19
  ShopLineItem.send :include, ShopDiscounts::Models::Discountable, ShopDiscounts::Models::Purchaseable
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-shop_discounts-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dirk Kelly
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-10 00:00:00 +08:00
18
+ date: 2010-12-01 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -42,7 +42,6 @@ extra_rdoc_files:
42
42
  - README
43
43
  files:
44
44
  - .DS_Store
45
- - .gitignore
46
45
  - README
47
46
  - Rakefile
48
47
  - VERSION
@@ -85,6 +84,7 @@ files:
85
84
  - db/migrate/20101015162137_setup_shop_discounts.rb
86
85
  - features/support/env.rb
87
86
  - features/support/paths.rb
87
+ - lib/radiant-shop_discounts-extension.rb
88
88
  - lib/shop_discounts/models/discountable.rb
89
89
  - lib/shop_discounts/models/product.rb
90
90
  - lib/shop_discounts/models/purchaseable.rb
@@ -111,12 +111,12 @@ files:
111
111
  - spec/spec.opts
112
112
  - spec/spec_helper.rb
113
113
  has_rdoc: true
114
- homepage: http://github.com/thefrontiergroup/shop_discounts
114
+ homepage: https://github.com/thefrontiergroup/radiant-shop_discounts-extension
115
115
  licenses: []
116
116
 
117
117
  post_install_message:
118
- rdoc_options:
119
- - --charset=UTF-8
118
+ rdoc_options: []
119
+
120
120
  require_paths:
121
121
  - lib
122
122
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- pkg