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 +4 -4
- data/CHANGELOG +2 -0
- data/README.md +2 -2
- data/lib/generators/versacommerce_app/versacommerce_app_generator.rb +11 -1
- data/lib/versacommerce_app/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f98b9b6a726666a47f45e66c7e8c7cc1e42cf61
|
4
|
+
data.tar.gz: a27ccfcfdccd43c1b7cd2700ccf5eb9e4c0d1429
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
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.
|
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:
|
11
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|