brightcontent-core 2.0.31 → 2.0.33

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: b14c5e3e5868779efe399929d61b1c1b6370865d
4
- data.tar.gz: 042f496e3c714b54896d95ee48a02a173d29fc63
3
+ metadata.gz: 147c48a77582f6e93c10d4a563c282bd7fbbb765
4
+ data.tar.gz: c281ca212990a54336c0b0ce921abb45ed4a9989
5
5
  SHA512:
6
- metadata.gz: 567b8186b474923724f93b6a681fe72bad14432bd9ec2f6f04d4c171a6585a4e20e5a42318a1aca3f1ecf00f7bce3aeea119d0bc6bd9f08fd624cde9d9e85be3
7
- data.tar.gz: c55958d7cf3394301a00cf52c2d1866b838fcf1a31e88662f06516aa80baf36e38b16e696debf651a0d9a9d85fc756ed8e1406b3f8b31b0caa3ad369d5efd842
6
+ metadata.gz: 6956ed78f70cfb75f9d2f9cc0d90e7867c78862bee3d583d5a2e48b40645600a76a76a9de97044f68b16c43386e00b0ddc9bf950ac98f126e041be94de194ce0
7
+ data.tar.gz: 55a585f385b36d9fb3853ce4dc6aad023bb075f56efb4e2cad3ee5f58db1dc7cfd6c0b548e79623b60ebab5a56bf5f2d683fbba888a01c475f12ae2c01b1c0f5
@@ -11,9 +11,11 @@
11
11
  // GO AFTER THE REQUIRES BELOW.
12
12
  //
13
13
  //= require jquery
14
+ //= require jquery-ui
14
15
  //= require jquery_ujs
15
16
  //= require bootstrap-wysihtml5
16
17
  //= require bootstrap-wysihtml5/locales/nl-NL
17
18
  //= require brightcontent/attachments
19
+ //= require brightcontent/pages
18
20
  //= require brightcontent/custom
19
21
  //= require_tree .
