modulejs-rails 1.9.0.0 → 1.9.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 680453523ff2c13c73f0fc272511f74ebdbcd048
4
- data.tar.gz: 73747c46addda75bea1f231fd20404b03825a70a
3
+ metadata.gz: 8c14e6cccafeecc903bdc35e560eda5e08b52978
4
+ data.tar.gz: d75aaa044ea61834726c9d9b68ec6d6e98bb3733
5
5
  SHA512:
6
- metadata.gz: b1aedf2e6c47437b868c8744b09f3f439ffb62bd35fd17c0bdbd44af19c4cedfc507798847eebb5e6ae0e586fd733653294c132b28c5e8c5cfc5a8dc9ed903e7
7
- data.tar.gz: e38233c68f9161c56fca77310911ba248f5843f942b5089723905f1af19599725515d8e47fc28e5ca4685e8f45024bd34e7c657ea2b3a02a3398a68046ec48b5
6
+ metadata.gz: 02a045af537fe95152f30d07a35bcbea50326a1fcc8fc9164445b8fe6e3e0bdbd31f2b08035cc9b873804e1ffbc014f56d69187978aa407f8291eb17880fd5f8
7
+ data.tar.gz: ff9ba19fae7844e761bb072a541c942376839756fe74698531df583ed58a5a01ccdc38cbd392dcc43a444e69e5dbd621bc63edd07b1a391abf3f1e56c4a4d3d9
@@ -1,6 +1,7 @@
1
- Copyright (c) 2014 Ales Vilchytski
1
+ The MIT License (MIT)
2
2
 
