piggybak_giftcerts 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20121026200953_piggybak_giftcert_setup.rb +19 -0
- data/lib/piggybak_giftcerts/version.rb +1 -1
- metadata +24 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e5c6b836ef027973d6842e247114f7d361ec095
|
4
|
+
data.tar.gz: 0a2dd0ea913c7563dbf909a652f575a5248d2e37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 181aacc0e835985f4860c32205d3fd15edc71cc8fcb9ae9785f15ff63451aee7e3071488b6f543614fca71a83a3f9a4e4cae0c38b786a1d54e44956d478a7d14
|
7
|
+
data.tar.gz: 590b06cbcaf03dc5a14e1ce20d2b827698e97a45e939ec631d2bda382854a0edb4a88633a20c3d84fa010159dec40988c9571eb98426f2355204106a5cdec761
|
@@ -1,5 +1,24 @@
|
|
1
1
|
class PiggybakGiftcertSetup < ActiveRecord::Migration
|
2
2
|
def up
|
3
|
+
::PiggybakVariants::Option.class_eval do
|
4
|
+
self.table_name = 'options'
|
5
|
+
end
|
6
|
+
::PiggybakVariants::OptionConfiguration.class_eval do
|
7
|
+
self.table_name = 'option_configurations'
|
8
|
+
end
|
9
|
+
::PiggybakVariants::OptionValue.class_eval do
|
10
|
+
self.table_name = 'option_values'
|
11
|
+
end
|
12
|
+
::PiggybakVariants::Variant.class_eval do
|
13
|
+
self.table_name = 'variants'
|
14
|
+
end
|
15
|
+
::PiggybakGiftcerts::BuyableGiftcert.class_eval do
|
16
|
+
self.table_name = 'buyable_giftcerts'
|
17
|
+
end
|
18
|
+
::Piggybak::Sellable.class_eval do
|
19
|
+
self.table_name = 'sellables'
|
20
|
+
end
|
21
|
+
|
3
22
|
create_table :giftcerts do |t|
|
4
23
|
t.string :code, :null => false
|
5
24
|
t.decimal :amount, :null => false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: piggybak_giftcerts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steph Skardal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: piggybak_variants
|
@@ -108,34 +108,34 @@ signing_key:
|
|
108
108
|
specification_version: 4
|
109
109
|
summary: Gift Certificate support for Piggybak.
|
110
110
|
test_files:
|
111
|
-
- test/integration/navigation_test.rb
|
112
|
-
- test/test_helper.rb
|
113
|
-
- test/piggybak_giftcerts_test.rb
|
114
|
-
- test/dummy/script/rails
|
115
111
|
- test/dummy/Rakefile
|
116
|
-
- test/dummy/README.rdoc
|
117
|
-
- test/dummy/app/controllers/application_controller.rb
|
118
|
-
- test/dummy/app/assets/stylesheets/application.css
|
119
112
|
- test/dummy/app/assets/javascripts/application.js
|
113
|
+
- test/dummy/app/assets/stylesheets/application.css
|
114
|
+
- test/dummy/app/controllers/application_controller.rb
|
120
115
|
- test/dummy/app/helpers/application_helper.rb
|
121
116
|
- test/dummy/app/views/layouts/application.html.erb
|
122
|
-
- test/dummy/config
|
123
|
-
- test/dummy/
|
124
|
-
- test/dummy/
|
125
|
-
- test/dummy/
|
126
|
-
- test/dummy/
|
127
|
-
- test/dummy/
|
128
|
-
- test/dummy/config/
|
129
|
-
- test/dummy/config/initializers/secret_token.rb
|
130
|
-
- test/dummy/config/initializers/mime_types.rb
|
117
|
+
- test/dummy/config.ru
|
118
|
+
- test/dummy/public/500.html
|
119
|
+
- test/dummy/public/404.html
|
120
|
+
- test/dummy/public/422.html
|
121
|
+
- test/dummy/public/favicon.ico
|
122
|
+
- test/dummy/script/rails
|
123
|
+
- test/dummy/config/boot.rb
|
131
124
|
- test/dummy/config/initializers/session_store.rb
|
132
125
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
126
|
+
- test/dummy/config/initializers/secret_token.rb
|
127
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
133
128
|
- test/dummy/config/initializers/inflections.rb
|
134
|
-
- test/dummy/config/
|
129
|
+
- test/dummy/config/initializers/mime_types.rb
|
130
|
+
- test/dummy/config/routes.rb
|
131
|
+
- test/dummy/config/locales/en.yml
|
135
132
|
- test/dummy/config/application.rb
|
133
|
+
- test/dummy/config/environments/development.rb
|
134
|
+
- test/dummy/config/environments/production.rb
|
135
|
+
- test/dummy/config/environments/test.rb
|
136
|
+
- test/dummy/config/environment.rb
|
136
137
|
- test/dummy/config/database.yml
|
137
|
-
- test/dummy/
|
138
|
-
- test/
|
139
|
-
- test/
|
140
|
-
- test/
|
141
|
-
- test/dummy/config.ru
|
138
|
+
- test/dummy/README.rdoc
|
139
|
+
- test/piggybak_giftcerts_test.rb
|
140
|
+
- test/integration/navigation_test.rb
|
141
|
+
- test/test_helper.rb
|