dashing-rails 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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 2.0.2
2
+
3
+ * Fix bin rails polution
4
+ * Improve rails engine and railtie
5
+
1
6
  ## 2.0.1
2
7
 
3
8
  * Fix default widgets javascript files not required
data/Gemfile.lock CHANGED
@@ -1,43 +1,43 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dashing-rails (2.0.1)
4
+ dashing-rails (2.0.2)
5
5
  coffee-script (~> 2.2)
6
6
  connection_pool (~> 1.1)
7
7
  jquery-rails (~> 3.0)
8
- rails (~> 4.0.0)
8
+ rails (~> 4.0)
9
9
  redis (~> 3.0)
10
10
  rufus-scheduler (~> 3.0)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- actionmailer (4.0.0)
16
- actionpack (= 4.0.0)
17
- mail (~> 2.5.3)
18
- actionpack (4.0.0)
19
- activesupport (= 4.0.0)
15
+ actionmailer (4.0.1)
16
+ actionpack (= 4.0.1)
17
+ mail (~> 2.5.4)
18
+ actionpack (4.0.1)
19
+ activesupport (= 4.0.1)
20
20
  builder (~> 3.1.0)
21
21
  erubis (~> 2.7.0)
22
22
  rack (~> 1.5.2)
23
23
  rack-test (~> 0.6.2)
24
- activemodel (4.0.0)
25
- activesupport (= 4.0.0)
24
+ activemodel (4.0.1)
25
+ activesupport (= 4.0.1)
26
26
  builder (~> 3.1.0)
27
- activerecord (4.0.0)
28
- activemodel (= 4.0.0)
27
+ activerecord (4.0.1)
28
+ activemodel (= 4.0.1)
29
29
  activerecord-deprecated_finders (~> 1.0.2)
30
- activesupport (= 4.0.0)
30
+ activesupport (= 4.0.1)
31
31
  arel (~> 4.0.0)
32
32
  activerecord-deprecated_finders (1.0.3)
33
- activesupport (4.0.0)
33
+ activesupport (4.0.1)
34
34
  i18n (~> 0.6, >= 0.6.4)
35
35
  minitest (~> 4.2)
36
36
  multi_json (~> 1.3)
37
37
  thread_safe (~> 0.1)
38
38
  tzinfo (~> 0.3.37)
39
39
  arel (4.0.1)
40
- atomic (1.1.12)
40
+ atomic (1.1.14)
41
41
  better_errors (1.0.1)
42
42
  coderay (>= 1.0.0)
43
43
  erubis (>= 2.6.6)
@@ -54,11 +54,11 @@ GEM
54
54
  simplecov (>= 0.7)
55
55
  term-ansicolor
56
56
  thor
57
- diff-lcs (1.2.4)
57
+ diff-lcs (1.2.5)
58
58
  erubis (2.7.0)
59
59
  execjs (2.0.2)
60
60
  hike (1.2.3)
61
- i18n (0.6.4)
61
+ i18n (0.6.5)
62
62
  jquery-rails (3.0.4)
63
63
  railties (>= 3.0, < 5.0)
64
64
  thor (>= 0.14, < 2.0)
@@ -68,7 +68,7 @@ GEM
68
68
  method_source (0.8.2)
69
69
  mime-types (1.25)
70
70
  minitest (4.7.5)
71
- multi_json (1.7.7)
71
+ multi_json (1.8.2)
72
72
  polyglot (0.3.3)
73
73
  pry (0.9.12.2)
74
74
  coderay (~> 1.0.5)
@@ -79,27 +79,27 @@ GEM
79
79
  rack (1.5.2)
80
80
  rack-test (0.6.2)
81
81
  rack (>= 1.0)
82
- rails (4.0.0)
83
- actionmailer (= 4.0.0)
84
- actionpack (= 4.0.0)
85
- activerecord (= 4.0.0)
86
- activesupport (= 4.0.0)
82
+ rails (4.0.1)
83
+ actionmailer (= 4.0.1)
84
+ actionpack (= 4.0.1)
85
+ activerecord (= 4.0.1)
86
+ activesupport (= 4.0.1)
87
87
  bundler (>= 1.3.0, < 2.0)
88
- railties (= 4.0.0)
88
+ railties (= 4.0.1)
89
89
  sprockets-rails (~> 2.0.0)
90
- railties (4.0.0)
91
- actionpack (= 4.0.0)
92
- activesupport (= 4.0.0)
90
+ railties (4.0.1)
91
+ actionpack (= 4.0.1)
92
+ activesupport (= 4.0.1)
93
93
  rake (>= 0.8.7)
94
94
  thor (>= 0.18.1, < 2.0)
95
95
  rake (10.1.0)
96
96
  redis (3.0.6)
97
97
  rest-client (1.6.7)
98
98
  mime-types (>= 1.16)
99
- rspec-core (2.14.4)
100
- rspec-expectations (2.14.0)
99
+ rspec-core (2.14.7)
100
+ rspec-expectations (2.14.4)
101
101
  diff-lcs (>= 1.1.3, < 2.0)
102
- rspec-mocks (2.14.1)
102
+ rspec-mocks (2.14.4)
103
103
  rspec-rails (2.14.0)
104
104
  actionpack (>= 3.0)
105
105
  activesupport (>= 3.0)
@@ -123,18 +123,18 @@ GEM
123
123
  actionpack (>= 3.0)
