repres-hyper_text 1.3 → 1.4

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: 4d086cd9739db157e9e0ecb25c6ad02617fd7a78
4
- data.tar.gz: 0e579944876ad0326b91c465f4141fdc60c1fbd6
3
+ metadata.gz: 5e3cc6094d564caebc8fcd20021772d859529fe2
4
+ data.tar.gz: 24fa6575a11797a84dc9220efe00b34262dbd2b0
5
5
  SHA512:
6
- metadata.gz: c79e712cc982fa7cad4d2f0969c06ffc995cf469e8dd1dd602ae1bcb25d94dc07f53dda7552ece41b87942a52799a094927921089d61ae0b2e0a109c29ee99cf
7
- data.tar.gz: ad67c375e1b5222d508d167f7fbb657a936304d6437371fcd9d8efba7777b89272ca39a8dce30457878f7ce978c3bf34622fe529a3c4d0ecf31951f7d8ffb7b3
6
+ metadata.gz: b37f7574d7b0b3b0aede7b2bf126e3a21e9af0e4eb6a6d95cd834318dc0aaaad309f5956276d00583c84ef16fe588c741b2b3a9f146edf8a67abba278146e29e
7
+ data.tar.gz: 4bc2ee95c2416bceaa304b969d4816e00ef5981e7822d979df208901e946c38b3326b5a8818e155530b550f1c674a680f41b8de58e1512ce20036f73fda4782b
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Repres HyperText 超文本资源表现引擎
2
2
 
3
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/repres-hyper_text/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-hyper_text.svg)](https://badge.fury.io/rb/repres-hyper_text)
5
7
  [![Dependency Status](https://gemnasium.com/badges/github.com/topbitdu/repres-hyper_text.svg)](https://gemnasium.com/github.com/topbitdu/repres-hyper_text)
6
8
 
@@ -164,3 +166,18 @@ The following CSS libraries are switchable, and the version can be configurable:
164
166
  - :'font-awesome'
165
167
  - :buttons
166
168
  - :'animate.css'
169
+
170
+
171
+
172
+ ## RSpec examples
173
+
174
+ ```ruby
175
+ # spec/models/repres_spec.rb
176
+ require 'repres/hyper_text/models_rspec'
177
+
178
+ # spec/types/repres_spec.rb
179
+ require 'repres/hyper_text/types_rspec'
180
+
181
+ # spec/validators/repres_spec.rb
182
+ require 'repres/hyper_text/validators_rspec'
183
+ ```
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application controller 是模块内所有控制器的基类。
3
+
1
4
  class Repres::HyperText::ApplicationController < ActionController::Base
2
5
  protect_from_forgery with: :exception
3
6
  end
@@ -1,5 +1,10 @@
1
+ ##
2
+ # Application Helper 是为 HTML 页面生成标签的视图辅助模块。
3
+
1
4
  module Repres::HyperText::ApplicationHelper
2
5
 
6
+ ##
7
+ # 以 name 对应的值为键从 options 这个 Hash 中获取对应的值。
3
8
  def library_enabled?(name, options)
4
9
  defined?(options) && options.try(:[], name).present?
5
10
  end
@@ -1,2 +1,5 @@
1
+ ##
2
+ # Application job 是模块内所有异步任务的基类。
3
+
1
4
  class Repres::HyperText::ApplicationJob < ActiveJob::Base
2
5
  end
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application mailer 是模块内所有电子邮件发送类的基类。
3
+
1
4
  class Repres::HyperText::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::HyperText::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 HyperText
3
- VERSION = '1.3'.freeze
3
+ VERSION = '1.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repres-hyper_text
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.3'
4
+ version: '1.4'
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-12 00:00:00.000000000 Z
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,9 @@ files:
52
52
  - config/routes.rb
53
53
  - lib/repres/hyper_text.rb
54
54
  - lib/repres/hyper_text/engine.rb
55
+ - lib/repres/hyper_text/models_rspec.rb
56
+ - lib/repres/hyper_text/types_rspec.rb
57
+ - lib/repres/hyper_text/validators_rspec.rb
55
58
  - lib/repres/hyper_text/version.rb
56
59
  - lib/tasks/hyper_text_tasks.rake
57
60
  homepage: https://github.com/topbitdu/repres-hyper_text