extjs 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/extjs.gemspec +2 -2
  3. data/lib/extjs.rb +37 -0
  4. data/lib/vendor.yml +14 -3
  5. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/extjs.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{extjs}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christocracy"]
12
- s.date = %q{2010-03-15}
12
+ s.date = %q{2010-03-16}
13
13
  s.default_executable = %q{extjs}
14
14
  s.description = %q{Gem for managing Ext JS resources including downloading from cachefly}
15
15
  s.email = %q{christocracy@gmail.com}
data/lib/extjs.rb CHANGED
@@ -3,10 +3,47 @@ require 'thor'
3
3
 
4
4
  module ExtJS
5
5
 
6
+ ROOT = File.dirname(__FILE__)
7
+
8
+ VENDOR_NAME = "extjs"
9
+
6
10
  class API < Thor
11
+
12
+ include Thor::Actions
13
+
14
+ def self.source_root
15
+ "."
16
+ end
17
+
18
+ #def self.source_root
19
+ # ExtJS::ROOT
20
+ #end
21
+
7
22
  desc "secretary", "Returns the asset secretary"
8
23
  def secretary
9
24
  say_status("ExtJS API")
10
25
  end
26
+
27
+ desc "install", "Install ExtJS Framework"
28
+ def install
29
+ # source_root not working here???
30
+ file = "#{File.dirname(__FILE__)}/vendor.yml"
31
+
32
+ empty_directory(ExtJS::VENDOR_NAME)
33
+ inside ExtJS::VENDOR_NAME do |dir|
34
+ copy_file(file, File.join(dir, "vendor.yml"))
35
+ end
36
+ end
37
+
38
+ desc "config", "Return vendor config"
39
+ def config
40
+ config = {}
41
+ begin
42
+ config = YAML.load_file(File.join(options[:root], ExtJS::VENDOR_NAME, "vendor.yml"))
43
+ rescue StandardError => e
44
+ puts "ExtJS::API Failed to load its vendor file #{destination_root}/#{ExtJS::NAME}/vendor.yml"
45
+ end
46
+ config
47
+ end
11
48
  end
12
49
  end
data/lib/vendor.yml CHANGED
@@ -1,8 +1,19 @@
1
- name: extjs
1
+ # Defines the build order of Ext MVC. Comments indicated with a hash.
2
+ # Each line denotes either a single file, or a directory glob. If a glob, all matching files are included
3
+ # (unless they have already been defined)
2
4
 
5
+ name: ext
6
+
7
+ version: 3.1.1
8
+
9
+ dependencies:
10
+
11
+ host: http://extjs.cachefly.net
12
+
3
13
  javascripts:
4
14
  - adapter/ext/ext-base.js
5
15
  - ext-all.js
6
-
16
+
7
17
  stylesheets:
8
- - resources/css/ext-all.css
18
+ - resources/css/ext-all.css
19
+
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Christocracy
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-15 00:00:00 -04:00
17
+ date: 2010-03-16 00:00:00 -04:00
18
18
  default_executable: extjs
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency