rows_controller 0.3.2 → 0.4.1

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/.rvmrc CHANGED
@@ -1,4 +1,4 @@
1
- rvm use 1.9.3-p0@rails32
1
+ rvm use 1.9.3@rails32
2
2
  #rvm use 1.9.2@rails31
3
3
 
4
4
  # rvm_gemset_create_on_use_flag=1
data/Gemfile.lock CHANGED
@@ -1,25 +1,35 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionmailer (0.6.1)
5
- actionpack (>= 0.9.5)
6
- actionpack (3.2.2.rc1)
7
- activemodel (= 3.2.2.rc1)
8
- activesupport (= 3.2.2.rc1)
4
+ actionmailer (3.2.6)
5
+ actionpack (= 3.2.6)
6
+ mail (~> 2.4.4)
7
+ actionpack (3.2.6)
8
+ activemodel (= 3.2.6)
9
+ activesupport (= 3.2.6)
9
10
  builder (~> 3.0.0)
10
11
  erubis (~> 2.7.0)
11
12
  journey (~> 1.0.1)
12
13
  rack (~> 1.4.0)
13
- rack-cache (~> 1.1)
14
+ rack-cache (~> 1.2)
14
15
  rack-test (~> 0.6.1)
15
- sprockets (~> 2.1.2)
16
- activemodel (3.2.2.rc1)
17
- activesupport (= 3.2.2.rc1)
16
+ sprockets (~> 2.1.3)
17
+ activemodel (3.2.6)
18
+ activesupport (= 3.2.6)
18
19
  builder (~> 3.0.0)
19
- activerecord (1.6.0)
20
- activesupport (3.2.2.rc1)
20
+ activerecord (3.2.6)
21
+ activemodel (= 3.2.6)
22
+ activesupport (= 3.2.6)
23
+ arel (~> 3.0.2)
24
+ tzinfo (~> 0.3.29)
25
+ activeresource (3.2.6)
26
+ activemodel (= 3.2.6)
27
+ activesupport (= 3.2.6)
28
+ activesupport (3.2.6)
21
29
  i18n (~> 0.6)
22
30
  multi_json (~> 1.0)
31
+ addressable (2.2.8)
32
+ arel (3.0.2)
23
33
  builder (3.0.0)
24
34
  capybara (1.1.2)
25
35
  mime-types (>= 1.16)
@@ -28,71 +38,84 @@ GEM
28
38
  rack-test (>= 0.5.4)
29
39
  selenium-webdriver (~> 2.0)
30
40
  xpath (~> 0.1.4)
31
- childprocess (0.3.1)
41
+ childprocess (0.3.2)
32
42
  ffi (~> 1.0.6)
33
43
  diff-lcs (1.1.3)
34
44
  erubis (2.7.0)
35
45
  ffi (1.0.11)
36
46
  hike (1.2.1)
37
47
  i18n (0.6.0)
38
- journey (1.0.3)
39
- jquery-rails (2.0.0)
40
- railties (>= 3.2.0.beta, < 5.0)
48
+ journey (1.0.4)
49
+ jquery-rails (2.0.2)
50
+ railties (>= 3.2.0, < 5.0)
41
51
  thor (~> 0.14)
42
- json (1.6.5)
43
- json_pure (1.6.5)
44
- mime-types (1.17.2)
45
- multi_json (1.1.0)
46
- nokogiri (1.5.0)
52
+ json (1.7.3)
53
+ libwebsocket (0.1.3)
54
+ addressable
55
+ mail (2.4.4)
56
+ i18n (>= 0.4.0)
57
+ mime-types (~> 1.16)
58
+ treetop (~> 1.4.8)
59
+ mime-types (1.19)
60
+ multi_json (1.3.6)
61
+ nokogiri (1.5.5)
62
+ polyglot (0.3.3)
47
63
  rack (1.4.1)
48
- rack-cache (1.1)
64
+ rack-cache (1.2)
49
65
  rack (>= 0.4)
50
66
  rack-ssl (1.3.2)
51
67
  rack
52
68
  rack-test (0.6.1)
53
69
  rack (>= 1.0)
54
- rails (0.9.5)
55
- actionmailer (>= 0.6.1)
56
- actionpack (>= 1.4.0)
57
- activerecord (>= 1.6.0)
58
- rake (>= 0.4.15)
59
- railties (3.2.2.rc1)
60
- actionpack (= 3.2.2.rc1)
61
- activesupport (= 3.2.2.rc1)
70
+ rails (3.2.6)
71
+ actionmailer (= 3.2.6)
72
+ actionpack (= 3.2.6)
73
+ activerecord (= 3.2.6)
74
+ activeresource (= 3.2.6)
75
+ activesupport (= 3.2.6)
76
+ bundler (~> 1.0)
77
+ railties (= 3.2.6)
78
+ railties (3.2.6)
79
+ actionpack (= 3.2.6)
80
+ activesupport (= 3.2.6)
62
81
  rack-ssl (~> 1.3.2)
63
82
  rake (>= 0.8.7)
64
83
  rdoc (~> 3.4)
