repres-react 1.2.1 → 1.3

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: 5ecc3651f957fecafac9b4accc65b81b862c3a5a
4
- data.tar.gz: 270aa1a3cd8dad3e9cde64631f1fe4c64ef7402a
3
+ metadata.gz: 40d1bcd2d5e3b1528a6e8604eb57959bddcbfe8f
4
+ data.tar.gz: 10b9466c0e4d4058bbc910303f4abbffddad9335
5
5
  SHA512:
6
- metadata.gz: 50979c8886ce637112ae781619e9c2de6013af1488ff9a4fcfbc50cbcea686245c0476982b66ee50cd45be30260938c57873cc93faab53d2e80ba618be9142df
7
- data.tar.gz: b4ff5e59d5dd023456f877524227915df48459ff8a30089010f75e367309ad564a494a9e9c38668df21bcfe7b909acb4522d27af5c5e29e6e51067b91a652fe2
6
+ metadata.gz: b36cbeecab2ea1341e14da2063c3647c7f3386ba09f31dbb607d1703bfbfc62428f1a4e387ff3cbcf49a24aef94209807d345551bc368a2a52a07ce46ce57925
7
+ data.tar.gz: 4390fbde09d8c2c2e032e456cd7f2ba9997ce4ec0f1e7e1c7201b9cb50a3eee91e5a0dfb1315882fbcab1b3337c34ef38488036052c156c28257b508d41fd5b1
data/README.md CHANGED
@@ -35,7 +35,7 @@ helper Repres::React::ApplicationHelper
35
35
 
36
36
  ### Render the Script
37
37
 
38
- The Script partial includes the HTML script tags for React and its extensions. Only the [Boot CDN](http://cdn.bootcss.com/) servers are supported.
38
+ The Script partial includes the HTML script tags for React and its extensions. The [Boot CDN](http://cdn.bootcss.com/) server is supported by default. However, the :cdn option could be passed in to support other CDN servers. The CDN servers must syncrhonize with [cdnjs](https://github.com/cdnjs/cdnjs).
39
39
 
40
40
  The following code snippet does __not__ load any JavaScript library.
41
41
  ```erb
@@ -53,9 +53,9 @@ The following code snippet loads the latest React JavaScript library.
53
53
 
54
54
  The following code snippet loads the React JavaScript library with the given version.
55
55
  ```erb
56
- <%= render partial: 'repres/bootstrap/script', locals: { options: { react: { version: '15.0.2' }, 'react-dom': { version: '15.0.2' } } } %>
56
+ <%= render partial: 'repres/bootstrap/script', locals: { options: { react: { version: '15.0.2', cdn: 'cdn.server.com' }, 'react-dom': { version: '15.0.2' } } } %>
57
57
  <!-- or the following line works identically -->
58
- <%= react_script react: { version: '15.0.2' }, 'react-dom': { version: '15.0.2' } %>
58
+ <%= react_script react: { version: '15.0.2', cdn: 'cdn.server.com' }, 'react-dom': { version: '15.0.2' } %>
59
59
  ```
60
60
 
61
61
  The following JavaScript libraries are switchable, and the version can be configurable:
@@ -1,6 +1,6 @@
1
1
  <% options = defined?(options) ? options : nil %>
2
2
 
3
- <%= javascript_include_tag "//cdn.bootcss.com/react/#{library_version(:react, '15.3.2', options)}/react.min.js" if library_enabled?(:react, options) %>
4
- <%= javascript_include_tag "//cdn.bootcss.com/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.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) %>
5
5
 
6
- <%= javascript_include_tag "//cdn.bootcss.com/redux/#{library_version(:redux, '3.6.0', options)}/redux.min.js" if library_enabled?(:redux, options) %>
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.2.1'.freeze
3
+ VERSION = '1.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repres-react
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: '1.3'
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-17 00:00:00.000000000 Z
11
+ date: 2016-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '4.2'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '4.2'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: repres-hyper_text
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - ">="
32
18
  - !ruby/object:Gem::Version
33
- version: '1.0'
19
+ version: '1.2'
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - ">="
39
25
  - !ruby/object:Gem::Version
40
- version: '1.0'
26
+ version: '1.2'
41
27
  description: Repres (REsource PRESentation) is a series of resource presentation engines.
42
28
  The React resource presentation engine includes React-based resource presentation
43
29
  templates & snippets. Repres (资源表现)是一系列的资源表现引擎。React 资源表现引擎包括基于React的资源表现模版和片段。