jquery-image_reader 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Jquery::ImageReader
2
2
 
3
- TODO: Write a gem description
3
+ An assets only gem that provides helpful jQuery plugins for dropping and pasting image data.
4
4
 
5
5
  ## Installation
6
6
 
@@ -1,7 +1,12 @@
1
1
  require "jquery-image_reader/version"
2
2
 
3
+ if defined? ::Rails::Engine
4
+ require "jquery-image_reader/rails"
5
+ elsif defined? ::Sprockets
6
+ require "jquery-image_reader/sprockets"
7
+ end
8
+
3
9
  module Jquery
4
10
  module ImageReader
5
- # Your code goes here...
6
11
  end
7
12
  end
@@ -0,0 +1,7 @@
1
+ module Jquery
2
+ module ImageReader
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, "lib", "assets")
@@ -1,5 +1,5 @@
1
1
  module Jquery
2
2
  module ImageReader
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-image_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jquery-source
16
- requirement: &18049760 !ruby/object:Gem::Requirement
16
+ requirement: &8645760 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18049760
24
+ version_requirements: *8645760
25
25
  description: A couple of jquery plugins that allow easy binding of file drop and paste
26
26
  events specially targeting getting image data.
27
27
  email:
@@ -40,6 +40,8 @@ files:
40
40
  - lib/assets/javascripts/jquery.drop_image_reader.js
41
41
  - lib/assets/javascripts/jquery.paste_image_reader.js
42
42
  - lib/jquery-image_reader.rb
43
+ - lib/jquery-image_reader/rails.rb
44
+ - lib/jquery-image_reader/sprockets.rb
43
45
  - lib/jquery-image_reader/version.rb
44
46
  - source/index.html.haml
45
47
  - source/javascripts/jquery.drop_image_reader.js.coffee