65
- thor (~> 0.14.6)
84
+ thor (>= 0.14.6, < 2.0)
66
85
  rake (0.9.2.2)
67
86
  rdoc (3.12)
68
87
  json (~> 1.4)
69
- rspec (2.8.0)
70
- rspec-core (~> 2.8.0)
71
- rspec-expectations (~> 2.8.0)
72
- rspec-mocks (~> 2.8.0)
73
- rspec-core (2.8.0)
74
- rspec-expectations (2.8.0)
75
- diff-lcs (~> 1.1.2)
76
- rspec-mocks (2.8.0)
77
- rspec-rails (2.8.1)
88
+ rspec (2.10.0)
89
+ rspec-core (~> 2.10.0)
90
+ rspec-expectations (~> 2.10.0)
91
+ rspec-mocks (~> 2.10.0)
92
+ rspec-core (2.10.1)
93
+ rspec-expectations (2.10.0)
94
+ diff-lcs (~> 1.1.3)
95
+ rspec-mocks (2.10.1)
96
+ rspec-rails (2.10.1)
78
97
  actionpack (>= 3.0)
79
98
  activesupport (>= 3.0)
80
99
  railties (>= 3.0)
81
- rspec (~> 2.8.0)
82
- rubyzip (0.9.6.1)
83
- selenium-webdriver (2.13.0)
84
- childprocess (>= 0.2.1)
85
- ffi (~> 1.0.9)
86
- json_pure
100
+ rspec (~> 2.10.0)
101
+ rubyzip (0.9.9)
102
+ selenium-webdriver (2.24.0)
103
+ childprocess (>= 0.2.5)
104
+ libwebsocket (~> 0.1.3)
105
+ multi_json (~> 1.0)
87
106
  rubyzip
88
- spork (0.9.0)
89
- sprockets (2.1.2)
107
+ spork (0.9.2)
108
+ sprockets (2.1.3)
90
109
  hike (~> 1.2)
91
110
  rack (~> 1.0)
92
111
  tilt (~> 1.1, != 1.3.0)
93
- sqlite3 (1.3.5)
94
- thor (0.14.6)
112
+ sqlite3 (1.3.6)
113
+ thor (0.15.3)
95
114
  tilt (1.3.3)
115
+ treetop (1.4.10)
116
+ polyglot
117
+ polyglot (>= 0.3.1)
118
+ tzinfo (0.3.33)
96
119
  watchr (0.7)
97
120
  xpath (0.1.4)
98
121
  nokogiri (~> 1.3)
@@ -1,7 +1,7 @@
1
1
  class RowsController < ApplicationController
2
2
  require_dependency 'rows_controller/helpers'
3
3
 
4
- respond_to :html, :xml
4
+ respond_to :html, :xml, :json
5
5
 
6
6
  def index
7
7
  respond_with(resources)
@@ -38,6 +38,7 @@ class RowsController < ApplicationController
38
38
  respond_with(resource) do |format|
39
39
  format.html { redirect_to :action => :index }
40
40
  format.js { render :template => 'rows/destroy' }
41
+ format.json { head :no_content }
41
42
  end
42
43
  flash[:notice] = t('ui.deleted', :model => model_name,
43
44
  :default => "%{model} deleted.")
@@ -58,12 +59,14 @@ class RowsController < ApplicationController
58
59
  respond_with(resource) do |format|
59
60
  format.html { redirect_to :action => :edit, :id => resource.id }
60
61
  format.xml { render :xml => resource.errors, :status => :unprocessable_entity }
62
+ format.json { head :no_content }
61
63
  end
62
64
  flash[:notice] = notice
63
65
  else
64
66
  respond_with(resource) do |format|
65
67
  format.html { render :template => failure_template, :id => resource.id }
66
- format.xml { render :xml => resource.errors, :status => :unprocessable_entity }
68
+ format.xml { render xml: resource.errors, :status => :unprocessable_entity }
69
+ format.jron { render json: resource.errors, :status => :unprocessable_entity }
67
70
  end
68
71
  end
69
72
  end
@@ -1,3 +1,3 @@
1
1
  module Rows
2
- VERSION = '0.3.2'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rows_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-26 00:00:00.000000000 Z
12
+ date: 2012-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3
16
- requirement: &69804540 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *69804540
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rspec-rails
27
- requirement: &69802990 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *69802990
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: capybara
38
- requirement: &69802050 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,7 +53,12 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *69802050
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  description: YourController < RowsController ( < ApplicationController).
48
63
  email:
49
64
  - dittmar.krall@matique.de
@@ -120,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
135
  version: '0'
121
136
  segments:
122
137
  - 0
123
- hash: 96169197
138
+ hash: -813565731
124
139
  required_rubygems_version: !ruby/object:Gem::Requirement
125
140
  none: false
126
141
  requirements:
@@ -129,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
144
  version: '0'
130
145
  requirements: []
131
146
  rubyforge_project:
132
- rubygems_version: 1.8.15
147
+ rubygems_version: 1.8.24
133
148
  signing_key:
134
149
  specification_version: 3
135
150
  summary: Rows DRYs your controllers.