slices 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f4968b6bc81c708989828fcbc0eb40ec6675c82
4
- data.tar.gz: 0d8ff3c4a2bd832371719d01cd949eb66f20f2ce
3
+ metadata.gz: f7f84f08cfcea6705c4e9eb9cf65a7b1c2bd5335
4
+ data.tar.gz: 6aae0d719917c901b85cfc564b2a3abfaa23b16e
5
5
  SHA512:
6
- metadata.gz: 1cad25d7585e79096c3751e1a75f0aa143810288541ce2856254d648c3a1f759a075c8fa224c5ea60c5f512e21b15951a870498061f1ecad8561c87afd790dde
7
- data.tar.gz: cc79cd57e8a0998b978ca0ea22ea9c5a66ba8d62ec34c913325f43981fad32ecca9db6df366e877aff6ea45db650a2b4c87cb840130725b9cc04951c13275934
6
+ metadata.gz: e9f168301ebfcf8f5aa7e411b44017b7e48c7141c01b0d428f3195157e5a2aeee7f1386bf54cc13881393bebf62098f9e556dfeb2c6c72e4c0df763a82e789ca
7
+ data.tar.gz: 92ed514b8243831cb27b8386a793b479687b4577354b712b9d3f3580d54cc0713d9786cc2b7b9c25c6eb5aa86a07d67b34b87531402ac3ced856e080c376f346
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.4 / 2014-06-06
2
+
3
+ * Remove omniauth
4
+
1
5
  # 1.0.3 / 2014-03-12
2
6
 
3
7
  * Put Page#as_json into its own module so it can be overridden in other modules
