middleman-react 0.10.0 → 0.11.1

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: a4ed702ae7fb0dcc012f9395c3fb5b60c906b183
4
- data.tar.gz: 6f5cb57be449fc82af88b03c7dc5612838f1fc91
3
+ metadata.gz: cc25c5c1c779203d9bcb478121f909bf7a541d94
4
+ data.tar.gz: 55f2a9c4f0b285eed03ffeed55f117029c050d26
5
5
  SHA512:
6
- metadata.gz: 53f50aaef49fe6ecfd7bbc65d45971531c09f7a5a4ddb681fb1badeff3acd8cf88968830448edb479743db5d090c87c89629c229f84f5671dc4302b4961f09c7
7
- data.tar.gz: 28c97fe808fa12aff3b7c8aed70da5e3caf0a63db76b0074532569f4cbe07a3b00d17cc9ef0dbbe571e5b0dda1f04ada593f9c92d5a38145cede700f4e62f688
6
+ metadata.gz: fdeee103fb429709c0efa2c233786d46488879d7b458828a3f330db2aa37bf3ee536f3d60ca5f394f7c918f1ee6ada6588d08fdb19dd64f1613ce3104648107c
7
+ data.tar.gz: 473865cb07bc94efd854adf872439d646cc0344dc20cd2e909c9e7faf8cebdcefb6999b2932d6af75e34588b70f09ee8901acabda40a162f24a7db7cb3363ad0
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- middleman-react (0.10.0)
4
+ middleman-react (0.11.1)
5
5
  execjs
6
6
  middleman-core (>= 3.0)
7
- react-source (= 0.10.0)
7
+ react-source (~> 0.11.1)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
@@ -103,7 +103,7 @@ GEM
103
103
  ffi (>= 0.5.0)
104
104
  rdoc (3.12.2)
105
105
  json (~> 1.4)
106
- react-source (0.10.0)
106
+ react-source (0.11.1)
107
107
  rspec (2.14.1)
108
108
  rspec-core (~> 2.14.0)
109
109
  rspec-expectations (~> 2.14.0)
data/README.md CHANGED
@@ -9,6 +9,29 @@ Inspired (and pretty much a clone of really) the [react-rails] gem for Middleman
9
9
  1. `gem install middleman-react`
10
10
  2. `activate :react` in `config.rb`
11
11
 
12
+
13
+ #### Sprockets loading react-source
14
+
15
+ In your Middleman `config.rb` add the following:
16
+
17
+ ``` ruby
18
+ after_configuration do
19
+ sprockets.append_path File.dirname(::React::Source.bundled_path_for('react.js'))
20
+ end
21
+ ```
22
+
23
+ Now you can Sprockets include React:
24
+
25
+ ```
26
+ //= require react
27
+ ```
28
+
29
+ Or with addons:
30
+
31
+ ```
32
+ //= require react-with-addons
33
+ ```
34
+
12
35
  #### Developing / Contributing
13
36
  1. Fork it!
14
37
  2. Get set up: `./script/bootstrap`
@@ -4,6 +4,6 @@ module Middleman
4
4
  # Gem packaging constants
5
5
  module React
6
6
  PACKAGE = 'middleman-react'
7
- VERSION = '0.10.0'
7
+ VERSION = '0.11.1'
8
8
  end
9
9
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
 
19
19
  gem.add_dependency "middleman-core", [">= 3.0"]
20
20
  gem.add_dependency "execjs"
21
- gem.add_dependency "react-source", "0.10.0"
21
+ gem.add_dependency "react-source", "~> 0.11.1"
22
22
 
23
23
  gem.add_development_dependency "aruba"
24
24
  gem.add_development_dependency "cane"
@@ -17,7 +17,7 @@ Feature: Transforming JSX into Javascript when it is written in Coffeescript
17
17
  this.app.components.test = React.createClass({displayName: 'test',
18
18
  render: function() {
19
19
  return React.DOM.div(null,
20
- TestComponent( {data:this.props.someData} )
20
+ TestComponent({data: this.props.someData})
21
21
  );
22
22
  }
23
23
  });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-react
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Morris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-30 00:00:00.000000000 Z
11
+ date: 2014-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: react-source
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 0.10.0
47
+ version: 0.11.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 0.10.0
54
+ version: 0.11.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: aruba
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  version: '0'
212
212
  requirements: []
213
213
  rubyforge_project:
214
- rubygems_version: 2.2.2
214
+ rubygems_version: 2.0.14
215
215
  signing_key:
216
216
  specification_version: 4
217
217
  summary: Ruby gem for automatically transforming JSX and using React in Middleman.