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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2QxYWU5YzY0NmZmM2M5ZWQxYmQyMjUwMDYwNGE0OWI4YmJmOWE5Yw==
4
+ OWVlOGNkODQ1OTgwMzIxYWZkZTVjYjFmYzA2ZDA3NjVkMDI3ZjlmNQ==
5
5
  data.tar.gz: !binary |-
6
- ZGM1NGEyNjY0YjdiMWYxZjgzOWFmMWMzOWY1MzQ2ZDU4ZTRhOTMxMA==
6
+ ODBkNzVlZTM2YTEyNjBjYTZmNGJmNzIyMTg3NTNhMTMyYjRlOTMyOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjI1ZmUzZmIxMDkwMjZiZTk2MjdmOWVhNWEwZDRiZDlkMjg3MGZlNTk1NzNl
10
- YzRlNzJkYTFmZWU3YjJlZDUzMDcxMmRhYWJhMjA3Y2RmYWQ3MmM0ZDZiNDgw
11
- MzJhNTEyN2ZhYzQ4MmIxYjgwZmU3ODJiMWRhOTc5YjMxYmQ2ODQ=
9
+ Nzk4OWRiNmUzOTNiYTJmOWVmZjA5NDcwYjY4ZDZlYWFlZTAxNGU2YWY1MmY5
10
+ YjU3NWRmZWQ0YTVjYWRmNzc0OTc0NWRjYWRjZjIxOTdiMWIzNTg1NTFkZmIy
11
+ NDUwNTJmYzQxOTQ3Y2NlZmEwZjY2MTQyNmE5NjljN2FlODE3MTQ=
12
12
  data.tar.gz: !binary |-
13
- NWM2M2IwODA1MTUyYTJjYjYyZDhiMzFjZWI4MWJiYzA0MjA2ODcyMzJlNjg5
14
- Y2Y2YmQ2Mjg0NWQ2YjMzNjY3NWMzYjU4Y2JjZTZmMGUzYjEyMDhmZjUyY2Vh
15
- OWU0NDk1NjMyZTgwNzk4NjEyYjZiYThjNTgzOWU3ZTI0ZDA0ZDY=
13
+ Y2IzYzdlOGFlN2IyYzFjMGM1Mjk1ZjJhNjFkZjgzOWYyNTQzMWMxMjc5Yzli
14
+ Y2MyMDM5ZmI5NTkxNjdmNWYxZThhOWRiNzdjNTdiOThkOTIyOTk1OWFiMzI0
15
+ Yzc2Njg1NTYwODU5OTEzZWZmY2M0NTFjNTQxNzI5MDI5ZDMyY2M=
@@ -1,3 +1,21 @@
1
- .text-left{ text-align: left; }
2
- .text-center{ text-align: center; }
3
- .text-right{ text-align: right; }
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
+ }
@@ -23,7 +23,7 @@
23
23
 
24
24
  @for $i from 1 through 12 {
25
25
  .col-#{$i} { @include col($base_width, $i); }
26
- .off-#{$i} { @include off($base_width, $i); }
26
+ [class*=col-].off-#{$i} { @include off($base_width, $i); }
27
27
  }
28
28
  }
29
29
  }
@@ -1,6 +1,8 @@
1
1
  module RKit::Decorator
2
- require "r_kit/decorator/active_record_extension"
3
- require "r_kit/decorator/base"
2
+ def self.init!
3
+ require "r_kit/decorator/active_record_extension"
4
+ require "r_kit/decorator/base"
4
5
 
5
- ActiveRecord::Base.extend ActiveRecordExtension
6
+ ActiveRecord::Base.extend ActiveRecordExtension
7
+ end
6
8
  end
data/lib/r_kit/engine.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module RKit
2
- class Engine < ::Rails::Engine
3
- end
2
+ class Engine < ::Rails::Engine
3
+ end
4
4
  end
data/lib/r_kit/grid.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  module RKit::Grid
2
- require "r_kit/grid/action_view_extension"
2
+ def self.init!
3
+ require "r_kit/grid/action_view_extension"
3
4
 
4
- ActionView::Base.send :include, ActionViewExtension
5
- end
5
+ ActionView::Base.send :include, ActionViewExtension
6
+ end
7
+ end
data/lib/r_kit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RKit
2
- VERSION = "0.1.4.2"
2
+ VERSION = "0.2.0"
3
3
  end
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
- require "r_kit/decorator"
6
- require "r_kit/grid"
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.1.4.2
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-01-30 00:00:00.000000000 Z
11
+ date: 2014-02-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Library for rails projects
14
14
  email: