rail 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.yardopts +6 -0
- data/CHANGELOG.md +8 -1
- data/Gemfile +5 -0
- data/README.md +18 -1
- data/lib/rail/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f1c4f5ee81f202993f47ed82f6076060fbc1110
|
4
|
+
data.tar.gz: 1504841ca0e7db7d3045a2063ef8c6a565772842
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5368da0a014a3c93acdf90aa3553e84d6955ae5af500b529fcc3a45b324aedaa607c75bb3f6216aed49aa267ea765ce2ea3d6022ae542f91d413947d0f783429
|
7
|
+
data.tar.gz: 6b296d267fa2e1920b973546b7da455d9edc2cd010f647322a6392edc6f75ed9ad549886cb5ed57bafd1f71304bb114c5db3b95c8cbf04567f934f52143ba058
|
data/.yardopts
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,13 @@
|
|
1
|
+
## Rail 0.0.4 (June 26, 2014)
|
2
|
+
|
3
|
+
* Proper format of README making YARD happy.
|
4
|
+
|
1
5
|
## Rail 0.0.3 (June 24, 2014)
|
2
|
-
|
6
|
+
|
7
|
+
* Proper response headers when pipelining assets.
|
3
8
|
|
4
9
|
## Rail 0.0.2 (June 21, 2014)
|
10
|
+
|
5
11
|
* The first actual release. A happy union of
|
6
12
|
[CoffeeScript](http://coffeescript.org/),
|
7
13
|
[Haml](http://haml.info/),
|
@@ -9,4 +15,5 @@
|
|
9
15
|
[Uglifier](https://github.com/lautis/uglifier).
|
10
16
|
|
11
17
|
## Rail 0.0.1 (June 20, 2014)
|
18
|
+
|
12
19
|
* Less is more. A dummy release.
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,19 +1,23 @@
|
|
1
1
|
# Rail [![Gem Version](https://badge.fury.io/rb/rail.svg)](http://badge.fury.io/rb/rail) [![Dependency Status](https://gemnasium.com/IvanUkhov/rail.svg)](https://gemnasium.com/IvanUkhov/rail) [![Build Status](https://travis-ci.org/IvanUkhov/rail.svg?branch=master)](https://travis-ci.org/IvanUkhov/rail)
|
2
|
+
|
2
3
|
A light framework for front-end development inspired by
|
3
4
|
[Rails](http://rubyonrails.org/). It is solely based on
|
4
5
|
[Sprockets](https://github.com/sstephenson/sprockets) and includes the
|
5
6
|
following components out of the box:
|
7
|
+
|
6
8
|
* [CoffeeScript](http://coffeescript.org/) for JavaScript,
|
7
9
|
* [Haml](http://haml.info/) for HTML,
|
8
10
|
* [Sass](http://sass-lang.com/) for CSS, and
|
9
11
|
* [Uglifier](https://github.com/lautis/uglifier) for compression.
|
10
12
|
|
11
13
|
## Installation
|
14
|
+
|
12
15
|
First of all, include the gem in your `Gemfile`. Here is an example:
|
16
|
+
|
13
17
|
```ruby
|
14
18
|
source 'https://rubygems.org'
|
15
19
|
|
16
|
-
gem 'rail', '~> 0.0.
|
20
|
+
gem 'rail', '~> 0.0.4'
|
17
21
|
|
18
22
|
# The rest is optional
|
19
23
|
gem 'redcarpet', '~> 3.1.2' # your favorit complement to Haml
|
@@ -21,12 +25,14 @@ gem 'thin', '~> 1.6.2' # your favorit Web server
|
|
21
25
|
```
|
22
26
|
|
23
27
|
Then run [Bundler](http://bundler.io/):
|
28
|
+
|
24
29
|
```bash
|
25
30
|
$ bundle
|
26
31
|
```
|
27
32
|
|
28
33
|
Now we need to create three files: `config/application.rb`, `config.ru`, and
|
29
34
|
`Rakefile`. In `config/application.rb`:
|
35
|
+
|
30
36
|
```ruby
|
31
37
|
require 'bundler'
|
32
38
|
Bundler.require(:default)
|
@@ -38,6 +44,7 @@ end
|
|
38
44
|
```
|
39
45
|
|
40
46
|
In `config.ru`:
|
47
|
+
|
41
48
|
```ruby
|
42
49
|
require_relative 'config/application'
|
43
50
|
|
@@ -45,6 +52,7 @@ run MyProject::Application.new
|
|
45
52
|
```
|
46
53
|
|
47
54
|
In `Rakefile`:
|
55
|
+
|
48
56
|
```ruby
|
49
57
|
require_relative 'config/application'
|
50
58
|
|
@@ -54,10 +62,13 @@ MyProject::Application.load_tasks
|
|
54
62
|
Feel free to replace `MyProject` with the name of your project. That’s it.
|
55
63
|
|
56
64
|
## Usage
|
65
|
+
|
57
66
|
Rail closely follows Rails. If you know Rails, you already know Rail.
|
58
67
|
|
59
68
|
### Structure
|
69
|
+
|
60
70
|
Organize your code according to the following convention:
|
71
|
+
|
61
72
|
* `app/assets/javascripts` for scripts,
|
62
73
|
* `app/assets/stylesheets` for styles,
|
63
74
|
* `app/views` for templates,
|
@@ -68,7 +79,9 @@ In addition, `app/views/layouts/application.html.haml` will be used for
|
|
68
79
|
rendering the root of your application (both `/` and `/index.html`).
|
69
80
|
|
70
81
|
### Configuration
|
82
|
+
|
71
83
|
As with Rails, Rail is configured inside `config/application.rb`:
|
84
|
+
|
72
85
|
```ruby
|
73
86
|
module MyProject
|
74
87
|
class Application < Rail::Application
|
@@ -90,7 +103,9 @@ If `config.compress` is not specified, it is implicitly set to
|
|
90
103
|
`ENV['RAIL_ENV'] == 'production'`.
|
91
104
|
|
92
105
|
### Commands
|
106
|
+
|
93
107
|
Run [Rake](https://github.com/jimweirich/rake) to see the available tasks:
|
108
|
+
|
94
109
|
```bash
|
95
110
|
$ rake -T
|
96
111
|
rake assets # Precompile assets
|
@@ -107,12 +122,14 @@ Note that the server will try to serve from `public` first, so make sure you
|
|
107
122
|
delete the precompiled files when you change your code in `app`.
|
108
123
|
|
109
124
|
### Examples
|
125
|
+
|
110
126
|
Additional usage examples can be found
|
111
127
|
[here](https://github.com/IvanUkhov/type-works),
|
112
128
|
[here](https://github.com/IvanUkhov/photography), and
|
113
129
|
[here](https://github.com/IvanUkhov/liu-profile).
|
114
130
|
|
115
131
|
## Contributing
|
132
|
+
|
116
133
|
1. [Fork](https://help.github.com/articles/fork-a-repo) the project.
|
117
134
|
2. Create a branch for your feature (`git checkout -b awesome-feature`).
|
118
135
|
3. Implement your feature (`vim`).
|
data/lib/rail/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Ukhov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -118,6 +118,7 @@ extra_rdoc_files: []
|
|
118
118
|
files:
|
119
119
|
- ".gitignore"
|
120
120
|
- ".travis.yml"
|
121
|
+
- ".yardopts"
|
121
122
|
- CHANGELOG.md
|
122
123
|
- Gemfile
|
123
124
|
- LICENSE.txt
|
@@ -179,3 +180,4 @@ test_files:
|
|
179
180
|
- spec/project/config/application.rb
|
180
181
|
- spec/project/controller.rb
|
181
182
|
- spec/sass_spec.rb
|
183
|
+
has_rdoc:
|