smashing 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of smashing might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 489df6284b7c807ceeaa8491046cc8e83844442877ed423b87c3ce5033de379b
4
- data.tar.gz: b9fc9ba27fd0f7031f45a3eead80a39566e907e0d4cc05e99423d4ba2ef6b1e6
3
+ metadata.gz: 6f8f8fb6bb541b6c3423dbd9a07a5adf9d68c74b1e40631d8adfd9f483bafc71
4
+ data.tar.gz: 39043eca7120a94098d95d3e90555d81d2bd80189cc172dce62dad8f3c082b4b
5
5
  SHA512:
6
- metadata.gz: 1a1a8ef4a2edf551efe3da624afea0656d37148f938a7c4fa9f1c29776745f276c4f3bc748cdeee3a4dc6db74d5e015314af27d9f3e0dd88ce35295ee254d1a6
7
- data.tar.gz: 992126548cc51c8c24d558c3f4fde25412f665d016c3022941a069e560e27a77eb6931193ceb47837b463250d13119f399b314052a756d0d890900f26e9496b4
6
+ metadata.gz: 8056ec91983755e1d60b80acb8098acc2e4c0cd5bdd568e31bf0d154b44a6c77afaba06dc2e0d447ae2dd84e7f3c2d01aaf254f368b1207fb8d0c91e52b3077c
7
+ data.tar.gz: 03e3c4e500e57409d98a7cc316fb3f40d829e271f687d7d4076404c4e0e1dd8706c969b2f1cc5b3dc2ed260110df74b045bb4285a7d909046d04b8ce0cdcbb6d
@@ -96,7 +96,10 @@ Dashing.AnimatedValue =
96
96
  else
97
97
  timer = "interval_#{k}"
98
98
  num = if (!isNaN(@[k]) && @[k]?) then @[k] else 0
99
- unless @[timer] || num == to
99
+ # NOTE: We are using backticks in the num == to below as that is a comparison with string
100
+ # and float and CoffeeScript compiles it to ===, causing it to always fail - see issue #155
101
+ # https://github.com/Smashing/smashing/pull/155
102
+ unless @[timer] || `num == to`
100
103
  to = parseFloat(to)
101
104
  num = parseFloat(num)
102
105
  up = to > num
@@ -1,6 +1,7 @@
1
1
  require 'dashing/cli'
2
2
  require 'dashing/downloader'
3
3
  require 'dashing/app'
4
+ require 'dashing/version'
4
5
 
5
6
  module Dashing
6
7
  end
@@ -3,7 +3,8 @@ require 'sprockets'
3
3
  require 'sinatra/content_for'
4
4
  require 'rufus/scheduler'
5
5
  require 'coffee-script'
6
- require 'sass'
6
+ require 'sass' if RUBY_VERSION < "2.5.0"
7
+ require 'sassc' if RUBY_VERSION >= "2.5.0"
7
8
  require 'json'
8
9
  require 'yaml'
9
10
  require 'thin'
@@ -1,5 +1,6 @@
1
1
  require 'thor'
2
2
  require 'open-uri'
3
+ require 'dashing/version'
3
4
 
4
5
  module Dashing
5
6
  class CLI < Thor
@@ -25,6 +26,12 @@ module Dashing
25
26
  end
26
27
  end
27
28
 
29
+ desc "--version, -v", "Prints the version"
30
+ map %w[--version -v] => :__print_version
31
+ def __print_version
32
+ say "#{Dashing::VERSION}"
33
+ end
34
+
28
35
  desc "new PROJECT_NAME", "Sets up ALL THE THINGS needed for your dashboard project."
29
36
  def new(name)
30
37
  @name = Thor::Util.snake_case(name)
@@ -0,0 +1,3 @@
1
+ module Dashing
2
+ VERSION = "1.3.0".freeze
3
+ end
@@ -2,5 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem 'smashing'
4
4
 
5
- ## Remove this if you don't need a twitter widget.
6
- gem 'twitter', '>= 5.9.0'
5
+ ## Uncomment this if you want to see use the twitter widget.
6
+ # gem 'twitter', '>= 5.9.0'
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smashing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Beauchamp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-19 00:00:00.000000000 Z
11
+ date: 2020-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: sass
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 3.4.24
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 3.4.24
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: coffee-script
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -86,70 +72,84 @@ dependencies:
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: 1.7.0
75
+ version: 1.7.2
90
76
  type: :runtime
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: 1.7.0
82
+ version: 1.7.2
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: rufus-scheduler
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: 3.4.2
89
+ version: 3.6.0
104
90
  type: :runtime
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: 3.4.2
96
+ version: 3.6.0
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: thor
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: 0.19.4
103
+ version: 1.0.1
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: 0.19.4
110
+ version: 1.0.1
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: sprockets
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: 3.7.1
117
+ version: '4.0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '4.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: sassc
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '2.0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 3.7.1
138
+ version: '2.0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rack
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 2.0.0
145
+ version: 2.2.2
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 2.0.0
152
+ version: 2.2.2
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rake
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -271,6 +271,7 @@ files:
271
271
  - lib/dashing/app.rb
272
272
  - lib/dashing/cli.rb
273
273
  - lib/dashing/downloader.rb
274
+ - lib/dashing/version.rb
274
275
  - templates/dashboard/%name%.erb.tt
275
276
  - templates/job/%name%.rb
276
277
  - templates/project/.gitignore
@@ -311,7 +312,7 @@ files:
311
312
  - templates/project/jobs/buzzwords.rb
312
313
  - templates/project/jobs/convergence.rb
313
314
  - templates/project/jobs/sample.rb
314
- - templates/project/jobs/twitter.rb
315
+ - templates/project/jobs/twitter.rb.disabled
315
316
  - templates/project/lib/.empty_directory
316
317
  - templates/project/public/404.html
317
318
  - templates/project/public/favicon.ico