@@ -84,16 +84,12 @@ var EntriesBackbone = $.extend(true, {}, GenericBackbone, {
84
84
  value();
85
85
 
86
86
  fields = _.map(fields, function(key) {
87
- var string;
88
- if (key == 'name') {
89
- string = "<td class='"+key+"'><a href='<%= url %>'><%= "+key+" %></a></td>"
90
- } else if ( key != 'url' ) {
91
- string = "<td class='"+key+"'><%= "+key+" %></td>";
92
- }
93
- return string;
87
+ return slices.entryTemplate(key);
94
88
  });
89
+
95
90
  fields.push("<td><a href='#' class='delete'>Delete</a></td>");
96
- var template = _.template(fields.join(''));
91
+
92
+ var template = Handlebars.compile(fields.join(''));
97
93
  this.view_prototype = this.view_prototype.extend({template: template});
98
94
  this.collection.unbind('reset', this.set_view_template);
99
95
  },
@@ -2,9 +2,16 @@
2
2
  //
3
3
  // Within the attachmentComposer, define the html for the fields the composer
4
4
  // should display. Here, we’re assuming there’s a field on the slice called
5
- // `myAttachments`.
5
+ // `slides`.
6
6
  //
7
- // {{#attachmentComposer myAttachments}}
7
+ // {{#attachmentComposer field="slides"}}
8
+ // <textarea name="caption" class="full-height">{{caption}}</textarea>
9
+ // {{/attachmentComposer}}
10
+ //
11
+ // By default, attachment composer does not allow the same asset to be added
12
+ // twice. To allow duplicates, set the `allowDupes` option to true:
13
+ //
14
+ // {{#attachmentComposer field="slides" allowDupes=true}}
8
15
  // <textarea name="caption" class="full-height">{{caption}}</textarea>
9
16
  // {{/attachmentComposer}}
10
17
  //
@@ -23,7 +30,8 @@ Handlebars.registerHelper('attachmentComposer', function(options) {
23
30
  id : slices.fieldId(this, options.hash.field),
24
31
  collection : this[options.hash.field],
25
32
  fields : options.fn,
26
- autoAttach : true
33
+ autoAttach : true,
34
+ allowDupes : options.hash.allowDupes
27
35
  });
28
36
 
29
37
  // Return the placeholder. Don’t worry, this is replaced automatically later.
@@ -0,0 +1,41 @@
1
+ slices.ENTRY_TEMPLATES = {
2
+ name: function(key) {
3
+ return '<td class="name"><a href="{{url}}">{{name}}</a></td>';
4
+ },
5
+
6
+ url: function(key) {
7
+ return null;
8
+ },
9
+
10
+ _default: function(key) {
11
+ return '<td class="{{' + key + '}}">{{' + key + '}}</td>';
12
+ }
13
+ };
14
+
15
+
16
+ /*
17
+ * Registers an entry template function for the given key.
18
+ * The function takes `key` and should return a string.
19
+ * Template compilation happens elsewhere.
20
+ *
21
+ * @param {String} key
22
+ * @param {Function} fun
23
+ */
24
+
25
+ slices.registerEntryTemplate = function(key, fun) {
26
+ slices.ENTRY_TEMPLATES[key] = fun;
27
+ }
28
+
29
+ /*
30
+ * Returns the entry template for the given key.
31
+ *
32
+ * If not special templates are registered, the default
33
+ * template is returned.
34
+ *
35
+ * @return {String}
36
+ */
37
+
38
+ slices.entryTemplate = function(key) {
39
+ var fun = slices.ENTRY_TEMPLATES[key] || slices.ENTRY_TEMPLATES['_default'];
40
+ return fun(key);
41
+ }
@@ -0,0 +1,24 @@
1
+ slices.HOOKS = {};
2
+
3
+ /*
4
+ * Register a slices hook function.
5
+ *
6
+ * @param {String} key
7
+ * @param {Function} fun
8
+ */
9
+
10
+ slices.on = function(key, fun) {
11
+ slices.HOOKS[key] = slices.HOOKS[key] || [];
12
+ slices.HOOKS[key].push(fun);
13
+ };
14
+
15
+ /*
16
+ * Trigger hooks for key.
17
+ *
18
+ * @param {String} key
19
+ */
20
+
21
+ slices.trigger = function(key) {
22
+ var hooks = slices.HOOKS[key];
23
+ if (hooks) _.invoke(hooks, 'call');
24
+ };
@@ -0,0 +1,10 @@
1
+ Handlebars.registerHelper('moment', function(date, options) {
2
+ var m = moment(date);
3
+ var format = options.hash.format;
4
+
5
+ if (format && format !== 'calendar') {
6
+ return m.format(format);
7
+ } else {
8
+ return m.calendar();
9
+ }
10
+ });
@@ -302,7 +302,7 @@ slices.AttachmentComposerView = Backbone.View.extend({
302
302
  position = p ? p.index : this.collection.length;
303
303
 
304
304
  _.each(assets, function(asset) {
305
- if (this.alreadyContains(asset)) return;
305
+ if (!this.options.allowDupes && this.alreadyContains(asset)) return;
306
306
  this.collection.add({ asset: asset, asset_id: asset.get('id') }, { at: position });
307
307
  position += 1;
308
308
  }, this);
@@ -122,6 +122,9 @@ textarea,
122
122
  button {
123
123
  -webkit-appearance: none
124
124
  }
125
+ button {
126
+ outline: none;
127
+ }
125
128
 
126
129
  /* Master button styles*/
127
130
  input[type="submit"],
@@ -169,7 +172,8 @@ Submit Button
169
172
  */
170
173
 
171
174
  button[type="submit"],
172
- input[type="submit"] {
175
+ input[type="submit"],
176
+ .button.submit {
173
177
  background-color: hsl(107, 40%, 46%);
174
178
  background: -webkit-linear-gradient(
175
179
  hsl(106, 42%, 57%) 17%,
@@ -375,16 +379,16 @@ header ul li a {
375
379
  header nav {
376
380
  -webkit-font-smoothing: antialiased;
377
381
  }
378
- header nav ul li:first-child a {
382
+ #admin-nav-sitemaps a {
379
383
  background-image: url(<%= asset_path('slices/icon_sitemap.png') %>)
380
384
  }
381
- header nav ul li:nth-child(2) a {
385
+ #admin-nav-assets a {
382
386
  background-image: url(<%= asset_path('slices/icon_assets.png') %>)
383
387
  }
384
- header nav ul li:nth-child(3) a {
388
+ #admin-nav-snippets a {
385
389
  background-image: url(<%= asset_path('slices/icon_snippets.png') %>)
386
390
  }
387
- header nav ul li#admin-nav-administrators a {
391
+ #admin-nav-administrators a {
388
392
  background-image: url(<%= asset_path('slices/icon_admins.png') %>)
389
393
  }
390
394
  header ul li:first-child {
@@ -446,7 +450,8 @@ header ul li,
446
450
  margin-left: 7px
447
451
  }
448
452
  .toolbar .actions a,
449
- .toolbar .actions input {
453
+ .toolbar .actions input,
454
+ .toolbar .actions button {
450
455
  position: relative;
451
456
  top: 8px;
452
457
  padding-top: 5px;
@@ -2235,3 +2240,13 @@ Date Field
2235
2240
  .composer .ui-sortable-helper [data-action="remove"] {
2236
2241
  display: none;
2237
2242
  }
2243
+
2244
+ .page-history {
2245
+ color: #888;
2246
+ }
2247
+ .page-history li {
2248
+ margin: 0 0 .5em 0;
2249
+ }
2250
+ .page-history time {
2251
+ font-weight: normal;
2252
+ }
@@ -17,8 +17,10 @@ class Admin::PagesController < Admin::AdminController
17
17
  end
18
18
 
19
19
  def create
20
- @page = new_page_class.make(params[:page])
20
+ page_attrs = params[:page].merge(author: current_admin)
21
+ @page = new_page_class.make(page_attrs)
21
22
  @layouts = [['Default', 'default']]
23
+
22
24
  respond_with(:admin, @page) do |format|
23
25
  format.html { redirect_to admin_page_path(@page) }
24
26
  end
data/app/models/admin.rb CHANGED
@@ -31,11 +31,6 @@ class Admin
31
31
 
32
32
  devise :database_authenticatable, :recoverable, :rememberable,
33
33
  :trackable, :validatable
34
- devise :omniauthable, omniauth_providers: [:google_apps]
35
-
36
- def self.find_for_google_apps(email)
37
- where(email: email).first || where(email: /@#{Slices::Config.google_apps_domain}$/).first
38
- end
39
34
 
40
35
  def super?
41
36
  self.super_user == true
data/app/models/page.rb CHANGED
@@ -8,6 +8,8 @@ class Page
8
8
  include Slices::HasSlices
9
9
  include Slices::HasAttachments::PageInstanceMethods
10
10
 
11
+ DESCRIPTION_DEPRECATION_WARNING = "Page#description is now meta_description. If you are upgrading, run 'rake slices:migrate:meta_description' to update."
12
+
11
13
  field :name
12
14
  field :role # only relevant for virtual pages
13
15
  field :active, type: Boolean, default: false
@@ -16,6 +18,8 @@ class Page
16
18
  field :title
17
19
  field :has_content, type: Boolean, default: false
18
20
 
21
+ belongs_to :author, class_name: 'Admin'
22
+
19
23
  index :_keywords, background: true
20
24
 
21
25
  has_slices :slices
@@ -164,12 +168,12 @@ class Page
164
168
  # End of added
165
169
 
166
170
  def description
167
- ActiveSupport::Deprecation::warn "Page#description is now meta_description. If you are upgrading, run 'rake slices:migrate:meta_description' to update."
171
+ ActiveSupport::Deprecation::warn DESCRIPTION_DEPRECATION_WARNING
168
172
  meta_description
169
173
  end
170
174
 
171
175
  def description=(value)
172
- ActiveSupport::Deprecation::warn "Page#description is now meta_description. If you are upgrading, run 'rake slices:migrate:meta_description' to update."
176
+ ActiveSupport::Deprecation::warn DESCRIPTION_DEPRECATION_WARNING
173
177
  self.meta_description = value
174
178
  end
175
179
 
@@ -25,13 +25,3 @@
25
25
 
26
26
  </div>
27
27
 
28
- <% if Slices::Config.google_apps_domain %>
29
- <% content_for :js_head do %>
30
- $(document).bind("keydown", function(e) {
31
- if(e.keyCode == 187) {
32
- window.location = "<%= admin_omniauth_authorize_path(:google_apps) %>";
33
- }
34
- });
35
- <% end %>
36
- <% end %>
37
-
@@ -26,7 +26,9 @@
26
26
  </section>
27
27
  </div>
28
28
  <% content_for :js_head do %>
29
- $(function() {
30
29
  EntriesBackbone.boot('<%= @page.id %>', <%= raw @options.to_json %>);
31
- });
30
+ slices.trigger('entries:index');
31
+ <% @page.entry_types.each do |entry_type| %>
32
+ slices.trigger('entries:index:<%= entry_type %>');
33
+ <% end %>
32
34
  <% end %>
@@ -46,5 +46,6 @@
46
46
 
47
47
  <% content_for :js_head do %>
48
48
  <%= render "slices" %>
49
+ slices.trigger('pages:show');
49
50
  <% end %>
50
51
 
@@ -12,7 +12,7 @@
12
12
 
13
13
  <meta name="robots" content="noindex, nofollow">
14
14
  <script type="text/javascript">
15
- $(document).ready(function() {
15
+ $(function() {
16
16
  <%= yield :js_head %>
17
17
  });
18
18
  </script>
@@ -1,11 +1,7 @@
1
1
  require 'devise/orm/mongoid'
2
- require 'omniauth-google-apps'
3
2
 
4
3
  ActiveSupport::SecureRandom = SecureRandom
5
4
 
6
5
  Devise.setup do |config|
7
6
  config.mailer_sender = "hello@example.com"
8
- if Slices::Config.google_apps_domain
9
- config.omniauth :google_apps, domain: Slices::Config.google_apps_domain
10
- end
11
7
  end
@@ -0,0 +1 @@
1
+ I18n.enforce_available_locales = false
data/config/routes.rb CHANGED
@@ -9,7 +9,6 @@ Rails.application.routes.draw do
9
9
  devise_for :admin, :path => "admin", :controllers => {
10
10
  :passwords => "admin/auth/passwords",
11
11
  :sessions => "admin/auth/sessions",
12
- :omniauth_callbacks => "admin/auth/omniauth_callbacks",
13
12
  }
14
13
 
15
14
  namespace :admin do
@@ -1,7 +1,7 @@
1
1
  <!doctype html>
2
2
  <html>
3
3
  <head>
4
- <title><%= @page.title %></title>
4
+ <title><%= @page.name %></title>
5
5
  <meta name="description" content="<%= @page.meta_description %>">
6
6
  <%= stylesheet_link_tag *%w[
7
7
  application
@@ -8,7 +8,8 @@ module Slices
8
8
  id: id,
9
9
  permalink: permalink,
10
10
  slices: ordered_slices_for(options[:slice_embed]).map {|slice| slice.as_json },
11
- available_layouts: available_layouts
11
+ available_layouts: available_layouts,
12
+ author: author
12
13
  )
13
14
 
14
15
  keys = options[:only]
@@ -1,4 +1,4 @@
1
1
  module Slices
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
4
4
 
@@ -41,3 +41,9 @@
41
41
  </ul>
42
42
  </li>
43
43
 
44
+ <li>
45
+ <label>History</label>
46
+ <ul class="page-history">
47
+ <li>Created {{#if author}}by {{author.name}} {{/if}}<time datetime="{{created_at}}">{{moment created_at}}</time></li>
48
+ </ul>
49
+ </li>
metadata CHANGED
@@ -1,195 +1,181 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slices
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - With Associates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-12 00:00:00.000000000 Z
11
+ date: 2014-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bson_ext
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.7.1
20
20
  type: :runtime
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.7.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cocaine
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.3.2
34
34
  type: :runtime
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.3.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: devise
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 2.2.8
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
54
  version: 2.2.8
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: highline
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.6.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.6.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mongo
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: 1.7.1
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.7.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: mongoid
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: 2.5.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: 2.5.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: mongoid-paperclip
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: 0.0.8
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: 0.0.8
111
- - !ruby/object:Gem::Dependency
112
- name: omniauth-google-apps
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: 0.1.0
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: 0.1.0
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: paperclip
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - "~>"
115
+ - - ~>
130
116
  - !ruby/object:Gem::Version
131
117
  version: 3.1.4
132
118
  type: :runtime
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
- - - "~>"
122
+ - - ~>
137
123
  - !ruby/object:Gem::Version
138
124
  version: 3.1.4
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: rails
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - "~>"
129
+ - - ~>
144
130
  - !ruby/object:Gem::Version
145
- version: 3.2.16
131
+ version: 3.2.18
146
132
  type: :runtime
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
- - - "~>"
136
+ - - ~>
151
137
  - !ruby/object:Gem::Version
152
- version: 3.2.16
138
+ version: 3.2.18
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: redcarpet
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
- - - "~>"
143
+ - - ~>
158
144
  - !ruby/object:Gem::Version
159
145
  version: 3.0.0
160
146
  type: :runtime
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
- - - "~>"
150
+ - - ~>
165
151
  - !ruby/object:Gem::Version
166
152
  version: 3.0.0
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: RedCloth
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
- - - "~>"
157
+ - - ~>
172
158
  - !ruby/object:Gem::Version
173
159
  version: 4.2.9
174
160
  type: :runtime
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
- - - "~>"
164
+ - - ~>
179
165
  - !ruby/object:Gem::Version
180
166
  version: 4.2.9
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: stringex
183
169
  requirement: !ruby/object:Gem::Requirement
184
170
  requirements:
185
- - - "~>"
171
+ - - ~>
186
172
  - !ruby/object:Gem::Version
187
173
  version: 1.4.0
188
174
  type: :runtime
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
- - - "~>"
178
+ - - ~>
193
179
  - !ruby/object:Gem::Version
194
180
  version: 1.4.0
195
181
  - !ruby/object:Gem::Dependency
@@ -213,8 +199,6 @@ executables: []
213
199
  extensions: []
214
200
  extra_rdoc_files: []
215
201
  files:
216
- - CHANGELOG.md
217
- - README.md
218
202
  - app/assets/images/slices/ajax-loader.gif
219
203
  - app/assets/images/slices/asset-background.png
220
204
  - app/assets/images/slices/asset-spinner.gif
@@ -260,9 +244,12 @@ files:
260
244
  - app/assets/javascripts/slices/app/helpers/breadcrumbs.js
261
245
  - app/assets/javascripts/slices/app/helpers/composer.js
262
246
  - app/assets/javascripts/slices/app/helpers/date_field.js
247
+ - app/assets/javascripts/slices/app/helpers/entries.js
263
248
  - app/assets/javascripts/slices/app/helpers/get_value.js
249
+ - app/assets/javascripts/slices/app/helpers/hooks.js
264
250
  - app/assets/javascripts/slices/app/helpers/icon_upload_names.js.erb
265
251
  - app/assets/javascripts/slices/app/helpers/layout.js
252
+ - app/assets/javascripts/slices/app/helpers/moment.js
266
253
  - app/assets/javascripts/slices/app/helpers/sitemap.js
267
254
  - app/assets/javascripts/slices/app/helpers/slice_preview.js
268
255
  - app/assets/javascripts/slices/app/helpers/tagging.js
@@ -317,7 +304,6 @@ files:
317
304
  - app/controllers/admin/admin_controller.rb
318
305
  - app/controllers/admin/admins_controller.rb
319
306
  - app/controllers/admin/assets_controller.rb
320
- - app/controllers/admin/auth/omniauth_callbacks_controller.rb
321
307
  - app/controllers/admin/auth/passwords_controller.rb
322
308
  - app/controllers/admin/auth/sessions_controller.rb
323
309
  - app/controllers/admin/entries_controller.rb
@@ -376,18 +362,10 @@ files:
376
362
  - app/views/admin/snippets/index.html.erb
377
363
  - app/views/admin/snippets/update.html.erb
378
364
  - app/views/layouts/admin.html.erb
379
- - config/initializers/backtrace_silencers.rb
380
- - config/initializers/devise.rb
381
- - config/initializers/inflections.rb
382
- - config/initializers/mime_types.rb
383
- - config/initializers/secret_token.rb
384
- - config/initializers/session_store.rb
385
- - config/routes.rb
386
365
  - lib/ext/file_store_cache.rb
387
- - lib/generators/humans/USAGE
388
366
  - lib/generators/humans/humans_generator.rb
389
367
  - lib/generators/humans/templates/humans.txt
390
- - lib/generators/slice/USAGE
368
+ - lib/generators/humans/USAGE
391
369
  - lib/generators/slice/slice_generator.rb
392
370
  - lib/generators/slice/templates/main_fields.hbs
393
371
  - lib/generators/slice/templates/meta_fields.hbs
@@ -400,18 +378,17 @@ files:
400
378
  - lib/generators/slice/templates/show_slice.rb
401
379
  - lib/generators/slice/templates/slice.rb
402
380
  - lib/generators/slice/templates/slice_fields.hbs
403
- - lib/generators/slices/USAGE
381
+ - lib/generators/slice/USAGE
404
382
  - lib/generators/slices/install_generator.rb
405
383
  - lib/generators/slices/templates/application.html.erb
406
384
  - lib/generators/slices/templates/mongoid.yml
407
385
  - lib/generators/slices/templates/slices.rb
386
+ - lib/generators/slices/USAGE
408
387
  - lib/generators/templates/slices.rb
409
388
  - lib/mongo_search.rb
410
389
  - lib/paperclip_validator.rb
411
390
  - lib/rack_utf8_fix.rb
412
- - lib/sRGB.icc
413
391
  - lib/set_link_renderer.rb
414
- - lib/slices.rb
415
392
  - lib/slices/asset/maker.rb
416
393
  - lib/slices/asset/rename.rb
417
394
  - lib/slices/available_slices.rb
@@ -421,8 +398,8 @@ files:
421
398
  - lib/slices/generator_macros.rb
422
399
  - lib/slices/has_attachments.rb
423
400
  - lib/slices/has_slices.rb
424
- - lib/slices/i18n.rb
425
401
  - lib/slices/i18n/backend.rb
402
+ - lib/slices/i18n.rb
426
403
  - lib/slices/i18n_backend.rb
427
404
  - lib/slices/page_as_json.rb
428
405
  - lib/slices/paperclip.rb
@@ -438,6 +415,8 @@ files:
438
415
  - lib/slices/version.rb
439
416
  - lib/slices/will_paginate.rb
440
417
  - lib/slices/will_paginate_mongoid.rb
418
+ - lib/slices.rb
419
+ - lib/sRGB.icc
441
420
  - lib/standard_tree.rb
442
421
  - public/slices/templates/page_main.hbs
443
422
  - public/slices/templates/page_main_extra.hbs
@@ -446,6 +425,16 @@ files:
446
425
  - public/slices/templates/set_page_entry_content_main.hbs
447
426
  - public/slices/templates/set_page_entry_content_meta.hbs
448
427
  - public/slices/templates/slice.hbs
428
+ - config/routes.rb
429
+ - config/initializers/backtrace_silencers.rb
430
+ - config/initializers/devise.rb
431
+ - config/initializers/inflections.rb
432
+ - config/initializers/locales.rb
433
+ - config/initializers/mime_types.rb
434
+ - config/initializers/secret_token.rb
435
+ - config/initializers/session_store.rb
436
+ - CHANGELOG.md
437
+ - README.md
449
438
  homepage: http://slices.withassociates.com
450
439
  licenses:
451
440
  - MIT
@@ -456,17 +445,17 @@ require_paths:
456
445
  - lib
457
446
  required_ruby_version: !ruby/object:Gem::Requirement
458
447
  requirements:
459
- - - ">="
448
+ - - '>='
460
449
  - !ruby/object:Gem::Version
461
450
  version: '0'
462
451
  required_rubygems_version: !ruby/object:Gem::Requirement
463
452
  requirements:
464
- - - ">="
453
+ - - '>='
465
454
  - !ruby/object:Gem::Version
466
455
  version: 1.3.6
467
456
  requirements: []
468
457
  rubyforge_project: slices
469
- rubygems_version: 2.2.2
458
+ rubygems_version: 2.0.14
470
459
  signing_key:
471
460
  specification_version: 4
472
461
  summary: Slices CMS, from With Associates
@@ -1,15 +0,0 @@
1
- class Admin::Auth::OmniauthCallbacksController < ::Devise::OmniauthCallbacksController
2
- layout 'admin'
3
- helper 'admin/admin'
4
-
5
- def google_apps
6
- email = request.env['omniauth.auth']['info']['email']
7
- @admin = Admin.find_for_google_apps(email)
8
-
9
- if @admin.persisted?
10
- sign_in_and_redirect @admin, event: :authentication
11
- else
12
- redirect_to new_admin_session_path
13
- end
14
- end
15
- end