modulate 0.0.11 → 0.0.12
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.
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
class Modulate::DocumentsController < Modulate::ApplicationController
|
|
2
2
|
|
|
3
3
|
def destroy
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
respond_to do |format|
|
|
5
|
+
@doc = Modulate::Document.find(params[:id])
|
|
6
|
+
|
|
7
|
+
if @doc.destroy
|
|
8
|
+
format.html { redirect_to :back }
|
|
9
|
+
format.json { head :ok }
|
|
10
|
+
end
|
|
11
|
+
|
|
7
12
|
end
|
|
8
13
|
end
|
|
9
14
|
|
|
@@ -25,9 +25,9 @@ class ModulateGenerator < Rails::Generators::Base
|
|
|
25
25
|
|
|
26
26
|
def include_riak_test_server
|
|
27
27
|
if options.test_server?
|
|
28
|
-
File.open('spec/spec_helper.rb', '
|
|
28
|
+
File.open('spec/spec_helper.rb', 'a') do |f| f.puts(rspec_config)
|
|
29
29
|
end
|
|
30
|
-
template "_riak_test_server.yml", "
|
|
30
|
+
template "_riak_test_server.yml", "spec/support/riak_test_server.yml"
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
|
|
@@ -72,7 +72,7 @@ class ModulateGenerator < Rails::Generators::Base
|
|
|
72
72
|
|
|
73
73
|
config.before :suite do
|
|
74
74
|
begin
|
|
75
|
-
config = YAML.load_file('spec/support/
|
|
75
|
+
config = YAML.load_file('spec/support/riak_test_server.yml')
|
|
76
76
|
$riak_test_server = Riak::TestServer.create(config.symbolize_keys)
|
|
77
77
|
$riak_test_server.start
|
|
78
78
|
rescue => e
|
|
@@ -83,8 +83,6 @@ class ModulateGenerator < Rails::Generators::Base
|
|
|
83
83
|
config.after :suite do
|
|
84
84
|
FileUtils.rm_rf(File.expand_path('../../uploads', __FILE__))
|
|
85
85
|
$riak_test_server.stop
|
|
86
|
-
puts "Stoping test server..."
|
|
87
|
-
$riak_test_Server = nil
|
|
88
86
|
FileUtils.rm_rf(File.expand_path('../test_server', __FILE__))
|
|
89
87
|
end
|
|
90
88
|
end]
|
data/lib/modulate/version.rb
CHANGED
|
@@ -3956,3 +3956,33 @@ Connecting to database specified by database.yml
|
|
|
3956
3956
|
Connecting to database specified by database.yml
|
|
3957
3957
|
Connecting to database specified by database.yml
|
|
3958
3958
|
Connecting to database specified by database.yml
|
|
3959
|
+
Connecting to database specified by database.yml
|
|
3960
|
+
|
|
3961
|
+
|
|
3962
|
+
Started GET "/accounts/1" for 127.0.0.1 at 2013-04-09 15:35:49 -0400
|
|
3963
|
+
Processing by AccountsController#show as HTML
|
|
3964
|
+
Parameters: {"id"=>"1"}
|
|
3965
|
+
[1m[36mAccount Load (0.4ms)[0m [1mSELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1[0m
|
|
3966
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
|
3967
|
+
[1m[36mModulate::Document Load (0.2ms)[0m [1mSELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'[0m
|
|
3968
|
+
Rendered accounts/_modulate_account_documents.html.haml (193.8ms)
|
|
3969
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
|
|
3970
|
+
Rendered accounts/_modulate_attachments.html.haml (300.5ms)
|
|
3971
|
+
Rendered accounts/show.html.erb within layouts/application (320.3ms)
|
|
3972
|
+
Completed 200 OK in 476ms (Views: 390.8ms | ActiveRecord: 5.4ms)
|
|
3973
|
+
|
|
3974
|
+
|
|
3975
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-09 15:35:49 -0400
|
|
3976
|
+
Served asset /application.css - 200 OK (4ms)
|
|
3977
|
+
|
|
3978
|
+
|
|
3979
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-09 15:35:49 -0400
|
|
3980
|
+
Served asset /jquery.js - 200 OK (7ms)
|
|
3981
|
+
|
|
3982
|
+
|
|
3983
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-09 15:35:49 -0400
|
|
3984
|
+
Served asset /jquery_ujs.js - 200 OK (4ms)
|
|
3985
|
+
|
|
3986
|
+
|
|
3987
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-09 15:35:50 -0400
|
|
3988
|
+
Served asset /application.js - 200 OK (44ms)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: modulate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.12
|
|
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-04-
|
|
12
|
+
date: 2013-04-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: carrierwave-riak
|
|
@@ -307,7 +307,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
307
307
|
version: '0'
|
|
308
308
|
segments:
|
|
309
309
|
- 0
|
|
310
|
-
hash: -
|
|
310
|
+
hash: -3491130605269394105
|
|
311
311
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
312
|
none: false
|
|
313
313
|
requirements:
|
|
@@ -316,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
316
316
|
version: '0'
|
|
317
317
|
segments:
|
|
318
318
|
- 0
|
|
319
|
-
hash: -
|
|
319
|
+
hash: -3491130605269394105
|
|
320
320
|
requirements: []
|
|
321
321
|
rubyforge_project:
|
|
322
322
|
rubygems_version: 1.8.24
|