eastwood 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,38 +1,38 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eastwood (0.3.6)
4
+ eastwood (0.5.0)
5
5
  coffee-rails
6
6
  rails (>= 3.1.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- actionmailer (3.2.1)
12
- actionpack (= 3.2.1)
13
- mail (~> 2.4.0)
14
- actionpack (3.2.1)
15
- activemodel (= 3.2.1)
16
- activesupport (= 3.2.1)
11
+ actionmailer (3.2.6)
12
+ actionpack (= 3.2.6)
13
+ mail (~> 2.4.4)
14
+ actionpack (3.2.6)
15
+ activemodel (= 3.2.6)
16
+ activesupport (= 3.2.6)
17
17
  builder (~> 3.0.0)
18
18
  erubis (~> 2.7.0)
19
19
  journey (~> 1.0.1)
20
20
  rack (~> 1.4.0)
21
- rack-cache (~> 1.1)
21
+ rack-cache (~> 1.2)
22
22
  rack-test (~> 0.6.1)
23
- sprockets (~> 2.1.2)
24
- activemodel (3.2.1)
25
- activesupport (= 3.2.1)
23
+ sprockets (~> 2.1.3)
24
+ activemodel (3.2.6)
25
+ activesupport (= 3.2.6)
26
26
  builder (~> 3.0.0)
27
- activerecord (3.2.1)
28
- activemodel (= 3.2.1)
29
- activesupport (= 3.2.1)
30
- arel (~> 3.0.0)
27
+ activerecord (3.2.6)
28
+ activemodel (= 3.2.6)
29
+ activesupport (= 3.2.6)
30
+ arel (~> 3.0.2)
31
31
  tzinfo (~> 0.3.29)
32
- activeresource (3.2.1)
33
- activemodel (= 3.2.1)
34
- activesupport (= 3.2.1)
35
- activesupport (3.2.1)
32
+ activeresource (3.2.6)
33
+ activemodel (= 3.2.6)
34
+ activesupport (= 3.2.6)
35
+ activesupport (3.2.6)
36
36
  i18n (~> 0.6)
37
37
  multi_json (~> 1.0)
38
38
  appraisal (0.4.1)
@@ -46,89 +46,89 @@ GEM
46
46
  coffee-script (2.2.0)
47
47
  coffee-script-source
48
48
  execjs
49
- coffee-script-source (1.2.0)
49
+ coffee-script-source (1.3.3)
50
50
  diff-lcs (1.1.3)
51
51
  erubis (2.7.0)
52
- execjs (1.3.0)
52
+ execjs (1.4.0)
53
53
  multi_json (~> 1.0)
54
54
  hike (1.2.1)
55
55
  i18n (0.6.0)
56
- journey (1.0.3)
57
- json (1.6.5)
58
- mail (2.4.1)
56
+ journey (1.0.4)
57
+ json (1.7.3)
58
+ mail (2.4.4)
59
59
  i18n (>= 0.4.0)
60
60
  mime-types (~> 1.16)
61
61
  treetop (~> 1.4.8)
62
- mime-types (1.17.2)
63
- multi_json (1.1.0)
62
+ mime-types (1.19)
63
+ multi_json (1.3.6)
64
64
  polyglot (0.3.3)
65
65
  rack (1.4.1)
66
- rack-cache (1.1)
66
+ rack-cache (1.2)
67
67
  rack (>= 0.4)
68
68
  rack-ssl (1.3.2)
69
69
  rack
70
70
  rack-test (0.6.1)
71
71
  rack (>= 1.0)
72
- rails (3.2.1)
73
- actionmailer (= 3.2.1)
74
- actionpack (= 3.2.1)
75
- activerecord (= 3.2.1)
76
- activeresource (= 3.2.1)
77
- activesupport (= 3.2.1)
72
+ rails (3.2.6)
73
+ actionmailer (= 3.2.6)
74
+ actionpack (= 3.2.6)
75
+ activerecord (= 3.2.6)
76
+ activeresource (= 3.2.6)
77
+ activesupport (= 3.2.6)
78
78
  bundler (~> 1.0)
79
- railties (= 3.2.1)
80
- railties (3.2.1)
81
- actionpack (= 3.2.1)
82
- activesupport (= 3.2.1)
79
+ railties (= 3.2.6)
80
+ railties (3.2.6)
81
+ actionpack (= 3.2.6)
82
+ activesupport (= 3.2.6)
83
83
  rack-ssl (~> 1.3.2)
84
84
  rake (>= 0.8.7)
85
85
  rdoc (~> 3.4)
86
- thor (~> 0.14.6)
86
+ thor (>= 0.14.6, < 2.0)
87
87
  rake (0.9.2.2)
88
88
  rdoc (3.12)
89
89
  json (~> 1.4)
90
- rspec (2.9.0)
91
- rspec-core (~> 2.9.0)
92
- rspec-expectations (~> 2.9.0)
93
- rspec-mocks (~> 2.9.0)
94
- rspec-core (2.9.0)
95
- rspec-expectations (2.9.0)
90
+ rspec (2.10.0)
91
+ rspec-core (~> 2.10.0)
92
+ rspec-expectations (~> 2.10.0)
93
+ rspec-mocks (~> 2.10.0)
94
+ rspec-core (2.10.1)
95
+ rspec-expectations (2.10.0)
96
96
  diff-lcs (~> 1.1.3)
97
- rspec-mocks (2.9.0)
98
- rspec-rails (2.9.0)
97
+ rspec-mocks (2.10.1)
98
+ rspec-rails (2.10.1)
99
99
  actionpack (>= 3.0)
100
100
  activesupport (>= 3.0)
101
101
  railties (>= 3.0)
102
- rspec (~> 2.9.0)
102
+ rspec (~> 2.10.0)
103
103
  shoulda (3.0.1)
104
104
  shoulda-context (~> 1.0.0)
105
105
  shoulda-matchers (~> 1.0.0)
106
106
  shoulda-context (1.0.0)
107
107
  shoulda-matchers (1.0.0)
108
- simplecov (0.6.1)
108
+ simplecov (0.6.4)
109
109
  multi_json (~> 1.0)
110
110
  simplecov-html (~> 0.5.3)
111
111
  simplecov-html (0.5.3)
112
- sprockets (2.1.2)
112
+ sprockets (2.1.3)
113
113
  hike (~> 1.2)
114
114
  rack (~> 1.0)
115
115
  tilt (~> 1.1, != 1.3.0)
116
- sqlite3 (1.3.5)
117
- thor (0.14.6)
116
+ sqlite3 (1.3.6)
117
+ thor (0.15.3)
118
118
  tilt (1.3.3)
119
119
  treetop (1.4.10)
120
120
  polyglot
121
121
  polyglot (>= 0.3.1)
122
- tzinfo (0.3.31)
122
+ tzinfo (0.3.33)
123
123
 
124
124
  PLATFORMS
125
125
  ruby
126
126
 
127
127
  DEPENDENCIES
128
- appraisal (= 0.4.1)
128
+ appraisal (>= 0.4.1)
129
129
  eastwood!
130
- execjs (= 1.3.0)
131
- rspec-rails (= 2.9.0)
132
- shoulda (= 3.0.1)
133
- simplecov (= 0.6.1)
130
+ execjs (>= 1.4.0)
131
+ rspec-rails (>= 2.10.1)
132
+ shoulda (>= 3.0.1)
133
+ simplecov (>= 0.6.4)
134
134
  sqlite3
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (C) 2012 by Jeremy Ruppel
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,29 +1,30 @@
1
- Eastwood
2
- ========
1
+ # Eastwood
3
2
 
4
3
  > Start your client side out right.
5
4
 
6
5
  [![Build Status](https://secure.travis-ci.org/jeremyruppel/eastwood.png)](http://travis-ci.org/jeremyruppel/eastwood)
7
6
  [![Dependency Status](https://gemnasium.com/jeremyruppel/eastwood.png)](https://gemnasium.com/jeremyruppel/eastwood)
8
7
 
9
- About
10
- -----
8
+ ## About
11
9
 
12
10
  Eastwood brings your Rails routes to the client side in a slick, unobtrusive way.
13
11
 
14
12
  As of v0.3.2, Eastwood supports Rails >= 3.1.0, which means both `ActionDispatch`
15
13
  and `Journey` routers are supported.
16
14
 
17
- Usage
18
- -----
15
+ ## Usage
19
16
 
20
17
  Include eastwood in your gemfile:
21
18
 
22
- gem 'eastwood'
19
+ ``` rb
20
+ gem 'eastwood'
21
+ ```
23
22
 
24
23
  Then mount the engine wherever you want:
25
24
 
26
- mount Eastwood::Engine => '/eastwood
25
+ ``` rb
26
+ mount Eastwood::Engine => '/eastwood'
27
+ ```
27
28
 
28
29
  > The place you mount the engine actually doesn't make much of a difference right now.
29
30
  > The engine itself has no routes, just a single javascript asset you can include
@@ -31,105 +32,117 @@ Then mount the engine wherever you want:
31
32
 
32
33
  Finally, require `eastwood.js` in your javascript manifest.
33
34
 
34
- #= require eastwood
35
+ ``` coffee
36
+ #= require eastwood
37
+ ```
35
38
 
36
- Routes
37
- ------
39
+ ## Routes
38
40
 
39
41
  Eastwood will give you a namespace for your application, as well as all of your named
40
42
  route helpers converted to javascript functions. If your app is named **MyApp**, requiring
41
43
  the Eastwood javascript will give you something like this available on `window`:
42
44
 
43
- MyApp : {
44
- env : 'development',
45
- routes : {
46
- new_user_path : function( format ){
47
- // javascript to return you a string route, with segment keys
48
- // interpolated, and including either the format you specify
49
- // or the default 'json'.
50
- }
51
- }
52
- }
45
+ ``` js
46
+ MyApp : {
47
+ env : 'development',
48
+ routes : {
49
+ new_user_path : function( format ){
50
+ // javascript to return you a string route, with segment keys
51
+ // interpolated, and including either the format you specify
52
+ // or the default 'json'.
53
+ }
54
+ }
55
+ }
56
+ ```
53
57
 
54
58
  > This namespace is also a great place to put the rest of your client-side code!
55
59
 
56
- Configuration
57
- -------------
60
+ ## Configuration
58
61
 
59
62
  Create a `config/initializers/eastwood.rb` and you can do the following:
60
63
 
61
- Eastwood.configure do |config|
62
- config.default_route_format = :json # or :xml, 'html', etc to change it, or false or '' to leave it blank
63
- end
64
+ ``` rb
65
+ Eastwood.configure do |config|
66
+ config.default_route_format = :json # pass false or '' to omit it entirely
67
+ config.javascript_route_style = :underscore # or :camelcase
68
+ config.javascript_namespace = 'MyApp' # defaults to your app name
69
+ config.excludes << /admin/ # add patterns here to exclude routes from being exported
70
+ end
71
+ ```
64
72
 
65
- Hashes
66
- ------
73
+ ## Hashes
67
74
 
68
75
  Eastwood can include arbitrary "routes" for the client-side too. In your configure block:
69
76
 
70
- Eastwood.configure do |config|
71
- config.hash :foo, '#/foo'
72
- config.hash :bar, '/bar/:id'
73
- end
77
+ ``` rb
78
+ Eastwood.configure do |config|
79
+ config.hash :foo, '#/foo'
80
+ config.hash :bar, '/bar/:id'
81
+ end
82
+ ```
74
83
 
75
84
  This will give you `foo_hash` and `bar_hash` as functions in `MyApp.routes`, with all segments
76
85
  interpolated as you would expect.
77
86
 
78
- Exports
79
- -------
87
+ ## Exports
80
88
 
81
89
  Eastwood can also export arbitrary values to the client side:
82
90
 
83
- Eastwood.configure do |config|
84
- config.export :foo => 'bar', :baz => 123.45
85
- end
91
+ ``` rb
92
+ Eastwood.configure do |config|
93
+ config.export :foo => 'bar', :baz => 123.45
94
+ end
95
+ ```
86
96
 
87
- Pro Tips
88
- --------
97
+ ## Pro Tips
89
98
 
90
99
  Eastwood plays *really* well with [Sammy.js](http://sammyjs.org/):
91
100
 
92
- # include all of our eastwood routes as sammy helpers
93
- @helpers MyApp.routes
101
+ ``` coffee
102
+ # include all of our eastwood routes as sammy helpers
103
+ @helpers MyApp.routes
94
104
 
95
- # ...
105
+ # ...
96
106
 
97
- # use our eastwood routes in the event context
98
- @render @clients_path( 'wal' ), result, -> $( '#clients' ).html @content
107
+ # use our eastwood routes in the event context
108
+ @render @clients_path( 'wal' ), result, -> $( '#clients' ).html @content
109
+ ```
99
110
 
100
- Eastwood also plays really well with client-side templating solutions that treat
111
+ It also plays well with backbone and friends with a little configuration:
112
+
113
+ ``` coffee
114
+ # mix-in route helpers into backbone prototypes
115
+ _( Backbone.Model.prototype ).extend MyApp.routes
116
+ _( Backbone.Router.prototype ).extend MyApp.routes
117
+ ```
118
+
119
+ Eastwood even plays well with client-side templating solutions that treat
101
120
  functions like first-class citizens like, *ahem*, [walrus](https://github.com/jeremyruppel/walrus):
102
121
 
103
- <li>
104
- <a href="{{@clients_path( 'html' )}}">Clients</a>
105
- </li>
122
+ ``` html
123
+ <li>
124
+ <a href="{{@clients_path( 'html' )}}">Clients</a>
125
+ </li>
126
+ ```
127
+
128
+ ## I18n (work in progress)
129
+
130
+ Eastwood will also be able to export your i18n to the client side. Simply:
106
131
 
107
- Reloading
108
- ---------
132
+ ``` coffee
133
+ #= require eastwood/i18n
134
+ ```
135
+
136
+ And your translations will be attached to your namespace. Afterwards, use
137
+ `MyApp.t( 'key.to.translate' )` to look up translations. `t` accepts a hash
138
+ as a second parameter to use as the context for any interpolation the
139
+ translation string needs.
140
+
141
+ ## Reloading
109
142
 
110
143
  Since Sprockets [doesn't know when your context helpers change](https://github.com/sstephenson/sprockets/blob/master/lib/sprockets/base.rb#L35), you may
111
144
  need to clear out your sprockets cache when you change your routes. Just run `rake tmp:clear`.
112
145
 
113
- License
114
- -------
115
-
116
- > Copyright 2012 Jeremy Ruppel
117
- >
118
- > Permission is hereby granted, free of charge, to any person obtaining
119
- > a copy of this software and associated documentation files (the
120
- > "Software"), to deal in the Software without restriction, including
121
- > without limitation the rights to use, copy, modify, merge, publish,
122
- > distribute, sublicense, and/or sell copies of the Software, and to
123
- > permit persons to whom the Software is furnished to do so, subject to
124
- > the following conditions:
125
- >
126
- > The above copyright notice and this permission notice shall be
127
- > included in all copies or substantial portions of the Software.
128
- >
129
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
130
- > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
131
- > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
132
- > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
133
- > LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
134
- > OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
135
- > WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
146
+ ## License
147
+
148
+ Eastwood is released under the MIT license.
data/eastwood.gemspec CHANGED
@@ -22,9 +22,9 @@ Gem::Specification.new do |s|
22
22
  s.add_dependency 'coffee-rails'
23
23
 
24
24
  s.add_development_dependency 'sqlite3'
25
- s.add_development_dependency 'appraisal', '0.4.1'
26
- s.add_development_dependency 'rspec-rails', '2.9.0'
27
- s.add_development_dependency 'shoulda', '3.0.1'
28
- s.add_development_dependency 'execjs', '1.3.0'
29
- s.add_development_dependency 'simplecov', '0.6.1'
25
+ s.add_development_dependency 'appraisal', '>= 0.4.1'
26
+ s.add_development_dependency 'rspec-rails', '>= 2.10.1'
27
+ s.add_development_dependency 'shoulda', '>= 3.0.1'
28
+ s.add_development_dependency 'execjs', '>= 1.4.0'
29
+ s.add_development_dependency 'simplecov', '>= 0.6.4'
30
30
  end
@@ -52,17 +52,17 @@ GEM
52
52
  coffee-script-source (1.3.3)
53
53
  diff-lcs (1.1.3)
54
54
  erubis (2.7.0)
55
- execjs (1.3.0)
55
+ execjs (1.4.0)
56
56
  multi_json (~> 1.0)
57
57
  hike (1.2.1)
58
58
  i18n (0.6.0)
59
- json (1.6.5)
60
- mail (2.3.0)
59
+ json (1.7.3)
60
+ mail (2.3.3)
61
61
  i18n (>= 0.4.0)
62
62
  mime-types (~> 1.16)
63
63
  treetop (~> 1.4.8)
64
- mime-types (1.17.2)
65
- multi_json (1.1.0)
64
+ mime-types (1.19)
65
+ multi_json (1.3.6)
66
66
  polyglot (0.3.3)
67
67
  rack (1.3.6)
68
68
  rack-cache (1.0.3)
@@ -91,49 +91,49 @@ GEM
91
91
  rake (0.9.2.2)
92
92
  rdoc (3.12)
93
93
  json (~> 1.4)
94
- rspec (2.9.0)
95
- rspec-core (~> 2.9.0)
96
- rspec-expectations (~> 2.9.0)
97
- rspec-mocks (~> 2.9.0)
98
- rspec-core (2.9.0)
99
- rspec-expectations (2.9.0)
94
+ rspec (2.10.0)
95
+ rspec-core (~> 2.10.0)
96
+ rspec-expectations (~> 2.10.0)
97
+ rspec-mocks (~> 2.10.0)
98
+ rspec-core (2.10.1)
99
+ rspec-expectations (2.10.0)
100
100
  diff-lcs (~> 1.1.3)
101
- rspec-mocks (2.9.0)
102
- rspec-rails (2.9.0)
101
+ rspec-mocks (2.10.1)
102
+ rspec-rails (2.10.1)
103
103
  actionpack (>= 3.0)
104
104
  activesupport (>= 3.0)
105
105
  railties (>= 3.0)
106
- rspec (~> 2.9.0)
106
+ rspec (~> 2.10.0)
107
107
  shoulda (3.0.1)
108
108
  shoulda-context (~> 1.0.0)
109
109
  shoulda-matchers (~> 1.0.0)
110
110
  shoulda-context (1.0.0)
111
111
  shoulda-matchers (1.0.0)
112
- simplecov (0.6.1)
112
+ simplecov (0.6.4)
113
113
  multi_json (~> 1.0)
114
114
  simplecov-html (~> 0.5.3)
115
115
  simplecov-html (0.5.3)
116
- sprockets (2.0.3)
116
+ sprockets (2.0.4)
117
117
  hike (~> 1.2)
118
118
  rack (~> 1.0)
119
119
  tilt (~> 1.1, != 1.3.0)
120
- sqlite3 (1.3.5)
120
+ sqlite3 (1.3.6)
121
121
  thor (0.14.6)
122
122
  tilt (1.3.3)
123
123
  treetop (1.4.10)
124
124
  polyglot
125
125
  polyglot (>= 0.3.1)
126
- tzinfo (0.3.31)
126
+ tzinfo (0.3.33)
127
127
 
128
128
  PLATFORMS
129
129
  ruby
130
130
 
131
131
  DEPENDENCIES
132
- appraisal (= 0.4.1)
132
+ appraisal (>= 0.4.1)
133
133
  eastwood!
134
- execjs (= 1.3.0)
134
+ execjs (>= 1.4.0)
135
135
  rails (= 3.1.0)
136
- rspec-rails (= 2.9.0)
137
- shoulda (= 3.0.1)
138
- simplecov (= 0.6.1)
136
+ rspec-rails (>= 2.10.1)
137
+ shoulda (>= 3.0.1)
138
+ simplecov (>= 0.6.4)
139
139
  sqlite3
@@ -49,21 +49,21 @@ GEM
49
49
  coffee-script-source (1.3.3)
50
50
  diff-lcs (1.1.3)
51
51
  erubis (2.7.0)
52
- execjs (1.3.0)
52
+ execjs (1.4.0)
53
53
  multi_json (~> 1.0)
54
54
  hike (1.2.1)
55
55
  i18n (0.6.0)
56
- journey (1.0.3)
57
- json (1.6.5)
58
- mail (2.4.1)
56
+ journey (1.0.4)
57
+ json (1.7.3)
58
+ mail (2.4.4)
59
59
  i18n (>= 0.4.0)
60
60
  mime-types (~> 1.16)
61
61
  treetop (~> 1.4.8)
62
- mime-types (1.17.2)
63
- multi_json (1.1.0)
62
+ mime-types (1.19)
63
+ multi_json (1.3.6)
64
64
  polyglot (0.3.3)
65
65
  rack (1.4.1)
66
- rack-cache (1.1)
66
+ rack-cache (1.2)
67
67
  rack (>= 0.4)
68
68
  rack-ssl (1.3.2)
69
69
  rack
@@ -87,49 +87,49 @@ GEM
87
87
  rake (0.9.2.2)
88
88
  rdoc (3.12)
89
89
  json (~> 1.4)
90
- rspec (2.9.0)
91
- rspec-core (~> 2.9.0)
92
- rspec-expectations (~> 2.9.0)
93
- rspec-mocks (~> 2.9.0)
94
- rspec-core (2.9.0)
95
- rspec-expectations (2.9.0)
90
+ rspec (2.10.0)
91
+ rspec-core (~> 2.10.0)
92
+ rspec-expectations (~> 2.10.0)
93
+ rspec-mocks (~> 2.10.0)
94
+ rspec-core (2.10.1)
95
+ rspec-expectations (2.10.0)
96
96
  diff-lcs (~> 1.1.3)
97
- rspec-mocks (2.9.0)
98
- rspec-rails (2.9.0)
97
+ rspec-mocks (2.10.1)
98
+ rspec-rails (2.10.1)
99
99
  actionpack (>= 3.0)
100
100
  activesupport (>= 3.0)
101
101
  railties (>= 3.0)
102
- rspec (~> 2.9.0)
102
+ rspec (~> 2.10.0)
103
103
  shoulda (3.0.1)
104
104
  shoulda-context (~> 1.0.0)
105
105
  shoulda-matchers (~> 1.0.0)
106
106
  shoulda-context (1.0.0)
107
107
  shoulda-matchers (1.0.0)
108
- simplecov (0.6.1)
108
+ simplecov (0.6.4)
109
109
  multi_json (~> 1.0)
110
110
  simplecov-html (~> 0.5.3)
111
111
  simplecov-html (0.5.3)
112
- sprockets (2.1.2)
112
+ sprockets (2.1.3)
113
113
  hike (~> 1.2)
114
114
  rack (~> 1.0)
115
115
  tilt (~> 1.1, != 1.3.0)
116
- sqlite3 (1.3.5)
116
+ sqlite3 (1.3.6)
117
117
  thor (0.14.6)
118
118
  tilt (1.3.3)
119
119
  treetop (1.4.10)
120
120
  polyglot
121
121
  polyglot (>= 0.3.1)
122
- tzinfo (0.3.31)
122
+ tzinfo (0.3.33)
123
123
 
124
124
  PLATFORMS
125
125
  ruby
126
126
 
127
127
  DEPENDENCIES
128
- appraisal (= 0.4.1)
128
+ appraisal (>= 0.4.1)
129
129
  eastwood!
130
- execjs (= 1.3.0)
130
+ execjs (>= 1.4.0)
131
131
  rails (= 3.2.0)
132
- rspec-rails (= 2.9.0)
133
- shoulda (= 3.0.1)
134
- simplecov (= 0.6.1)
132
+ rspec-rails (>= 2.10.1)
133
+ shoulda (>= 3.0.1)
134
+ simplecov (>= 0.6.4)
135
135
  sqlite3
@@ -1,7 +1,7 @@
1
1
  module Eastwood
2
2
  class Engine < ::Rails::Engine
3
3
 
4
- initializer 'eastwood.setup' do |app|
4
+ initializer 'eastwood.setup', :group => :all do |app|
5
5
  # include helpers in the sprockets context
6
6
  app.assets.context_class.instance_eval do
7
7
  include Eastwood::Context
@@ -1,3 +1,3 @@
1
1
  module Eastwood
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eastwood
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-21 00:00:00.000000000 Z
12
+ date: 2013-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -64,7 +64,7 @@ dependencies:
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
- - - '='
67
+ - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: 0.4.1
70
70
  type: :development
@@ -72,7 +72,7 @@ dependencies:
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
- - - '='
75
+ - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: 0.4.1
78
78
  - !ruby/object:Gem::Dependency
@@ -80,23 +80,23 @@ dependencies:
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
- - - '='
83
+ - - ! '>='
84
84
  - !ruby/object:Gem::Version
85
- version: 2.9.0
85
+ version: 2.10.1
86
86
  type: :development
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
91
- - - '='
91
+ - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
- version: 2.9.0
93
+ version: 2.10.1
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: shoulda
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
- - - '='
99
+ - - ! '>='
100
100
  - !ruby/object:Gem::Version
101
101
  version: 3.0.1
102
102
  type: :development
@@ -104,7 +104,7 @@ dependencies:
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
- - - '='
107
+ - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
109
  version: 3.0.1
110
110
  - !ruby/object:Gem::Dependency
@@ -112,33 +112,33 @@ dependencies:
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
115
- - - '='
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
- version: 1.3.0
117
+ version: 1.4.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements:
123
- - - '='
123
+ - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
- version: 1.3.0
125
+ version: 1.4.0
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: simplecov
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
- - - '='
131
+ - - ! '>='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.6.1
133
+ version: 0.6.4
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  none: false
138
138
  requirements:
139
- - - '='
139
+ - - ! '>='
140
140
  - !ruby/object:Gem::Version
141
- version: 0.6.1
141
+ version: 0.6.4
142
142
  description: Start your client side out right
143
143
  email:
144
144
  - jeremy.ruppel@gmail.com
@@ -152,7 +152,7 @@ files:
152
152
  - Appraisals
153
153
  - Gemfile
154
154
  - Gemfile.lock
155
- - MIT-LICENSE
155
+ - LICENSE
156
156
  - README.md
157
157
  - Rakefile
158
158
  - app/assets/javascripts/eastwood.js.coffee.erb
data/MIT-LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright 2012 Jeremy Ruppel
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.