view_assets 0.0.2 → 0.0.3
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.
- data/lib/tasks/view_assets_tasks.rake +2 -4
- data/lib/view_assets/version.rb +1 -1
- data/{README.rdoc → readme.md} +5 -9
- metadata +2 -2
@@ -3,14 +3,12 @@
|
|
3
3
|
# # Task goes here
|
4
4
|
# end
|
5
5
|
|
6
|
-
puts 'soemthing'
|
7
|
-
|
8
6
|
namespace :view_assets do
|
9
7
|
desc "Init view_assets framework"
|
10
8
|
task :init do
|
11
|
-
public_path =
|
9
|
+
public_path = Rails.public_path
|
12
10
|
%w(vendor lib app).map { |d| %w(javascripts stylesheets).map { |t| "#{public_path}/#{d}/#{t}" } }.flatten.each do |dir|
|
13
|
-
FileUtils.
|
11
|
+
FileUtils.mkdir_p dir
|
14
12
|
puts "\t\033[1;32mCreate\033[0m #{dir}"
|
15
13
|
if dir.include?('app')
|
16
14
|
fn_extension = dir.include?('javascripts') ? 'js' : 'css'
|
data/lib/view_assets/version.rb
CHANGED
data/{README.rdoc → readme.md}
RENAMED
@@ -1,18 +1,14 @@
|
|
1
|
-
ViewAssets
|
2
|
-
==========
|
1
|
+
# ViewAssets
|
3
2
|
|
4
|
-
Simple Introductin
|
5
|
-
------------------
|
3
|
+
## Simple Introductin
|
6
4
|
|
7
5
|
A new method to manage assets in a rails project.
|
8
6
|
|
9
7
|
Instead of using the default assets managing style in rails 3.2, this gem will introduce a new way to manage your assets. This is still a prototype, the fullfledged version will publish soon.
|
10
8
|
|
11
|
-
Conventions/Rules
|
12
|
-
-----------------
|
9
|
+
## Conventions/Rules
|
13
10
|
|
14
|
-
Usage
|
15
|
-
-----
|
11
|
+
## Usage
|
16
12
|
|
17
13
|
Include this gem in your `helpers/application_helper.rb`
|
18
14
|
|
@@ -30,4 +26,4 @@ Add some other codes in your `views/layouts/application.html.rb`
|
|
30
26
|
|
31
27
|
If some of your controllers use their own layout file, and following rules in ViewAssets, then you should add that code above too.
|
32
28
|
|
33
|
-
This project rocks and uses MIT-LICENSE.
|
29
|
+
This project rocks and uses MIT-LICENSE.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: view_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -62,7 +62,7 @@ files:
|
|
62
62
|
- lib/view_assets.rb
|
63
63
|
- MIT-LICENSE
|
64
64
|
- Rakefile
|
65
|
-
-
|
65
|
+
- readme.md
|
66
66
|
- test/dummy/app/assets/javascripts/application.js
|
67
67
|
- test/dummy/app/assets/javascripts/bar.js
|
68
68
|
- test/dummy/app/assets/javascripts/foo.js
|