Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Rails Assets wroc_love.rb
Search
Tymon Tobolski
March 16, 2014
Programming
1
730
Rails Assets wroc_love.rb
wroc_love.rb 2014 lighting talk - the state and future of rails-assets.org
Tymon Tobolski
March 16, 2014
Tweet
Share
More Decks by Tymon Tobolski
See All by Tymon Tobolski
Only possible with Elixir - ubots Case Study
teamon
0
250
Fun with Elixir Macros
teamon
1
490
Elixir GenStage & Flow
teamon
2
1k
Elixir - Bydgoszcz Web Development Meetup
teamon
2
850
Sidekiq
teamon
1
160
Git - Monterail style
teamon
1
180
Angular replacements for jQuery-based libraries
teamon
1
350
Angular replacements for jQuery-based libraries
teamon
2
320
Rails Assets LRUG
teamon
0
7.5k
Other Decks in Programming
See All in Programming
私はどうやって技術力を上げたのか
yusukebe
42
17k
私達はmodernize packageに夢を見るか feat. go/analysis, go/ast / Go Conference 2025
kaorumuta
2
410
Advance Your Career with Open Source
ivargrimstad
0
240
LLMとPlaywright/reg-suitを活用した jQueryリファクタリングの実際
kinocoboy2
4
660
パフォーマンスチューニングで Web 技術を深掘り直す
progfay
18
4.8k
AIを活用したレシート読み取り機能の開発から得られた実践知 / AI Receipt Scan Practice
rockname
2
1.5k
育てるアーキテクチャ:戦い抜くPythonマイクロサービスの設計と進化戦略
fujidomoe
1
150
Serena MCPのすすめ
wadakatu
4
830
エンジニアとして高みを目指す、 利益を生み出す設計の考え方 / design-for-profit
minodriven
23
11k
プログラミングどうやる? ~テスト駆動開発から学ぶ達人の型~
a_okui
0
190
大規模アプリにおけるXcode Previews実用化までの道のり
ikesyo
0
970
麻雀点数計算問題生成タスクから学ぶ Single Agentの限界と Agentic Workflowの底力
po3rin
5
2k
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
Six Lessons from altMBA
skipperchong
28
4k
Faster Mobile Websites
deanohume
310
31k
How to Think Like a Performance Engineer
csswizardry
27
2k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
Into the Great Unknown - MozCon
thekraken
40
2.1k
A Tale of Four Properties
chriscoyier
160
23k
What's in a price? How to price your products and services
michaelherold
246
12k
4 Signs Your Business is Dying
shpigford
185
22k
Site-Speed That Sticks
csswizardry
11
870
The Straight Up "How To Draw Better" Workshop
denniskardys
237
140k
The Power of CSS Pseudo Elements
geoffreycrofte
78
6k
Transcript
Asset Management in Rails
State of the art • /vendor/assets • asset gems Ruby
World JavaScript World • /vendor/assets • bower
So what's the problem? • Asset Gems won't package themselves
• Asset Gems are always step behind official libraries • Unnecessary stuff like ruby helpers :-(
If only I could use bower components in ruby
+ rails-assets.org
source 'https://rubygems.org' +source 'https://rails-assets.org' ! gem 'rails' ! group :assets
do gem 'sass-rails' gem 'uglifier' gem 'coffee-rails' + gem 'rails-assets-bootstrap' + gem 'rails-assets-angular' + gem 'rails-assets-leaflet' end
application.js ! ! ! //= require_self +//= require bootstrap +//=
require angular +//= require leaflet //= require_tree . application.css ! ! /* *= require_self +*= require bootstrap +*= require leaflet *= require_tree . */
None
Is it any good? • No more vendor/assets :-) •
Proper versioning :-D • Dependency resolution x-D • Just works!
What's the catch? • Rails Assets is centralized solution •
Only tag releases are bundled to .gem files • Mixing assets definitions with gem definitions • Long gem names (rails-assets-jquery)
bower-rails source 'https://bower.io' ! asset "angular" asset "underscore", "~> 2.0"
! group :test, :development do asset "karma" end
application.js ! ! ! //= require_self +//= require bootstrap +//=
require angular +//= require leaflet //= require_tree . application.css ! ! /* *= require_self +*= require bootstrap +*= require leaflet *= require_tree . */
We're joining forces! rails-assets + bower-rails = <3
Please help us! Tymon Tobolski !
[email protected]
@iteamon Adam Stankiewicz
!
[email protected]
@sheerun GitHub: rails-assets/rails-assets