rails-js-routes 0.3.4 → 0.3.5

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: 941df379f24f73d0d12ec177bc301fec7751546b
4
- data.tar.gz: 952813da20f46c5c449b15d67b5874941c7e6c55
3
+ metadata.gz: 46608199a0959e02482845741c6155e3c6febb71
4
+ data.tar.gz: fbb3dd3aa667e725cdf4e56a52ed7dcedaf4c1a5
5
5
  SHA512:
6
- metadata.gz: 3bef09c8895f1ebe9182d193cbb115f38261abfe5f2a24dfbca149a321ebdab5734a44e3b15c438ee63461fa7eba492f7280fe7197e33284aa70fc8f46ca4fdd
7
- data.tar.gz: c7e351518fd84f5fb2ffcdb6801f46f5784ea0b06d88997ae218ec3edd8bdae963dc9951ed1c12d0f49d9f49ec630ccccda9c64d9b301748f1a1d3d0e000d132
6
+ metadata.gz: 4ff0536bc89fed213c05ee38a4e751934dc8c17eb5b7cb612f7e7f9d5dd4a151b2c0940595e3c970faba81e09b3e7e8596c4508291f815734b9a29b210da5fa0
7
+ data.tar.gz: 394a19f8a6433a40873f4ae0dcc8dc8e36b75884293f61e3b56bc8ce241ac2b99d12f7b7e76297b8a696dda6643a080093b2a16f3aaa5152e97b26f2d11e2ce4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails-js-routes (0.3.4)
4
+ rails-js-routes (0.3.5)
5
5
  rails (~> 4)
6
6
 
7
7
  GEM
@@ -124,19 +124,19 @@
124
124
  controller;
125
125
 
126
126
  /*
127
- * Make sure rails.js has been properly added to the layout
127
+ * Execute beforeAll() hook if defined
128
128
  */
129
- if (!(this.config && this.config.controller && this.config.action)) {
130
-
131
- throw ['No action or controller given.',
132
- 'It seems like you forgot to add rails.js to your layouts\' header.'].join(' ');
129
+ if (beforeAll && typeof(beforeAll) === 'function') {
130
+ beforeAll();
133
131
  }
134
132
 
135
133
  /*
136
- * Execute beforeAll() hook if defined
134
+ * Make sure rails.js has been properly added to the layout
137
135
  */
138
- if (beforeAll && typeof(beforeAll) === 'function') {
139
- beforeAll();
136
+ if (!(this.config && this.config.controller && this.config.action)) {
137
+
138
+ return console.log(['No action or controller given.',
139
+ 'It seems like you forgot to add rails.js to your layouts\' header.'].join(' '));
140
140
  }
141
141
 
142
142
  /*
@@ -0,0 +1,3 @@
1
+ database:
2
+ override:
3
+ - "true"
@@ -1,7 +1,7 @@
1
1
  module Rails
2
2
  module JS
3
3
  module Routes
4
- VERSION = "0.3.4"
4
+ VERSION = "0.3.5"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-js-routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finn-Lenanrt Heemeyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-17 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -95,6 +95,7 @@ files:
95
95
  - README.md
96
96
  - Rakefile
97
97
  - app/assets/javascripts/routes.js
98
+ - circle.yml
98
99
  - lib/rails/js/routes.rb
99
100
  - lib/rails/js/routes/engine.rb
100
101
  - lib/rails/js/routes/version.rb