124
124
  activesupport (>= 3.0)
125
125
  sprockets (~> 2.8)
126
- sqlite3 (1.3.7)
126
+ sqlite3 (1.3.8)
127
127
  term-ansicolor (1.2.2)
128
128
  tins (~> 0.8)
129
129
  thor (0.18.1)
130
- thread_safe (0.1.2)
130
+ thread_safe (0.1.3)
131
131
  atomic
132
132
  tilt (1.4.1)
133
- tins (0.12.0)
133
+ tins (0.13.0)
134
134
  treetop (1.4.15)
135
135
  polyglot
136
136
  polyglot (>= 0.3.1)
137
- tzinfo (0.3.37)
137
+ tzinfo (0.3.38)
138
138
 
139
139
  PLATFORMS
140
140
  ruby
data/dashing.gemspec CHANGED
@@ -14,18 +14,17 @@ Gem::Specification.new do |spec|
14
14
  spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
18
  spec.require_paths = ["lib"]
20
19
 
21
- spec.add_dependency 'rails', '~> 4.0.0'
22
- spec.add_dependency 'jquery-rails', '~> 3.0'
23
- spec.add_dependency 'coffee-script', '~> 2.2'
24
- spec.add_dependency 'rufus-scheduler', '~> 3.0'
25
- spec.add_dependency 'redis', '~> 3.0'
26
- spec.add_dependency 'connection_pool', '~> 1.1'
20
+ spec.add_dependency 'rails', '~> 4.0'
21
+ spec.add_dependency 'jquery-rails', '~> 3.0'
22
+ spec.add_dependency 'coffee-script', '~> 2.2'
23
+ spec.add_dependency 'rufus-scheduler', '~> 3.0'
24
+ spec.add_dependency 'redis', '~> 3.0'
25
+ spec.add_dependency 'connection_pool', '~> 1.1'
27
26
 
28
- spec.add_development_dependency 'rspec-rails', '~> 2.14'
29
- spec.add_development_dependency 'pry-rails', '~> 0.3'
30
- spec.add_development_dependency 'better_errors', '~> 1.0'
27
+ spec.add_development_dependency 'rspec-rails', '~> 2.14'
28
+ spec.add_development_dependency 'pry-rails', '~> 0.3'
29
+ spec.add_development_dependency 'better_errors', '~> 1.0'
31
30
  end
data/lib/dashing.rb CHANGED
@@ -25,5 +25,24 @@ module Dashing
25
25
  end
26
26
  end
27
27
 
28
+ begin
29
+ require 'rails'
30
+ rescue LoadError
31
+ end
32
+
33
+ $stderr.puts <<-EOC if !defined?(Rails)
34
+ warning: no framework detected.
35
+
36
+ Your Gemfile might not be configured properly.
37
+ ---- e.g. ----
38
+ Rails:
39
+ gem 'dashing-rails'
40
+
41
+ EOC
42
+
28
43
  require 'dashing/configuration'
29
- require 'dashing/engine'
44
+
45
+ if defined? Rails
46
+ require 'dashing/engine'
47
+ require 'dashing/railtie'
48
+ end
@@ -9,9 +9,5 @@ module Dashing
9
9
  config.assets.paths.unshift Dashing.config.widgets_css_path
10
10
 
11
11
  config.paths['app/views'].unshift Dashing::Engine.root.join('app', 'views', 'dashing', 'widgets')
12
-
13
- initializer 'require dashing jobs' do
14
- Dir[Rails.root.join(Dashing.config.jobs_path, '**', '*.rb')].each { |file| require file }
15
- end
16
12
  end
17
13
  end
@@ -0,0 +1,7 @@
1
+ module Dashing
2
+ class Railtie < ::Rails::Railtie
3
+ initializer 'require dashing jobs' do
4
+ Dir[Rails.root.join(Dashing.config.jobs_path, '**', '*.rb')].each { |file| require file }
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Dashing
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dashing-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 4.0.0
21
+ version: '4.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 4.0.0
29
+ version: '4.0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: jquery-rails
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -158,8 +158,7 @@ dependencies:
158
158
  description: The exceptionally handsome dashboard framework for Rails.
159
159
  email:
160
160
  - pierrelouis.gottfrois@gmail.com
161
- executables:
162
- - rails
161
+ executables: []
163
162
  extensions: []
164
163
  extra_rdoc_files: []
165
164
  files:
@@ -198,6 +197,7 @@ files:
198
197
  - lib/dashing.rb
199
198
  - lib/dashing/configuration.rb
200
199
  - lib/dashing/engine.rb
200
+ - lib/dashing/railtie.rb
201
201
  - lib/dashing/version.rb
202
202
  - lib/generators/dashing/install_generator.rb
203
203
  - lib/generators/dashing/job_generator.rb
@@ -324,7 +324,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
324
324
  version: '0'
325
325
  segments:
326
326
  - 0
327
- hash: 2203029545150692038
327
+ hash: 869724897083404135
328
328
  required_rubygems_version: !ruby/object:Gem::Requirement
329
329
  none: false
330
330
  requirements:
@@ -333,7 +333,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
333
333
  version: '0'
334
334
  segments:
335
335
  - 0
336
- hash: 2203029545150692038
336
+ hash: 869724897083404135
337
337
  requirements: []
338
338
  rubyforge_project:
339
339
  rubygems_version: 1.8.25