underscore-source 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ module Underscore
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 Underscore
2
2
  module Source
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -1,5 +1,12 @@
1
1
  require "underscore-source/version"
2
2
 
3
+ # Sneaky require for Rails engine environment
4
+ if defined? ::Rails::Engine
5
+ require "underscore-source/rails"
6
+ elsif defined? ::Sprockets
7
+ require "underscore-source/sprockets"
8
+ end
9
+
3
10
  module Underscore
4
11
  module Source
5
12
  # Your code goes here...
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: underscore-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-31 00:00:00.000000000Z
12
+ date: 2012-06-01 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Let's have bundler manage our asset dependencies yo.
15
15
  email:
@@ -24,6 +24,8 @@ files:
24
24
  - README.md
25
25
  - Rakefile
26
26
  - lib/underscore-source.rb
27
+ - lib/underscore-source/rails.rb
28
+ - lib/underscore-source/sprockets.rb
27
29
  - lib/underscore-source/version.rb
28
30
  - underscore-source.gemspec
29
31
  - vendor/assets/javascripts/underscore.js