rails_script 2.0.1 → 2.0.2

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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MTYzNzBlZGU0Mjk0OGQxNjIzYzY3OTYzY2IzYTkxZjk3M2NlNjA0Nw==
5
- data.tar.gz: !binary |-
6
- NTJmMGJiNDllOTEwNjJhOGI5NzA0YTM3NzlkZjMwYjYyMTIzYmExOQ==
2
+ SHA1:
3
+ metadata.gz: 1f9bbc40ce0e92708fad39e8d053ffc04612e949
4
+ data.tar.gz: 966a2d51dbdc19d077e7755b278e4ec8d35d32f4
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- M2Q4MDY0NjZkMDQ2NGFiNmZkNzRiYmFlYTlmNTU4ZGNlNGUzZGM1ZjM3YTE0
10
- YmQ1OTBlYmI3ZDM2NDBlMDZjNjI5MGViOTg0MmU1MzRlMTQzODU4NjdlZTJm
11
- MGRkN2FhNTBiYzg2YjgwOGYzZDMyZTI1YWEzMjU3MGQwYzI5NTY=
12
- data.tar.gz: !binary |-
13
- MTcxZjA2ZDMwNGQzYTU3ODc0NzE0NjFlYTk2YmU4ZDYwMmY5Y2M0ZGU0MmE4
14
- MzJlZTc5YzJmOWI3OWQ0MjY4OTM3MjBlNGY1YWYxMjA1YTEyMzNjM2VkYzNm
15
- ZThmMzhhNGRlMzBkYjhlZjQ0MTE1N2VlNzU2MzIxOWVlZTk4YjI=
6
+ metadata.gz: e9b2face09677d5b1c72033652c44554fff36c6652fafe76c1b0942e8db9f98c0aa0f4845625ad2f19f541cb2f6987587536a5fa22f3e05a902495114608a83e
7
+ data.tar.gz: 4fe290900d7f9de0e5c9296f56e75685019ec81eb13d3b5158341f358bda25201557e521f54ac975084bbb815a30e5b4a9b8fb582a83969329a6034fbd2d5a67
data/.gitignore CHANGED
@@ -21,3 +21,4 @@ tmp
21
21
  *.a
22
22
  mkmf.log
23
23
  .idea
24
+ .ruby-*
@@ -1,3 +1,3 @@
1
1
  module RailsScript
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
@@ -3,8 +3,15 @@ window.App ||= {}
3
3
  window.Element ||= {}
4
4
  window.Utility ||= {}
5
5
 
6
+ if Turbolinks?
7
+ $(document).on "page:load.rails_script turbolinks:load.rails_script", ->
8
+ RailsScript.init()
9
+ else
10
+ $(document).on "ready.rails_script", ->
11
+ RailsScript.init()
12
+
6
13
  # Initializer
7
- $(document).on "ready.rails_script page:load.rails_script turbolinks:load.rails_script", ->
14
+ RailsScript.init = ->
8
15
  controller = $('#rails-script').data('controller')
9
16
  action = $('#rails-script').data('action')
10
17
  Utility.RailsVars = $('#rails-script').data('vars')
metadata CHANGED
@@ -1,61 +1,61 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_script
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Pheasey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-26 00:00:00.000000000 Z
11
+ date: 2016-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: coffee-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4.0'
48
- - - ! '>='
48
+ - - ">="
49
49
  - !ruby/object:Gem::Version
50
50
  version: 4.0.0
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ~>
55
+ - - "~>"
56
56
  - !ruby/object:Gem::Version
57
57
  version: '4.0'
58
- - - ! '>='
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: 4.0.0
61
61
  description: Rails Script is a Rails-centric, object oriented, featherweight framework
@@ -68,7 +68,7 @@ executables: []
68
68
  extensions: []
69
69
  extra_rdoc_files: []
70
70
  files:
71
- - .gitignore
71
+ - ".gitignore"
72
72
  - Gemfile
73
73
  - LICENSE.txt
74
74
  - README.md
@@ -111,12 +111,12 @@ require_paths:
111
111
  - lib
112
112
  required_ruby_version: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ! '>='
114
+ - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - ! '>='
119
+ - - ">="
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []