refinerycms-members2 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b81d824f95840cf05fdc3552d0c0d5f446802721
4
+ data.tar.gz: b9b418a0850ab935637202886f4e81c581cf7ac9
5
+ SHA512:
6
+ metadata.gz: ae85f1b6927cff1891d7be6c5dd8a6b0505a439509514e6ee966253fe7a1044b5375aeea7cdf49a38462827c7cea5792dfe6b35b29d30cfb56b4c13f323ed45c
7
+ data.tar.gz: d8971a95e60c844b5193694d4dfa90c5411f0b97491a0acda9801dfb88db5af024842e135d26a6dd19b487f43d086de208267efb4b9f5bb193a969ca7f5a744d
data/README.md CHANGED
@@ -31,6 +31,20 @@ Finally migrate your database and you're done.
31
31
 
32
32
  rake db:migrate
33
33
 
34
+ ## Secrets and Easter Eggs
35
+
36
+ You might have noticed that a second migration adds "need_login" boolean field to the Refinery CMS pages.
37
+ Setting this flag will require all visitors of that page to have a member account.
38
+ Otherwise, 404 error page is returned. This filtering is handled in `lib/refinery/members/instance_methods.rb`.
39
+ You may want to check with that implementation should you decide to override it.
40
+ The gotcha is: this flag is not accessible out-of-the-box, you will need to edit/override your page editing
41
+ template(s) and add it yourself.
42
+
43
+ Another gotcha is: "need_login" flag does not work for the root page of CMS (which is handled by
44
+ a dedicated "home" action in Refinery::PagesController). The idea is to give a chance to an unsuspecting visitor
45
+ to understand what this site is about by providing at least a root page with some info, instead of
46
+ instantly redirecting them to the login page. If you don't want it, override it.
47
+
34
48
  ## Testing
35
49
 
36
50
  This section is intended for developers of refinerycms-members2.
@@ -1,13 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'refinerycms-members2'
4
- s.version = '0.3.0'
4
+ s.version = '0.3.1'
5
5
  s.summary = 'Members engine for Refinery CMS'
6
6
  s.description = 'Ruby on Rails Members engine for Refinery CMS 2.0'
7
7
  s.authors = ['n5ken', 'Slava Kravchenko']
8
8
  s.homepage = "https://github.com/cordawyn/refinerycms-members2"
9
9
 
10
- s.files = `git ls-files`.split($\)
10
+ s.files = `git ls-files`.split($\) - %w(Gemfile.lock)
11
11
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
12
12
  s.require_paths = %w(lib)
13
13
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-members2
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.3.0
4
+ version: 0.3.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - n5ken
@@ -10,40 +9,36 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-03-05 00:00:00.000000000 Z
12
+ date: 2013-03-12 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
- version_requirements: !ruby/object:Gem::Requirement
15
+ name: refinerycms
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - ~>
19
19
  - !ruby/object:Gem::Version
20
20
  version: 2.0.0
21
- none: false
22
- name: refinerycms
23
21
  type: :runtime
24
22
  prerelease: false
25
- requirement: !ruby/object:Gem::Requirement
23
+ version_requirements: !ruby/object:Gem::Requirement
26
24
  requirements:
27
25
  - - ~>
28
26
  - !ruby/object:Gem::Version
29
27
  version: 2.0.0
30
- none: false
31
28
  - !ruby/object:Gem::Dependency
32
- version_requirements: !ruby/object:Gem::Requirement
29
+ name: refinerycms-pages
30
+ requirement: !ruby/object:Gem::Requirement
33
31
  requirements:
34
32
  - - ~>
35
33
  - !ruby/object:Gem::Version
36
34
  version: 2.0.0
37
- none: false
38
- name: refinerycms-pages
39
35
  type: :runtime
40
36
  prerelease: false
41
- requirement: !ruby/object:Gem::Requirement
37
+ version_requirements: !ruby/object:Gem::Requirement
42
38
  requirements:
43
39
  - - ~>
44
40
  - !ruby/object:Gem::Version
45
41
  version: 2.0.0
46
- none: false
47
42
  description: Ruby on Rails Members engine for Refinery CMS 2.0
48
43
  email:
49
44
  executables: []
