resourcy-rails 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/{LICENSE → MIT.LICENSE} +0 -0
- data/README.md +268 -0
- data/lib/resourcy/rails.rb +2 -4
- data/lib/resourcy/version.rb +1 -1
- data/spec/dummy/config/application.rb +3 -1
- data/spec/dummy/config/initializers/teabag.rb +13 -0
- data/spec/dummy/log/development.log +6153 -0
- data/spec/dummy/tmp/cache/assets/C26/0B0/sprockets%2Ff219028b768500ee63133053299ff763 +0 -0
- data/spec/dummy/tmp/cache/assets/C28/930/sprockets%2Fae51d79f7255745e47095614074601b6 +0 -0
- data/spec/dummy/tmp/cache/assets/C6C/A10/sprockets%2F6a60165bfe1f105268227c41d091e133 +0 -0
- data/spec/dummy/tmp/cache/assets/C80/DA0/sprockets%2F5427bc408f19d1d4d1d2528558340c77 +0 -0
- data/spec/dummy/tmp/cache/assets/CB5/B50/sprockets%2F79aa99ae854341b51308845e3ed750b3 +0 -0
- data/spec/dummy/tmp/cache/assets/CD4/FC0/sprockets%2Fbcb9ed408236507a15350153ffe3a636 +0 -0
- data/spec/dummy/tmp/cache/assets/CE2/020/sprockets%2F30c6d863ae431135cbb7768ae227894e +0 -0
- data/spec/dummy/tmp/cache/assets/CE7/DA0/sprockets%2F1b5a340695ed9f08f3e30cf59d453546 +0 -0
- data/spec/dummy/tmp/cache/assets/CEE/890/sprockets%2F7917f2a4116ef6ff536467ff9811b2d2 +0 -0
- data/spec/dummy/tmp/cache/assets/D0E/140/sprockets%2F679ab384fd4c39e46406110c7c8cbf11 +0 -0
- data/spec/dummy/tmp/cache/assets/D10/140/sprockets%2F76b88145bcce068005e465e680fcbe40 +0 -0
- data/spec/dummy/tmp/cache/assets/D10/B10/sprockets%2F445cd5a429170e739abc1afb3897166c +0 -0
- data/spec/dummy/tmp/cache/assets/D1E/440/sprockets%2F60458fb7e71cc79d38f0147b633f08ff +0 -0
- data/spec/dummy/tmp/cache/assets/D26/6B0/sprockets%2Fe33b09d33c3946fc0f9a5afd79566599 +0 -0
- data/spec/dummy/tmp/cache/assets/D31/A90/sprockets%2F2990161b5f6b33226eee3facae02d273 +0 -0
- data/spec/dummy/tmp/cache/assets/D37/E80/sprockets%2Fa196f8f5d3e010180dd4a8aa276a298a +0 -0
- data/spec/dummy/tmp/cache/assets/D41/8E0/sprockets%2F12b175ae51665e6eaa7598acb284b8d5 +0 -0
- data/spec/dummy/tmp/cache/assets/D47/770/sprockets%2Fcf8444c0e6a95e9f3e1a46af5108e870 +0 -0
- data/spec/dummy/tmp/cache/assets/D47/780/sprockets%2F872537fcdcf083ba8908edaa487431f2 +0 -0
- data/spec/dummy/tmp/cache/assets/D4D/C80/sprockets%2F7731a714c697dab895b1fda7dd1d4688 +0 -0
- data/spec/dummy/tmp/cache/assets/D55/C80/sprockets%2F715c2a17cfa6a94c743892dfdf92d979 +0 -0
- data/spec/dummy/tmp/cache/assets/D56/CC0/sprockets%2Fd4f8ede468744cd7dc395d5639ac4462 +0 -0
- data/spec/dummy/tmp/cache/assets/D66/660/sprockets%2F4cf820ee8148b704a14eca0a49e8cd51 +0 -0
- data/spec/dummy/tmp/cache/assets/D6D/D90/sprockets%2Ff44ef9a6e48e8d59e6295f9e9c04796c +0 -0
- data/spec/dummy/tmp/cache/assets/D6F/EE0/sprockets%2Ff3883eb6b81c90c7409aeb8a2e2454bc +0 -0
- data/spec/dummy/tmp/cache/assets/D70/000/sprockets%2F1293e9e2da0acdfd501995007f6ebf57 +0 -0
- data/spec/dummy/tmp/cache/assets/D82/DC0/sprockets%2F69dce23ec7b4f2db19b8f9718173c39f +0 -0
- data/spec/dummy/tmp/cache/assets/D8C/F80/sprockets%2Fac5f59aebc1022cef7be3122d11264d9 +0 -0
- data/spec/dummy/tmp/cache/assets/D94/450/sprockets%2F7ec1193e50b3e1d5391fd9c1e53a4bbc +0 -0
- data/spec/dummy/tmp/cache/assets/D96/840/sprockets%2Fa0011c18bf53e02ea94667f8e2e8aecc +0 -0
- data/spec/dummy/tmp/cache/assets/D9E/7D0/sprockets%2F9890a424e2b6f8efc5df0544a0af5a2f +0 -0
- data/spec/dummy/tmp/cache/assets/DF0/680/sprockets%2F5376d36d3edfd6e9fb5ffd89af558e71 +0 -0
- data/spec/dummy/tmp/cache/assets/E8F/B10/sprockets%2F2cecb5fec0fa6cd6a1f46ff7583ec3fa +0 -0
- data/spec/javascripts/{templates → fixtures}/ujs.html +0 -0
- data/spec/javascripts/{jquery.resourcy_spec.js.coffee → jquery/resourcy_spec.coffee} +4 -4
- data/spec/javascripts/{resourcy_spec.js.coffee → resourcy_spec.coffee} +1 -1
- data/spec/javascripts/spec_helper.coffee +31 -0
- metadata +97 -103
- data/spec/dummy/config/evergreen.rb +0 -47
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/inflections.rb +0 -15
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/javascripts/spec_helper.js +0 -37
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
1
|
+
#= require jquery-1.8.0
|
2
|
+
#= require jquery.resourcy
|
3
|
+
#= require jquery_ujs
|
4
4
|
|
5
5
|
describe "Resourcy jQuery Adapter (1.8.0)", ->
|
6
6
|
|
@@ -371,7 +371,7 @@ describe "Resourcy jQuery Adapter (1.8.0)", ->
|
|
371
371
|
|
372
372
|
describe "using UJS", ->
|
373
373
|
|
374
|
-
|
374
|
+
fixture.load 'ujs.html'
|
375
375
|
|
376
376
|
beforeEach ->
|
377
377
|
@resource = $.resources('posts')
|
@@ -0,0 +1,31 @@
|
|
1
|
+
window.RESOURCES =
|
2
|
+
POSTS:
|
3
|
+
'index': -> 'PostsController#index'
|
4
|
+
'show': -> 'PostsController#show'
|
5
|
+
'new': -> 'PostsController#new'
|
6
|
+
'create': -> 'PostsController#create'
|
7
|
+
'edit': -> 'PostsController#edit'
|
8
|
+
'update': -> 'PostsController#update'
|
9
|
+
'destroy': -> 'PostsController#destroy'
|
10
|
+
'get:comments': -> 'PostsController#comments:GET'
|
11
|
+
'post:reorder': -> 'PostsController#reorder:POST'
|
12
|
+
'delete:comments': -> 'PostsController#comments:DELETE'
|
13
|
+
'put:publish': -> 'PostsController#publish:PUT'
|
14
|
+
COMMENTS:
|
15
|
+
'index': -> 'CommentsController#index'
|
16
|
+
'new': -> 'CommentsController#new'
|
17
|
+
'create': -> 'CommentsController#create'
|
18
|
+
'destroy': -> 'CommentsController#destroy'
|
19
|
+
'put:approve': -> 'CommentsController#publish:PUT'
|
20
|
+
OWNER:
|
21
|
+
'show': -> 'OwnerController#show'
|
22
|
+
'new': -> 'OwnerController#new'
|
23
|
+
'create': -> 'OwnerController#create'
|
24
|
+
'edit': -> 'OwnerController#edit'
|
25
|
+
'update': -> 'OwnerController#update'
|
26
|
+
'destroy': -> 'OwnerController#destroy'
|
27
|
+
|
28
|
+
window.Resourcy =
|
29
|
+
noConflict: ->
|
30
|
+
window.R = Resourcy;
|
31
|
+
delete(window.Resourcy);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resourcy-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,32 +9,19 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.5
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
19
|
+
- - ! '>='
|
28
20
|
- !ruby/object:Gem::Version
|
29
21
|
version: 3.2.5
|
30
|
-
-
|
31
|
-
name: coffee-rails
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
22
|
+
- - <
|
36
23
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
24
|
+
version: '5'
|
38
25
|
type: :runtime
|
39
26
|
prerelease: false
|
40
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,48 +29,19 @@ dependencies:
|
|
42
29
|
requirements:
|
43
30
|
- - ! '>='
|
44
31
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
46
|
-
-
|
47
|
-
name: sprockets
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '2.1'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.1'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: uglifier
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
32
|
+
version: 3.2.5
|
33
|
+
- - <
|
76
34
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
35
|
+
version: '5'
|
78
36
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
37
|
+
name: coffee-rails
|
80
38
|
requirement: !ruby/object:Gem::Requirement
|
81
39
|
none: false
|
82
40
|
requirements:
|
83
41
|
- - ! '>='
|
84
42
|
- !ruby/object:Gem::Version
|
85
43
|
version: '0'
|
86
|
-
type: :
|
44
|
+
type: :runtime
|
87
45
|
prerelease: false
|
88
46
|
version_requirements: !ruby/object:Gem::Requirement
|
89
47
|
none: false
|
@@ -91,30 +49,13 @@ dependencies:
|
|
91
49
|
- - ! '>='
|
92
50
|
- !ruby/object:Gem::Version
|
93
51
|
version: '0'
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: evergreen
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: 1.0.0
|
102
|
-
type: :development
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 1.0.0
|
110
52
|
description: A RESTful javascript router that can be used with jquery-ujs and Rails
|
111
53
|
for client route handling
|
112
54
|
email:
|
113
55
|
- jejacks0n@gmail.com
|
114
56
|
executables: []
|
115
57
|
extensions: []
|
116
|
-
extra_rdoc_files:
|
117
|
-
- LICENSE
|
58
|
+
extra_rdoc_files: []
|
118
59
|
files:
|
119
60
|
- lib/resourcy/engine.rb
|
120
61
|
- lib/resourcy/rails.rb
|
@@ -122,8 +63,8 @@ files:
|
|
122
63
|
- lib/resourcy-rails.rb
|
123
64
|
- vendor/assets/javascripts/jquery.resourcy.js.coffee
|
124
65
|
- vendor/assets/javascripts/resourcy.js.coffee
|
125
|
-
- LICENSE
|
126
|
-
-
|
66
|
+
- MIT.LICENSE
|
67
|
+
- README.md
|
127
68
|
- spec/dummy/app/assets/javascripts/jquery-1.7.1.js
|
128
69
|
- spec/dummy/app/assets/javascripts/jquery-1.8.0.js
|
129
70
|
- spec/dummy/app/assets/javascripts/jquery_ujs.js
|
@@ -134,34 +75,61 @@ files:
|
|
134
75
|
- spec/dummy/app/views/posts/index.html.erb
|
135
76
|
- spec/dummy/app/views/posts/new.html.erb
|
136
77
|
- spec/dummy/app/views/posts/show.html.erb
|
137
|
-
- spec/dummy/config.ru
|
138
78
|
- spec/dummy/config/application.rb
|
139
79
|
- spec/dummy/config/boot.rb
|
140
80
|
- spec/dummy/config/database.yml
|
141
81
|
- spec/dummy/config/environment.rb
|
142
82
|
- spec/dummy/config/environments/development.rb
|
143
83
|
- spec/dummy/config/environments/test.rb
|
144
|
-
- spec/dummy/config/
|
145
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
146
|
-
- spec/dummy/config/initializers/inflections.rb
|
147
|
-
- spec/dummy/config/initializers/mime_types.rb
|
148
|
-
- spec/dummy/config/initializers/secret_token.rb
|
149
|
-
- spec/dummy/config/initializers/session_store.rb
|
150
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
151
|
-
- spec/dummy/config/locales/en.yml
|
84
|
+
- spec/dummy/config/initializers/teabag.rb
|
152
85
|
- spec/dummy/config/routes.rb
|
86
|
+
- spec/dummy/config.ru
|
153
87
|
- spec/dummy/db/development.sqlite3
|
154
88
|
- spec/dummy/db/migrate/20120825050219_create_posts.rb
|
155
89
|
- spec/dummy/db/schema.rb
|
156
90
|
- spec/dummy/db/test.sqlite3
|
157
|
-
- spec/dummy/log
|
91
|
+
- spec/dummy/log/development.log
|
158
92
|
- spec/dummy/public/favicon.ico
|
159
93
|
- spec/dummy/public/index.html
|
94
|
+
- spec/dummy/Rakefile
|
160
95
|
- spec/dummy/script/rails
|
161
|
-
- spec/
|
162
|
-
- spec/
|
163
|
-
- spec/
|
164
|
-
- spec/
|
96
|
+
- spec/dummy/tmp/cache/assets/C26/0B0/sprockets%2Ff219028b768500ee63133053299ff763
|
97
|
+
- spec/dummy/tmp/cache/assets/C28/930/sprockets%2Fae51d79f7255745e47095614074601b6
|
98
|
+
- spec/dummy/tmp/cache/assets/C6C/A10/sprockets%2F6a60165bfe1f105268227c41d091e133
|
99
|
+
- spec/dummy/tmp/cache/assets/C80/DA0/sprockets%2F5427bc408f19d1d4d1d2528558340c77
|
100
|
+
- spec/dummy/tmp/cache/assets/CB5/B50/sprockets%2F79aa99ae854341b51308845e3ed750b3
|
101
|
+
- spec/dummy/tmp/cache/assets/CD4/FC0/sprockets%2Fbcb9ed408236507a15350153ffe3a636
|
102
|
+
- spec/dummy/tmp/cache/assets/CE2/020/sprockets%2F30c6d863ae431135cbb7768ae227894e
|
103
|
+
- spec/dummy/tmp/cache/assets/CE7/DA0/sprockets%2F1b5a340695ed9f08f3e30cf59d453546
|
104
|
+
- spec/dummy/tmp/cache/assets/CEE/890/sprockets%2F7917f2a4116ef6ff536467ff9811b2d2
|
105
|
+
- spec/dummy/tmp/cache/assets/D0E/140/sprockets%2F679ab384fd4c39e46406110c7c8cbf11
|
106
|
+
- spec/dummy/tmp/cache/assets/D10/140/sprockets%2F76b88145bcce068005e465e680fcbe40
|
107
|
+
- spec/dummy/tmp/cache/assets/D10/B10/sprockets%2F445cd5a429170e739abc1afb3897166c
|
108
|
+
- spec/dummy/tmp/cache/assets/D1E/440/sprockets%2F60458fb7e71cc79d38f0147b633f08ff
|
109
|
+
- spec/dummy/tmp/cache/assets/D26/6B0/sprockets%2Fe33b09d33c3946fc0f9a5afd79566599
|
110
|
+
- spec/dummy/tmp/cache/assets/D31/A90/sprockets%2F2990161b5f6b33226eee3facae02d273
|
111
|
+
- spec/dummy/tmp/cache/assets/D37/E80/sprockets%2Fa196f8f5d3e010180dd4a8aa276a298a
|
112
|
+
- spec/dummy/tmp/cache/assets/D41/8E0/sprockets%2F12b175ae51665e6eaa7598acb284b8d5
|
113
|
+
- spec/dummy/tmp/cache/assets/D47/770/sprockets%2Fcf8444c0e6a95e9f3e1a46af5108e870
|
114
|
+
- spec/dummy/tmp/cache/assets/D47/780/sprockets%2F872537fcdcf083ba8908edaa487431f2
|
115
|
+
- spec/dummy/tmp/cache/assets/D4D/C80/sprockets%2F7731a714c697dab895b1fda7dd1d4688
|
116
|
+
- spec/dummy/tmp/cache/assets/D55/C80/sprockets%2F715c2a17cfa6a94c743892dfdf92d979
|
117
|
+
- spec/dummy/tmp/cache/assets/D56/CC0/sprockets%2Fd4f8ede468744cd7dc395d5639ac4462
|
118
|
+
- spec/dummy/tmp/cache/assets/D66/660/sprockets%2F4cf820ee8148b704a14eca0a49e8cd51
|
119
|
+
- spec/dummy/tmp/cache/assets/D6D/D90/sprockets%2Ff44ef9a6e48e8d59e6295f9e9c04796c
|
120
|
+
- spec/dummy/tmp/cache/assets/D6F/EE0/sprockets%2Ff3883eb6b81c90c7409aeb8a2e2454bc
|
121
|
+
- spec/dummy/tmp/cache/assets/D70/000/sprockets%2F1293e9e2da0acdfd501995007f6ebf57
|
122
|
+
- spec/dummy/tmp/cache/assets/D82/DC0/sprockets%2F69dce23ec7b4f2db19b8f9718173c39f
|
123
|
+
- spec/dummy/tmp/cache/assets/D8C/F80/sprockets%2Fac5f59aebc1022cef7be3122d11264d9
|
124
|
+
- spec/dummy/tmp/cache/assets/D94/450/sprockets%2F7ec1193e50b3e1d5391fd9c1e53a4bbc
|
125
|
+
- spec/dummy/tmp/cache/assets/D96/840/sprockets%2Fa0011c18bf53e02ea94667f8e2e8aecc
|
126
|
+
- spec/dummy/tmp/cache/assets/D9E/7D0/sprockets%2F9890a424e2b6f8efc5df0544a0af5a2f
|
127
|
+
- spec/dummy/tmp/cache/assets/DF0/680/sprockets%2F5376d36d3edfd6e9fb5ffd89af558e71
|
128
|
+
- spec/dummy/tmp/cache/assets/E8F/B10/sprockets%2F2cecb5fec0fa6cd6a1f46ff7583ec3fa
|
129
|
+
- spec/javascripts/fixtures/ujs.html
|
130
|
+
- spec/javascripts/jquery/resourcy_spec.coffee
|
131
|
+
- spec/javascripts/resourcy_spec.coffee
|
132
|
+
- spec/javascripts/spec_helper.coffee
|
165
133
|
homepage: http://github.com/jejacks0n/resourcy
|
166
134
|
licenses:
|
167
135
|
- MIT
|
@@ -177,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
145
|
version: '0'
|
178
146
|
segments:
|
179
147
|
- 0
|
180
|
-
hash:
|
148
|
+
hash: 3350947350501438770
|
181
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
150
|
none: false
|
183
151
|
requirements:
|
@@ -186,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
154
|
version: '0'
|
187
155
|
segments:
|
188
156
|
- 0
|
189
|
-
hash:
|
157
|
+
hash: 3350947350501438770
|
190
158
|
requirements: []
|
191
159
|
rubyforge_project:
|
192
160
|
rubygems_version: 1.8.24
|
@@ -194,7 +162,6 @@ signing_key:
|
|
194
162
|
specification_version: 3
|
195
163
|
summary: ! 'Resourcy: Awesome RESTful javascript resource routing'
|
196
164
|
test_files:
|
197
|
-
- spec/dummy/Rakefile
|
198
165
|
- spec/dummy/app/assets/javascripts/jquery-1.7.1.js
|
199
166
|
- spec/dummy/app/assets/javascripts/jquery-1.8.0.js
|
200
167
|
- spec/dummy/app/assets/javascripts/jquery_ujs.js
|
@@ -205,31 +172,58 @@ test_files:
|
|
205
172
|
- spec/dummy/app/views/posts/index.html.erb
|
206
173
|
- spec/dummy/app/views/posts/new.html.erb
|
207
174
|
- spec/dummy/app/views/posts/show.html.erb
|
208
|
-
- spec/dummy/config.ru
|
209
175
|
- spec/dummy/config/application.rb
|
210
176
|
- spec/dummy/config/boot.rb
|
211
177
|
- spec/dummy/config/database.yml
|
212
178
|
- spec/dummy/config/environment.rb
|
213
179
|
- spec/dummy/config/environments/development.rb
|
214
180
|
- spec/dummy/config/environments/test.rb
|
215
|
-
- spec/dummy/config/
|
216
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
217
|
-
- spec/dummy/config/initializers/inflections.rb
|
218
|
-
- spec/dummy/config/initializers/mime_types.rb
|
219
|
-
- spec/dummy/config/initializers/secret_token.rb
|
220
|
-
- spec/dummy/config/initializers/session_store.rb
|
221
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
222
|
-
- spec/dummy/config/locales/en.yml
|
181
|
+
- spec/dummy/config/initializers/teabag.rb
|
223
182
|
- spec/dummy/config/routes.rb
|
183
|
+
- spec/dummy/config.ru
|
224
184
|
- spec/dummy/db/development.sqlite3
|
225
185
|
- spec/dummy/db/migrate/20120825050219_create_posts.rb
|
226
186
|
- spec/dummy/db/schema.rb
|
227
187
|
- spec/dummy/db/test.sqlite3
|
228
|
-
- spec/dummy/log
|
188
|
+
- spec/dummy/log/development.log
|
229
189
|
- spec/dummy/public/favicon.ico
|
230
190
|
- spec/dummy/public/index.html
|
191
|
+
- spec/dummy/Rakefile
|
231
192
|
- spec/dummy/script/rails
|
232
|
-
- spec/
|
233
|
-
- spec/
|
234
|
-
- spec/
|
235
|
-
- spec/
|
193
|
+
- spec/dummy/tmp/cache/assets/C26/0B0/sprockets%2Ff219028b768500ee63133053299ff763
|
194
|
+
- spec/dummy/tmp/cache/assets/C28/930/sprockets%2Fae51d79f7255745e47095614074601b6
|
195
|
+
- spec/dummy/tmp/cache/assets/C6C/A10/sprockets%2F6a60165bfe1f105268227c41d091e133
|
196
|
+
- spec/dummy/tmp/cache/assets/C80/DA0/sprockets%2F5427bc408f19d1d4d1d2528558340c77
|
197
|
+
- spec/dummy/tmp/cache/assets/CB5/B50/sprockets%2F79aa99ae854341b51308845e3ed750b3
|
198
|
+
- spec/dummy/tmp/cache/assets/CD4/FC0/sprockets%2Fbcb9ed408236507a15350153ffe3a636
|
199
|
+
- spec/dummy/tmp/cache/assets/CE2/020/sprockets%2F30c6d863ae431135cbb7768ae227894e
|
200
|
+
- spec/dummy/tmp/cache/assets/CE7/DA0/sprockets%2F1b5a340695ed9f08f3e30cf59d453546
|
201
|
+
- spec/dummy/tmp/cache/assets/CEE/890/sprockets%2F7917f2a4116ef6ff536467ff9811b2d2
|
202
|
+
- spec/dummy/tmp/cache/assets/D0E/140/sprockets%2F679ab384fd4c39e46406110c7c8cbf11
|
203
|
+
- spec/dummy/tmp/cache/assets/D10/140/sprockets%2F76b88145bcce068005e465e680fcbe40
|
204
|
+
- spec/dummy/tmp/cache/assets/D10/B10/sprockets%2F445cd5a429170e739abc1afb3897166c
|
205
|
+
- spec/dummy/tmp/cache/assets/D1E/440/sprockets%2F60458fb7e71cc79d38f0147b633f08ff
|
206
|
+
- spec/dummy/tmp/cache/assets/D26/6B0/sprockets%2Fe33b09d33c3946fc0f9a5afd79566599
|
207
|
+
- spec/dummy/tmp/cache/assets/D31/A90/sprockets%2F2990161b5f6b33226eee3facae02d273
|
208
|
+
- spec/dummy/tmp/cache/assets/D37/E80/sprockets%2Fa196f8f5d3e010180dd4a8aa276a298a
|
209
|
+
- spec/dummy/tmp/cache/assets/D41/8E0/sprockets%2F12b175ae51665e6eaa7598acb284b8d5
|
210
|
+
- spec/dummy/tmp/cache/assets/D47/770/sprockets%2Fcf8444c0e6a95e9f3e1a46af5108e870
|
211
|
+
- spec/dummy/tmp/cache/assets/D47/780/sprockets%2F872537fcdcf083ba8908edaa487431f2
|
212
|
+
- spec/dummy/tmp/cache/assets/D4D/C80/sprockets%2F7731a714c697dab895b1fda7dd1d4688
|
213
|
+
- spec/dummy/tmp/cache/assets/D55/C80/sprockets%2F715c2a17cfa6a94c743892dfdf92d979
|
214
|
+
- spec/dummy/tmp/cache/assets/D56/CC0/sprockets%2Fd4f8ede468744cd7dc395d5639ac4462
|
215
|
+
- spec/dummy/tmp/cache/assets/D66/660/sprockets%2F4cf820ee8148b704a14eca0a49e8cd51
|
216
|
+
- spec/dummy/tmp/cache/assets/D6D/D90/sprockets%2Ff44ef9a6e48e8d59e6295f9e9c04796c
|
217
|
+
- spec/dummy/tmp/cache/assets/D6F/EE0/sprockets%2Ff3883eb6b81c90c7409aeb8a2e2454bc
|
218
|
+
- spec/dummy/tmp/cache/assets/D70/000/sprockets%2F1293e9e2da0acdfd501995007f6ebf57
|
219
|
+
- spec/dummy/tmp/cache/assets/D82/DC0/sprockets%2F69dce23ec7b4f2db19b8f9718173c39f
|
220
|
+
- spec/dummy/tmp/cache/assets/D8C/F80/sprockets%2Fac5f59aebc1022cef7be3122d11264d9
|
221
|
+
- spec/dummy/tmp/cache/assets/D94/450/sprockets%2F7ec1193e50b3e1d5391fd9c1e53a4bbc
|
222
|
+
- spec/dummy/tmp/cache/assets/D96/840/sprockets%2Fa0011c18bf53e02ea94667f8e2e8aecc
|
223
|
+
- spec/dummy/tmp/cache/assets/D9E/7D0/sprockets%2F9890a424e2b6f8efc5df0544a0af5a2f
|
224
|
+
- spec/dummy/tmp/cache/assets/DF0/680/sprockets%2F5376d36d3edfd6e9fb5ffd89af558e71
|
225
|
+
- spec/dummy/tmp/cache/assets/E8F/B10/sprockets%2F2cecb5fec0fa6cd6a1f46ff7583ec3fa
|
226
|
+
- spec/javascripts/fixtures/ujs.html
|
227
|
+
- spec/javascripts/jquery/resourcy_spec.coffee
|
228
|
+
- spec/javascripts/resourcy_spec.coffee
|
229
|
+
- spec/javascripts/spec_helper.coffee
|
@@ -1,47 +0,0 @@
|
|
1
|
-
# The following allows us to have a nested directory structure of specs. With
|
2
|
-
# a lot of specs this is needed.
|
3
|
-
Evergreen.configure do |config|
|
4
|
-
config.root = Resourcy::Engine.root
|
5
|
-
end
|
6
|
-
|
7
|
-
module Evergreen
|
8
|
-
class Suite
|
9
|
-
def specs
|
10
|
-
Dir.glob(File.join(root, Evergreen.spec_dir, '**', '*_spec.{js,coffee,js.coffee}')).map do |path|
|
11
|
-
Spec.new(self, path.gsub(File.join(root), ''))
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
def templates
|
16
|
-
Dir.glob(File.join(root, Evergreen.template_dir, '**', '*')).map do |path|
|
17
|
-
Template.new(self, path.gsub(File.join(root), '')) unless File.directory?(path)
|
18
|
-
end.compact
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
module Evergreen
|
24
|
-
class Spec
|
25
|
-
def initialize(suite, name)
|
26
|
-
@suite = suite
|
27
|
-
@name = name
|
28
|
-
@name = "#{Evergreen.spec_dir}/#{name}" if !exist?
|
29
|
-
end
|
30
|
-
|
31
|
-
def name
|
32
|
-
@name.gsub("/#{Evergreen.spec_dir}/", '')
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
module Evergreen
|
38
|
-
class Template
|
39
|
-
def name
|
40
|
-
@name.gsub("/#{Evergreen.template_dir}/", '')
|
41
|
-
end
|
42
|
-
|
43
|
-
def full_path
|
44
|
-
File.join(root, @name)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|