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 +4 -4
- data/javascripts/dashing.coffee +4 -1
- data/lib/dashing.rb +1 -0
- data/lib/dashing/app.rb +2 -1
- data/lib/dashing/cli.rb +7 -0
- data/lib/dashing/version.rb +3 -0
- data/templates/project/Gemfile +2 -2
- data/templates/project/jobs/{twitter.rb → twitter.rb.disabled} +0 -0
- metadata +28 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f8f8fb6bb541b6c3423dbd9a07a5adf9d68c74b1e40631d8adfd9f483bafc71
|
4
|
+
data.tar.gz: 39043eca7120a94098d95d3e90555d81d2bd80189cc172dce62dad8f3c082b4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8056ec91983755e1d60b80acb8098acc2e4c0cd5bdd568e31bf0d154b44a6c77afaba06dc2e0d447ae2dd84e7f3c2d01aaf254f368b1207fb8d0c91e52b3077c
|
7
|
+
data.tar.gz: 03e3c4e500e57409d98a7cc316fb3f40d829e271f687d7d4076404c4e0e1dd8706c969b2f1cc5b3dc2ed260110df74b045bb4285a7d909046d04b8ce0cdcbb6d
|
data/javascripts/dashing.coffee
CHANGED
@@ -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
|
-
|
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
|
data/lib/dashing.rb
CHANGED
data/lib/dashing/app.rb
CHANGED
data/lib/dashing/cli.rb
CHANGED
@@ -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)
|
data/templates/project/Gemfile
CHANGED
File without changes
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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:
|
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:
|
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.
|
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.
|
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
|