etabliocms_core 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,9 @@ require 'configatron'
3
3
  require 'redcloth'
4
4
  require 'jquery-rails'
5
5
  require 'jquery-ui-rails'
6
+ require 'acts_as_sluggy'
7
+ require 'extended_nested_set'
8
+ require 'textile_extension_pack'
6
9
 
7
10
  module EtabliocmsCore
8
11
 
@@ -1,3 +1,3 @@
1
1
  module EtabliocmsCore
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etabliocms_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-11 00:00:00.000000000 Z
12
+ date: 2012-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &3465500 !ruby/object:Gem::Requirement
16
+ requirement: &8553280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *3465500
24
+ version_requirements: *8553280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &3464920 !ruby/object:Gem::Requirement
27
+ requirement: &8600640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *3464920
35
+ version_requirements: *8600640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jquery-ui-rails
38
- requirement: &3464300 !ruby/object:Gem::Requirement
38
+ requirement: &8599920 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *3464300
46
+ version_requirements: *8599920
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: devise
49
- requirement: &3463500 !ruby/object:Gem::Requirement
49
+ requirement: &8599180 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 2.0.4
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *3463500
57
+ version_requirements: *8599180
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: configatron
60
- requirement: &3462600 !ruby/object:Gem::Requirement
60
+ requirement: &8598500 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *3462600
68
+ version_requirements: *8598500
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: RedCloth
71
- requirement: &3461340 !ruby/object:Gem::Requirement
71
+ requirement: &8597700 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - =
@@ -76,10 +76,43 @@ dependencies:
76
76
  version: 4.2.9
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *3461340
79
+ version_requirements: *8597700
80
+ - !ruby/object:Gem::Dependency
81
+ name: acts_as_sluggy
82
+ requirement: &8597160 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: *8597160
91
+ - !ruby/object:Gem::Dependency
92
+ name: extended_nested_set
93
+ requirement: &8596540 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: *8596540
102
+ - !ruby/object:Gem::Dependency
103
+ name: textile_extension_pack
104
+ requirement: &8595860 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: *8595860
80
113
  - !ruby/object:Gem::Dependency
81
114
  name: sqlite3
82
- requirement: &3476900 !ruby/object:Gem::Requirement
115
+ requirement: &8595160 !ruby/object:Gem::Requirement
83
116
  none: false
84
117
  requirements:
85
118
  - - ! '>='
@@ -87,7 +120,7 @@ dependencies:
87
120
  version: '0'
88
121
  type: :development
89
122
  prerelease: false
90
- version_requirements: *3476900
123
+ version_requirements: *8595160
91
124
  description: Small CMS
92
125
  email:
93
126
  - patrikjira@gmail.com
@@ -205,17 +238,6 @@ files:
205
238
  - public/markitup/h4.png
206
239
  - public/markitup/youtube.png
207
240
  - public/markitup/code.png
208
- - vendor/plugins/textile_extension_pack/lib/textile_extension_pack.rb
209
- - vendor/plugins/textile_extension_pack/init.rb
210
- - vendor/plugins/textile_extension_pack/README
211
- - vendor/plugins/acts_as_sluggy/lib/active_record/acts/sluggy.rb
212
- - vendor/plugins/acts_as_sluggy/init.rb
213
- - vendor/plugins/acts_as_sluggy/Rakefile
214
- - vendor/plugins/acts_as_sluggy/README
215
- - vendor/plugins/extended_nested_set/lib/extended_nested_set.rb
216
- - vendor/plugins/extended_nested_set/init.rb
217
- - vendor/plugins/extended_nested_set/Rakefile
218
- - vendor/plugins/extended_nested_set/README
219
241
  - vendor/assets/javascripts/markitup/jquery.markitup.pack.js
220
242
  - vendor/assets/javascripts/markitup/skins/simple/style.css
221
243
  - vendor/assets/javascripts/markitup/skins/simple/images/submenu.png