@@ -52,7 +47,6 @@ extra_rdoc_files: []
52
47
  files:
53
48
  - .gitignore
54
49
  - Gemfile
55
- - Gemfile.lock
56
50
  - README.md
57
51
  - Rakefile
58
52
  - app/controllers/refinery/members/admin/members_controller.rb
@@ -81,7 +75,7 @@ files:
81
75
  - lib/refinery/members.rb
82
76
  - lib/refinery/members/engine.rb
83
77
  - lib/refinery/members/instance_methods.rb
84
- - lib/refinerycms-members.rb
78
+ - lib/refinerycms-members2.rb
85
79
  - refinerycms-members2.gemspec
86
80
  - spec/controllers/refinery/members/admin/members_controller_spec.rb
87
81
  - spec/controllers/refinery/members/sessions_controller_spec.rb
@@ -91,32 +85,28 @@ files:
91
85
  - spec/support/refinery_testing.rb
92
86
  - spec/views/refinery/members/admin/members/index_spec.rb
93
87
  - spec/views/refinery/members/admin/members/new_spec.rb
94
- - test/fixtures/members.yml
95
- - test/test_helper.rb
96
- - test/unit/member_test.rb
97
88
  homepage: https://github.com/cordawyn/refinerycms-members2
98
89
  licenses: []
90
+ metadata: {}
99
91
  post_install_message:
100
92
  rdoc_options: []
101
93
  require_paths:
102
94
  - lib
103
95
  required_ruby_version: !ruby/object:Gem::Requirement
104
96
  requirements:
105
- - - ! '>='
97
+ - - '>='
106
98
  - !ruby/object:Gem::Version
107
99
  version: '0'
108
- none: false
109
100
  required_rubygems_version: !ruby/object:Gem::Requirement
110
101
  requirements:
111
- - - ! '>='
102
+ - - '>='
112
103
  - !ruby/object:Gem::Version
113
104
  version: '0'
114
- none: false
115
105
  requirements: []
116
106
  rubyforge_project:
117
- rubygems_version: 1.8.24
107
+ rubygems_version: 2.0.0.rc.2
118
108
  signing_key:
119
- specification_version: 3
109
+ specification_version: 4
120
110
  summary: Members engine for Refinery CMS
121
111
  test_files:
122
112
  - spec/controllers/refinery/members/admin/members_controller_spec.rb
@@ -127,7 +117,4 @@ test_files:
127
117
  - spec/support/refinery_testing.rb
128
118
  - spec/views/refinery/members/admin/members/index_spec.rb
129
119
  - spec/views/refinery/members/admin/members/new_spec.rb
130
- - test/fixtures/members.yml
131
- - test/test_helper.rb
132
- - test/unit/member_test.rb
133
120
  has_rdoc:
