r_kit 0.1.4.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/assets/stylesheets/r_kit/css/alignments.scss +21 -3
- data/lib/assets/stylesheets/r_kit/css/grid.scss +1 -1
- data/lib/r_kit/decorator.rb +5 -3
- data/lib/r_kit/engine.rb +2 -2
- data/lib/r_kit/grid.rb +5 -3
- data/lib/r_kit/version.rb +1 -1
- data/lib/r_kit.rb +22 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWVlOGNkODQ1OTgwMzIxYWZkZTVjYjFmYzA2ZDA3NjVkMDI3ZjlmNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODBkNzVlZTM2YTEyNjBjYTZmNGJmNzIyMTg3NTNhMTMyYjRlOTMyOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Nzk4OWRiNmUzOTNiYTJmOWVmZjA5NDcwYjY4ZDZlYWFlZTAxNGU2YWY1MmY5
|
10
|
+
YjU3NWRmZWQ0YTVjYWRmNzc0OTc0NWRjYWRjZjIxOTdiMWIzNTg1NTFkZmIy
|
11
|
+
NDUwNTJmYzQxOTQ3Y2NlZmEwZjY2MTQyNmE5NjljN2FlODE3MTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2IzYzdlOGFlN2IyYzFjMGM1Mjk1ZjJhNjFkZjgzOWYyNTQzMWMxMjc5Yzli
|
14
|
+
Y2MyMDM5ZmI5NTkxNjdmNWYxZThhOWRiNzdjNTdiOThkOTIyOTk1OWFiMzI0
|
15
|
+
Yzc2Njg1NTYwODU5OTEzZWZmY2M0NTFjNTQxNzI5MDI5ZDMyY2M=
|
@@ -1,3 +1,21 @@
|
|
1
|
-
.text-left
|
2
|
-
.text-
|
3
|
-
|
1
|
+
.text-left,
|
2
|
+
.text-left p:not([class*=text-]),
|
3
|
+
[class*=text-] .text-left,
|
4
|
+
[class*=text-] .text-left p:not([class*=text-]) {
|
5
|
+
text-align: left;
|
6
|
+
}
|
7
|
+
|
8
|
+
.text-center,
|
9
|
+
.text-center p:not([class*=text-]),
|
10
|
+
[class*=text-] .text-center,
|
11
|
+
[class*=text-] .text-center p:not([class*=text-]) {
|
12
|
+
text-align: center;
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
.text-right,
|
17
|
+
.text-right p:not([class*=text-]),
|
18
|
+
[class*=text-] .text-right,
|
19
|
+
[class*=text-] .text-right p:not([class*=text-]) {
|
20
|
+
text-align: right;
|
21
|
+
}
|
data/lib/r_kit/decorator.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
module RKit::Decorator
|
2
|
-
|
3
|
-
|
2
|
+
def self.init!
|
3
|
+
require "r_kit/decorator/active_record_extension"
|
4
|
+
require "r_kit/decorator/base"
|
4
5
|
|
5
|
-
|
6
|
+
ActiveRecord::Base.extend ActiveRecordExtension
|
7
|
+
end
|
6
8
|
end
|
data/lib/r_kit/engine.rb
CHANGED
data/lib/r_kit/grid.rb
CHANGED
data/lib/r_kit/version.rb
CHANGED
data/lib/r_kit.rb
CHANGED
@@ -1,7 +1,27 @@
|
|
1
1
|
require "r_kit/version"
|
2
2
|
require "r_kit/engine"
|
3
3
|
|
4
|
+
require "r_kit/decorator"
|
5
|
+
require "r_kit/grid"
|
6
|
+
|
4
7
|
module RKit
|
5
|
-
|
6
|
-
|
8
|
+
class << self
|
9
|
+
def services_names
|
10
|
+
constants - [:VERSION, :Engine]
|
11
|
+
end
|
12
|
+
|
13
|
+
def services
|
14
|
+
services_names.map do |const_name|
|
15
|
+
const_get const_name
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def init_all!
|
20
|
+
services.each do |service|
|
21
|
+
if service.respond_to? :init!
|
22
|
+
service.init!
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
7
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Petrachi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Library for rails projects
|
14
14
|
email:
|