evil-blocks-rails 0.6.3 → 0.6.4

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: 423d641cf4d9b3b1a461863f6fdbc4a5acfddace
4
- data.tar.gz: 4af472ee7bde4983be945f298a086e44889d2780
3
+ metadata.gz: b052fb80447a91d9b4e665d351e7090dc2f69844
4
+ data.tar.gz: 4dcb2d97bbdf7a58e8602a558f0afaef37fcc773
5
5
  SHA512:
6
- metadata.gz: e74e8907f7d558ebfa12a218f7704853af228cf09da2f57997dfb4ce51481d8f69e3ec12b9e52a33c782bf7a66e862e13012db4696016e18d2026996e16383ad
7
- data.tar.gz: d03545bef4f349eddf6ad33296618a29f5e8a2d250d141fe4c5e975828658beaa877d0162cbb157cce7bef43cb670f7da8d48505cc96bcf253882da4287fe5f6
6
+ metadata.gz: 216663fee169088310079ef089d1a1907ee05daa2be547bd22b353747c0041d916d049ef53da08ceb8340369ce1aa2669752c0af73969ffdd88dae510c009cde
7
+ data.tar.gz: 683c8244b4beed6ef05d9b8c079c5c50cab99aec5dd691bf5faf9801b5486a177367b4e4b059e41eb3d48b3ab38691857187b12067af8fbee65e886fbac27b75
@@ -1,3 +1,6 @@
1
+ # 0.6.4
2
+ * Add Sprockets 3 support.
3
+
1
4
  # 0.6.3
2
5
  * Add Slim 3.0 support (by Andrey Krivko).
3
6
 
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 rule” is always good idea.
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 clean very complicated dependencies between controls.
10
- * **Separate JS and CSS.** You should use classes only for styles and bind JS
11
- by selectors with special attributes. So you can update your styles without
12
- fear to break your scripts.
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 (instead of web applications)
15
- can render all HTML on server and use client rendering only in few small
16
- places. Without rendering we can incredibly clean code and architecture.
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
 
@@ -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.append_path(Pathname(__FILE__).dirname)
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(Rails.application.assets)
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.3
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: 2014-12-23 00:00:00.000000000 Z
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.2.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