@@ -1,4 +0,0 @@
1
- acts_as_sluggy
2
- ============
3
-
4
- Actualizes slug in before_save and adds to_param.
File without changes
@@ -1 +0,0 @@
1
- ActiveRecord::Base.send :include, ActiveRecord::Acts::Sluggy
@@ -1,34 +0,0 @@
1
- module ActiveRecord
2
- module Acts
3
- module Sluggy
4
- def self.included(base)
5
- base.extend(ClassMethods)
6
- end
7
-
8
- module ClassMethods
9
-
10
- def has_slug(options = {})
11
- configuration = { :attribute => "title", :to_param => "slug", :to_url => "parameterize" }
12
- configuration.update(options) if options.is_a?(Hash)
13
-
14
- before_save :update_slug
15
- to_param = case configuration[:to_param]
16
- when :id_slug
17
- "id.to_s + '-' + slug"
18
- else
19
- configuration[:to_param]
20
- end
21
- class_eval <<-EOV
22
- def to_param
23
- #{to_param}
24
- end
25
-
26
- def update_slug
27
- self.slug = self.#{configuration[:attribute]}.#{configuration[:to_url]}
28
- end
29
- EOV
30
- end
31
- end
32
- end
33
- end
34
- end
@@ -1,4 +0,0 @@
1
- extended_nested_set
2
- ============
3
-
4
- Improves working with sibling and moving nodes for awesome_nested_set
File without changes
@@ -1 +0,0 @@
1
- ActiveRecord::Base.send :include, ExtendedNestedSet::InstanceMethods
@@ -1,37 +0,0 @@
1
- module ExtendedNestedSet
2
- module InstanceMethods
3
-
4
- def is_first_of_siblings?(parent = nil)
5
- if parent
6
- parent.lft == self.lft - 1
7
- else
8
- left_sibling.nil?
9
- end
10
- end
11
-
12
- def is_last_of_siblings?(parent = nil)
13
- if parent
14
- parent.rgt == self.rgt + 1
15
- else
16
- right_sibling.nil?
17
- end
18
- end
19
-
20
- def move_lower
21
- move_to_right_of(right_sibling) unless is_last_of_siblings?
22
- end
23
-
24
- def move_higher
25
- move_to_left_of left_sibling unless is_first_of_siblings?
26
- end
27
-
28
- def move_to_bottom
29
- move_to_right_of siblings.last unless is_last_of_siblings?
30
- end
31
-
32
- def move_to_top
33
- move_to_left_of siblings.first unless is_first_of_siblings?
34
- end
35
-
36
- end
37
- end
@@ -1,4 +0,0 @@
1
- textile_extension_pack
2
- ============
3
-
4
- Extends textile with some custom tags like images with colorbox support or google maps.
@@ -1,3 +0,0 @@
1
- require 'textile_extension_pack'
2
- RedCloth.send(:include, TextileExtensionPack::RegularExpressions)
3
- RedCloth::Formatters::HTML.send(:include, TextileExtensionPack::Tags)
@@ -1,30 +0,0 @@
1
- module TextileExtensionPack
2
- module Tags
3
-
4
- def icon(opts)
5
- img, text, url = opts[:text].split('|').map! { |str| str.strip }
6
- html = %Q{<figure>\n}
7
- html << %Q{<div class="image-wrapper #{opts[:class]}">\n}
8
- html << %Q{<div class="image-wrapper-inner">\n}
9
- html << %Q{<div class="image-wrapper-inner-inner">\n}
10
- html << %Q{ <a href="#{url}" title="#{text}">} if url.present?
11
- html << %Q{ <img src="#{img}" alt="#{text}" />}
12
- html << %Q{ </a>\n} if url.present?
13
- html << %Q{</div>\n}
14
- html << %Q{</div>\n}
15
- html << %Q{</div>\n}
16
- html << %Q{ <figcaption>#{text}</figcaption>\n} if text.present?
17
- html << %Q{</figure>\n}
18
- end
19
- end
20
-
21
- module RegularExpressions
22
- def tags(text)
23
- text.gsub!(/cleaner./, '<hr class="cleaner" />')
24
- text.gsub!(/columnstart./, '<div class="column">')
25
- text.gsub!(/columnend./, '</div>')
26
- text.gsub!(/decolumnize./, '</div>')
27
- text.gsub!(/columnize./, '<div class="columnized">')
28
- end
29
- end
30
- end