rails-frontend 0.1.2 → 0.1.3

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
- MmNkNDJkZjBmYWU3MTMzNDdmY2RlYjhjYTdmYjI5ZmFiMDM4N2MxNg==
4
+ YTQzZWE4MDc1OWRiOGM4M2FiNmJkOGVhZTllYTlkOGYwYTBjNjZlYw==
5
5
  data.tar.gz: !binary |-
6
- MTU0ODQ2ZDRmMzIwNjUxMjUxOWYwZGEzY2QwNWNiNmZhY2MzZWZjOQ==
6
+ MzJmM2U3NGRlNmM4OTg2ZDE4MmU2ZjJhMjljNjVhMDAzZWZmMGY5Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzI4OWFhYjc0MGE3ZGEwYzQxNzcwOWVkMWRhODg1ZmJjYjAyYTdlZDMxMWFj
10
- MWEyMTIyYjg4ZTU4YTY2ZWY5MzlhZDM2ZGMwOGQzNmIwZjg1Mjc5MDY3ZjFi
11
- YzgwMGVlY2M2YmM5MmUzNzAzZWJkNjc2YTEyNzA0OGI1ODM2OTA=
9
+ YmE0Njg4MzNhZWJmOTJiOTU0YjBiNjJkMjRmYzk5NmJjN2NkNDQ0OGY2YzE1
10
+ NjRkMjhjZjdmMTVlMjc4MGU3ZTQwZTcwOWU1MDExNzZkNTA1Y2Q0MWM2OTA4
11
+ YTkzZDYyY2E4NjE5Yzk0M2VkZWVmNzc3ODBlMTcyM2EzODA0MWU=
12
12
  data.tar.gz: !binary |-
