unidom-shopping 1.6 → 1.6.1

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: f4d78b23b7fdc82ba6599d5c9925cab338f8afb3
4
- data.tar.gz: 266676665bc16c4359b174659b3a3865344cfbbb
3
+ metadata.gz: 3b27cdbf06c8983b06db8b16b5ed50f07ec9f7e8
4
+ data.tar.gz: 6480513c70ac07b1db3093436dc2dead2c816735
5
5
  SHA512:
6
- metadata.gz: 93507261bd565d7a0ca370f389300aa21f5e82f64e2911949e5dcc21ca2958e76577728d4e8b478ee4781ac4d51ee0ccf4fe461844058c848a315ea0ba8f9593
7
- data.tar.gz: 5d4f122721186c7eba935f1d25d36b20398ee0b830f68a783f16a25c6b6c218cb3df0a8bb99ebb3e4884a8bc4363edff60e87d53a13b7449c95c6757d52a33d4
6
+ metadata.gz: 514a493761a77018fe10c62800a89e7256d7fc7e9f20bee5047b66335009b1f5844c346c774f8201fe47c27e7b00c4f09109296921665389415790eedebaa2c2
7
+ data.tar.gz: 9a3a6788d2b6691537fff39a717bda535812f82c609e783fc4d0d0ebb32b4dacdab1521e0c138a12d2767fc1117ed86e41fd2beccef8efa908d9c078f011024f
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
10
10
  rdoc.rdoc_dir = 'rdoc'
11
11
  rdoc.title = 'Unidom Shopping'
12
12
  rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.rdoc')
13
+ rdoc.rdoc_files.include('README.md')
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
@@ -20,5 +20,5 @@ load 'rails/tasks/statistics.rake'
20
20
 
21
21
 
22
22
 
23
- Bundler::GemHelper.install_tasks
23
+ require 'bundler/gem_tasks'
24
24
 
@@ -0,0 +1,2 @@
1
+ //= link_directory ../javascripts/unidom/shopping .js
2
+ //= link_directory ../stylesheets/unidom/shopping .css
@@ -5,7 +5,7 @@
5
5
  // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
6
  //
7
7
  // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
8
+ // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
9
  //
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
@@ -6,9 +6,9 @@
6
6
  * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
7
  *
8
8
  * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
12
  *
13
13
  *= require_self
14
14
  */
@@ -1,2 +1,3 @@
1
1
  class Unidom::Shopping::ApplicationController < ActionController::Base
2
+ protect_from_forgery with: :exception
2
3
  end
@@ -0,0 +1,2 @@
1
+ class Unidom::Shopping::ApplicationJob < ActiveJob::Base
2
+ end
@@ -0,0 +1,4 @@
1
+ class Unidom::Shopping::ApplicationMailer < ActionMailer::Base
2
+ default from: 'from@example.com'
3
+ layout 'mailer'
4
+ end
@@ -0,0 +1,3 @@
1
+ class Unidom::Shopping::ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -1,6 +1,6 @@
1
1
  # Shopping Cart 是购物车。
2
2
 
3
- class Unidom::Shopping::ShoppingCart < ActiveRecord::Base
3
+ class Unidom::Shopping::ShoppingCart < Unidom::Shopping::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_shopping_carts'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Shopping Item 是购物项。
2
2
 
3
- class Unidom::Shopping::ShoppingItem < ActiveRecord::Base
3
+ class Unidom::Shopping::ShoppingItem < Unidom::Shopping::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_shopping_items'
6
6
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Shopping
3
- VERSION = '1.6'.freeze
3
+ VERSION = '1.6.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-shopping
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.6'
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-11 00:00:00.000000000 Z
11
+ date: 2016-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '1.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '1.6'
27
27
  description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
28
28
  The Shopping domain model engine includes Shopping Cart and Shopping Item models.
29
29
  Unidom (统一领域对象模型)是一系列的领域模型引擎。购物领域模型引擎包括购物车和购物项的模型。
@@ -36,10 +36,14 @@ files:
36
36
  - MIT-LICENSE
37
37
  - README.md
38
38
  - Rakefile
39
+ - app/assets/config/unidom-shopping_manifest.js
39
40
  - app/assets/javascripts/unidom/shopping/application.js
40
41
  - app/assets/stylesheets/unidom/shopping/application.css
41
42
  - app/controllers/unidom/shopping/application_controller.rb
42
43
  - app/helpers/unidom/shopping/application_helper.rb
44
+ - app/jobs/unidom/shopping/application_job.rb
45
+ - app/mailers/unidom/shopping/application_mailer.rb
46
+ - app/models/unidom/shopping/application_record.rb
43
47
  - app/models/unidom/shopping/concerns/as_cart_shopper.rb
44
48
  - app/models/unidom/shopping/concerns/as_item_shopper.rb
45
49
  - app/models/unidom/shopping/concerns/as_shop.rb