Skip to content

Commit e4d1e41

Browse files
author
Fabien Penso
committed
1st commit with Gemfile
This is a rails example for realtime data update
0 parents  commit e4d1e41

51 files changed

Lines changed: 969 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile ~/.gitignore_global
6+
7+
# Ignore bundler config
8+
/.bundle
9+
10+
# Ignore the default SQLite database.
11+
/db/*.sqlite3
12+
13+
# Ignore all logfiles and tempfiles.
14+
/log/*.log
15+
/tmp

.rvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rvm use ruby-1.9.3-p327@blog-sse --create

Gemfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'rails', '3.2.12'
4+
5+
# Bundle edge Rails instead:
6+
# gem 'rails', :git => 'git://github.com/rails/rails.git'
7+
8+
gem 'sqlite3'
9+
10+
gem 'sinatra'
11+
gem 'sinatra-sse'
12+
gem 'thin'
13+
gem "highcharts-rails"
14+
gem 'jquery-rails'
15+
16+
# Gems used only for assets and not required
17+
# in production environments by default.
18+
group :assets do
19+
gem 'sass-rails', '~> 3.2.3'
20+
gem 'coffee-rails', '~> 3.2.1'
21+
22+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
23+
gem 'therubyracer', :platforms => :ruby
24+
25+
gem 'uglifier', '>= 1.0.3'
26+
end
27+

Gemfile.lock

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actionmailer (3.2.12)
5+
actionpack (= 3.2.12)
6+
mail (~> 2.4.4)
7+
actionpack (3.2.12)
8+
activemodel (= 3.2.12)
9+
activesupport (= 3.2.12)
10+
builder (~> 3.0.0)
11+
erubis (~> 2.7.0)
12+
journey (~> 1.0.4)
13+
rack (~> 1.4.5)
14+
rack-cache (~> 1.2)
15+
rack-test (~> 0.6.1)
16+
sprockets (~> 2.2.1)
17+
activemodel (3.2.12)
18+
activesupport (= 3.2.12)
19+
builder (~> 3.0.0)
20+
activerecord (3.2.12)
21+
activemodel (= 3.2.12)
22+
activesupport (= 3.2.12)
23+
arel (~> 3.0.2)
24+
tzinfo (~> 0.3.29)
25+
activeresource (3.2.12)
26+
activemodel (= 3.2.12)
27+
activesupport (= 3.2.12)
28+
activesupport (3.2.12)
29+
i18n (~> 0.6)
30+
multi_json (~> 1.0)
31+
arel (3.0.2)
32+
builder (3.0.4)
33+
cocaine (0.4.2)
34+
coffee-rails (3.2.2)
35+
coffee-script (>= 2.2.0)
36+
railties (~> 3.2.0)
37+
coffee-script (2.2.0)
38+
coffee-script-source
39+
execjs
40+
coffee-script-source (1.6.2)
41+
daemons (1.1.9)
42+
erubis (2.7.0)
43+
eventmachine (1.0.3)
44+
execjs (1.4.0)
45+
multi_json (~> 1.0)
46+
expectation (0.3.1)
47+
highcharts-rails (3.0.1.5)
48+
cocaine (~> 0.4.0)
49+
railties (>= 3.1)
50+
hike (1.2.2)
51+
i18n (0.6.4)
52+
journey (1.0.4)
53+
jquery-rails (2.2.1)
54+
railties (>= 3.0, < 5.0)
55+
thor (>= 0.14, < 2.0)
56+
json (1.8.0)
57+
libv8 (3.11.8.17)
58+
mail (2.4.4)
59+
i18n (>= 0.4.0)
60+
mime-types (~> 1.16)
61+
treetop (~> 1.4.8)
62+
mime-types (1.23)
63+
multi_json (1.7.3)
64+
polyglot (0.3.3)
65+
rack (1.4.5)
66+
rack-cache (1.2)
67+
rack (>= 0.4)
68+
rack-protection (1.5.0)
69+
rack
70+
rack-ssl (1.3.3)
71+
rack
72+
rack-test (0.6.2)
73+
rack (>= 1.0)
74+
rails (3.2.12)
75+
actionmailer (= 3.2.12)
76+
actionpack (= 3.2.12)
77+
activerecord (= 3.2.12)
78+
activeresource (= 3.2.12)
79+
activesupport (= 3.2.12)
80+
bundler (~> 1.0)
81+
railties (= 3.2.12)
82+
railties (3.2.12)
83+
actionpack (= 3.2.12)
84+
activesupport (= 3.2.12)
85+
rack-ssl (~> 1.3.2)
86+
rake (>= 0.8.7)
87+
rdoc (~> 3.4)
88+
thor (>= 0.14.6, < 2.0)
89+
rake (10.0.4)
90+
rdoc (3.12.2)
91+
json (~> 1.4)
92+
ref (1.0.5)
93+
sass (3.2.9)
94+
sass-rails (3.2.6)
95+
railties (~> 3.2.0)
96+
sass (>= 3.1.10)
97+
tilt (~> 1.3)
98+
sinatra (1.3.6)
99+
rack (~> 1.4)
100+
rack-protection (~> 1.3)
101+
tilt (~> 1.3, >= 1.3.3)
102+
sinatra-sse (0.1)
103+
expectation
104+
sinatra
105+
sprockets (2.2.2)
106+
hike (~> 1.2)
107+
multi_json (~> 1.0)
108+
rack (~> 1.0)
109+
tilt (~> 1.1, != 1.3.0)
110+
sqlite3 (1.3.7)
111+
therubyracer (0.11.4)
112+
libv8 (~> 3.11.8.12)
113+
ref
114+
thin (1.5.1)
115+
daemons (>= 1.0.9)
116+
eventmachine (>= 0.12.6)
117+
rack (>= 1.0.0)
118+
thor (0.18.1)
119+
tilt (1.4.1)
120+
treetop (1.4.12)
121+
polyglot
122+
polyglot (>= 0.3.1)
123+
tzinfo (0.3.37)
124+
uglifier (2.1.1)
125+
execjs (>= 0.3.0)
126+
multi_json (~> 1.0, >= 1.0.2)
127+
128+
PLATFORMS
129+
ruby
130+
131+
DEPENDENCIES
132+
coffee-rails (~> 3.2.1)
133+
highcharts-rails
134+
jquery-rails
135+
rails (= 3.2.12)
136+
sass-rails (~> 3.2.3)
137+
sinatra
138+
sinatra-sse
139+
sqlite3
140+
therubyracer
141+
thin
142+
uglifier (>= 1.0.3)

README.rdoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
== Highlight and real time update
2+

Rakefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env rake
2+
# Add your own tasks in files placed in lib/tasks ending in .rake,
3+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4+
5+
require File.expand_path('../config/application', __FILE__)
6+
7+
BlogSse::Application.load_tasks

app/assets/images/rails.png

6.49 KB
Loading
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6+
//
7+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8+
// the compiled file.
9+
//
10+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11+
// GO AFTER THE REQUIRES BELOW.
12+
//
13+
//= require jquery
14+
//= require jquery_ujs
15+
//= require_tree .
16+
//
17+
//= require highcharts
18+
//= require highcharts/highcharts-more
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the top of the
9+
* compiled file, but it's generally better to create a new file per style scope.
10+
*
11+
*= require_self
12+
*= require_tree .
13+
*/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationController < ActionController::Base
2+
protect_from_forgery
3+
end

0 commit comments

Comments
 (0)