handy-css-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in normalize-rails.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1 @@
1
+ Public domain
data/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # HandyCSS-Rails
2
+
3
+ Integrates [handyCSS.css](https://github.com/kpvarma/handyCSS/) & [normalize.css](http://necolas.github.com/normalize.css/) with the rails asset pipeline.
4
+
5
+ HandyCSS is a bunch of helpful styles, developed with SCSS along with the famous Normalize.css which makes it easier to kick start any project. Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards.
6
+ Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing.
7
+ Normalize.css was written by Nicolas Gallagher and Jonathan Neal.
8
+
9
+ # For Rails 3.1+ only
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ gem 'handy-css-rails'
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ ## Usage
22
+
23
+
24
+ And then in your application.css
25
+
26
+ *= require_self
27
+ *= require handy-css-rails
28
+ *= require handy-css-rails.box
29
+ *= require handy-css-rails.backdrops
30
+ *= require_tree .
31
+
32
+ Add it before require_tree so that you can override any of its styles.
33
+
34
+ ## Contributing
35
+
36
+ 1. Fork it
37
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
38
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
39
+ 4. Push to the branch (`git push origin my-new-feature`)
40
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+ require 'open-uri'
4
+
5
+ desc "Download the latest handyCSS.css"
6
+ task :update do
7
+
8
+ # Updating handyCSS
9
+ url = "https://raw.github.com/kpvarma/handyCSS/master/css/handyCSS.css"
10
+ outputfile = "vendor/assets/stylesheets/handy-css-rails/handyCSS.css"
11
+
12
+ open(outputfile, 'wb') do |file|
13
+ file << open(url).read
14
+ end
15
+
16
+ # Updating box styles
17
+ url = "https://raw.github.com/kpvarma/handyCSS/master/css/handyCSS.box.css"
18
+ outputfile = "vendor/assets/stylesheets/handy-css-rails/handyCSS.box.css"
19
+
20
+ open(outputfile, 'wb') do |file|
21
+ file << open(url).read
22
+ end
23
+
24
+ # Updating backdrops styles
25
+ url = "https://raw.github.com/kpvarma/handyCSS/master/css/handyCSS.backdrops.css"
26
+ outputfile = "vendor/assets/stylesheets/handy-css-rails/handyCSS.backdrops.css"
27
+
28
+ open(outputfile, 'wb') do |file|
29
+ file << open(url).read
30
+ end
31
+
32
+ end
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/handy-css-rails/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Krishnaprasad Varma"]
6
+ gem.email = ["krshnaprsad@gmail.com"]
7
+ gem.description = %q{A rails gem to integrate handyCSS styles to your rails project.}
8
+ gem.summary = %q{HandyCSS is a bunch of helpful styles, developed with SCSS along with the famous Normalize.css which makes it easier to kick start any project. Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. }
9
+ gem.homepage = "https://github.com/kpvarma/handycss-rails"
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "handy-css-rails"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = HandyCss::Rails::VERSION
17
+
18
+ gem.add_development_dependency "rake"
19
+ end
@@ -0,0 +1,9 @@
1
+ module HandyCss
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ initializer "configure assets of handy-css-rails", :group => :all do |app|
5
+ app.config.assets.precompile += %w( handy-css-rails/*.css )
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ module HandyCss
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ require "normalize-rails/version"
2
+ require "normalize-rails/engine"
3
+
4
+ module Normalize
5
+ module Rails
6
+ # Your code goes here...
7
+ end
8
+ end