evil-blocks-rails 0.6.3 → 0.6.4
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.
- checksums.yaml +4 -4
- data/ChangeLog.md +3 -0
- data/README.md +8 -8
- data/lib/evil-blocks-rails.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b052fb80447a91d9b4e665d351e7090dc2f69844
|
4
|
+
data.tar.gz: 4dcb2d97bbdf7a58e8602a558f0afaef37fcc773
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 216663fee169088310079ef089d1a1907ee05daa2be547bd22b353747c0041d916d049ef53da08ceb8340369ce1aa2669752c0af73969ffdd88dae510c009cde
|
7
|
+
data.tar.gz: 683c8244b4beed6ef05d9b8c079c5c50cab99aec5dd691bf5faf9801b5486a177367b4e4b059e41eb3d48b3ab38691857187b12067af8fbee65e886fbac27b75
|
data/ChangeLog.md
CHANGED
data/README.md
CHANGED
@@ -4,16 +4,16 @@
|
|
4
4
|
|
5
5
|
Evil Block is a tiny JS framework for web pages. It is based on 4 ideas:
|
6
6
|
|
7
|
-
* **Split code to independent blocks.** “Divide and
|
7
|
+
* **Split code to independent blocks.** “Divide and conquer” is always good idea.
|
8
8
|
* **Blocks communicate by events.** Events is an easy and safe method
|
9
|
-
to
|
10
|
-
* **Separate JS and CSS.** You should use classes
|
11
|
-
by
|
12
|
-
fear to break
|
9
|
+
to keep complicated dependencies between controls very clean.
|
10
|
+
* **Separate JS and CSS.** You should only use classes for styles and bind JS
|
11
|
+
by special attribute selectors. This way you can update your styles without
|
12
|
+
fear to break any scripts.
|
13
13
|
* **Try not to render on client.** 2-way data-binding looks very cool,
|
14
|
-
but it has a [big price]. Most of web pages (
|
15
|
-
can render all HTML on server and use client rendering only in few
|
16
|
-
|
14
|
+
but it has a [big price]. Most of web pages (unlike web applications)
|
15
|
+
can render all HTML on server and use client rendering only in few places.
|
16
|
+
Without rendering we can have incredibly clean code and architecture.
|
17
17
|
|
18
18
|
See also [Evil Front], a pack of helpers for Ruby on Rails and Evil Blocks.
|
19
19
|
|
data/lib/evil-blocks-rails.rb
CHANGED
@@ -14,13 +14,13 @@ module EvilBlocks
|
|
14
14
|
|
15
15
|
# Add assets paths to standalone Sprockets environment.
|
16
16
|
def self.install(sprockets)
|
17
|
-
sprockets.
|
17
|
+
sprockets.paths << Pathname(__FILE__).dirname
|
18
18
|
end
|
19
19
|
|
20
20
|
if defined? ::Rails
|
21
21
|
class Engine < ::Rails::Engine
|
22
|
-
initializer 'evil-blocks' do
|
23
|
-
EvilBlocks.install(
|
22
|
+
initializer 'evil-blocks' do |app|
|
23
|
+
EvilBlocks.install(app.config.assets)
|
24
24
|
EvilBlocks.install_to_slim! if defined?(Slim::Parser)
|
25
25
|
end
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evil-blocks-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Sitnik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sprockets
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.
|
62
|
+
rubygems_version: 2.5.1
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: Tiny JS framework for web pages to split your app to independent blocks
|