jquery-source 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/jquery-source.rb CHANGED
@@ -1,7 +1,13 @@
1
1
  require "jquery-source/version"
2
2
 
3
+ # Check for Rails or Sprockets
4
+ if defined? ::Rails::Engine
5
+ require "jquery-source/rails"
6
+ elsif defined? ::Sprockets
7
+ require "jquery-source/sprockets"
8
+ end
9
+
3
10
  module Jquery
4
11
  module Source
5
- # Your code goes here...
6
12
  end
7
13
  end
@@ -0,0 +1,7 @@
1
+ module Jquery
2
+ module Source
3
+ class Rails < Rails::Engine
4
+ # auto wire assets
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,2 @@
1
+ root_dir = File.expand_path(File.dirname(File.dirname(File.dirname(__FILE__))))
2
+ Sprockets.paths << File.join(root_dir, "vendor", "assets")
@@ -1,5 +1,5 @@
1
1
  module Jquery
2
2
  module Source
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,23 +1,28 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jquery-source
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.1
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.0.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Daniel X. Moore
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-31 00:00:00.000000000Z
12
+
13
+ date: 2012-06-01 00:00:00 Z
13
14
  dependencies: []
15
+
14
16
  description: An asset gem for jquery
15
- email:
17
+ email:
16
18
  - yahivin@gmail.com
17
19
  executables: []
20
+
18
21
  extensions: []
22
+
19
23
  extra_rdoc_files: []
20
- files:
24
+
25
+ files:
21
26
  - .gitignore
22
27
  - Gemfile
23
28
  - LICENSE
@@ -25,30 +30,36 @@ files:
25
30
  - Rakefile
26
31
  - jquery-source.gemspec
27
32
  - lib/jquery-source.rb
33
+ - lib/jquery-source/rails.rb
34
+ - lib/jquery-source/sprockets.rb
28
35
  - lib/jquery-source/version.rb
29
36
  - vendor/assets/javascripts/jquery.js
30
- homepage: ''
37
+ homepage: ""
31
38
  licenses: []
39
+
32
40
  post_install_message:
33
41
  rdoc_options: []
34
- require_paths:
42
+
43
+ require_paths:
35
44
  - lib
36
- required_ruby_version: !ruby/object:Gem::Requirement
45
+ required_ruby_version: !ruby/object:Gem::Requirement
37
46
  none: false
38
- requirements:
39
- - - ! '>='
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: "0"
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
52
  none: false
44
- requirements:
45
- - - ! '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: "0"
48
57
  requirements: []
58
+
49
59
  rubyforge_project:
50
- rubygems_version: 1.8.10
60
+ rubygems_version: 1.8.17
51
61
  signing_key:
52
62
  specification_version: 3
53
63
  summary: The source for jquery as a gem
54
64
  test_files: []
65
+