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 +4 -4
- data/README.md +2 -0
- data/app/controllers/repres/react/application_controller.rb +3 -0
- data/app/helpers/repres/react/application_helper.rb +5 -0
- data/app/jobs/repres/react/application_job.rb +3 -0
- data/app/mailers/repres/react/application_mailer.rb +3 -0
- data/app/models/repres/react/application_record.rb +3 -0
- data/app/views/repres/react/_script.html.erb +2 -2
- data/lib/repres/react/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24d00707af1c3cff548607cfaeb701dd6cac3fbf
|
|
4
|
+
data.tar.gz: 7d3de91781fbc470c6a86bf05c7fab7c1775e784
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
+
[](http://www.rubydoc.info/gems/repres-react/frames)
|
|
3
4
|
[](http://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
4
6
|
[](https://badge.fury.io/rb/repres-react)
|
|
5
7
|
[](https://gemnasium.com/github.com/topbitdu/repres-react)
|
|
6
8
|
|
|
@@ -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,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.
|
|
4
|
-
<%= javascript_include_tag "//#{domain_name(:'react-dom', options)}/react/#{library_version(:'react-dom', '15.
|
|
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) %>
|
data/lib/repres/react/version.rb
CHANGED
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:
|
|
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:
|
|
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
|