initjs 2.0.0.beta1 → 2.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37100766dbef555f1cf31995e10ceb40273014c3
4
- data.tar.gz: 8b59651ca232795e2b6909d81643fe7c02e2af69
3
+ metadata.gz: 2205b572504e209d38aca1869ca8b5a04982a8d0
4
+ data.tar.gz: 2f80882b07392e1f4cf301464b67990383f8bf30
5
5
  SHA512:
6
- metadata.gz: 795105fa66ef88900eb0e169b9be59102faf28467b4e79e5c6c6d1403ff080a6348e0f0bc905374feffc322317ffdf3d57621a1077761a3de90b11af290c3b32
7
- data.tar.gz: ae8e4ddce8da60105b549a74fd3968a17359ba23fba9583fee78a412c352b1f061e1386e3b739eb87ab3f14bf7ba15162d989ab2b43686ff7502f942e5a6e1cd
6
+ metadata.gz: 2880be469d1a0a294ed373ea474f7c4e63af668e8834e89b72f8af79893bd4b8dfa26c99ad380ae1bb838bf073410cae5bb2d46b1f0af247a04116c63ba9a39a
7
+ data.tar.gz: 2e5f5f9da3c232fea7978f9c12fb813a17e098584848308a25a90484f83e0bd7f8a38754920204f145a1bf4c676efcd9ae215030dbb6366d8cfbc1ca21db279e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- initjs (2.0.0.beta1)
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.0)
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 is a RubyGem that helps your organize your javascript files using Rails' asset pipeline. Providing a simple and automatic way to execute your javascript for a specific page.
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
 
@@ -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 your organize your javascript files using Rails' asset pipeline. Providing a simple and automatic way to execute your javascript for a specific page.}
12
- gem.summary = %q{Initjs for your Rails application}
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
- @exec($infos.data('resource').split('/'), $infos.data('action'))
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
 
@@ -1,3 +1,3 @@
1
1
  module Initjs
2
- VERSION = "2.0.0.beta1"
2
+ VERSION = "2.0.0"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/josemarluedke/Projects/Ruby/initjs
3
3
  specs:
4
- initjs (1.0.1)
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.0)
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.beta1
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-10 00:00:00.000000000 Z
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 your organize your javascript files using Rails' asset pipeline.
126
- Providing a simple and automatic way to execute your javascript for a specific page.
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: 1.3.1
233
+ version: '0'
232
234
  requirements: []
233
235
  rubyforge_project:
234
- rubygems_version: 2.0.3
236
+ rubygems_version: 2.0.14
235
237
  signing_key:
236
238
  specification_version: 4
237
- summary: Initjs for your Rails application
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