@@ -1,227 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- refinerycms-members2 (0.3.0)
5
- refinerycms (~> 2.0.0)
6
- refinerycms-pages (~> 2.0.0)
7
-
8
- GEM
9
- remote: http://rubygems.org/
10
- specs:
11
- actionmailer (3.2.11)
12
- actionpack (= 3.2.11)
13
- mail (~> 2.4.4)
14
- actionpack (3.2.11)
15
- activemodel (= 3.2.11)
16
- activesupport (= 3.2.11)
17
- builder (~> 3.0.0)
18
- erubis (~> 2.7.0)
19
- journey (~> 1.0.4)
20
- rack (~> 1.4.0)
21
- rack-cache (~> 1.2)
22
- rack-test (~> 0.6.1)
23
- sprockets (~> 2.2.1)
24
- activemodel (3.2.11)
25
- activesupport (= 3.2.11)
26
- builder (~> 3.0.0)
27
- activerecord (3.2.11)
28
- activemodel (= 3.2.11)
29
- activesupport (= 3.2.11)
30
- arel (~> 3.0.2)
31
- tzinfo (~> 0.3.29)
32
- activeresource (3.2.11)
33
- activemodel (= 3.2.11)
34
- activesupport (= 3.2.11)
35
- activesupport (3.2.11)
36
- i18n (~> 0.6)
37
- multi_json (~> 1.0)
38
- acts_as_indexed (0.7.8)
39
- arel (3.0.2)
40
- awesome_nested_set (2.1.5)
41
- activerecord (>= 3.0.0)
42
- babosa (0.3.9)
43
- bcrypt-ruby (3.0.1)
44
- builder (3.0.4)
45
- capybara (1.1.4)
46
- mime-types (>= 1.16)
47
- nokogiri (>= 1.3.3)
48
- rack (>= 1.0.0)
49
- rack-test (>= 0.5.4)
50
- selenium-webdriver (~> 2.0)
51
- xpath (~> 0.1.4)
52
- childprocess (0.3.7)
53
- ffi (~> 1.0, >= 1.0.6)
54
- coffee-rails (3.2.2)
55
- coffee-script (>= 2.2.0)
56
- railties (~> 3.2.0)
57
- coffee-script (2.2.0)
58
- coffee-script-source
59
- execjs
60
- coffee-script-source (1.4.0)
61
- database_cleaner (0.7.2)
62
- devise (2.0.5)
63
- bcrypt-ruby (~> 3.0)
64
- orm_adapter (~> 0.0.3)
65
- railties (~> 3.1)
66
- warden (~> 1.1.1)
67
- diff-lcs (1.1.3)
68
- dragonfly (0.9.14)
69
- multi_json (~> 1.0)
70
- rack
71
- erubis (2.7.0)
72
- execjs (1.4.0)
73
- multi_json (~> 1.0)
74
- factory_girl (2.6.4)
75
- activesupport (>= 2.3.9)
76
- factory_girl_rails (1.7.0)
77
- factory_girl (~> 2.6.0)
78
- railties (>= 3.0.0)
79
- ffi (1.3.1)
80
- friendly_id (4.0.9)
81
- globalize3 (0.2.0)
82
- activemodel (>= 3.0.0)
83
- activerecord (>= 3.0.0)
84
- paper_trail (~> 2)
85
- hike (1.2.1)
86
- i18n (0.6.1)
87
- journey (1.0.4)
88
- jquery-rails (2.0.3)
89
- railties (>= 3.1.0, < 5.0)
90
- thor (~> 0.14)
91
- json (1.7.6)
92
- mail (2.4.4)
93
- i18n (>= 0.4.0)
94
- mime-types (~> 1.16)
95
- treetop (~> 1.4.8)
96
- mime-types (1.19)
97
- multi_json (1.5.0)
98
- nokogiri (1.5.6)
99
- orm_adapter (0.0.7)
100
- paper_trail (2.7.0)
101
- activerecord (~> 3.0)
102
- railties (~> 3.0)
103
- polyglot (0.3.3)
104
- rack (1.4.4)
105
- rack-cache (1.2)
106
- rack (>= 0.4)
107
- rack-ssl (1.3.3)
108
- rack
109
- rack-test (0.6.2)
110
- rack (>= 1.0)
111
- rails (3.2.11)
112
- actionmailer (= 3.2.11)
113
- actionpack (= 3.2.11)
114
- activerecord (= 3.2.11)
115
- activeresource (= 3.2.11)
116
- activesupport (= 3.2.11)
117
- bundler (~> 1.0)
118
- railties (= 3.2.11)
119
- railties (3.2.11)
120
- actionpack (= 3.2.11)
121
- activesupport (= 3.2.11)
122
- rack-ssl (~> 1.3.2)
123
- rake (>= 0.8.7)
124
- rdoc (~> 3.4)
125
- thor (>= 0.14.6, < 2.0)
126
- rake (10.0.3)
127
- rdoc (3.12)
128
- json (~> 1.4)
129
- refinerycms (2.0.9)
130
- bundler (~> 1.0)
131
- refinerycms-authentication (= 2.0.9)
132
- refinerycms-core (= 2.0.9)
133
- refinerycms-dashboard (= 2.0.9)
134
- refinerycms-images (= 2.0.9)
135
- refinerycms-pages (= 2.0.9)
136
- refinerycms-resources (= 2.0.9)
137
- refinerycms-authentication (2.0.9)
138
- devise (~> 2.0.0)
139
- orm_adapter (~> 0.0.7)
140
- refinerycms-core (= 2.0.9)
141
- refinerycms-core (2.0.9)
142
- acts_as_indexed (~> 0.7.7)
143
- awesome_nested_set (~> 2.1.3)
144
- coffee-rails (~> 3.2.1)
145
- friendly_id (~> 4.0.1)
146
- globalize3 (~> 0.2.0)
147
- jquery-rails (~> 2.0.0)
148
- rails (>= 3.1.3, < 3.3)
149
- sass-rails (~> 3.2.3)
150
- truncate_html (~> 0.5)
151
- uglifier (>= 1.0.3)
152
- will_paginate (~> 3.0.2)
153
- refinerycms-dashboard (2.0.9)
154
- refinerycms-core (= 2.0.9)
155
- refinerycms-images (2.0.9)
156
- dragonfly (~> 0.9.8)
157
- rack-cache (>= 0.5.3)
158
- refinerycms-core (= 2.0.9)
159
- refinerycms-pages (2.0.9)
160
- awesome_nested_set (~> 2.1.3)
161
- babosa (!= 0.3.6)
162
- refinerycms-core (= 2.0.9)
163
- seo_meta (~> 1.3.0)
164
- refinerycms-resources (2.0.9)
165
- dragonfly (~> 0.9.8)
166
- rack-cache (>= 0.5.3)
167
- refinerycms-core (= 2.0.9)
168
- refinerycms-testing (2.0.9)
169
- capybara (~> 1.1.2)
170
- database_cleaner (~> 0.7.2)
171
- factory_girl_rails (~> 1.7.0)
172
- refinerycms-core (= 2.0.9)
173
- rspec-rails (~> 2.11)
174
- rspec-core (2.12.2)
175
- rspec-expectations (2.12.1)
176
- diff-lcs (~> 1.1.3)
177
- rspec-mocks (2.12.2)
178
- rspec-rails (2.12.2)
179
- actionpack (>= 3.0)
180
- activesupport (>= 3.0)
181
- railties (>= 3.0)
182
- rspec-core (~> 2.12.0)
183
- rspec-expectations (~> 2.12.0)
184
- rspec-mocks (~> 2.12.0)
185
- rubyzip (0.9.9)
186
- sass (3.2.5)
187
- sass-rails (3.2.6)
188
- railties (~> 3.2.0)
189
- sass (>= 3.1.10)
190
- tilt (~> 1.3)
191
- selenium-webdriver (2.29.0)
192
- childprocess (>= 0.2.5)
193
- multi_json (~> 1.0)
194
- rubyzip
195
- websocket (~> 1.0.4)
196
- seo_meta (1.3.0)
197
- railties (>= 3.0.0)
198
- sprockets (2.2.2)
199
- hike (~> 1.2)
200
- multi_json (~> 1.0)
201
- rack (~> 1.0)
202
- tilt (~> 1.1, != 1.3.0)
203
- sqlite3 (1.3.7)
204
- thor (0.17.0)
205
- tilt (1.3.3)
206
- treetop (1.4.12)
207
- polyglot
208
- polyglot (>= 0.3.1)
209
- truncate_html (0.9.2)
210
- tzinfo (0.3.35)
211
- uglifier (1.3.0)
212
- execjs (>= 0.3.0)
213
- multi_json (~> 1.0, >= 1.0.2)
214
- warden (1.1.1)
215
- rack (>= 1.0)
216
- websocket (1.0.7)
217
- will_paginate (3.0.4)
218
- xpath (0.1.4)
219
- nokogiri (~> 1.3)
220
-
221
- PLATFORMS
222
- ruby
223
-
224
- DEPENDENCIES
225
- refinerycms-members2!
226
- refinerycms-testing
227
- sqlite3
@@ -1,11 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- # This model initially had no columns defined. If you add columns to the
4
- # model remove the '{}' from the fixture names and add the columns immediately
5
- # below each fixture, per the syntax in the comments below
6
- #
7
- one: {}
8
- # column: value
9
- #
10
- two: {}
11
- # column: value
@@ -1,3 +0,0 @@
1
- require "minitest/autorun"
2
-
3
- # TODO
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- describe Refinery::Member do
4
- subject { Refinery::Member.new }
5
-
6
- it { should_not be_valid }
7
- end