zfben_rails_assets 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/example/Gemfile CHANGED
@@ -5,3 +5,4 @@ gem 'sqlite3'
5
5
 
6
6
  gem 'zfben_rails_rake'
7
7
  gem 'zfben_rails_assets'
8
+
@@ -1,2 +1 @@
1
1
  //= require zff/spec
2
- //= require zff/core
@@ -4,7 +4,8 @@ gem 'haml-coderay'
4
4
  gem 'coderay_bash'
5
5
 
6
6
  # css
7
- gem 'compass'
7
+ gem 'sass-rails', :git => 'git://github.com/rails/sass-rails.git'
8
+ gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31'
8
9
 
9
10
  # js
10
11
  gem 'therubyracer'
@@ -1 +1 @@
1
- //= require zff/core/core
1
+ //= require_tree ./core
@@ -0,0 +1,5 @@
1
+ window.zff = {
2
+ config: {
3
+ load: '/assets'
4
+ }
5
+ };
@@ -0,0 +1,5 @@
1
+ //= require zff/lib/jquery/core
2
+
3
+ $.zff = window.zff;
4
+
5
+ delete(window.zff);
@@ -1,7 +1,3 @@
1
- //= require zff/lib/jquery/core
2
-
3
- var MODULE_PATH = '/assets';
4
-
5
1
  // load module
6
2
  // $.load(module_name, success_function)
7
3
  // $.load(module_name, ajax_options)
@@ -21,7 +17,7 @@ var MODULE_PATH = '/assets';
21
17
 
22
18
  if(typeof info[module] === 'undefined'){
23
19
  var defaults = {
24
- url: MODULE_PATH + '/' + module + '.js',
20
+ url: $.zff.config.load + '/' + module + '.js',
25
21
  dataType: 'script'
26
22
  };
27
23
 
@@ -1,2 +1,3 @@
1
- //= require zff/spec/qunit
1
+ //= require zff/core
2
+ //= require zff/lib/jquery/qunit
2
3
  //= require zff/spec/core
@@ -64,7 +64,8 @@ namespace :assets do
64
64
 
65
65
  desc 'install zfben_rails_assets'
66
66
  task :install => [:add_gem, :add_config, :add_assets] do
67
- sys 'bundle install'
67
+ p ''
68
+ p 'Please run `bundle install`'
68
69
  end
69
70
 
70
71
  desc 'uninstall zfben_rails_assets'
@@ -1,3 +1,3 @@
1
1
  module ZfbenRailsAssets
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -17,17 +17,4 @@ Gem::Specification.new do |s|
17
17
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
-
21
- # html
22
- s.add_dependency 'haml'
23
- s.add_dependency 'haml-coderay'
24
- s.add_dependency 'coderay_bash'
25
-
26
- # css
27
- s.add_dependency 'compass'
28
-
29
- # javascript
30
- s.add_dependency 'therubyracer'
31
- s.add_dependency 'coffee-script'
32
- s.add_dependency 'uglifier'
33
20
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: zfben_rails_assets
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben
@@ -11,84 +11,8 @@ bindir: bin
11
11
  cert_chain: []
12
12
 
13
13
  date: 2011-06-09 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: haml
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: haml-coderay
28
- prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
35
- type: :runtime
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: coderay_bash
39
- prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
46
- type: :runtime
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: compass
50
- prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
57
- type: :runtime
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
60
- name: therubyracer
61
- prerelease: false
62
- requirement: &id005 !ruby/object:Gem::Requirement
63
- none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: "0"
68
- type: :runtime
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
71
- name: coffee-script
72
- prerelease: false
73
- requirement: &id006 !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- version: "0"
79
- type: :runtime
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
82
- name: uglifier
83
- prerelease: false
84
- requirement: &id007 !ruby/object:Gem::Requirement
85
- none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: "0"
90
- type: :runtime
91
- version_requirements: *id007
14
+ dependencies: []
15
+
92
16
  description: ""
93
17
  email:
94
18
  - ben@zfben.com
@@ -110,9 +34,7 @@ files:
110
34
  - example/Rakefile
111
35
  - example/app/assets/images/rails.png
112
36
  - example/app/assets/javascripts/application.js
113
- - example/app/assets/javascripts/reset.sass
114
37
  - example/app/assets/javascripts/test.js
115
- - example/app/assets/javascripts/zff.js
116
38
  - example/app/assets/stylesheets/application.css
117
39
  - example/app/assets/stylesheets/test.css
118
40
  - example/app/controllers/application_controller.rb
@@ -169,16 +91,17 @@ files:
169
91
  - example/vendor/plugins/.gitkeep
170
92
  - lib/zfben_rails_assets.rb
171
93
  - lib/zfben_rails_assets/Gemfile
172
- - lib/zfben_rails_assets/assets/javascripts/zff.js
173
94
  - lib/zfben_rails_assets/assets/javascripts/zff/core.js
174
- - lib/zfben_rails_assets/assets/javascripts/zff/core/core.js
95
+ - lib/zfben_rails_assets/assets/javascripts/zff/core/0_config.js
96
+ - lib/zfben_rails_assets/assets/javascripts/zff/core/1_jquery.js
97
+ - lib/zfben_rails_assets/assets/javascripts/zff/core/2_load.js
175
98
  - lib/zfben_rails_assets/assets/javascripts/zff/lib/jquery/core.js
176
99
  - lib/zfben_rails_assets/assets/javascripts/zff/lib/jquery/grid.js
100
+ - lib/zfben_rails_assets/assets/javascripts/zff/lib/jquery/qunit.js
177
101
  - lib/zfben_rails_assets/assets/javascripts/zff/lib/jquery/ui.js
178
102
  - lib/zfben_rails_assets/assets/javascripts/zff/lib/underscore/core.js
179
103
  - lib/zfben_rails_assets/assets/javascripts/zff/spec.js
180
104
  - lib/zfben_rails_assets/assets/javascripts/zff/spec/core.js
181
- - lib/zfben_rails_assets/assets/javascripts/zff/spec/qunit.js
182
105
  - lib/zfben_rails_assets/assets/stylesheets/zff/lib/qunit.css
183
106
  - lib/zfben_rails_assets/assets/stylesheets/zff/reset.sass
184
107
  - lib/zfben_rails_assets/assets/stylesheets/zff/spec.css
@@ -1 +0,0 @@
1
- @import zff/reset
File without changes
File without changes