eastwood 0.0.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/eastwood.js.coffee.erb +2 -2
- data/lib/eastwood/helpers.rb +15 -18
- data/lib/eastwood/version.rb +1 -1
- data/test/dummy/log/test.log +22 -0
- data/test/dummy/tmp/cache/assets/CBD/F90/sprockets%2F6d20c2441898d9799e1cdb5e152b3495 +0 -0
- data/test/dummy/tmp/cache/assets/D3E/B90/sprockets%2F9df707a0cc19082ff3e094ca09180fe4 +0 -0
- data/test/dummy/tmp/cache/assets/D7F/B10/sprockets%2F9ac097fe24e8c8229522feac6fc9337c +0 -0
- metadata +53 -76
- data/test/dummy/tmp/cache/assets/D75/1D0/sprockets%2F097d71c6d5ef8b26bfb3058327b3b9bf +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
###*
|
2
2
|
* <%= application_name %> Client Settings
|
3
3
|
*
|
4
|
-
* Generated automatically by Eastwood and the Rails
|
4
|
+
* Generated automatically by Eastwood and the Rails <%= Rails::version %> Asset Pipeline on <%= DateTime.now %>
|
5
5
|
###
|
6
6
|
app = { env : '<%= env %>', routes : root_path : -> "/" }
|
7
7
|
|
@@ -21,7 +21,7 @@ app = { env : '<%= env %>', routes : root_path : -> "/" }
|
|
21
21
|
<% unless r.segment_keys.empty? %> # root_path is already taken care of
|
22
22
|
|
23
23
|
app.routes.<%= r.name %>_path = ( <%= r.segment_keys.join ', ' %>='json' ) ->
|
24
|
-
"<%= r.path.delete( '()' ).gsub /:(\w+)/, '#{\1}' %>"
|
24
|
+
"<%= r.path.spec.to_s.delete( '()' ).gsub /:(\w+)/, '#{\1}' %>"
|
25
25
|
|
26
26
|
<% end %>
|
27
27
|
<% end %>
|
data/lib/eastwood/helpers.rb
CHANGED
@@ -2,29 +2,26 @@ module Eastwood
|
|
2
2
|
module Helpers
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
app.engine_name.camelize.sub /Application$/, ''
|
9
|
-
end
|
5
|
+
def application_name
|
6
|
+
app.engine_name.camelize.sub /Application$/, ''
|
7
|
+
end
|
10
8
|
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
def env
|
10
|
+
Rails.env
|
11
|
+
end
|
14
12
|
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
def named_routes
|
14
|
+
app.routes.routes.select { |r| r.name.present? }
|
15
|
+
end
|
18
16
|
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
def client_routes
|
18
|
+
Eastwood.routes.routes
|
19
|
+
end
|
22
20
|
|
23
|
-
|
21
|
+
protected
|
24
22
|
|
25
|
-
|
26
|
-
|
27
|
-
end
|
23
|
+
def app
|
24
|
+
Rails.application
|
28
25
|
end
|
29
26
|
end
|
30
27
|
end
|
data/lib/eastwood/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -385,3 +385,25 @@ Served asset /eastwood.js - 200 OK (244ms)
|
|
385
385
|
Started GET "/assets/eastwood.js" for 127.0.0.1 at Mon Oct 31 16:02:52 -0700 2011
|
386
386
|
Compiled eastwood.js (216ms) (pid 2826)
|
387
387
|
Served asset /eastwood.js - 200 OK (227ms)
|
388
|
+
|
389
|
+
|
390
|
+
Started GET "/assets/eastwood.js" for 127.0.0.1 at Wed Nov 30 15:53:06 -0800 2011
|
391
|
+
Compiled eastwood.js (183ms) (pid 6844)
|
392
|
+
Served asset /eastwood.js - 200 OK (192ms)
|
393
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
394
|
+
|
395
|
+
|
396
|
+
Started GET "/assets/eastwood.js" for 127.0.0.1 at 2012-01-20 12:31:57 -0800
|
397
|
+
Compiled eastwood.js (167ms) (pid 59320)
|
398
|
+
Served asset /eastwood.js - 200 OK (183ms)
|
399
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
400
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
401
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
402
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
403
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
404
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
405
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
406
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
407
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
408
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
409
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,77 +1,56 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: eastwood
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Jeremy Ruppel
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-02-04 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: rails
|
23
|
-
|
24
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2154113460 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
|
31
|
-
- 3
|
32
|
-
- 1
|
33
|
-
- 0
|
34
|
-
version: 3.1.0
|
35
|
-
requirement: *id001
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.0
|
22
|
+
type: :runtime
|
36
23
|
prerelease: false
|
37
|
-
|
24
|
+
version_requirements: *2154113460
|
25
|
+
- !ruby/object:Gem::Dependency
|
38
26
|
name: sqlite3
|
39
|
-
|
40
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
27
|
+
requirement: &2154112940 !ruby/object:Gem::Requirement
|
41
28
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
47
|
-
- 0
|
48
|
-
version: "0"
|
49
|
-
requirement: *id002
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.3.5
|
33
|
+
type: :development
|
50
34
|
prerelease: false
|
51
|
-
|
35
|
+
version_requirements: *2154112940
|
36
|
+
- !ruby/object:Gem::Dependency
|
52
37
|
name: cucumber
|
53
|
-
|
54
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
38
|
+
requirement: &2154112380 !ruby/object:Gem::Requirement
|
55
39
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
|
61
|
-
- 0
|
62
|
-
version: "0"
|
63
|
-
requirement: *id003
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
64
45
|
prerelease: false
|
46
|
+
version_requirements: *2154112380
|
65
47
|
description: Start your client side out right
|
66
|
-
email:
|
48
|
+
email:
|
67
49
|
- jeremy.ruppel@gmail.com
|
68
50
|
executables: []
|
69
|
-
|
70
51
|
extensions: []
|
71
|
-
|
72
52
|
extra_rdoc_files: []
|
73
|
-
|
74
|
-
files:
|
53
|
+
files:
|
75
54
|
- app/assets/javascripts/eastwood.js.coffee.erb
|
76
55
|
- lib/eastwood/engine.rb
|
77
56
|
- lib/eastwood/helpers.rb
|
@@ -116,46 +95,43 @@ files:
|
|
116
95
|
- test/dummy/public/index.html
|
117
96
|
- test/dummy/Rakefile
|
118
97
|
- test/dummy/script/rails
|
119
|
-
- test/dummy/tmp/cache/assets/
|
98
|
+
- test/dummy/tmp/cache/assets/CBD/F90/sprockets%2F6d20c2441898d9799e1cdb5e152b3495
|
99
|
+
- test/dummy/tmp/cache/assets/D3E/B90/sprockets%2F9df707a0cc19082ff3e094ca09180fe4
|
120
100
|
- test/dummy/tmp/cache/assets/D7F/B10/sprockets%2F9ac097fe24e8c8229522feac6fc9337c
|
121
101
|
- test/eastwood_test.rb
|
122
102
|
- test/helpers_test.rb
|
123
103
|
- test/test_helper.rb
|
124
|
-
has_rdoc: true
|
125
104
|
homepage: https://github.com/jeremyruppel/eastwood
|
126
105
|
licenses: []
|
127
|
-
|
128
106
|
post_install_message:
|
129
107
|
rdoc_options: []
|
130
|
-
|
131
|
-
require_paths:
|
108
|
+
require_paths:
|
132
109
|
- lib
|
133
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
110
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
111
|
none: false
|
135
|
-
requirements:
|
136
|
-
- -
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
|
139
|
-
segments:
|
112
|
+
requirements:
|
113
|
+
- - ! '>='
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0'
|
116
|
+
segments:
|
140
117
|
- 0
|
141
|
-
|
142
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
hash: -763628753016896846
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
120
|
none: false
|
144
|
-
requirements:
|
145
|
-
- -
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
|
148
|
-
segments:
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
segments:
|
149
126
|
- 0
|
150
|
-
|
127
|
+
hash: -763628753016896846
|
151
128
|
requirements: []
|
152
|
-
|
153
129
|
rubyforge_project:
|
154
|
-
rubygems_version: 1.
|
130
|
+
rubygems_version: 1.8.15
|
155
131
|
signing_key:
|
156
132
|
specification_version: 3
|
157
133
|
summary: Start your client side out right
|
158
|
-
test_files:
|
134
|
+
test_files:
|
159
135
|
- test/asset_test.rb
|
160
136
|
- test/dummy/app/assets/javascripts/application.js
|
161
137
|
- test/dummy/app/assets/stylesheets/application.css
|
@@ -190,7 +166,8 @@ test_files:
|
|
190
166
|
- test/dummy/public/index.html
|
191
167
|
- test/dummy/Rakefile
|
192
168
|
- test/dummy/script/rails
|
193
|
-
- test/dummy/tmp/cache/assets/
|
169
|
+
- test/dummy/tmp/cache/assets/CBD/F90/sprockets%2F6d20c2441898d9799e1cdb5e152b3495
|
170
|
+
- test/dummy/tmp/cache/assets/D3E/B90/sprockets%2F9df707a0cc19082ff3e094ca09180fe4
|
194
171
|
- test/dummy/tmp/cache/assets/D7F/B10/sprockets%2F9ac097fe24e8c8229522feac6fc9337c
|
195
172
|
- test/eastwood_test.rb
|
196
173
|
- test/helpers_test.rb
|