tkh_mailing_list 0.0.2 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.ruby_version +1 -0
- data/CHANGELOG.md +6 -0
- data/app/controllers/details_controller.rb +9 -2
- data/app/models/detail.rb +0 -1
- data/lib/tkh_mailing_list/version.rb +1 -1
- data/tkh_mailing_list.gemspec +1 -1
- metadata +15 -14
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
YzQ1N2RjZDQzNDBiN2I2NDA0MmJmNTAwMWE0YmUwNjAzZGU0NDBjYmZiM2Yy
|
10
|
-
OTM3MzM3NGI0MDQ1NTVhMmQyMGFjYzQ2MmM1NTAwOTk3YjI1MjYzZWIyZDAx
|
11
|
-
ZDlhMTczNGQ1ZWE4ZGE5ZTZiOTA3ZTVlMmU3OWVmYWUzMTliZTI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
Y2U3YjhiYWJjYmE4ZjU1NmI2MDQ4N2I0YjIxOTczYjMyZDNmZDQzODU1ODE2
|
14
|
-
ZGExNzAzZTgwMWE5NjNmOTkzMDBlZTljNThlMzdiNGFjMzcyYjhlMzc5MmQ1
|
15
|
-
NTE4NGNlNjE0Y2Q4MzdlNmM5N2IyYWM0MjFhZDdkOTMyOGVlMDM=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 973df468855c7f282ac470dd0ffd8d15f0a2d136
|
4
|
+
data.tar.gz: a5120dbaf52fc2c8794098f59c06a43dc25071b8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 43f9420fb1c577ce32f422cd5588a76c4900fd0106c1fbbe99f6c1555c43be0cc936bfef52b07f7f6a6f9822b0e0c05f6f2fc6200bbfa2d1349b321855fdf92f
|
7
|
+
data.tar.gz: 93714890e5f2d99cf3c9b04fffc7d63364628bf5cf7d8c22818cf3924e66e63a8a5fd98dc3521be15e4705ebcb8c805b883691154963cb6debe94306383d64b4
|
data/.ruby_version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.0.0-p247
|
data/CHANGELOG.md
CHANGED
@@ -19,7 +19,7 @@ class DetailsController < ApplicationController
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def create
|
22
|
-
@detail = Detail.new(
|
22
|
+
@detail = Detail.new(detail_params)
|
23
23
|
# this is needed or has_secure_password won't validate the saving of a record
|
24
24
|
@detail.password = 'temporary'
|
25
25
|
@detail.password_confirmation = 'temporary'
|
@@ -32,7 +32,7 @@ class DetailsController < ApplicationController
|
|
32
32
|
|
33
33
|
def update
|
34
34
|
@detail = Detail.find(params[:id])
|
35
|
-
if @detail.update_attributes(
|
35
|
+
if @detail.update_attributes(detail_params)
|
36
36
|
redirect_to @detail, notice: t('details.update.notice')
|
37
37
|
else
|
38
38
|
render action: "edit", warning: t('details.update.warning'), layout: 'admin'
|
@@ -48,4 +48,11 @@ class DetailsController < ApplicationController
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
+
private
|
52
|
+
|
53
|
+
# Never trust parameters from the scary internet, only allow the white list through.
|
54
|
+
def detail_params
|
55
|
+
params.require(:detail).permit(:admin, :teacher_status)
|
56
|
+
end
|
57
|
+
|
51
58
|
end
|
data/app/models/detail.rb
CHANGED
data/tkh_mailing_list.gemspec
CHANGED
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkh_mailing_list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.9'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swami Atma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: tkh_authentication
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.9.2
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.9.2
|
55
55
|
description: A mailing list module to work with tkh_authentication gem
|
56
56
|
email:
|
57
57
|
- swami@TenThousandHours.eu
|
@@ -59,7 +59,8 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- .gitignore
|
62
|
+
- ".gitignore"
|
63
|
+
- ".ruby_version"
|
63
64
|
- CHANGELOG.md
|
64
65
|
- Gemfile
|
65
66
|
- LICENSE.txt
|
@@ -95,17 +96,17 @@ require_paths:
|
|
95
96
|
- lib
|
96
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
97
98
|
requirements:
|
98
|
-
- -
|
99
|
+
- - ">="
|
99
100
|
- !ruby/object:Gem::Version
|
100
101
|
version: '0'
|
101
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
103
|
requirements:
|
103
|
-
- -
|
104
|
+
- - ">="
|
104
105
|
- !ruby/object:Gem::Version
|
105
106
|
version: '0'
|
106
107
|
requirements: []
|
107
108
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.0
|
109
|
+
rubygems_version: 2.2.0
|
109
110
|
signing_key:
|
110
111
|
specification_version: 4
|
111
112
|
summary: This gem inherits from the tkh_authentication gem and allow administrators
|