versacommerce_app 1.0.27 → 1.0.28

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: c7ee48681a329a534329c3549c464345f8d46914
4
- data.tar.gz: 7c307d7272d492c23c81ed8c6bdf44c20ae82a80
3
+ metadata.gz: 7f98b9b6a726666a47f45e66c7e8c7cc1e42cf61
4
+ data.tar.gz: a27ccfcfdccd43c1b7cd2700ccf5eb9e4c0d1429
5
5
  SHA512:
6
- metadata.gz: 9c690d1acf2f707017d2dd83bf0d044d7d0943bf0505b9a580c6c2fca0668fa750fbe6792e02ee868c8ee243a2b8811c9f89a8e08f9ebf78a02c61121f6c0314
7
- data.tar.gz: aa9c53e448f34c04a30e83c42e03daf1578891f29b0303bacba6bf327d24747c168b7e20886889a6172e8b8121486e83b14df95b75c161fb85fac23f578b5ed6
6
+ metadata.gz: d018c74c88a0df66342536022c929cc56a875e3c609c2bf5bd6e60e01469ae56b418900303cc5655903de266cbe4246313aa19cc12adc275c1c25c3ebeedb083
7
+ data.tar.gz: f300fe922ad4a479f35f24d934e2681be30824c7ee1d5c8b1ee2f57e0df7c92af4717c69d179b23155638a036c1dbb1a4be7405a4a5631e87ef20625b4062034
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ 1.0.28 - Set 'Rails.application.config.action_dispatch.cookies_serializer' to ':marshal' if Rails version >= 4.1.0
2
+ - Improved the README
1
3
  1.0.27 - Ensure that current session is bound to current shop, if shop param is given.
2
4
  - Updated 'versacommerce_api' to '1.0.8'
3
5
  1.0.0 - initial version [dorra]
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # VersaCommerce App Generator
2
2
 
3
- VersaCommerce application generator for Rails 3.1 and Rails 4.0
3
+ VersaCommerce application generator for Rails 3.x and Rails 4.x
4
4
 
5
5
  ## Description
6
6
 
7
- This gem makes it easy to get a Rails 3.1 or Rails 4.0 app up and running with the VersaCommerce API.
7
+ This gem makes it easy to get a Rails 3.x or Rails 4.x app up and running with the VersaCommerce API.
8
8
 
9
9
  The generator creates a basic SessionsController for authenticating with your shop and a HomeController which displays basic information about your products, orders and the shop itself.
10
10
 
@@ -6,7 +6,17 @@ class VersacommerceAppGenerator < Rails::Generators::Base
6
6
  argument :secret, :type => :string, :required => false
7
7
 
8
8
  class_option :skip_routes, :type => :boolean, :default => false, :desc => 'pass true to skip route generation'
9
-
9
+
10
+ def create_initializer_file
11
+ if Gem::Requirement.new('>= 4.1').satisfied_by? Gem::Version.new(::Rails::VERSION::STRING)
12
+ create_file "config/initializers/cookies_serializer.rb", <<-DATA
13
+ # Be sure to restart your server when you modify this file.
14
+
15
+ Rails.application.config.action_dispatch.cookies_serializer = :marshal
16
+ DATA
17
+ end
18
+ end
19
+
10
20
  def self.source_root
11
21
  File.join(File.dirname(__FILE__), 'templates')
12
22
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module VersacommerceApp
3
- VERSION = "1.0.27"
3
+ VERSION = "1.0.28"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versacommerce_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.27
4
+ version: 1.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - VersaCommerce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-21 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails