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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5107223b25e4bb43dd20f028b2e655ce3fa84a1
4
- data.tar.gz: e77788da328b07d68e45e3304b1f9e9d0a550a30
3
+ metadata.gz: 0e5c6b836ef027973d6842e247114f7d361ec095
4
+ data.tar.gz: 0a2dd0ea913c7563dbf909a652f575a5248d2e37
5
5
  SHA512:
6
- metadata.gz: 6610a201833c4390c6cbcf7fa77190e1eea84f5fae22c766dd8f67d3da2516d64948902df136ede66285457638b0df2a0d09bac7e2713c2fac58e38c370a810e
7
- data.tar.gz: 526de4a32a523853f97ebda8340f7405caf9d611c753954c65affbd2b05e2ca5b9b8c93778156e1a027c4af1c3ddfcde247d90b52e0f3b50acd596809c42dca2
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
@@ -1,3 +1,3 @@
1
1
  module PiggybakGiftcerts
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-04-07 00:00:00.000000000 Z
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/locales/en.yml
123
- - test/dummy/config/environment.rb
124
- - test/dummy/config/routes.rb
125
- - test/dummy/config/environments/production.rb
126
- - test/dummy/config/environments/test.rb
127
- - test/dummy/config/environments/development.rb
128
- - test/dummy/config/initializers/wrap_parameters.rb
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/boot.rb
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/public/500.html
138
- - test/dummy/public/422.html
139
- - test/dummy/public/favicon.ico
140
- - test/dummy/public/404.html
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