react-rails 0.4.1.0 → 0.4.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # react-rails
1
+ # react-rails [![Build Status](https://travis-ci.org/facebook/react-rails.png)](https://travis-ci.org/facebook/react-rails)
2
2
 
3
3
  react-rails is a ruby gem which makes it easier to use [React](http://facebook.github.io/react/) and [JSX](http://facebook.github.io/react/docs/jsx-in-depth.html) in your Ruby on Rails application.
4
4
 
@@ -1,3 +1,5 @@
1
+ require 'tilt'
2
+
1
3
  module React
2
4
  module JSX
3
5
 
@@ -1,10 +1,8 @@
1
1
  module React
2
2
  module Rails
3
3
  class Engine < ::Rails::Engine
4
- config.before_initialize do |app|
5
- # force autoloading? what?
6
- Sprockets::Engines
7
- Sprockets.register_engine '.jsx', React::JSX::Template
4
+ initializer "react_rails.setup_engine", :after => "sprockets.environment", :group => :all do |app|
5
+ app.assets.register_engine '.jsx', React::JSX::Template
8
6
  end
9
7
  end
10
8
  end
@@ -5,7 +5,7 @@ module React
5
5
  class Railtie < ::Rails::Railtie
6
6
  config.react = ActiveSupport::OrderedOptions.new
7
7
 
8
- initializer "react_rails.setup_vendor" do |app|
8
+ initializer "react_rails.setup_vendor", :after => "sprockets.environment" do |app|
9
9
  variant = app.config.react.variant
10
10
 
11
11
  # Mimic behavior of ember-rails...
@@ -24,6 +24,7 @@ module React
24
24
  tmp_path.join('react.js'))
25
25
  FileUtils.cp(::React::Source.bundled_path_for('JSXTransformer.js'),
26
26
  tmp_path.join('JSXTransformer.js'))
27
+
27
28
  # Make sure it can be found
28
29
  app.assets.append_path(tmp_path)
29
30
  end
@@ -2,7 +2,7 @@ module React
2
2
  module Rails
3
3
  # Version numbers will track react-source, but we'll add another level so
4
4
  # that we can increment, but have some amount of stability.
5
- VERSION = '0.4.1.0'
5
+ VERSION = '0.4.1.1'
6
6
  end
7
7
  end
8
8
 
metadata CHANGED
@@ -1,80 +1,96 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1.0
5
- prerelease:
4
+ prerelease:
5
+ version: 0.4.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paul O’Shannessy
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-30 00:00:00.000000000 Z
12
+ date: 2013-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: execjs
15
+ name: bundler
16
+ version_requirements: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: 1.2.2
21
+ none: false
16
22
  requirement: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.2.2
17
27
  none: false
28
+ prerelease: false
29
+ type: :development
30
+ - !ruby/object:Gem::Dependency
31
+ name: appraisal
32
+ version_requirements: !ruby/object:Gem::Requirement
18
33
  requirements:
19
- - - ! '>='
34
+ - - '>='
20
35
  - !ruby/object:Gem::Version
21
36
  version: '0'
22
- type: :runtime
37
+ none: false
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ none: false
23
44
  prerelease: false
45
+ type: :development
46
+ - !ruby/object:Gem::Dependency
47
+ name: execjs
24
48
  version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
25
53
  none: false
54
+ requirement: !ruby/object:Gem::Requirement
26
55
  requirements:
27
- - - ! '>='
56
+ - - '>='
28
57
  - !ruby/object:Gem::Version
29
58
  version: '0'
59
+ none: false
60
+ prerelease: false
61
+ type: :runtime
30
62
  - !ruby/object:Gem::Dependency
31
63
  name: rails
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
64
+ version_requirements: !ruby/object:Gem::Requirement
34
65
  requirements:
35
- - - ! '>='
66
+ - - '>='
36
67
  - !ruby/object:Gem::Version
37
68
  version: '3.1'
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
69
  none: false
70
+ requirement: !ruby/object:Gem::Requirement
42
71
  requirements:
43
- - - ! '>='
72
+ - - '>='
44
73
  - !ruby/object:Gem::Version
45
74
  version: '3.1'
75
+ none: false
76
+ prerelease: false
77
+ type: :runtime
46
78
  - !ruby/object:Gem::Dependency
47
79
  name: react-source
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
80
+ version_requirements: !ruby/object:Gem::Requirement
50
81
  requirements:
51
82
  - - '='
52
83
  - !ruby/object:Gem::Version
53
84
  version: 0.4.1
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
85
  none: false
86
+ requirement: !ruby/object:Gem::Requirement
58
87
  requirements:
59
88
  - - '='
60
89
  - !ruby/object:Gem::Version
61
90
  version: 0.4.1
62
- - !ruby/object:Gem::Dependency
63
- name: sqlite3
64
- requirement: !ruby/object:Gem::Requirement
65
91
  none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
92
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
93
+ type: :runtime
78
94
  description: Compile your JSX on demand or precompile for production.
79
95
  email:
80
96
  - paul@oshannessy.com
@@ -82,38 +98,38 @@ executables: []
82
98
  extensions: []
83
99
  extra_rdoc_files: []
84
100
  files:
85
- - lib/react/jsx/template.rb
101
+ - lib/react-rails.rb
86
102
  - lib/react/jsx.rb
103
+ - lib/react/rails.rb
104
+ - lib/react/jsx/template.rb
87
105
  - lib/react/rails/engine.rb
88
106
  - lib/react/rails/railstie.rb
89
107
  - lib/react/rails/version.rb
90
- - lib/react/rails.rb
91
- - lib/react-rails.rb
92
108
  - README.md
93
109
  - LICENSE
94
110
  homepage: https://github.com/facebook/react-rails
95
111
  licenses:
96
112
  - APL 2.0
97
- post_install_message:
113
+ post_install_message:
98
114
  rdoc_options: []
99
115
  require_paths:
100
116
  - lib
101
117
  required_ruby_version: !ruby/object:Gem::Requirement
102
- none: false
103
118
  requirements:
104
- - - ! '>='
119
+ - - '>='
105
120
  - !ruby/object:Gem::Version
106
121
  version: '0'
107
- required_rubygems_version: !ruby/object:Gem::Requirement
108
122
  none: false
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
109
124
  requirements:
110
- - - ! '>='
125
+ - - '>='
111
126
  - !ruby/object:Gem::Version
112
127
  version: '0'
128
+ none: false
113
129
  requirements: []
114
- rubyforge_project:
115
- rubygems_version: 1.8.25
116
- signing_key:
130
+ rubyforge_project:
131
+ rubygems_version: 1.8.24
132
+ signing_key:
117
133
  specification_version: 3
118
134
  summary: React/JSX adapter for the Ruby on Rails asset pipeline.
119
135
  test_files: []