@@ -15,13 +15,11 @@ $(document).ready(function(){
15
15
 
16
16
  $("#attachments").on("click", ".insert_image", function(e){
17
17
  e.preventDefault();
18
- console.log($(this).data("insertImage"));
19
18
  editor.composer.commands.exec("insertImage", { src: $(this).data("insertImage") });
20
19
  });
21
20
 
22
21
  $("#attachments").on("click", ".insert_link", function(e){
23
22
  e.preventDefault();
24
- console.log($(this).data());
25
23
  editor.composer.commands.exec("createLink", { href: $(this).data("insertUrl"), target: "_blank", rel: "nofollow", text: $(this).data("insertName") });
26
24
  });
27
25
 
File without changes
@@ -13,5 +13,7 @@
13
13
  *= require brightcontent/bootstrap-responsive.min
14
14
  *= require bootstrap-wysihtml5
15
15
  *= require brightcontent/main
16
+ *= require brightcontent/pages
17
+ *= require brightcontent/attachments
16
18
  *= require brightcontent/custom
17
19
  */
File without changes
@@ -36,5 +36,15 @@ module Brightcontent
36
36
  end
37
37
  helper_method :parent
38
38
 
39
+ def resource_item_path
40
+ [parent, resource]
41
+ end
42
+ helper_method :resource_item_path
43
+
44
+ def resource_index_path
45
+ [parent, resource_class]
46
+ end
47
+ helper_method :resource_index_path
48
+
39
49
  end
40
50
  end
@@ -13,7 +13,7 @@ module Brightcontent
13
13
  def link_for_scope(scope)
14
14
  case scope[:type]
15
15
  when :boolean
16
- polymorphic_url([parent, resource_class], scope[:as] => true)
16
+ polymorphic_url(resource_index_path, scope[:as] => true)
17
17
  end
18
18
  end
19
19
 
@@ -1,4 +1,4 @@
1
- <%= simple_form_for [parent, resource] do |form| -%>
1
+ <%= simple_form_for resource_item_path do |form| -%>
2
2
  <%= form.error_notification %>
3
3
 
4
4
  <div class="form-inputs">
@@ -11,7 +11,7 @@
11
11
  <%= form.button :submit, "Save and continue", :name => "commit_and_continue" %>
12
12
 
13
13
  <% unless resource.new_record? -%>
14
- <%= link_to "Delete", [parent, resource], :class => "btn btn-danger delete", :method => :delete, :data => { :confirm => 'Are you sure?' } %>
14
+ <%= link_to "Delete", resource_item_path, :class => "btn btn-danger delete", :method => :delete, :data => { :confirm => 'Are you sure?' } %>
15
15
  <% end -%>
16
16
 
17
17
  <% end -%>
@@ -1,6 +1,6 @@
1
1
  <div id="overview">
2
2
 
3
- <%= link_to "Create new #{resource_instance_name.to_s.humanize}", polymorphic_url([parent, resource_class], action: :new), class: "btn btn-primary btn-right" %>
3
+ <%= link_to "Create new #{resource_instance_name.to_s.humanize}", polymorphic_url(resource_index_path, action: :new), class: "btn btn-primary btn-right" %>
4
4
  <h1><%= resource_class.model_name.human.pluralize %></h1>
5
5
 
6
6
  <%= render "scope_filters" if scopes_configuration %>
@@ -15,9 +15,9 @@ Gem::Specification.new do |s|
15
15
  s.test_files = `git ls-files -- spec/*`.split("\n")
16
16
  s.require_paths = ["lib"]
17
17
 
18
- s.add_dependency "rails", "~> 3.2.13"
18
+ s.add_dependency "rails", ">= 3.2.13"
19
19
  s.add_dependency "jquery-rails"
20
- s.add_dependency "bcrypt-ruby", "3.0.0"
20
+ s.add_dependency "bcrypt-ruby", ">= 3.0.0"
21
21
  s.add_dependency "inherited_resources"
22
22
  s.add_dependency "has_scope"
23
23
  s.add_dependency "simple_form"
@@ -6,22 +6,23 @@ module Brightcontent
6
6
 
7
7
  def create
8
8
  if params["commit_and_continue"].present?
9
- create! { [parent, resource] }
9
+ create! { resource_item_path }
10
10
  else
11
- create! { [parent, resource_class] }
11
+ create! { resource_index_path }
12
12
  end
13
13
  end
14
14
 
15
15
  def update
16
16
  if params["commit_and_continue"].present?
17
- update! { [parent, resource] }
17
+ update! { resource_item_path }
18
18
  else
19
- update! { [parent, resource_class] }
19
+ update! { resource_index_path }
20
20
  end
21
21
  end
22
22
 
23
23
  def destroy
24
- destroy! { [parent, resource_class] }
24
+ destroy! { resource_index_path }
25
25
  end
26
+
26
27
  end
27
28
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.31
4
+ version: 2.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Developers at Brightin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-20 00:00:00.000000000 Z
11
+ date: 2013-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.2.13
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: 3.2.13
27
27
  - !ruby/object:Gem::Dependency
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: bcrypt-ruby
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: 3.0.0
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: 3.0.0
55
55
  - !ruby/object:Gem::Dependency
@@ -214,7 +214,6 @@ extra_rdoc_files: []
214
214
  files:
215
215
  - .gitignore
216
216
  - Gemfile
217
- - Gemfile.lock
218
217
  - Rakefile
219
218
  - app/assets/images/brightcontent/.gitkeep
220
219
  - app/assets/images/brightcontent/glyphicons-halflings-white.png
@@ -224,11 +223,14 @@ files:
224
223
  - app/assets/javascripts/brightcontent/brightcontent.js
225
224
  - app/assets/javascripts/brightcontent/custom.js
226
225
  - app/assets/javascripts/brightcontent/main.js
226
+ - app/assets/javascripts/brightcontent/pages.js
227
+ - app/assets/stylesheets/brightcontent/attachments.css
227
228
  - app/assets/stylesheets/brightcontent/bootstrap-responsive.min.css
228
229
  - app/assets/stylesheets/brightcontent/bootstrap.min.css
229
230
  - app/assets/stylesheets/brightcontent/brightcontent.css
230
231
  - app/assets/stylesheets/brightcontent/custom.css
231
232
  - app/assets/stylesheets/brightcontent/main.css
233
+ - app/assets/stylesheets/brightcontent/pages.css
232
234
  - app/controllers/brightcontent/admin_users_controller.rb
233
235
  - app/controllers/brightcontent/application_controller.rb
234
236
  - app/controllers/brightcontent/base_controller.rb
data/Gemfile.lock DELETED
@@ -1,156 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- brightcontent-core (2.0.31)
5
- bcrypt-ruby (= 3.0.0)
6
- bootstrap-wysihtml5-rails
7
- has_scope
8
- inherited_resources
9
- jquery-rails
10
- rails (~> 3.2.13)
11
- simple_form
12
- strong_parameters
13
- will_paginate
14
-
15
- GEM
16
- remote: http://rubygems.org/
17
- specs:
18
- actionmailer (3.2.13)
19
- actionpack (= 3.2.13)
20
- mail (~> 2.5.3)
21
- actionpack (3.2.13)
22
- activemodel (= 3.2.13)
23
- activesupport (= 3.2.13)
24
- builder (~> 3.0.0)
25
- erubis (~> 2.7.0)
26
- journey (~> 1.0.4)
27
- rack (~> 1.4.5)
28
- rack-cache (~> 1.2)
29
- rack-test (~> 0.6.1)
30
- sprockets (~> 2.2.1)
31
- activemodel (3.2.13)
32
- activesupport (= 3.2.13)
33
- builder (~> 3.0.0)
34
- activerecord (3.2.13)
35
- activemodel (= 3.2.13)
36
- activesupport (= 3.2.13)
37
- arel (~> 3.0.2)
38
- tzinfo (~> 0.3.29)
39
- activeresource (3.2.13)
40
- activemodel (= 3.2.13)
41
- activesupport (= 3.2.13)
42
- activesupport (3.2.13)
43
- i18n (= 0.6.1)
44
- multi_json (~> 1.0)
45
- addressable (2.3.5)
46
- arel (3.0.2)
47
- bcrypt-ruby (3.0.0)
48
- bootstrap-wysihtml5-rails (0.3.1.20)
49
- railties (>= 3.0)
50
- builder (3.0.4)
51
- capybara (2.1.0)
52
- mime-types (>= 1.16)
53
- nokogiri (>= 1.3.3)
54
- rack (>= 1.0.0)
55
- rack-test (>= 0.5.4)
56
- xpath (~> 2.0)
57
- diff-lcs (1.2.4)
58
- erubis (2.7.0)
59
- factory_girl (4.2.0)
60
- activesupport (>= 3.0.0)
61
- factory_girl_rails (4.2.1)
62
- factory_girl (~> 4.2.0)
63
- railties (>= 3.0.0)
64
- has_scope (0.5.1)
65
- hike (1.2.3)
66
- i18n (0.6.1)
67
- inherited_resources (1.4.0)
68
- has_scope (~> 0.5.0)
69
- responders (~> 0.9)
70
- journey (1.0.4)
71
- jquery-rails (3.0.4)
72
- railties (>= 3.0, < 5.0)
73
- thor (>= 0.14, < 2.0)
74
- json (1.8.0)
75
- launchy (2.3.0)
76
- addressable (~> 2.3)
77
- mail (2.5.4)
78
- mime-types (~> 1.16)
79
- treetop (~> 1.4.8)
80
- mime-types (1.23)
81
- mini_portile (0.5.1)
82
- multi_json (1.7.7)
83
- nokogiri (1.6.0)
84
- mini_portile (~> 0.5.0)
85
- polyglot (0.3.3)
86
- rack (1.4.5)
87
- rack-cache (1.2)
88
- rack (>= 0.4)
89
- rack-ssl (1.3.3)
90
- rack
91
- rack-test (0.6.2)
92
- rack (>= 1.0)
93
- rails (3.2.13)
94
- actionmailer (= 3.2.13)
95
- actionpack (= 3.2.13)
96
- activerecord (= 3.2.13)
97
- activeresource (= 3.2.13)
98
- activesupport (= 3.2.13)
99
- bundler (~> 1.0)
100
- railties (= 3.2.13)
101
- railties (3.2.13)
102
- actionpack (= 3.2.13)
103
- activesupport (= 3.2.13)
104
- rack-ssl (~> 1.3.2)
105
- rake (>= 0.8.7)
106
- rdoc (~> 3.4)
107
- thor (>= 0.14.6, < 2.0)
108
- rake (10.1.0)
109
- rdoc (3.12.2)
110
- json (~> 1.4)
111
- responders (0.9.3)
112
- railties (~> 3.1)
113
- rspec-core (2.14.3)
114
- rspec-expectations (2.14.0)
115
- diff-lcs (>= 1.1.3, < 2.0)
116
- rspec-mocks (2.14.1)
117
- rspec-rails (2.14.0)
118
- actionpack (>= 3.0)
119
- activesupport (>= 3.0)
120
- railties (>= 3.0)
121
- rspec-core (~> 2.14.0)
122
- rspec-expectations (~> 2.14.0)
123
- rspec-mocks (~> 2.14.0)
124
- simple_form (2.1.0)
125
- actionpack (~> 3.0)
126
- activemodel (~> 3.0)
127
- sprockets (2.2.2)
128
- hike (~> 1.2)
129
- multi_json (~> 1.0)
130
- rack (~> 1.0)
131
- tilt (~> 1.1, != 1.3.0)
132
- sqlite3 (1.3.7)
133
- strong_parameters (0.2.1)
134
- actionpack (~> 3.0)
135
- activemodel (~> 3.0)
136
- railties (~> 3.0)
137
- thor (0.18.1)
138
- tilt (1.4.1)
139
- treetop (1.4.14)
140
- polyglot
141
- polyglot (>= 0.3.1)
142
- tzinfo (0.3.37)
143
- will_paginate (3.0.4)
144
- xpath (2.0.0)
145
- nokogiri (~> 1.3)
146
-
147
- PLATFORMS
148
- ruby
149
-
150
- DEPENDENCIES
151
- brightcontent-core!
152
- capybara
153
- factory_girl_rails
154
- launchy
155
- rspec-rails
156
- sqlite3