initjs 2.0.0.beta1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/initjs.gemspec +3 -2
- data/lib/assets/javascript/init.js.coffee +3 -1
- data/lib/initjs/version.rb +1 -1
- data/spec/dummy/Gemfile.lock +2 -2
- metadata +11 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2205b572504e209d38aca1869ca8b5a04982a8d0
|
4
|
+
data.tar.gz: 2f80882b07392e1f4cf301464b67990383f8bf30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2880be469d1a0a294ed373ea474f7c4e63af668e8834e89b72f8af79893bd4b8dfa26c99ad380ae1bb838bf073410cae5bb2d46b1f0af247a04116c63ba9a39a
|
7
|
+
data.tar.gz: 2e5f5f9da3c232fea7978f9c12fb813a17e098584848308a25a90484f83e0bd7f8a38754920204f145a1bf4c676efcd9ae215030dbb6366d8cfbc1ca21db279e
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
initjs (2.0.0
|
4
|
+
initjs (2.0.0)
|
5
5
|
jquery-rails
|
6
6
|
rails (>= 3.1)
|
7
7
|
|
@@ -107,7 +107,7 @@ GEM
|
|
107
107
|
multi_json (~> 1.0)
|
108
108
|
rubyzip (~> 1.0.0)
|
109
109
|
websocket (~> 1.0.4)
|
110
|
-
sprockets (2.10.
|
110
|
+
sprockets (2.10.1)
|
111
111
|
hike (~> 1.2)
|
112
112
|
multi_json (~> 1.0)
|
113
113
|
rack (~> 1.0)
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Initjs [![Build Status](https://travis-ci.org/josemarluedke/initjs.png)](https://travis-ci.org/josemarluedke/initjs) [![Code Climate](https://codeclimate.com/github/josemarluedke/initjs.png)](https://codeclimate.com/github/josemarluedke/initjs) [![Dependency Status](https://gemnasium.com/josemarluedke/initjs.png)](https://gemnasium.com/josemarluedke/initjs) [![Gem Version](https://badge.fury.io/rb/initjs.png)](http://badge.fury.io/rb/initjs)
|
2
2
|
|
3
|
-
Initjs
|
3
|
+
Initjs helps you organize your javascript to play nice with Rails' asset pipeline. Providing a simple and automatic way to execute your javascript into a specific page.
|
4
4
|
|
5
5
|
Works fine with Turbolinks and pjax.
|
6
6
|
|
data/initjs.gemspec
CHANGED
@@ -8,8 +8,9 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.authors = ["Josemar Davi Luedke"]
|
9
9
|
gem.email = ["josemarluedke@gmail.com"]
|
10
10
|
gem.homepage = "http://github.com/josemarluedke/initjs"
|
11
|
-
gem.description = %q{Initjs helps
|
12
|
-
gem.summary = %q{
|
11
|
+
gem.description = %q{Initjs helps you organize your javascript to play nice with Rails' asset pipeline. Providing a simple and automatic way to execute your javascript into a specific page.}
|
12
|
+
gem.summary = %q{Organize your javascript to play nice with Rails' asset pipeline.}
|
13
|
+
gem.license = "MIT"
|
13
14
|
|
14
15
|
gem.files = `git ls-files`.split($/)
|
15
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -5,7 +5,8 @@ window.Initjs =
|
|
5
5
|
|
6
6
|
@appName($infos) unless @App
|
7
7
|
@execFilter('init')
|
8
|
-
|
8
|
+
resource = $infos.data('resource').split('/') if $infos.data('resource')
|
9
|
+
@exec(resource, $infos.data('action'))
|
9
10
|
|
10
11
|
initializePartial: ->
|
11
12
|
$infos = @$partialInfos()
|
@@ -24,6 +25,7 @@ window.Initjs =
|
|
24
25
|
|
25
26
|
exec: (resources, action) ->
|
26
27
|
@initModules(@App) unless @partial is true
|
28
|
+
return unless resources
|
27
29
|
controller_name = resources.pop()
|
28
30
|
namespace = @namespace(resources)
|
29
31
|
|
data/lib/initjs/version.rb
CHANGED
data/spec/dummy/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: /Users/josemarluedke/Projects/Ruby/initjs
|
3
3
|
specs:
|
4
|
-
initjs (
|
4
|
+
initjs (2.0.0)
|
5
5
|
jquery-rails
|
6
6
|
rails (>= 3.1)
|
7
7
|
|
@@ -107,7 +107,7 @@ GEM
|
|
107
107
|
multi_json (~> 1.0)
|
108
108
|
rubyzip (~> 1.0.0)
|
109
109
|
websocket (~> 1.0.4)
|
110
|
-
sprockets (2.10.
|
110
|
+
sprockets (2.10.1)
|
111
111
|
hike (~> 1.2)
|
112
112
|
multi_json (~> 1.0)
|
113
113
|
rack (~> 1.0)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: initjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josemar Davi Luedke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11
|
11
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -122,8 +122,9 @@ dependencies:
|
|
122
122
|
- - '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
description: Initjs helps
|
126
|
-
Providing a simple and automatic way to execute your javascript
|
125
|
+
description: Initjs helps you organize your javascript to play nice with Rails' asset
|
126
|
+
pipeline. Providing a simple and automatic way to execute your javascript into a
|
127
|
+
specific page.
|
127
128
|
email:
|
128
129
|
- josemarluedke@gmail.com
|
129
130
|
executables: []
|
@@ -213,7 +214,8 @@ files:
|
|
213
214
|
- spec/lib/generators/initjs/install_generator_spec.rb
|
214
215
|
- spec/spec_helper.rb
|
215
216
|
homepage: http://github.com/josemarluedke/initjs
|
216
|
-
licenses:
|
217
|
+
licenses:
|
218
|
+
- MIT
|
217
219
|
metadata: {}
|
218
220
|
post_install_message:
|
219
221
|
rdoc_options: []
|
@@ -226,15 +228,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
226
228
|
version: '0'
|
227
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
230
|
requirements:
|
229
|
-
- - '
|
231
|
+
- - '>='
|
230
232
|
- !ruby/object:Gem::Version
|
231
|
-
version:
|
233
|
+
version: '0'
|
232
234
|
requirements: []
|
233
235
|
rubyforge_project:
|
234
|
-
rubygems_version: 2.0.
|
236
|
+
rubygems_version: 2.0.14
|
235
237
|
signing_key:
|
236
238
|
specification_version: 4
|
237
|
-
summary:
|
239
|
+
summary: Organize your javascript to play nice with Rails' asset pipeline.
|
238
240
|
test_files:
|
239
241
|
- spec/dummy/Gemfile
|
240
242
|
- spec/dummy/Gemfile.lock
|