rail 0.0.8 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed960041649216cdcaeb74ef9689f4e95036b95b
4
- data.tar.gz: 9f8d32c3ff9f03a87521958d217a0d12c9cde586
3
+ metadata.gz: 5e10fe429914299afc8694d5b6c76605b59e4879
4
+ data.tar.gz: 972d4781b14b2771f2b4f44a9c01ab0fed233737
5
5
  SHA512:
6
- metadata.gz: 1738d5b0b7a8725f7e9187edd6f6cc8c96815197167e9e2bf0d50245a27c8d2420807c01d211d0355bc14c98e67ddfccaf43d0dff2ccd93c20f8737cca10c759
7
- data.tar.gz: 04cc3ad49ca4dbd80fd4144de9d6684b48a007c303bd1fc0e01ef3657fddb9d158871919d738ecacbf40b02129613bcdaae3c66f93ebd419252809eb951461cd
6
+ metadata.gz: c6bc83d1667c1a76dbf1b67c71bbb4c479f2edfeefb1dd392e4c81600b72d5d14963e6e7f6394ce44f5aefe73d90b5076db31c64ef8d9a8e4bc1b86e72da9a1d
7
+ data.tar.gz: b69e7120142d1103da9c409f24b7628ed9329d5c7b10f327a0e3f8a079c937f5de57fb5824975513a19856a01337d439ce1c20eb45ae88c589f31d14dbdfbba8
data/.travis.yml CHANGED
@@ -1,10 +1,12 @@
1
1
  language: ruby
2
+ sudo: false
2
3
 
3
4
  rvm:
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1.0
5
+ - 2.3.1
7
6
 
8
7
  branches:
9
8
  only:
10
9
  - master
10
+
11
+ notifications:
12
+ email: false
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  group :doc do
4
- gem 'redcarpet', '~> 3.1'
4
+ gem 'redcarpet', '~> 3.3'
5
5
  gem 'yard', '~> 0.8'
6
6
  end
7
7
 
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2014 Ivan Ukhov
1
+ Copyright 2014–2016 Ivan Ukhov
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,12 +1,11 @@
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)
1
+ # Rail [![Version][version-img]][version-url] [![Dependency Status][depend-img]][depend-url] [![Build Status][build-img]][build-url]
2
2
 
