Skip to content

Commit 50a5e4f

Browse files
committed
Init Gem
0 parents  commit 50a5e4f

File tree

10 files changed

+1406
-0
lines changed

10 files changed

+1406
-0
lines changed

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
*.gem
2+
*.rbc
3+
.bundle
4+
.config
5+
.yardoc
6+
Gemfile.lock
7+
InstalledFiles
8+
_yardoc
9+
coverage
10+
doc/
11+
lib/bundler/man
12+
pkg
13+
rdoc
14+
spec/reports
15+
test/tmp
16+
test/version_tmp
17+
tmp

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
# Specify your gem's dependencies in angularjs-file-upload.gemspec
4+
gemspec

LICENSE.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2014 Marthyn Olthof
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Angularjs::File::Upload
2+
3+
A gem that uses [angular-file-upload](https://github.com/nervgh/angular-file-upload) as an asset in the Rails Asset Pipeline.
4+
5+
## Installation
6+
7+
Add this line to your application's Gemfile:
8+
9+
```ruby
10+
gem 'angularjs-file-upload', '~> 1.0.1'
11+
```
12+
13+
And then execute:
14+
15+
```
16+
$ bundle install
17+
```
18+
19+
Or install it yourself as:
20+
21+
```
22+
$ gem install angularjs-file-upload
23+
```
24+
25+
## Usage
26+
27+
Include it in your JavaScript manifest (e.g. `application.js`)
28+
29+
```javascript
30+
//= require angularjs-file-upload
31+
```
32+
\* *be sure that angular is required before angularjs-file-upload*
33+
34+
## Contributing
35+
36+
1. Fork it
37+
2. Create your feature branch (`git checkout -b my-new-feature`)
38+
3. Commit your changes (`git commit -m 'Add some feature'`)
39+
4. Push to the branch (`git push origin my-new-feature`)
40+
5. Create new Pull Request

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require "bundler/gem_tasks"

angularjs-file-upload.gemspec

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# coding: utf-8
2+
require File.expand_path('../lib/angularjs-file-upload/version', __FILE__)
3+
4+
Gem::Specification.new do |spec|
5+
spec.name = "angularjs-file-upload-rails"
6+
spec.version = AngularjsFileUpload::VERSION
7+
spec.authors = ["Marthyn Olthof"]
8+
spec.email = ["Marthyn@live.nl"]
9+
spec.description = %q{Angular File Upload is a module for the AngularJS framework.}
10+
spec.summary = %q{It supports drag-n-drop upload, upload progress, validation filters and a file upload queue.
11+
It supports native HTML5 uploads, but degrades to a legacy iframe upload method for older browsers.
12+
Works with any server side platform which supports standard HTML form uploads.}
13+
spec.homepage = "https://github.com/marthyn/angularjs-file-upload-rails"
14+
spec.license = "MIT"
15+
16+
spec.files = `git ls-files`.split($/)
17+
spec.require_paths = ["lib"]
18+
19+
spec.add_development_dependency "bundler", "~> 1.3"
20+
spec.add_development_dependency "rails", "~> 3.1"
21+
spec.add_development_dependency "rake"
22+
end

0 commit comments

Comments
 (0)