unidom-product 1.4 → 1.4.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: 72045ffbc53a4fddb50505e43737898afa9d8c4b
4
- data.tar.gz: 9ba22176c026d61d4836c0c0f89a1fe46d3ec052
3
+ metadata.gz: 76c12bfc4d68120036655283e7a4321bc514dc10
4
+ data.tar.gz: e3f8ad78ad0815d13091d83265212312a3dd94a1
5
5
  SHA512:
6
- metadata.gz: e6b13c0ccd308e43041c1b1251b91f22deb835321f357de1a7d71ac7956cfe73ce8eab90a160ca08873d8df64fc61d8dfeb46cfb64a0583b2ce898633e94b08d
7
- data.tar.gz: 7d1be11f8f4b362ebff50376af0366e4f1a6081d6b5f970ee858b75ed5ec2210ebd5be5aa598f02aa10f80b257bea594d1783a3ba4da3be89e87646459800630
6
+ metadata.gz: 2d5eb60e711cf65bfc8d0d93e697887a73ff7af53b0f854eb282bc17fbfb70ac0e8b4d63cb7c072e378661b6e8f5fb581a84726181b0ffced1fa310ce6bdb902
7
+ data.tar.gz: 36ebbb36638050af55b4ab0a313b042b73773ccb6ce9a16133c6e4adf2503c99af64036d1e0eba18aa0c249c74d716658939969544e3cc5f7c49385457736ff4
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
10
10
  rdoc.rdoc_dir = 'rdoc'
11
11
  rdoc.title = 'Unidom Product'
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/product .js
2
+ //= link_directory ../stylesheets/unidom/product .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::Product::ApplicationController < ActionController::Base
2
+ protect_from_forgery with: :exception
2
3
  end
@@ -0,0 +1,2 @@
1
+ class Unidom::Product::ApplicationJob < ActiveJob::Base
2
+ end
@@ -0,0 +1,4 @@
1
+ class Unidom::Product::ApplicationMailer < ActionMailer::Base
2
+ default from: 'from@example.com'
3
+ layout 'mailer'
4
+ end
@@ -0,0 +1,3 @@
1
+ class Unidom::Product::ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -1,6 +1,6 @@
1
1
  # Product 是产品。
2
2
 
3
- class Unidom::Product::Product < ActiveRecord::Base
3
+ class Unidom::Product::Product < Unidom::Product::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_products'
6
6
 
@@ -8,7 +8,7 @@
8
8
  # PCKG 是销售包装 package
9
9
  # SBST 是产品替代 substitute
10
10
 
11
- class Unidom::Product::ProductAssociating < ActiveRecord::Base
11
+ class Unidom::Product::ProductAssociating < Unidom::Product::ApplicationRecord
12
12
 
13
13
  self.table_name = 'unidom_product_associatings'
14
14
 
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Product</title>
5
- <%= stylesheet_link_tag "product/application", media: "all" %>
5
+ <%= stylesheet_link_tag "unidom/product/application", media: "all" %>
6
6
  <%= csrf_meta_tags %>
7
7
  </head>
8
8
  <body>
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Product
3
- VERSION = '1.4'.freeze
3
+ VERSION = '1.4.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-product
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.4'
4
+ version: 1.4.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-08 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 Product domain model engine includes Product and its relative models. Unidom
29
29
  (统一领域对象模型)是一系列的领域模型引擎。产品领域模型引擎包括产品及其相关的模型。
@@ -36,10 +36,14 @@ files:
36
36
  - MIT-LICENSE
37
37
  - README.md
38
38
  - Rakefile
39
+ - app/assets/config/unidom-product_manifest.js
39
40
  - app/assets/javascripts/unidom/product/application.js
40
41
  - app/assets/stylesheets/unidom/product/application.css
41
42
  - app/controllers/unidom/product/application_controller.rb
42
43
  - app/helpers/unidom/product/application_helper.rb
44
+ - app/jobs/unidom/product/application_job.rb
45
+ - app/mailers/unidom/product/application_mailer.rb
46
+ - app/models/unidom/product/application_record.rb
43
47
  - app/models/unidom/product/concerns/as_source_product.rb
44
48
  - app/models/unidom/product/concerns/as_source_product_associating.rb
45
49
  - app/models/unidom/product/concerns/as_target_product.rb