snusnu-merb_resource_controller 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snusnu-merb_resource_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Gamsjaeger
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-10 00:00:00 -08:00
12
+ date: 2008-12-17 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -89,30 +89,39 @@ files:
89
89
  - README.textile
90
90
  - Rakefile
91
91
  - TODO
92
+ - lib/merb_resource_controller/action_descriptor.rb
92
93
  - lib/merb_resource_controller/action_timeout_support.rb
93
94
  - lib/merb_resource_controller/actions.rb
94
95
  - lib/merb_resource_controller/identity_map_support.rb
95
96
  - lib/merb_resource_controller/resource_controller.rb
96
97
  - lib/merb_resource_controller/resource_proxy.rb
97
98
  - lib/merb_resource_controller.rb
98
- - spec/mrc_test_app
99
- - spec/mrc_test_app/Rakefile
100
99
  - spec/mrc_test_app/app/controllers/application.rb
101
100
  - spec/mrc_test_app/app/controllers/articles.rb
102
101
  - spec/mrc_test_app/app/controllers/community/comments.rb
103
102
  - spec/mrc_test_app/app/controllers/community/ratings.rb
104
- - spec/mrc_test_app/app/controllers/editors.rb
103
+ - spec/mrc_test_app/ap/controllers/editors.rb
105
104
  - spec/mrc_test_app/app/models/article.rb
106
- - spec/mrc_test_app/app/models/comment.rb
105
+ - spec/mrc_test_app/app/models/community/comment.rb
106
+ - spec/mrc_test_app/app/models/community/rating.rb
107
107
  - spec/mrc_test_app/app/models/editor.rb
108
- - spec/mrc_test_app/app/models/rating.rb
109
- - spec/mrc_test_app/config/database.yml
110
108
  - spec/mrc_test_app/config/environments/development.rb
111
109
  - spec/mrc_test_app/config/environments/rake.rb
112
110
  - spec/mrc_test_app/config/environments/test.rb
113
111
  - spec/mrc_test_app/config/init.rb
114
112
  - spec/mrc_test_app/config/rack.rb
115
113
  - spec/mrc_test_app/config/router.rb
114
+ - spec/mrc_test_app/spec/lib/action_descriptor_spec.rb
115
+ - spec/mrc_test_app/spec/lib/resource_proxy_spec.rb
116
+ - spec/mrc_test_app/spec/request/article_comment_ratings_spec.rb
117
+ - spec/mrc_test_app/spec/request/article_comments_spec.rb
118
+ - spec/mrc_test_app/spec/request/article_editor_spec.rb
119
+ - spec/mrc_test_app/spec/request/articles_spec.rb
120
+ - spec/mrc_test_app/spec/request/comments_spec.rb
121
+ - spec/mrc_test_app/spec/spec_helper.rb
122
+ - spec/mrc_test_app
123
+ - spec/mrc_test_app/config/database.yml
124
+ - spec/mrc_test_app/spec/spec.opts
116
125
  - spec/mrc_test_app/app/views/articles/edit.html.erb
117
126
  - spec/mrc_test_app/app/views/articles/index.html.erb
118
127
  - spec/mrc_test_app/app/views/articles/new.html.erb
@@ -121,21 +130,13 @@ files:
121
130
  - spec/mrc_test_app/app/views/community/comments/index.html.erb
122
131
  - spec/mrc_test_app/app/views/community/comments/new.html.erb
123
132
  - spec/mrc_test_app/app/views/community/comments/show.html.erb
124
- - spec/mrc_test_app/app/views/community/ratings/edit.html.erb
133
+ - spec/mrc_test_app/app/views/community/ratings/eit.html.erb
125
134
  - spec/mrc_test_app/app/views/community/ratings/index.html.erb
126
- - spec/mrc_test_app/app/views/community/ratings/ne.html.erb
135
+ - spec/mrc_test_app/app/views/community/ratings/new.html.erb
127
136
  - spec/mrc_test_app/app/views/community/ratings/show.html.erb
128
137
  - spec/mrc_test_app/app/views/editors/edit.html.erb
129
138
  - spec/mrc_test_app/app/views/editors/new.html.erb
130
139
  - spec/mrc_test_app/app/views/editors/show.html.erb
131
- - spec/mrc_test_app/spec/lib/resource_proxy_spec.rb
132
- - spec/mrc_test_app/spec/request/article_comment_rtings_spec.rb
133
- - spec/mrc_test_app/spec/request/article_comments_spec.rb
134
- - spec/mrc_test_app/spec/request/article_editor_spec.rb
135
- - spec/mrc_test_app/spec/request/articles_spec.rb
136
- - spec/mrc_test_app/spec/request/comments_spec.rb
137
- - spec/mrc_test_app/spec/spec_helper.rb
138
- - spec/mrc_test_app/spec/spec.opts
139
140
  has_rdoc: false
140
141
  homepage: http://merbivore.com/
141
142
  post_install_message:
@@ -1,52 +0,0 @@
1
- require 'rubygems'
2
- require 'rake/rdoctask'
3
-
4
- require 'merb-core'
5
- require 'merb-core/tasks/merb'
6
-
7
- include FileUtils
8
-
9
- # Load the basic runtime dependencies; this will include
10
- # any plugins and therefore plugin rake tasks.
11
- init_env = ENV['MERB_ENV'] || 'rake'
12
- Merb.load_dependencies(:environment => init_env)
13
-
14
- # Get Merb plugins and dependencies
15
- Merb::Plugins.rakefiles.each { |r| require r }
16
-
17
- # Load any app level custom rakefile extensions from lib/tasks
18
- tasks_path = File.join(File.dirname(__FILE__), "lib", "tasks")
19
- rake_files = Dir["#{tasks_path}/*.rake"]
20
- rake_files.each{|rake_file| load rake_file }
21
-
22
- desc "Start runner environment"
23
- task :merb_env do
24
- Merb.start_environment(:environment => init_env, :adapter => 'runner')
25
- end
26
-
27
- require 'spec/rake/spectask'
28
-
29
- desc 'Run specifications'
30
- Spec::Rake::SpecTask.new(:spec) do |t|
31
-
32
- t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
33
- t.spec_files = Pathname.glob(Pathname.new(__FILE__).dirname + 'spec/**/*_spec.rb')
34
-
35
- begin
36
- t.rcov = ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true
37
- t.rcov_opts << '--exclude' << 'spec'
38
- t.rcov_opts << '--text-summary'
39
- t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
40
- rescue Exception
41
- # rcov not installed
42
- end
43
-
44
- end
45
-
46
- desc 'Default: run spec examples'
47
- task :default => 'spec'
48
-
49
- ##############################################################################
50
- # ADD YOUR CUSTOM TASKS IN /lib/tasks
51
- # NAME YOUR RAKE FILES file_name.rake
52
- ##############################################################################
@@ -1,7 +0,0 @@
1
- class Editors < Application
2
-
3
- controlling :editor, :singleton => true do |e|
4
- e.belongs_to :article
5
- end
6
-
7
- end
@@ -1,11 +0,0 @@
1
- <h2>Edit Rating</h2>
2
-
3
- <%= form_for(@rating, :action => resource(@comment, @rating), :method => :put) do %>
4
-
5
- <p><%= text_field :rate, :label => "Rating" %></p>
6
- <p><%= submit "Update" %></p>
7
-
8
- <% end =%>
9
-
10
- <%= link_to 'Show Comment', resource(@comment) %> |
11
- <%= link_to 'Show Rating', resource(@comment, @rating) %>