dashing-rails 2.1.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.2.0
2
+
3
+ * Add dashing layout to the installer (re run `rails g dashing:install` if you want to have the dashing default layout file)
4
+
1
5
  ## 2.1.1
2
6
 
3
7
  * Fix font awesome not included in the asset pipeline
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dashing-rails (2.1.1)
4
+ dashing-rails (2.2.0)
5
5
  coffee-script (~> 2.2)
6
6
  connection_pool (~> 1.1)
7
7
  jquery-rails (~> 3.0)
@@ -47,7 +47,7 @@ GEM
47
47
  coffee-script-source
48
48
  execjs
49
49
  coffee-script-source (1.6.3)
50
- connection_pool (1.1.0)
50
+ connection_pool (1.2.0)
51
51
  coveralls (0.7.0)
52
52
  multi_json (~> 1.3)
53
53
  rest-client
@@ -114,7 +114,7 @@ GEM
114
114
  simplecov-html (~> 0.7.1)
115
115
  simplecov-html (0.7.1)
116
116
  slop (3.4.6)
117
- sprockets (2.10.0)
117
+ sprockets (2.10.1)
118
118
  hike (~> 1.2)
119
119
  multi_json (~> 1.0)
120
120
  rack (~> 1.0)
@@ -1,3 +1,3 @@
1
1
  module Dashing
2
- VERSION = '2.1.1'
2
+ VERSION = '2.2.0'
3
3
  end
@@ -14,6 +14,10 @@ module Dashing
14
14
  template 'initializer.rb', 'config/initializers/dashing.rb'
15
15
  end
16
16
 
17
+ def copy_layout
18
+ template 'layouts/dashboard.html.erb', 'app/views/layouts/dashing/dashboard.html.erb'
19
+ end
20
+
17
21
  def copy_dashboard
18
22
  template 'dashboards/sample.html.erb', 'app/views/dashing/dashboards/sample.html.erb'
19
23
  end
@@ -0,0 +1,30 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8"/>
5
+ <meta name="description" content="">
6
+ <meta name="viewport" content="width=device-width">
7
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
8
+
9
+ <title><%%= yield :title %></title>
10
+
11
+ <%%= javascript_include_tag 'dashing/application' %>
12
+ <%%= stylesheet_link_tag 'dashing/application' %>
13
+
14
+ <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
15
+ <link rel="icon" href="/favicon.ico">
16
+ </head>
17
+ <body>
18
+ <div id="container">
19
+ <%%= yield %>
20
+ </div>
21
+
22
+ <%% if Rails.env.development? %>
23
+ <div id="saving-instructions">
24
+ <p>Paste the following at the top of <i><%%= params[:dashboard] %>.erb</i></p>
25
+ <textarea id="gridster-code"></textarea>
26
+ </div>
27
+ <a href="#saving-instructions" id="save-gridster">Save this layout</a>
28
+ <%% end %>
29
+ </body>
30
+ </html>
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.1.1
4
+ version: 2.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-10 00:00:00.000000000 Z
12
+ date: 2013-12-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -206,6 +206,7 @@ files:
206
206
  - lib/generators/templates/initializer.rb
207
207
  - lib/generators/templates/jobs/new.rb
208
208
  - lib/generators/templates/jobs/sample.rb
209
+ - lib/generators/templates/layouts/dashboard.html.erb
209
210
  - lib/generators/templates/widgets/index.css
210
211
  - lib/generators/templates/widgets/index.js
211
212
  - lib/generators/templates/widgets/new.coffee
@@ -324,7 +325,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
324
325
  version: '0'
325
326
  segments:
326
327
  - 0
327
- hash: -1337167565751438075
328
+ hash: -2264989463200480633
328
329
  required_rubygems_version: !ruby/object:Gem::Requirement
329
330
  none: false
330
331
  requirements:
@@ -333,7 +334,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
333
334
  version: '0'
334
335
  segments:
335
336
  - 0
336
- hash: -1337167565751438075
337
+ hash: -2264989463200480633
337
338
  requirements: []
338
339
  rubyforge_project:
339
340
  rubygems_version: 1.8.25