3
- MIT License
3
+ Copyright (c) 2015 Lars Jung (http://larsjung.de)
4
+ Copyright (c) 2015 Ales Vilchytski
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining
6
7
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,41 +1,66 @@
1
- # modulejs for Ruby on Rails 4 Assets Pipeline
2
-
3
- Lightweight JavaScript module system (http://larsjung.de/modulejs/).
4
- Inspired by article: https://www.reinteractive.net/posts/172-a-better-way-to-modularise-your-js-in-rails
5
-
6
- When you want to use modules in JavaScript you should solve next problems:
7
-
8
- 1. Load scripts with dependencies, usually in big concatenated JavaScript file
9
- 2. Execute scripts and dependencies in proper order
10
-
11
- Rails solves problem 1 by Assets Pipeline, modulejs solves problem 2.
12
-
13
- ## Installation
14
-
15
- Add this line to your application's Gemfile:
16
-
17
- ```ruby
18
- gem 'modulejs-rails'
19
- ```
20
-
21
- And then execute:
22
-
23
- $ bundle install
24
-
25
- Or install it yourself as:
26
-
27
- $ gem install modulejs-rails
28
-
29
- ## Usage
30
-
31
- Require in Assets Pipeline manifest
32
-
33
- //= require 'modulejs'
34
-
35
- ## Contributing
36
-
37
- 1. Fork it ( https://github.com/ales-vilchytski/modulejs-rails/fork )
38
- 2. Create your feature branch (`git checkout -b my-new-feature`)
39
- 3. Commit your changes (`git commit -am 'Add some feature'`)
40
- 4. Push to the branch (`git push origin my-new-feature`)
41
- 5. Create a new Pull Request
1
+ # modulejs for Ruby on Rails 4 Assets Pipeline
2
+
3
+ Lightweight JavaScript module system (http://larsjung.de/modulejs/).
4
+ Inspired by article: https://www.reinteractive.net/posts/172-a-better-way-to-modularise-your-js-in-rails
5
+
6
+ When you want to use modules in JavaScript you should solve next problems:
7
+
8
+ 1. Load scripts with dependencies, usually in big concatenated JavaScript file
9
+ 2. Execute scripts and dependencies in proper order
10
+
11
+ Rails solves problem #1 by Assets Pipeline, modulejs solves problem #2.
12
+
13
+ ## Installation
14
+
15
+ Add this line to your application's Gemfile:
16
+
17
+ ```ruby
18
+ gem 'modulejs-rails'
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ $ bundle install
24
+
25
+ Or install it yourself as:
26
+
27
+ $ gem install modulejs-rails
28
+
29
+ ## Usage
30
+
31
+ Require _modulejs_ in Assets Pipeline manifest
32
+
33
+ //= require 'modulejs'
34
+
35
+ Define your own modules (_this_ in functions points to _window_):
36
+
37
+ ```javascript
38
+ modulejs.define('bar', ['foo'], function (foo) {
39
+ // module setup code and definitions
40
+ return some_bar_object;
41
+ });
42
+ ```
43
+
44
+ Or setup 3rd party code:
45
+ ```javascript
46
+ modulejs.define('foo', Foo);
47
+ ```
48
+
49
+ And require them when needed:
50
+
51
+ ```javascript
52
+ var bar = modulejs.require('bar');
53
+ bar.doStuff();
54
+ ```
55
+
56
+ See full documentation here: https://larsjung.de/modulejs/
57
+
58
+ ## Contributing
59
+
60
+ 1. Fork it ( https://github.com/ales-vilchytski/modulejs-rails/fork )
61
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
62
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
63
+ 4. Push to the branch (`git push origin my-new-feature`)
64
+ 5. Create a new Pull Request
65
+
66
+
@@ -1,5 +1,5 @@
1
1
  module Modulejs
2
2
  module Rails
3
- VERSION = "1.9.0.0"
3
+ VERSION = "1.9.0.1"
4
4
  end
5
5
  end
@@ -1,3 +1,4 @@
1
+ /* modulejs 1.9.0 - http://larsjung.de/modulejs/ */
1
2
  (function (root, factory) {
2
3
  'use strict';
3
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modulejs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0.0
4
+ version: 1.9.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ales Vilchytski
@@ -61,7 +61,7 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - .gitignore
63
63
  - Gemfile
64
- - LICENSE.txt
64
+ - LICENSE
65
65
  - README.md
66
66
  - Rakefile
67
67
  - lib/modulejs-rails.rb
@@ -69,7 +69,6 @@ files:
69
69
  - lib/modulejs/rails/engine.rb
70
70
  - lib/modulejs/rails/version.rb
71
71
  - modulejs-rails.gemspec
72
- - vendor/assets/javascripts/README-1.9.0.md
73
72
  - vendor/assets/javascripts/modulejs.js
74
73
  homepage: https://github.com/ales-vilchytski/modulejs-rails
75
74
  licenses:
@@ -1,41 +0,0 @@
1
- # modulejs
2
-
3
- [![license][license-img]][github] [![web][web-img]][web] [![github][github-img]][github] [![bower][bower-img]][github]
4
- [![build status][travis-img]][travis]
5
-
6
- Lightweight JavaScript module system.
7
-
8
-
9
- ## License
10
- The MIT License (MIT)
11
-
12
- Copyright (c) 2015 Lars Jung (http://larsjung.de)
13
-
14
- Permission is hereby granted, free of charge, to any person obtaining a copy
15
- of this software and associated documentation files (the "Software"), to deal
16
- in the Software without restriction, including without limitation the rights
17
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
- copies of the Software, and to permit persons to whom the Software is
19
- furnished to do so, subject to the following conditions:
20
-
21
- The above copyright notice and this permission notice shall be included in
22
- all copies or substantial portions of the Software.
23
-
24
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
- THE SOFTWARE.
31
-
32
-
33
- [web]: http://larsjung.de/modulejs/
34
- [github]: https://github.com/lrsjng/modulejs
35
- [travis]: https://travis-ci.org/lrsjng/modulejs
36
-
37
- [license-img]: https://img.shields.io/badge/license-MIT-a0a060.svg?style=flat-square
38
- [web-img]: https://img.shields.io/badge/web-larsjung.de/modulejs-a0a060.svg?style=flat-square
39
- [github-img]: https://img.shields.io/badge/github-lrsjng/modulejs-a0a060.svg?style=flat-square
40
- [bower-img]: https://img.shields.io/badge/bower-lrsjng/modulejs-a0a060.svg?style=flat-square
41
- [travis-img]: https://img.shields.io/travis/lrsjng/modulejs.svg?style=flat-square