13
- ODdiYWNjNmZjM2FlNzMyNjUzMWFlNjg1MmZhZmY5Y2E5MTQzNzdlOTcwYmQz
14
- M2I5Njk1NTgxM2E4ZGE1MWM2NTAyYTU4MTIzYWExNGNmM2U3NzRhZTk4MmFh
15
- N2QzYjY0MDIzNzJmZTE4OTAwOTlkMzkxNTU5NTNkM2I1MmMxM2M=
13
+ OTI0MzFmODNkMWY0YTA4NjEyOGUyNmQ4YWY1MTk0OTNjMzg4ZDhkMjQ2NTEw
14
+ Y2JiOWRiY2QzODlkOTUzMjA2MzdkYmYzNWFlMzU2YTViMmQwYTE2Y2E0NWFj
15
+ NjE1ZWNjNzExMzgyNmMxNzhmYjNiY2ZkMjg4ZWU2NDU5MWU5Mjc=
@@ -0,0 +1,80 @@
1
+ # Rails Frontend
2
+
3
+ Build a static frontend app with rails.
4
+
5
+ ## Why ?
6
+
7
+ This was built after experiencing some frustrations with a 400 lines Gruntfile.
8
+ I wanted a framework to build static website with the following requirements:
9
+
10
+ - templating
11
+ - preprocessors
12
+ - minifying
13
+ - can build a static website
14
+ - dependency management
15
+ - live reload
16
+
17
+ It appears Rails has most of this, a lot of goodies and it's very mature.
18
+ A few parts were missing:
19
+
20
+ - build a static website: I added this via a simple rake task doing a `wget` (:trollface:)
21
+ - dependency management:
22
+ - Rails comes with bundler
23
+ - I added bower support to easily handle javascript/css dependencies (it's integrated into the rails assets pipeline)
24
+ - live reload: I added guard in the Gemfile and a basic Guardfile to handle most of my use cases.
25
+
26
+ I gave a talk about this at Paris.rb and will link to the slides ASAP.
27
+
28
+ ## Requirements
29
+
30
+ `bower`: To install it please go to the bower [homepage](http://bower.io).
31
+
32
+ `wget`: To install:
33
+
34
+ - Ubuntu: installed by default
35
+ - Archlinux: should be installed if not `pacman -S wget`
36
+ - OSX: `brew install wget`
37
+
38
+ ## Overview
39
+
40
+ To generate a new rails-frontend app:
41
+
42
+ ```
43
+ gem install rails-frontend
44
+ rails-frontend new webapp
45
+ ```
46
+
47
+ To launch a development server with LiveReload:
48
+
49
+ ```
50
+ guard start
51
+ ```
52
+
53
+ To build the static website:
54
+
55
+ ```
56
+ rake dist
57
+ ```
58
+
59
+ Your website, including all assets will be copied in `dist/`.
60
+
61
+ ## You should know
62
+
63
+ This is a prototype coded for a talk I gave at paris.rb.
64
+ If you're ~~crazy~~ adventurous enough to test this, please take the tiem to give me some feedback.
65
+
66
+ ## Contributing to rails-frontend
67
+
68
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
69
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
70
+ * Fork the project.
71
+ * Start a feature/bugfix branch.
72
+ * Commit and push until you are happy with your contribution.
73
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
74
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
75
+
76
+ ## Copyright
77
+
78
+ Copyright (c) 2014 Michael Bensoussan. See LICENSE.txt for
79
+ further details.
80
+
@@ -7,6 +7,11 @@ require 'active_support/core_ext/string'
7
7
 
8
8
  module RailsFrontend
9
9
  class CLI < Clamp::Command
10
+ option ["--version", "-v"], :flag, "Show version" do
11
+ puts "RailsFrontend #{RailsFrontend::VERSION}"
12
+ exit(0)
13
+ end
14
+
10
15
  subcommand "new", "Generate a new rails-frontend application" do
11
16
  parameter "NAME", "name of your application", attribute_name: :name
12
17
 
@@ -1,3 +1,3 @@
1
1
  module RailsFrontend
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: rails-frontend 0.1.2 ruby lib
5
+ # stub: rails-frontend 0.1.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rails-frontend"
9
- s.version = "0.1.2"
9
+ s.version = "0.1.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Michael Bensoussan"]
@@ -16,14 +16,14 @@ Gem::Specification.new do |s|
16
16
  s.executables = ["rails-frontend"]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
- "README.rdoc"
19
+ "README.md"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
23
  "Gemfile",
24
24
  "Gemfile.lock",
25
25
  "LICENSE.txt",
26
- "README.rdoc",
26
+ "README.md",
27
27
  "Rakefile",
28
28
  "bin/rails-frontend",
29
29
  "lib/rails-frontend.rb",
@@ -11,7 +11,7 @@ gem 'uglifier', '>= 1.3.0'
11
11
  gem 'coffee-rails', '~> 4.0.0'
12
12
  gem 'haml-rails'
13
13
  gem 'sass-rails'
14
- gem 'rails-frontend', '0.1.2'
14
+ gem 'rails-frontend', '0.1.3'
15
15
 
16
16
  gem 'thin'
17
17
 
@@ -1 +1,2 @@
1
- %h1 Hello World
1
+ %h1 Rails Frontend
2
+ = image_tag "troll.jpg"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bensoussan
@@ -129,13 +129,13 @@ executables:
129
129
  extensions: []
130
130
  extra_rdoc_files:
131
131
  - LICENSE.txt
132
- - README.rdoc
132
+ - README.md
133
133
  files:
134
134
  - .document
135
135
  - Gemfile
136
136
  - Gemfile.lock
137
137
  - LICENSE.txt
138
- - README.rdoc
138
+ - README.md
139
139
  - Rakefile
140
140
  - bin/rails-frontend
141
141
  - lib/rails-frontend.rb
@@ -1,19 +0,0 @@
1
- = rails-frontend
2
-
3
- Description goes here.
4
-
5
- == Contributing to rails-frontend
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2014 Michael Bensoussan. See LICENSE.txt for
18
- further details.
19
-