caboose-cms 0.7.71 → 0.7.72

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ef12fa6392d39fa4faf8be10245f0e0532ce088
4
- data.tar.gz: 49253e331627337f49c57c13cb38663876b2d89f
3
+ metadata.gz: b2e4df79c7201a278945dcce956f6670c8b1113a
4
+ data.tar.gz: 700a8d557a996d7a8e4d9d72fbb232f8bf4f57cf
5
5
  SHA512:
6
- metadata.gz: 4a7973212ed78b8282de7dceece1989b2e6efa373b2946657c4f16bfc0674fce4c3111e95b09c63ae53c41e32c0a4d8d3ad4f34b0b84e219affa6407d904ad4a
7
- data.tar.gz: d6224a2867094144f871a41eaf098275777082fbf63b3fa39363456e9a81f1c650042fbb0aa98413503daae333ca15a31ad02fa427f6aa5e2f48ecc2d039cdd0
6
+ metadata.gz: f291b7f39bd93b2e423a8287e4e627156cc915600a3749a675c98852968e039975680ebe9c8e2e2a10b6423ac1ad91bca0e13df3992f952364464a95d418062f
7
+ data.tar.gz: 8075ccdff11db01e67c3ace26325c55228579c2a1c6f0ef164fd16329f63eb311059d8efe226660c624452e45fd6060117ce6cc2fdbf05a1e2c683f90797e528
@@ -63,6 +63,8 @@ module Caboose
63
63
  when 'pp_password' then sc.pp_password = value
64
64
  when 'pp_testing' then sc.pp_testing = value
65
65
  when 'pp_relay_domain' then sc.pp_relay_domain = value
66
+ when 'stripe_secret_key' then sc.stripe_secret_key = value
67
+ when 'stripe_publishable_key' then sc.stripe_publishable_key = value
66
68
  when 'ups_username' then sc.ups_username = value
67
69
  when 'ups_password' then sc.ups_password = value
68
70
  when 'ups_key' then sc.ups_key = value
@@ -276,17 +276,41 @@ class Caboose::Block < ActiveRecord::Base
276
276
  return erb.result(locals.instance_eval { binding })
277
277
  end
278
278
 
279
- def partial(name, options)
280
- defaults = { :modal => false, :empty_text => '', :editing => false, :css => nil, :js => nil }
281
- options2 = nil
279
+ def partial(name, options)
280
+ defaults = {
281
+ :view => nil,
282
+ :controller_view_content => nil,
283
+ :modal => false,
284
+ :empty_text => '',
285
+ :editing => false,
286
+ :css => nil,
287
+ :js => nil,
288
+ :csrf_meta_tags => nil,
289
+ :csrf_meta_tags2 => nil,
290
+ :logged_in_user => nil
291
+ }
292
+ options2 = nil
282
293
  if options.is_a?(Hash)
283
294
  options2 = defaults.merge(options)
284
295
  else
285
- options2 = { :modal => options.modal, :empty_text => options.empty_text, :editing => options.editing, :css => options.css, :js => options.js }
296
+ #options2 = { :modal => options.modal, :empty_text => options.empty_text, :editing => options.editing, :css => options.css, :js => options.js }
297
+ options2 = {
298
+ :view => options.view ? options.view : nil,
299
+ :controller_view_content => options.controller_view_content ? options.controller_view_content : nil,
300
+ :modal => options.modal ? options.modal : nil,
301
+ :empty_text => options.empty_text ? options.empty_text : nil,
302
+ :editing => options.editing ? options.editing : nil,
303
+ :css => options.css ? options.css : nil,
304
+ :js => options.js ? options.js : nil,
305
+ :csrf_meta_tags => options.csrf_meta_tags ? options.csrf_meta_tags : nil,
306
+ :csrf_meta_tags2 => options.csrf_meta_tags2 ? options.csrf_meta_tags2 : nil,
307
+ :logged_in_user => options.logged_in_user ? options.logged_in_user : nil
308
+ }
286
309
  end
287
- options2[:block] = self
310
+ options2[:block] = block
288
311
 
289
- view = ActionView::Base.new(ActionController::Base.view_paths)
312
+ view = options2[:view]
313
+ view = ActionView::Base.new(ActionController::Base.view_paths) if view.nil?
290
314
  site = options[:site]
291
315
 
292
316
  begin
@@ -734,7 +734,9 @@ class Caboose::Schema < Caboose::Utilities::Schema
734
734
  [ :pp_username , :string ],
735
735
  [ :pp_password , :string ],
736
736
  [ :pp_testing , :boolean , { :default => true }],
737
- [ :pp_relay_domain , :string ],
737
+ [ :pp_relay_domain , :string ],
738
+ [ :stripe_secret_key , :string ],
739
+ [ :stripe_publishable_key , :string ],
738
740
  [ :ups_username , :string ],
739
741
  [ :ups_password , :string ],
740
742
  [ :ups_key , :string ],
@@ -9,7 +9,9 @@ module Caboose
9
9
  :pp_username,
10
10
  :pp_password,
11
11
  :pp_testing,
12
- :pp_relay_url,
12
+ :pp_relay_url,
13
+ :stripe_secret_key,
14
+ :stripe_publishable_key,
13
15
  :ups_username,
14
16
  :ups_password,
15
17
  :ups_key,
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.7.71'
2
+ VERSION = '0.7.72'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.71
4
+ version: 0.7.72
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-06 00:00:00.000000000 Z
11
+ date: 2016-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg