repres-bootstrap 1.9 → 1.10

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: fa0859904aca03c234166be1c9ba71d376b81a65
4
- data.tar.gz: c7e275161b3e4ec0ba4c719bbd0d6c61dcb1418e
3
+ metadata.gz: 8b084711b940d6a08b69a38280bdd12d5f75ad2c
4
+ data.tar.gz: a0415019df5a3f70ecf3906a76ffdb0cb0157825
5
5
  SHA512:
6
- metadata.gz: 137b6ab5a9296bbc37fe1a94a83b0e1305467434dd580c29cf8cb4531ce551709f5577e411bd83e12974266191aa2cebf711b8f2acf4420395fafb6c2d65b3c6
7
- data.tar.gz: 674f687dc938912b9295fec584e635e443d0aa876653019c02e06fa25400b3f12951f7d7fa3ae599a6c6f22fbee93d868b59f774b6bce6aa7f2ed02ef5d6bd58
6
+ metadata.gz: 71c03c54cd67a755d2434dec8eb4313b22dc87d42c0fc6d9deecc27dcc0d9e12d7861d7a812c030c2c2e413f52e51b4ecc1fc49cc84f8f7d77c50c69b75b4d7a
7
+ data.tar.gz: 3fd2674ef76b9149043cc72f7a185e06e25de49084a0e09fb09a6714d0d5327ba709d8839f118817304d80dca657d5ef1a51887325d3e156cd99a0f73b79c088
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Repres Bootstrap Bootstrap资源表现引擎
2
2
 
3
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/repres-bootstrap/frames)
3
4
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
5
+
4
6
  [![Gem Version](https://badge.fury.io/rb/repres-bootstrap.svg)](https://badge.fury.io/rb/repres-bootstrap)
5
7
  [![Dependency Status](https://gemnasium.com/badges/github.com/topbitdu/repres-bootstrap.svg)](https://gemnasium.com/github.com/topbitdu/repres-bootstrap)
6
8
 
@@ -298,3 +300,18 @@ app/views/shared/.keep
298
300
  app/views/administration/v4/shared/_script.html.erb
299
301
  app/views/administration/v4/shared/_style.html.erb
300
302
  ```
303
+
304
+
305
+
306
+ ## RSpec examples
307
+
308
+ ```ruby
309
+ # spec/models/repres_spec.rb
310
+ require 'repres/bootstrap/models_rspec'
311
+
312
+ # spec/types/repres_spec.rb
313
+ require 'repres/bootstrap/types_rspec'
314
+
315
+ # spec/validators/repres_spec.rb
316
+ require 'repres/bootstrap/validators_rspec'
317
+ ```
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application controller 是模块内所有控制器的基类。
3
+
1
4
  class Repres::Bootstrap::ApplicationController < ActionController::Base
2
5
  protect_from_forgery with: :exception
3
6
  end
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application Helper 是生成适用于 Bootstrap 的 HTML 标签的视图辅助模块。
3
+
1
4
  module Repres::Bootstrap::ApplicationHelper
2
5
 
3
6
  def bootstrap_form_field(options = {})
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Form Helper 是生成 Bootstrap 风格表单控件的视图辅助模块。
3
+
1
4
  module Repres::Bootstrap::FormHelper
2
5
 
3
6
  def bootstrap_form_field(options = {})
@@ -1,2 +1,5 @@
1
+ ##
2
+ # Application job 是模块内所有异步任务的基类。
3
+
1
4
  class Repres::Bootstrap::ApplicationJob < ActiveJob::Base
2
5
  end
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application mailer 是模块内所有电子邮件发送类的基类。
3
+
1
4
  class Repres::Bootstrap::ApplicationMailer < ActionMailer::Base
2
5
  default from: 'from@example.com'
3
6
  layout 'mailer'
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application record 是模块内所有模型的抽象基类。
3
+
1
4
  class Repres::Bootstrap::ApplicationRecord < ActiveRecord::Base
2
5
  self.abstract_class = true
3
6
  end
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Repres
2
2
  module Bootstrap
3
- VERSION = '1.9'.freeze
3
+ VERSION = '1.10'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repres-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.9'
4
+ version: '1.10'
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-12-23 00:00:00.000000000 Z
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -79,6 +79,9 @@ files:
79
79
  - lib/generators/repres/bootstrap/platform/templates/config/routes.rb.erb
80
80
  - lib/repres/bootstrap.rb
81
81
  - lib/repres/bootstrap/engine.rb
82
+ - lib/repres/bootstrap/models_rspec.rb
83
+ - lib/repres/bootstrap/types_rspec.rb
84
+ - lib/repres/bootstrap/validators_rspec.rb
82
85
  - lib/repres/bootstrap/version.rb
83
86
  - lib/tasks/bootstrap_tasks.rake
84
87
  homepage: https://github.com/topbitdu/repres-bootstrap