repres-react 1.3 → 1.3.1

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: 40d1bcd2d5e3b1528a6e8604eb57959bddcbfe8f
4
- data.tar.gz: 10b9466c0e4d4058bbc910303f4abbffddad9335
3
+ metadata.gz: 24d00707af1c3cff548607cfaeb701dd6cac3fbf
4
+ data.tar.gz: 7d3de91781fbc470c6a86bf05c7fab7c1775e784
5
5
  SHA512:
6
- metadata.gz: b36cbeecab2ea1341e14da2063c3647c7f3386ba09f31dbb607d1703bfbfc62428f1a4e387ff3cbcf49a24aef94209807d345551bc368a2a52a07ce46ce57925
7
- data.tar.gz: 4390fbde09d8c2c2e032e456cd7f2ba9997ce4ec0f1e7e1c7201b9cb50a3eee91e5a0dfb1315882fbcab1b3337c34ef38488036052c156c28257b508d41fd5b1
6
+ metadata.gz: c441b9b476e729e53a0174aa31263bedeef8f9054329e4e70bb7be34a76291449293f80afe965fcfb0a3df99af08ff463b33a426b08ac6acc0fc2c7c58fc061a
7
+ data.tar.gz: 046cfe5bcf583368d62cee31d476f60064c517b58905e692068dbeceef94fb3beb04b13f9c251e1789e71b810b856a78dc4a82b36fc0d54cd1781e3e68695820
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Repres React React资源表现引擎
2
2
 
3
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/repres-react/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-react.svg)](https://badge.fury.io/rb/repres-react)
5
7
  [![Dependency Status](https://gemnasium.com/badges/github.com/topbitdu/repres-react.svg)](https://gemnasium.com/github.com/topbitdu/repres-react)
6
8
 
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application controller 是模块内所有控制器的基类。
3
+
1
4
  class Repres::React::ApplicationController < ActionController::Base
2
5
  protect_from_forgery with: :exception
3
6
  end
@@ -1,5 +1,10 @@
1
+ ##
2
+ # Application Helper 是适用于 HTML 与 React 相关的视图辅助模块。
3
+
1
4
  module Repres::React::ApplicationHelper
2
5
 
6
+ ##
7
+ # 调用 repres/react/script 这个局部脚本, options 是传递的参数。
3
8
  def react_script(options = {})
4
9
  render partial: 'repres/react/script', locals: { options: options }
5
10
  end
@@ -1,2 +1,5 @@
1
+ ##
2
+ # Application job 是模块内所有异步任务的基类。
3
+
1
4
  class Repres::React::ApplicationJob < ActiveJob::Base
2
5
  end
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application mailer 是模块内所有电子邮件发送类的基类。
3
+
1
4
  class Repres::React::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::React::ApplicationRecord < ActiveRecord::Base
2
5
  self.abstract_class = true
3
6
  end
@@ -1,6 +1,6 @@
1
1
  <% options = defined?(options) ? options : nil %>
2
2
 
3
- <%= javascript_include_tag "//#{domain_name(:react, options)}/react/#{library_version(:react, '15.3.2', options)}/react.min.js" if library_enabled?(:react, options) %>
4
- <%= javascript_include_tag "//#{domain_name(:'react-dom', options)}/react/#{library_version(:'react-dom', '15.3.2', options)}/react-dom.min.js" if library_enabled?(:'react-dom', options) %>
3
+ <%= javascript_include_tag "//#{domain_name(:react, options)}/react/#{library_version(:react, '15.4.2', options)}/react.min.js" if library_enabled?(:react, options) %>
4
+ <%= javascript_include_tag "//#{domain_name(:'react-dom', options)}/react/#{library_version(:'react-dom', '15.4.2', options)}/react-dom.min.js" if library_enabled?(:'react-dom', options) %>
5
5
 
6
6
  <%= javascript_include_tag "//#{domain_name(:redux, options)}/redux/#{library_version(:redux, '3.6.0', options)}/redux.min.js" if library_enabled?(:redux, options) %>
@@ -1,5 +1,5 @@
1
1
  module Repres
2
2
  module React
3
- VERSION = '1.3'.freeze
3
+ VERSION = '1.3.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repres-react
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.3'
4
+ version: 1.3.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-11-19 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: repres-hyper_text