popolo 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +4 -2
- data/app/controllers/popolo/areas_controller.rb +0 -5
- data/app/controllers/popolo/organizations_controller.rb +10 -7
- data/app/controllers/popolo/posts_controller.rb +0 -5
- data/app/models/popolo/address.rb +7 -7
- data/app/models/popolo/post.rb +6 -6
- data/app/views/popolo/addresses/_address.html.erb +16 -0
- data/app/views/popolo/areas_or_organizations/_breadcrumb.html.erb +13 -0
- data/app/views/popolo/areas_or_organizations/_index.html.erb +2 -2
- data/app/views/popolo/areas_or_organizations/_show.html.erb +3 -15
- data/app/views/popolo/organizations/post.html.erb +27 -0
- data/app/views/popolo/organizations/posts.html.erb +23 -0
- data/config/routes.rb +3 -0
- data/lib/popolo/mixins/sluggable.rb +2 -0
- data/lib/popolo/version.rb +1 -1
- data/spec/controllers/popolo/areas_controller_spec.rb +0 -6
- data/spec/controllers/popolo/organizations_controller_spec.rb +17 -6
- data/spec/controllers/popolo/posts_controller_spec.rb +0 -6
- data/spec/dummy/log/test.log +13753 -0
- data/spec/factories.rb +1 -0
- data/spec/models/popolo/post_spec.rb +3 -1
- data/spec/routing/popolo/areas_routing_spec.rb +0 -4
- data/spec/routing/popolo/organizations_routing_spec.rb +8 -4
- data/spec/routing/popolo/posts_routing_spec.rb +0 -4
- metadata +6 -2
data/spec/factories.rb
CHANGED
@@ -14,10 +14,6 @@ describe Popolo::AreasController do
|
|
14
14
|
get('/areas/1').should route_to('popolo/areas#show', id: '1')
|
15
15
|
end
|
16
16
|
|
17
|
-
it 'routes to #show' do
|
18
|
-
get('/areas/foo').should route_to('popolo/areas#show', id: 'foo')
|
19
|
-
end
|
20
|
-
|
21
17
|
it 'routes to #nested_index' do
|
22
18
|
get('/areas/foo/areas').should route_to('popolo/areas#nested_index', path: 'foo')
|
23
19
|
end
|
@@ -14,10 +14,6 @@ describe Popolo::OrganizationsController do
|
|
14
14
|
get('/organizations/1').should route_to('popolo/organizations#show', id: '1')
|
15
15
|
end
|
16
16
|
|
17
|
-
it 'routes to #show' do
|
18
|
-
get('/organizations/foo').should route_to('popolo/organizations#show', id: 'foo')
|
19
|
-
end
|
20
|
-
|
21
17
|
it 'routes to #nested_index' do
|
22
18
|
get('/organizations/foo/organizations').should route_to('popolo/organizations#nested_index', path: 'foo')
|
23
19
|
end
|
@@ -25,5 +21,13 @@ describe Popolo::OrganizationsController do
|
|
25
21
|
it 'routes to #nested_show' do
|
26
22
|
get('/organizations/foo/bar').should route_to('popolo/organizations#nested_show', path: 'foo/bar')
|
27
23
|
end
|
24
|
+
|
25
|
+
it 'routes to #posts' do
|
26
|
+
get('/organizations/foo/posts').should route_to('popolo/organizations#posts', path: 'foo')
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'routes to #post' do
|
30
|
+
get('/organizations/foo/posts/bar').should route_to('popolo/organizations#post', path: 'foo', id: 'bar')
|
31
|
+
end
|
28
32
|
end
|
29
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: popolo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
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: 2013-02-
|
12
|
+
date: 2013-02-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -261,11 +261,15 @@ files:
|
|
261
261
|
- app/models/popolo/person.rb
|
262
262
|
- app/models/popolo/post.rb
|
263
263
|
- app/models/popolo/source.rb
|
264
|
+
- app/views/popolo/addresses/_address.html.erb
|
264
265
|
- app/views/popolo/areas/index.html.erb
|
265
266
|
- app/views/popolo/areas/show.html.erb
|
267
|
+
- app/views/popolo/areas_or_organizations/_breadcrumb.html.erb
|
266
268
|
- app/views/popolo/areas_or_organizations/_index.html.erb
|
267
269
|
- app/views/popolo/areas_or_organizations/_show.html.erb
|
268
270
|
- app/views/popolo/organizations/index.html.erb
|
271
|
+
- app/views/popolo/organizations/post.html.erb
|
272
|
+
- app/views/popolo/organizations/posts.html.erb
|
269
273
|
- app/views/popolo/organizations/show.html.erb
|
270
274
|
- app/views/popolo/people/index.html.erb
|
271
275
|
- app/views/popolo/people/show.html.erb
|