r_kit 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzU1Yzk2ZWRmZTUzYTM2ODI2MTdmM2FiZWM0YjkyMTQ5MmE2M2NjYw==
4
+ YmQ5YzhmNjU5YzI1YTMyZDNjM2YwZTQxOWZiZjM0MTAxNmIwZTNmMQ==
5
5
  data.tar.gz: !binary |-
6
- OGU5NzNlZWI1OGE1ZDZjMmMwNzkwYWNlNGM5N2NhYTE3ZTU3YjY5Nw==
6
+ ZWEzMmNlYTBjNmE2OTZjZmY0Nzg5OWM0OGFhNjA0YWJmYmQ4NGY4Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWMwMThjMTRjODYzODdhM2M5ZDQyNjE1Y2YyNGQ0YjYzNDE1YjM0MDU3YTY5
10
- ZTg5MjBlZjg4ZGZlMWNiM2Y3ZjE2YTgyZTlmMTBlZmE1MzgwZmQ0YzJiYTcx
11
- YTMyZmQ1NjBkYjE1NzkwNTQyNzk0MjI1MWE5OTZiOThjMmQ2OGY=
9
+ MDg5OGQ0NTY5N2JhZjdjNTUyNGZlNDRiNmU4NTZlNGQ2ODBjMjg2ZWEyZjg5
10
+ ZDY0MjIxMjhlZGQzOGY1YmQyZWM1NGE0Mzc3MTZjZWMxZTZmYTE0NTRlMDgw
11
+ YjY0MDEzMWI4MGY2Zjc5YzcxMGQxOTQ4NjNiZDdlODE3NDQ5ZTU=
12
12
  data.tar.gz: !binary |-
13
- NDU2ZDI1NDg5MjQ2NjNkODg5ZWQ2NjQwZjdmOWQ3MTFjM2Y1MTIzYjM5MDMx
14
- NTA1NDU0MzkzMmU3YmY5YTdhMjc3Nzc4NTIwMTM3ZTU1ZWQ0NzE5MzBmMDc2
15
- MjJkNDcyNWYzODBjMjljY2IzODAzNzI4YmNkZTdmZDk5NWI3MDM=
13
+ N2U4ZTQ4YTc0NmNiYWUyYjUzM2I4MmQ1N2ZmZWFhNDhlYTZjMDg3NTI3MTFi
14
+ YmUyZGI0NTlkM2M4YTkyNjQ3ZjZiZjAzODc1NTA0YjU1OWNhNmZkMmU3MTA4
15
+ MDU4YjA5MTFhZmEzMTFiOTdlYzU3NDNmOWZjZjg0M2IzNmFiYTI=
@@ -0,0 +1,2 @@
1
+ function RKit(){}
2
+ var r_kit = new RKit()
@@ -0,0 +1,14 @@
1
+ RKit.prototype.hasClass = function(element, class_name){
2
+ return element.className.match(new RegExp('(\\s|^)' + class_name + '(\\s|$)'));
3
+ }
4
+
5
+ RKit.prototype.addClass = function(element, class_name) {
6
+ if (!r_kit.hasClass(element, class_name)) element.className += " " + class_name;
7
+ }
8
+
9
+ RKit.prototype.removeClass = function(element, class_name) {
10
+ if (r_kit.hasClass(element, class_name)) {
11
+ var reg = new RegExp('(\\s|^)' + class_name + '(\\s|$)');
12
+ element.className = element.className.replace(class_name, ' ');
13
+ }
14
+ }
@@ -0,0 +1 @@
1
+ //= require ./dom_manipulation/class_manipulation
@@ -0,0 +1,3 @@
1
+ //= require r_kit/base
2
+ //= require r_kit/dom_manipulation
3
+
@@ -0,0 +1,4 @@
1
+ .display-none{ display: none; }
2
+ .display-block{ display: block; }
3
+ .display-inline{ display: inline; }
4
+ .display-inline-block{ display: inline-block; }
@@ -1,4 +1,5 @@
1
1
  html{
2
+ min-height: 100%;
2
3
  font: 16px "Helvetica Neue","Helvetica","Arial", sans-serif;
3
4
  -webkit-transform: translateZ(0); /* using GPU for render - webkit only */
4
5
  }
@@ -1,3 +1,4 @@
1
1
  @import "css/alignments";
2
+ @import "css/displays";
2
3
  @import "css/html";
3
4
  @import "css/typography";
data/lib/r_kit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RKit
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/r_kit.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
8
8
  gem.version = RKit::VERSION
9
9
  gem.authors = ["Thomas Petrachi"]
10
10
  gem.email = ["thomas.petrachi@vodeclic.com"]
11
- gem.description = %q{Basics css / js and rails helpers}
12
- gem.summary = %q{Provide CSS bases, JS classic functions and rails helpers}
11
+ gem.description = %q{Library for rails projects}
12
+ gem.summary = %q{Code library for rails : ruby core extend / rails helpers / css / js}
13
13
  gem.homepage = ""
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Petrachi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-09 00:00:00.000000000 Z
11
+ date: 2013-10-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Basics css / js and rails helpers
13
+ description: Library for rails projects
14
14
  email:
15
15
  - thomas.petrachi@vodeclic.com
16
16
  executables: []
@@ -23,6 +23,10 @@ files:
23
23
  - README.md
24
24
  - Rakefile
25
25
  - lib/assets/.gitkeep
26
+ - lib/assets/javascripts/r_kit.js
27
+ - lib/assets/javascripts/r_kit/base.js
28
+ - lib/assets/javascripts/r_kit/dom_manipulation.js
29
+ - lib/assets/javascripts/r_kit/dom_manipulation/class_manipulation.js
26
30
  - lib/assets/stylesheets/r_kit.scss
27
31
  - lib/assets/stylesheets/r_kit/animations.scss
28
32
  - lib/assets/stylesheets/r_kit/animations/fast_load.scss
@@ -30,6 +34,7 @@ files:
30
34
  - lib/assets/stylesheets/r_kit/components/btn.scss
31
35
  - lib/assets/stylesheets/r_kit/css.scss
32
36
  - lib/assets/stylesheets/r_kit/css/alignments.scss
37
+ - lib/assets/stylesheets/r_kit/css/displays.scss
33
38
  - lib/assets/stylesheets/r_kit/css/html.scss
34
39
  - lib/assets/stylesheets/r_kit/css/typography.scss
35
40
  - lib/assets/stylesheets/r_kit/css/typography/links.scss
@@ -68,5 +73,5 @@ rubyforge_project:
68
73
  rubygems_version: 2.1.6
69
74
  signing_key:
70
75
  specification_version: 4
71
- summary: Provide CSS bases, JS classic functions and rails helpers
76
+ summary: ! 'Code library for rails : ruby core extend / rails helpers / css / js'
72
77
  test_files: []