eastwood 0.0.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  ###*
2
2
  * <%= application_name %> Client Settings
3
3
  *
4
- * Generated automatically by Eastwood and the Rails 3.1 Asset Pipeline
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 %>
@@ -2,29 +2,26 @@ module Eastwood
2
2
  module Helpers
3
3
  extend ActiveSupport::Concern
4
4
 
5
- module InstanceMethods
6
-
7
- def application_name
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
- def env
12
- Rails.env
13
- end
9
+ def env
10
+ Rails.env
11
+ end
14
12
 
15
- def named_routes
16
- app.routes.routes.select { |r| r.name.present? }
17
- end
13
+ def named_routes
14
+ app.routes.routes.select { |r| r.name.present? }
15
+ end
18
16
 
19
- def client_routes
20
- Eastwood.routes.routes
21
- end
17
+ def client_routes
18
+ Eastwood.routes.routes
19
+ end
22
20
 
23
- protected
21
+ protected
24
22
 
25
- def app
26
- Rails.application
27
- end
23
+ def app
24
+ Rails.application
28
25
  end
29
26
  end
30
27
  end
@@ -1,3 +1,3 @@
1
1
  module Eastwood
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -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
+  (0.2ms) begin transaction
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
+  (0.2ms) rollback transaction
400
+  (0.1ms) begin transaction
401
+  (0.1ms) rollback transaction
402
+  (0.0ms) begin transaction
403
+  (0.0ms) rollback transaction
404
+  (0.0ms) begin transaction
405
+  (0.0ms) rollback transaction
406
+  (0.0ms) begin transaction
407
+  (0.0ms) rollback transaction
408
+  (0.0ms) begin transaction
409
+  (0.0ms) rollback transaction
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
- hash: 29
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
- date: 2011-11-30 00:00:00 -08:00
19
- default_executable:
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
- type: :runtime
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
- hash: 3
30
- segments:
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
- - !ruby/object:Gem::Dependency
24
+ version_requirements: *2154113460
25
+ - !ruby/object:Gem::Dependency
38
26
  name: sqlite3
39
- type: :development
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
- hash: 3
46
- segments:
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
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *2154112940
36
+ - !ruby/object:Gem::Dependency
52
37
  name: cucumber
53
- type: :development
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
- hash: 3
60
- segments:
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/D75/1D0/sprockets%2F097d71c6d5ef8b26bfb3058327b3b9bf
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
- hash: 3
139
- segments:
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ segments:
140
117
  - 0
141
- version: "0"
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
- hash: 3
148
- segments:
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ segments:
149
126
  - 0
150
- version: "0"
127
+ hash: -763628753016896846
151
128
  requirements: []
152
-
153
129
  rubyforge_project:
154
- rubygems_version: 1.5.2
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/D75/1D0/sprockets%2F097d71c6d5ef8b26bfb3058327b3b9bf
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