joosy-rails 1.0.0.alpha.2 → 1.0.0.alpha.3

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: 54ad98d6fb23fa2f83b2f6f57a3f6835b270b289
4
- data.tar.gz: 6f472e036bb1bc2d98c18eb0b7899742946ebce5
3
+ metadata.gz: 4a8b9c0f802b879c17f1d69c1287d2066696922f
4
+ data.tar.gz: bbc6bfb8d528523ff26a3ab471ce31418b604b9d
5
5
  SHA512:
6
- metadata.gz: 1d17afb743f8852df262d4244ac09f513fd0c9ef98b3b6012236d942d6aa6327b7bbe729e373e94e1dd33584cf1a76d18b744b22f93fc092941e88f0c0e27e5d
7
- data.tar.gz: d6c86518ace45287eae139e83e759d5dd28bb65a932816afe35eddb08a05c1001ce9938608db6c50ef6080d68c802d3b33a6083627803d5d67d3edeab28b83da
6
+ metadata.gz: d0471a7cdd9b2641c0ecd59d1ef5fbf7c34e0431d074ef5264ec94cb341e570b6cd0f069e990b15216b56d25cbac22c6c1cb3ec7b18297037dc95dfec7d5bf60
7
+ data.tar.gz: fde08a4178ca82459f61657becaa776ad42a4fe517e2759b125d485a45c7b391834080502ba128cbaf6b7beb65f7750a222f1d51238cc64d43e01e1157566b85
@@ -1,5 +1,5 @@
1
1
  module Joosy
2
2
  module Rails
3
- VERSION = "1.0.0.alpha.2"
3
+ VERSION = "1.0.0.alpha.3"
4
4
  end
5
5
  end
data/lib/joosy/rails.rb CHANGED
@@ -3,24 +3,4 @@ require 'jquery-form-rails'
3
3
  require 'joosy'
4
4
 
5
5
  require 'joosy/rails/version'
6
- require 'joosy/rails/sprockets'
7
- require 'joosy/rails/engine'
8
-
9
- module Joosy
10
- module Rails
11
- # def self.resources(namespaces=nil)
12
- # predefined = {}
13
- # filtered_resources = Joosy::Rails::Engine.resources
14
- # if namespaces
15
- # namespaces = Array.wrap namespaces
16
- # filtered_resources = filtered_resources.select{|key, _| namespaces.include? key }
17
- # end
18
- # filtered_resources.each do |namespace, resources|
19
- # next unless resources && resources.size > 0
20
- # joosy_namespace = namespace.to_s.camelize.split('::').join('.')
21
- # predefined[joosy_namespace] = resources
22
- # end
23
- # predefined
24
- # end
25
- end
26
- end
6
+ require 'joosy/rails/engine'
@@ -10,6 +10,7 @@ module Joosy
10
10
  #= require jquery
11
11
  #= require jquery.form
12
12
  #= require sugar
13
+ #= require hamlcoffee
13
14
  COFFEE
14
15
 
15
16
  self.destination_root = ::Rails.root.join('app/assets/javascripts/').join(name || '')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joosy-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.2
4
+ version: 1.0.0.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Staal
@@ -106,12 +106,10 @@ files:
106
106
  - LICENSE.txt
107
107
  - README.md
108
108
  - Rakefile
109
- - app/helpers/joosy/preloaders_helper.rb
110
109
  - joosy-rails.gemspec
111
110
  - lib/joosy/generators.rb
112
111
  - lib/joosy/rails.rb
113
112
  - lib/joosy/rails/engine.rb
114
- - lib/joosy/rails/sprockets.rb
115
113
  - lib/joosy/rails/version.rb
116
114
  - lib/rails/generators/joosy/application_generator.rb
117
115
  - lib/rails/generators/joosy/base.rb
@@ -1,26 +0,0 @@
1
- module Joosy
2
- module PreloadersHelper
3
- def javascript_preload_tag(name)
4
- code = javascript_include_tag name
5
- resources = code.scan(/(?:href|src)=['"]([^'"]+)['"]/).flatten
6
-
7
- resources.map do |resource|
8
- uri = URI.parse resource
9
- path = ::Rails.root.to_s + "/public" + uri.path
10
- size = File.size(path) rescue 0
11
- [resource, size]
12
- end.to_json.html_safe
13
- end
14
-
15
- def require_joosy_preloader_for(app_asset, options={})
16
- preloader_asset = "joosy/preloaders/#{options[:preloader] || 'caching'}"
17
- force_preloader = options[:force] || false
18
-
19
- if force_preloader
20
- require_asset preloader_asset
21
- else
22
- require_asset Rails.env == 'development' ? app_asset : preloader_asset
23
- end
24
- end
25
- end
26
- end
@@ -1,15 +0,0 @@
1
- # module Joosy
2
- # module Rails
3
- # module Sprockets
4
- # module Asset
5
- # def dependencies_with_sizes
6
- # dependencies = to_a.map do |dependency|
7
- # [dependency.logical_path, dependency.to_s.length]
8
- # end
9
-
10
- # Hash[*dependencies.flatten]
11
- # end
12
- # end
13
- # end
14
- # end
15
- # end