3
- A light framework for front-end development inspired by
4
- [Rails](http://rubyonrails.org/). The sole purpose of Rail is to compile
5
- assets, and it includes the following components:
3
+ A light framework for front-end development inspired by [Rails][rails]. The sole
4
+ purpose of Rail is to compile assets, and it includes the following components:
6
5
 
7
- * [CoffeeScript](http://coffeescript.org/) for JavaScript,
8
- * [Haml](http://haml.info/) for HTML, and
9
- * [Sass](http://sass-lang.com/) for CSS.
6
+ * [CoffeeScript][coffeescript] for JavaScript,
7
+ * [Haml][haml] for HTML, and
8
+ * [Sass][sass] for CSS.
10
9
 
11
10
  ## Installation
12
11
 
@@ -15,34 +14,34 @@ assets, and it includes the following components:
15
14
  Install the gem:
16
15
 
17
16
  ```bash
18
- $ gem install rail
17
+ gem install rail
19
18
  ```
20
19
 
21
20
  Create a new project:
22
21
 
23
22
  ```bash
24
- $ rail new my_project
23
+ rail new my_project
25
24
  ```
26
25
 
27
- Run [Bundler](http://bundler.io/):
26
+ Run [Bundler][bundler]:
28
27
 
29
28
  ```bash
30
- $ cd ./my_project
31
- $ bundle
29
+ cd ./my_project
30
+ bundle
32
31
  ```
33
32
 
34
33
  Run the server:
35
34
 
36
35
  ```bash
37
- $ rake server
36
+ rake server
38
37
  ```
39
38
 
40
39
  Open `http://localhost:3000` in your browser, see “My Project,” and enjoy.
41
40
 
42
41
  Under the hood, the `rail new my_project` command creates a new folder in the
43
42
  current directory called `my_project` and initializes a basic Rail project
44
- inside that folder. In this case, `MyProject` is used as the class name of
45
- the project. Feel free to replace `my_project` with the name of your project.
43
+ inside that folder. In this case, `MyProject` is used as the class name of the
44
+ project. Feel free to replace `my_project` with the name of your project.
46
45
 
47
46
  ### Manual
48
47
 
@@ -54,14 +53,14 @@ source 'https://rubygems.org'
54
53
  gem 'rail'
55
54
  ```
56
55
 
57
- Run [Bundler](http://bundler.io/):
56
+ Run [Bundler][bundler]:
58
57
 
59
58
  ```bash
60
- $ bundle
59
+ bundle
61
60
  ```
62
61
 
63
- Create three files: `config/application.rb`, `config.ru`, and `Rakefile`.
64
- In `config/application.rb`:
62
+ Create three files: `config/application.rb`, `config.ru`, and `Rakefile`. In
63
+ `config/application.rb`:
65
64
 
66
65
  ```ruby
67
66
  require 'bundler'
@@ -106,12 +105,12 @@ Organize your code according to the following convention:
106
105
  * `public` for other static content.
107
106
 
108
107
  The templates in `app/views/layouts` have a special purpose. First,
109
- `application.html.haml` is used for rendering the root of your application
110
- (both `/` and `/index.html`). Second, any template in `layouts` is used as
111
- a layout for the templates in the subfolder of `views` that has the same name
112
- as the layout. For example, `articles/what-is-the-meaning-of-life.html.haml`
113
- will be rendered in the context of `layouts/articles.html.haml` provided
114
- that the latter has a placeholder for the former via the `yield` keyword.
108
+ `application.html.haml` is used for rendering the root of your application (both
109
+ `/` and `/index.html`). Second, any template in `layouts` is used as a layout
110
+ for the templates in the subfolder of `views` that has the same name as the
111
+ layout. For example, `articles/what-is-the-meaning-of-life.html.haml` will be
112
+ rendered in the context of `layouts/articles.html.haml` provided that the latter
113
+ has a placeholder for the former via the `yield` keyword.
115
114
 
116
115
  ### Configuration
117
116
 
@@ -134,22 +133,21 @@ module MyProject
134
133
  end
135
134
  ```
136
135
 
137
- If `config.compress` is not specified, it is implicitly set to
138
- `ENV['RAIL_ENV'] == 'production'`.
136
+ If `config.compress` is not specified, it is implicitly set to `ENV['RAIL_ENV']
137
+ == 'production'`.
139
138
 
140
139
  ### Commands
141
140
 
142
- Run [Rake](https://github.com/jimweirich/rake) to see the available tasks:
141
+ Run [Rake][rake] to see the available tasks:
143
142
 
144
143
  ```bash
145
- $ rake -T
144
+ rake -T
146
145
  rake assets # Precompile assets
147
146
  rake server # Start server
148
147
  ```
149
148
 
150
149
  `rake server` starts up a Web server; if none is specified in `Gemfile`,
151
- [WEBrick](http://ruby-doc.org/stdlib-2.1.2/libdoc/webrick/rdoc/WEBrick.html)
152
- will be fired up.
150
+ [WEBrick][webrick] will be fired up.
153
151
 
154
152
  `rake assets` compiles your assets and stores them in `public`. You should
155
153
  explicitly tell Rail what to compile as it was shown in the previous section.
@@ -159,16 +157,27 @@ delete the precompiled files when you change your code in `app`.
159
157
  ### Examples
160
158
 
161
159
  Additional usage examples can be found
162
- [here](https://github.com/IvanUkhov/opentype-works),
160
+ [here](https://github.com/IvanUkhov/opentype),
163
161
  [here](https://github.com/IvanUkhov/photography), and
164
- [here](https://github.com/IvanUkhov/liu-profile).
165
-
166
- ## Contributing
167
-
168
- 1. [Fork](https://help.github.com/articles/fork-a-repo) the project.
169
- 2. Create a branch for your feature (`git checkout -b awesome-feature`).
170
- 3. Implement your feature (`vim`).
171
- 4. Commit your changes (`git commit -am 'Implemented an awesome feature'`).
172
- 5. Push to the branch (`git push origin awesome-feature`).
173
- 6. [Create](https://help.github.com/articles/creating-a-pull-request)
174
- a new Pull Request.
162
+ [here](https://github.com/IvanUkhov/research).
163
+
164
+ ## Contribution
165
+
166
+ 1. Fork the project.
167
+ 2. Implement your idea.
168
+ 3. Open a pull request.
169
+
170
+ [build-img]: https://travis-ci.org/IvanUkhov/rail.svg?branch=master
171
+ [build-url]: https://travis-ci.org/IvanUkhov/rail
172
+ [depend-img]: https://gemnasium.com/IvanUkhov/rail.svg
173
+ [depend-url]: https://gemnasium.com/IvanUkhov/rail
174
+ [version-img]: https://badge.fury.io/rb/rail.svg
175
+ [version-url]: https://badge.fury.io/rb/rail
176
+
177
+ [bundler]: http://bundler.io
178
+ [coffeescript]: http://coffeescript.org
179
+ [haml]: http://haml.info
180
+ [rails]: http://rubyonrails.org
181
+ [rake]: https://github.com/ruby/rake
182
+ [sass]: http://sass-lang.com
183
+ [webrick]: http://ruby-doc.org/stdlib-2.1.2/libdoc/webrick/rdoc/WEBrick.html
@@ -12,7 +12,7 @@ module Rail
12
12
  'config.ru.erb',
13
13
  'Gemfile',
14
14
  'public/favicon.png',
15
- 'Rakefile.erb'
15
+ 'Rakefile.erb',
16
16
  ]
17
17
 
18
18
  def initialize(options)
data/lib/rail/pipeline.rb CHANGED
@@ -54,7 +54,7 @@ module Rail
54
54
  [
55
55
  File.join(root, 'app/assets/javascripts'),
56
56
  File.join(root, 'app/assets/stylesheets'),
57
- File.join(root, 'app/views')
57
+ File.join(root, 'app/views'),
58
58
  ]
59
59
  end
60
60
 
@@ -62,7 +62,7 @@ module Rail
62
62
  gem = Gem::Specification.find_by_name(name)
63
63
  [
64
64
  File.join(gem.gem_dir, 'lib/assets/javascripts'),
65
- File.join(gem.gem_dir, 'lib/assets/stylesheets')
65
+ File.join(gem.gem_dir, 'lib/assets/stylesheets'),
66
66
  ]
67
67
  end
68
68
  end
data/lib/rail/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rail
2
- VERSION = '0.0.8'
2
+ VERSION = '0.1.0'
3
3
  end
data/rail.gemspec CHANGED
@@ -6,8 +6,8 @@ require 'rail/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'rail'
8
8
  spec.version = Rail::VERSION
9
- spec.authors = [ 'Ivan Ukhov' ]
10
- spec.email = [ 'ivan.ukhov@gmail.com' ]
9
+ spec.authors = ['Ivan Ukhov']
10
+ spec.email = ['ivan.ukhov@gmail.com']
11
11
  spec.summary = 'A light framework for front-end development ' \
12
12
  'inspired by Rails'
13
13
  spec.description = 'A light framework for front-end development ' \
@@ -18,24 +18,19 @@ Gem::Specification.new do |spec|
18
18
  spec.files = `git ls-files -z`.split("\x0")
19
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
20
  spec.test_files = spec.files.grep(%r{^spec/})
21
- spec.require_paths = [ 'lib' ]
21
+ spec.require_paths = ['lib']
22
22
 
23
23
  spec.required_ruby_version = '>= 1.9.3'
24
24
 
25
- spec.add_dependency 'rake'
26
-
27
- spec.add_dependency 'rack', '~> 1.5'
28
-
29
- spec.add_dependency 'coffee-script', '~> 2.2'
25
+ spec.add_dependency 'coffee-script', '~> 2.4'
30
26
  spec.add_dependency 'haml', '~> 4.0'
31
- spec.add_dependency 'sass', '~> 3.3'
32
-
33
- spec.add_dependency 'uglifier', '~> 2.5'
34
-
35
- spec.add_development_dependency 'bundler', '~> 1.6'
36
-
37
- spec.add_development_dependency 'rspec', '~> 3.0'
38
-
39
- spec.add_development_dependency 'guard', '~> 2.6'
40
- spec.add_development_dependency 'guard-rspec', '~> 4.3'
27
+ spec.add_dependency 'rack', '~> 1.6'
28
+ spec.add_dependency 'rake', '~> 0'
29
+ spec.add_dependency 'sass', '~> 3.4'
30
+ spec.add_dependency 'uglifier', '~> 3.0'
31
+
32
+ spec.add_development_dependency 'bundler', '~> 1.12'
33
+ spec.add_development_dependency 'guard', '~> 2.14'
34
+ spec.add_development_dependency 'guard-rspec', '~> 4.7'
35
+ spec.add_development_dependency 'rspec', '~> 3.4'
41
36
  end
metadata CHANGED
@@ -1,155 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.0
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-07-29 00:00:00.000000000 Z
11
+ date: 2016-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: coffee-script
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '2.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '2.4'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rack
28
+ name: haml
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.5'
33
+ version: '4.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.5'
40
+ version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: coffee-script
42
+ name: rack
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.2'
47
+ version: '1.6'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.2'
54
+ version: '1.6'
55
55
  - !ruby/object:Gem::Dependency
56
- name: haml
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '4.0'
61
+ version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '4.0'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sass
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.3'
75
+ version: '3.4'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.3'
82
+ version: '3.4'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: uglifier
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2.5'
89
+ version: '3.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '2.5'
96
+ version: '3.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.6'
103
+ version: '1.12'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.6'
110
+ version: '1.12'
111
111
  - !ruby/object:Gem::Dependency
112
- name: rspec
112
+ name: guard
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '3.0'
117
+ version: '2.14'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '3.0'
124
+ version: '2.14'
125
125
  - !ruby/object:Gem::Dependency
126
- name: guard
126
+ name: guard-rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '2.6'
131
+ version: '4.7'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '2.6'
138
+ version: '4.7'
139
139
  - !ruby/object:Gem::Dependency
140
- name: guard-rspec
140
+ name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '4.3'
145
+ version: '3.4'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '4.3'
152
+ version: '3.4'
153
153
  description: A light framework for front-end development closely following the conventions
154
154
  of Ruby on Rails.
155
155
  email:
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  version: '0'
246
246
  requirements: []
247
247
  rubyforge_project:
248
- rubygems_version: 2.2.2
248
+ rubygems_version: 2.5.1
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: A light framework for front-end development inspired by Rails