dashing 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/dashing.rb +5 -0
- data/templates/project/Gemfile +1 -1
- data/templates/project/jobs/twitter.rb +3 -3
- metadata +37 -43
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 15cdc02c7ee61ffa4187b9475163278fc7e0428e
|
4
|
+
data.tar.gz: 7b7bff7f96d852ba09729423446a062494f0c485
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 71bda5fe1849ccf6a614e79adbce22a79c9b073f8336ecff9787e86a2ac4121fa0aaeb6ab5807cfd13dd29f285df9c20994e684eb4e851358701ad9b0d2ed32b
|
7
|
+
data.tar.gz: a400efcfd996663171d73c018572a09322ceb45679e5b781fa5b4d0ba7ab0bb8cb9c0347c16b15590c1684aa76a98a47c0642e8e5b6de50db9d86dcf3dbfe542
|
data/lib/dashing.rb
CHANGED
@@ -154,6 +154,11 @@ def tilt_html_engines
|
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
157
|
+
settings_file = File.join(settings.root, 'config/settings.rb')
|
158
|
+
if (File.exists?(settings_file))
|
159
|
+
require settings_file
|
160
|
+
end
|
161
|
+
|
157
162
|
Dir[File.join(settings.root, 'lib', '**', '*.rb')].each {|file| require file }
|
158
163
|
{}.to_json # Forces your json codec to initialize (in the event that it is lazily loaded). Does this before job threads start.
|
159
164
|
|
data/templates/project/Gemfile
CHANGED
@@ -3,7 +3,7 @@ require 'twitter'
|
|
3
3
|
|
4
4
|
#### Get your twitter keys & secrets:
|
5
5
|
#### https://dev.twitter.com/docs/auth/tokens-devtwittercom
|
6
|
-
Twitter.
|
6
|
+
twitter = Twitter::REST::Client.new do |config|
|
7
7
|
config.consumer_key = 'YOUR_CONSUMER_KEY'
|
8
8
|
config.consumer_secret = 'YOUR_CONSUMER_SECRET'
|
9
9
|
config.oauth_token = 'YOUR_OAUTH_TOKEN'
|
@@ -14,10 +14,10 @@ search_term = URI::encode('#todayilearned')
|
|
14
14
|
|
15
15
|
SCHEDULER.every '10m', :first_in => 0 do |job|
|
16
16
|
begin
|
17
|
-
tweets =
|
17
|
+
tweets = twitter.search("#{search_term}")
|
18
18
|
|
19
19
|
if tweets
|
20
|
-
tweets.map
|
20
|
+
tweets = tweets.map do |tweet|
|
21
21
|
{ name: tweet.user.name, body: tweet.text, avatar: tweet.user.profile_image_url_https }
|
22
22
|
end
|
23
23
|
send_event('twitter_mentions', comments: tweets)
|
metadata
CHANGED
@@ -1,100 +1,102 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dashing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
5
|
-
prerelease:
|
4
|
+
version: 1.3.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Daniel Beauchamp
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-11-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: sass
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: coffee-script
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 1.6.2
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 1.6.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: execjs
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.0.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.0.0
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
56
|
name: sinatra
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
|
-
- -
|
59
|
+
- - '>='
|
52
60
|
- !ruby/object:Gem::Version
|
53
61
|
version: '0'
|
54
62
|
type: :runtime
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
|
-
- -
|
66
|
+
- - '>='
|
60
67
|
- !ruby/object:Gem::Version
|
61
68
|
version: '0'
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
70
|
name: sinatra-contrib
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
|
-
- -
|
73
|
+
- - '>='
|
68
74
|
- !ruby/object:Gem::Version
|
69
75
|
version: '0'
|
70
76
|
type: :runtime
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
|
-
- -
|
80
|
+
- - '>='
|
76
81
|
- !ruby/object:Gem::Version
|
77
82
|
version: '0'
|
78
83
|
- !ruby/object:Gem::Dependency
|
79
84
|
name: thin
|
80
85
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
86
|
requirements:
|
83
|
-
- -
|
87
|
+
- - '>='
|
84
88
|
- !ruby/object:Gem::Version
|
85
89
|
version: '0'
|
86
90
|
type: :runtime
|
87
91
|
prerelease: false
|
88
92
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
93
|
requirements:
|
91
|
-
- -
|
94
|
+
- - '>='
|
92
95
|
- !ruby/object:Gem::Version
|
93
96
|
version: '0'
|
94
97
|
- !ruby/object:Gem::Dependency
|
95
98
|
name: rufus-scheduler
|
96
99
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
100
|
requirements:
|
99
101
|
- - ~>
|
100
102
|
- !ruby/object:Gem::Version
|
@@ -102,7 +104,6 @@ dependencies:
|
|
102
104
|
type: :runtime
|
103
105
|
prerelease: false
|
104
106
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
107
|
requirements:
|
107
108
|
- - ~>
|
108
109
|
- !ruby/object:Gem::Version
|
@@ -110,49 +111,43 @@ dependencies:
|
|
110
111
|
- !ruby/object:Gem::Dependency
|
111
112
|
name: thor
|
112
113
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
121
|
requirements:
|
123
|
-
- -
|
122
|
+
- - '>='
|
124
123
|
- !ruby/object:Gem::Version
|
125
124
|
version: '0'
|
126
125
|
- !ruby/object:Gem::Dependency
|
127
126
|
name: sprockets
|
128
127
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
128
|
requirements:
|
131
|
-
- -
|
129
|
+
- - '>='
|
132
130
|
- !ruby/object:Gem::Version
|
133
131
|
version: '0'
|
134
132
|
type: :runtime
|
135
133
|
prerelease: false
|
136
134
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
135
|
requirements:
|
139
|
-
- -
|
136
|
+
- - '>='
|
140
137
|
- !ruby/object:Gem::Version
|
141
138
|
version: '0'
|
142
139
|
- !ruby/object:Gem::Dependency
|
143
140
|
name: rack
|
144
141
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
142
|
requirements:
|
147
|
-
- -
|
143
|
+
- - '>='
|
148
144
|
- !ruby/object:Gem::Version
|
149
145
|
version: '0'
|
150
146
|
type: :runtime
|
151
147
|
prerelease: false
|
152
148
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
149
|
requirements:
|
155
|
-
- -
|
150
|
+
- - '>='
|
156
151
|
- !ruby/object:Gem::Version
|
157
152
|
version: '0'
|
158
153
|
description: This framework lets you build & easily layout dashboards with your own
|
@@ -238,26 +233,25 @@ files:
|
|
238
233
|
- bin/dashing
|
239
234
|
homepage: http://shopify.github.com/dashing
|
240
235
|
licenses: []
|
236
|
+
metadata: {}
|
241
237
|
post_install_message:
|
242
238
|
rdoc_options: []
|
243
239
|
require_paths:
|
244
240
|
- lib
|
245
241
|
required_ruby_version: !ruby/object:Gem::Requirement
|
246
|
-
none: false
|
247
242
|
requirements:
|
248
|
-
- -
|
243
|
+
- - '>='
|
249
244
|
- !ruby/object:Gem::Version
|
250
245
|
version: '0'
|
251
246
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
252
|
-
none: false
|
253
247
|
requirements:
|
254
|
-
- -
|
248
|
+
- - '>='
|
255
249
|
- !ruby/object:Gem::Version
|
256
250
|
version: '0'
|
257
251
|
requirements: []
|
258
252
|
rubyforge_project:
|
259
|
-
rubygems_version:
|
253
|
+
rubygems_version: 2.0.3
|
260
254
|
signing_key:
|
261
|
-
specification_version:
|
255
|
+
specification_version: 4
|
262
256
|
summary: The exceptionally handsome dashboard framework.
|
263
257
|
test_files: []
|