tkh_mailing_list 0.0.2 → 0.9

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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YzcwMWUzMGYzMjI1MTVhNDk2NjEyNTZhMmJhODc5ZTkzYjMyZjZmOA==
5
- data.tar.gz: !binary |-
6
- Zjk4ZjJlMjliM2YwOThmYTY0ZmMyOWUzOWEzNTdlN2M2NWJkMzczYw==
7
- !binary "U0hBNTEy":
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
@@ -1,6 +1,12 @@
1
1
  # TKH Mailing List
2
2
 
3
3
 
4
+
5
+ ## 0.9
6
+
7
+ * Upgraded gem to Rails 4
8
+
9
+
4
10
  ## 0.0.2
5
11
 
6
12
  * Added a rake task file and an add_teacher_status migration generator.
@@ -19,7 +19,7 @@ class DetailsController < ApplicationController
19
19
  end
20
20
 
21
21
  def create
22
- @detail = Detail.new(params[:detail])
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(params[:detail])
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
@@ -1,3 +1,2 @@
1
1
  class Detail < User
2
- attr_accessible :admin, :teacher_status
3
2
  end
@@ -1,3 +1,3 @@
1
1
  module TkhMailingList
2
- VERSION = "0.0.2"
2
+ VERSION = "0.9"
3
3
  end
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
23
 
24
- spec.add_dependency "tkh_authentication", '~> 0.1.8'
24
+ spec.add_dependency "tkh_authentication", '~> 0.9.2'
25
25
  end
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.0.2
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: 2013-08-04 00:00:00.000000000 Z
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.1.8
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.1.8
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.3
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