Skip to content
This repository was archived by the owner on Jun 21, 2021. It is now read-only.

Commit ff11dfd

Browse files
committed
upgrade Rails to 4.1.0.rc1, add Guard, Spring
1 parent c50b8b9 commit ff11dfd

31 files changed

+252
-123
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@
1919
!.gitkeep
2020
!/.coveralls.yml
2121
!/.travis.yml
22+
!/.rspec
2223

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--color

Gemfile

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,42 @@
11
source "https://rubygems.org"
22

3-
gem "rails", "~> 4.0.3"
3+
gem "rails", "~> 4.1.0.rc1"
44
gem "mysql2"
55
gem "settingslogic"
66
gem "yajl-ruby", require: "yajl"
77
gem "grape", github: "intridea/grape"
88
gem "grape-rabl"
9-
gem "twitter"
10-
gem "twitter-text"
11-
gem "omniauth-twitter"
129
gem "haml-rails"
1310
gem "sass-rails"
14-
gem "coffee-rails"
1511
gem "uglifier"
1612
gem "jquery-rails"
1713
gem "bootstrap-sass"
14+
gem "turbolinks"
15+
16+
gem "puma"
17+
gem "dalli"
18+
gem "connection_pool"
19+
20+
gem "omniauth-twitter"
21+
gem "twitter"
22+
gem "twitter-text"
1823
gem "daemon-spawn", require: "daemon_spawn"
1924
gem "msgpack"
2025
gem "msgpack-rpc"
2126
gem "em-work_queue"
2227
gem "pry-rails"
2328

24-
group :production do
25-
gem "puma"
26-
gem "dalli"
27-
gem "connection_pool"
28-
end
29-
30-
group :development do
31-
gem "thin"
29+
group :development, :test do
3230
gem "quiet_assets"
31+
gem "spring"
3332
end
3433

3534
group :test do
36-
gem "rspec"
35+
gem "webmock"
3736
gem "rspec-rails"
37+
gem "spring-commands-rspec"
38+
gem "guard-rspec"
3839
gem "factory_girl_rails"
39-
gem "webmock"
4040
gem "coveralls", require: false
4141
gem "simplecov", require: false
4242
end
43-

Gemfile.lock

Lines changed: 88 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -16,40 +16,48 @@ GIT
1616
GEM
1717
remote: https://rubygems.org/
1818
specs:
19-
actionmailer (4.0.3)
20-
actionpack (= 4.0.3)
19+
actionmailer (4.1.0.rc1)
20+
actionpack (= 4.1.0.rc1)
21+
actionview (= 4.1.0.rc1)
2122
mail (~> 2.5.4)
22-
actionpack (4.0.3)
23-
activesupport (= 4.0.3)
24-
builder (~> 3.1.0)
25-
erubis (~> 2.7.0)
23+
actionpack (4.1.0.rc1)
24+
actionview (= 4.1.0.rc1)
25+
activesupport (= 4.1.0.rc1)
2626
rack (~> 1.5.2)
2727
rack-test (~> 0.6.2)
28-
activemodel (4.0.3)
29-
activesupport (= 4.0.3)
30-
builder (~> 3.1.0)
31-
activerecord (4.0.3)
32-
activemodel (= 4.0.3)
33-
activerecord-deprecated_finders (~> 1.0.2)
34-
activesupport (= 4.0.3)
35-
arel (~> 4.0.0)
36-
activerecord-deprecated_finders (1.0.3)
37-
activesupport (4.0.3)
38-
i18n (~> 0.6, >= 0.6.4)
39-
minitest (~> 4.2)
40-
multi_json (~> 1.3)
28+
actionview (4.1.0.rc1)
29+
activesupport (= 4.1.0.rc1)
30+
builder (~> 3.1)
31+
erubis (~> 2.7.0)
32+
activemodel (4.1.0.rc1)
33+
activesupport (= 4.1.0.rc1)
34+
builder (~> 3.1)
35+
activerecord (4.1.0.rc1)
36+
activemodel (= 4.1.0.rc1)
37+
activesupport (= 4.1.0.rc1)
38+
arel (~> 5.0.0)
39+
activesupport (4.1.0.rc1)
40+
i18n (~> 0.6, >= 0.6.9)
41+
json (~> 1.7, >= 1.7.7)
42+
minitest (~> 5.1)
4143
thread_safe (~> 0.1)
42-
tzinfo (~> 0.3.37)
44+
tzinfo (~> 1.1)
4345
addressable (2.3.5)
44-
arel (4.0.2)
46+
arel (5.0.0)
4547
atomic (1.1.15)
46-
axiom-types (0.0.5)
47-
descendants_tracker (~> 0.0.1)
48-
ice_nine (~> 0.9)
48+
axiom-types (0.1.0)
49+
descendants_tracker (~> 0.0.3)
50+
ice_nine (~> 0.11.0)
51+
thread_safe (~> 0.1.3)
4952
bootstrap-sass (3.1.1.0)
5053
sass (~> 3.2)
5154
buftok (0.2.0)
52-
builder (3.1.4)
55+
builder (3.2.2)
56+
celluloid (0.15.2)
57+
timers (~> 1.1.0)
58+
celluloid-io (0.15.0)
59+
celluloid (>= 0.15.0)
60+
nio4r (>= 0.5.0)
5361
coderay (1.1.0)
5462
coercible (1.0.0)
5563
descendants_tracker (~> 0.0.1)
@@ -72,7 +80,6 @@ GEM
7280
crack (0.4.2)
7381
safe_yaml (~> 1.0.0)
7482
daemon-spawn (0.4.2)
75-
daemons (1.1.9)
7683
dalli (2.7.0)
7784
descendants_tracker (0.0.3)
7885
diff-lcs (1.2.5)
@@ -90,11 +97,22 @@ GEM
9097
railties (>= 3.0.0)
9198
faraday (0.9.0)
9299
multipart-post (>= 1.2, < 3)
100+
ffi (1.9.3)
101+
formatador (0.2.4)
93102
grape-rabl (0.2.2)
94103
grape
95104
i18n
96105
rabl
97106
tilt
107+
guard (2.5.1)
108+
formatador (>= 0.2.4)
109+
listen (~> 2.6)
110+
lumberjack (~> 1.0)
111+
pry (>= 0.9.12)
112+
thor (>= 0.18.1)
113+
guard-rspec (4.2.8)
114+
guard (~> 2.1)
115+
rspec (>= 2.14, < 4.0)
98116
haml (4.0.5)
99117
tilt
100118
haml-rails (0.5.3)
@@ -114,23 +132,30 @@ GEM
114132
railties (>= 3.0, < 5.0)
115133
thor (>= 0.14, < 2.0)
116134
json (1.8.1)
135+
listen (2.7.0)
136+
celluloid (>= 0.15.2)
137+
celluloid-io (>= 0.15.0)
138+
rb-fsevent (>= 0.9.3)
139+
rb-inotify (>= 0.9)
140+
lumberjack (1.0.4)
117141
mail (2.5.4)
118142
mime-types (~> 1.16)
119143
treetop (~> 1.4.8)
120144
memoizable (0.4.0)
121145
thread_safe (~> 0.1.3)
122146
method_source (0.8.2)
123147
mime-types (1.25.1)
124-
minitest (4.7.5)
148+
minitest (5.3.0)
125149
msgpack (0.5.8)
126150
msgpack-rpc (0.5.2)
127151
cool.io (~> 1.1.1)
128152
msgpack (~> 0.5.8)
129-
multi_json (1.8.4)
153+
multi_json (1.9.0)
130154
multi_xml (0.5.5)
131155
multipart-post (2.0.0)
132156
mysql2 (0.3.15)
133157
naught (1.0.0)
158+
nio4r (1.0.0)
134159
oauth (0.4.7)
135160
omniauth (1.2.1)
136161
hashie (>= 1.2, < 3)
@@ -148,7 +173,7 @@ GEM
148173
slop (~> 3.4)
149174
pry-rails (0.3.2)
150175
pry (>= 0.9.10)
151-
puma (2.8.0)
176+
puma (2.8.1)
152177
rack (>= 1.1, < 2.0)
153178
quiet_assets (1.0.2)
154179
railties (>= 3.1, < 5.0)
@@ -161,20 +186,25 @@ GEM
161186
rack (>= 1.0.0)
162187
rack-test (0.6.2)
163188
rack (>= 1.0)
164-
rails (4.0.3)
165-
actionmailer (= 4.0.3)
166-
actionpack (= 4.0.3)
167-
activerecord (= 4.0.3)
168-
activesupport (= 4.0.3)
189+
rails (4.1.0.rc1)
190+
actionmailer (= 4.1.0.rc1)
191+
actionpack (= 4.1.0.rc1)
192+
actionview (= 4.1.0.rc1)
193+
activemodel (= 4.1.0.rc1)
194+
activerecord (= 4.1.0.rc1)
195+
activesupport (= 4.1.0.rc1)
169196
bundler (>= 1.3.0, < 2.0)
170-
railties (= 4.0.3)
197+
railties (= 4.1.0.rc1)
171198
sprockets-rails (~> 2.0.0)
172-
railties (4.0.3)
173-
actionpack (= 4.0.3)
174-
activesupport (= 4.0.3)
199+
railties (4.1.0.rc1)
200+
actionpack (= 4.1.0.rc1)
201+
activesupport (= 4.1.0.rc1)
175202
rake (>= 0.8.7)
176203
thor (>= 0.18.1, < 2.0)
177204
rake (10.1.1)
205+
rb-fsevent (0.9.4)
206+
rb-inotify (0.9.3)
207+
ffi (>= 0.5.0)
178208
rest-client (1.6.7)
179209
mime-types (>= 1.16)
180210
rspec (2.14.1)
@@ -194,7 +224,7 @@ GEM
194224
rspec-expectations (~> 2.14.0)
195225
rspec-mocks (~> 2.14.0)
196226
safe_yaml (1.0.1)
197-
sass (3.2.14)
227+
sass (3.3.2)
198228
sass-rails (4.0.1)
199229
railties (>= 4.0.0, < 5.0)
200230
sass (>= 3.1.10)
@@ -206,7 +236,10 @@ GEM
206236
multi_json
207237
simplecov-html (~> 0.8.0)
208238
simplecov-html (0.8.0)
209-
slop (3.4.7)
239+
slop (3.5.0)
240+
spring (1.1.2)
241+
spring-commands-rspec (1.0.1)
242+
spring (>= 0.9.1)
210243
sprockets (2.11.0)
211244
hike (~> 1.2)
212245
multi_json (~> 1.0)
@@ -218,19 +251,18 @@ GEM
218251
sprockets (~> 2.8)
219252
term-ansicolor (1.3.0)
220253
tins (~> 1.0)
221-
thin (1.6.1)
222-
daemons (>= 1.0.9)
223-
eventmachine (>= 1.0.0)
224-
rack (>= 1.0.0)
225254
thor (0.18.1)
226255
thread_safe (0.1.3)
227256
atomic
228257
tilt (1.4.1)
258+
timers (1.1.0)
229259
tins (1.0.0)
230260
treetop (1.4.15)
231261
polyglot
232262
polyglot (>= 0.3.1)
233-
twitter (5.7.1)
263+
turbolinks (2.2.1)
264+
coffee-rails
265+
twitter (5.8.0)
234266
addressable (~> 2.3)
235267
buftok (~> 0.2.0)
236268
equalizer (~> 0.0.9)
@@ -243,18 +275,19 @@ GEM
243275
simple_oauth (~> 0.2.0)
244276
twitter-text (1.8.0)
245277
unf (~> 0.1.0)
246-
tzinfo (0.3.38)
278+
tzinfo (1.1.0)
279+
thread_safe (~> 0.1)
247280
uglifier (2.4.0)
248281
execjs (>= 0.3.0)
249282
json (>= 1.8.0)
250283
unf (0.1.3)
251284
unf_ext
252285
unf_ext (0.0.6)
253-
virtus (1.0.1)
254-
axiom-types (~> 0.0.5)
286+
virtus (1.0.2)
287+
axiom-types (~> 0.1)
255288
coercible (~> 1.0)
256-
descendants_tracker (~> 0.0.1)
257-
equalizer (~> 0.0.7)
289+
descendants_tracker (~> 0.0.3)
290+
equalizer (~> 0.0.9)
258291
webmock (1.17.4)
259292
addressable (>= 2.2.7)
260293
crack (>= 0.3.2)
@@ -265,7 +298,6 @@ PLATFORMS
265298

266299
DEPENDENCIES
267300
bootstrap-sass
268-
coffee-rails
269301
connection_pool
270302
coveralls
271303
daemon-spawn
@@ -274,6 +306,7 @@ DEPENDENCIES
274306
factory_girl_rails
275307
grape!
276308
grape-rabl
309+
guard-rspec
277310
haml-rails
278311
jquery-rails
279312
msgpack
@@ -283,13 +316,14 @@ DEPENDENCIES
283316
pry-rails
284317
puma
285318
quiet_assets
286-
rails (~> 4.0.3)
287-
rspec
319+
rails (~> 4.1.0.rc1)
288320
rspec-rails
289321
sass-rails
290322
settingslogic
291323
simplecov
292-
thin
324+
spring
325+
spring-commands-rspec
326+
turbolinks
293327
twitter
294328
twitter-text
295329
uglifier

Guardfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# A sample Guardfile
2+
# More info at https://github.com/guard/guard#readme
3+
4+
guard :rspec, cmd: "spring rspec" do
5+
watch(%r{^spec/.+_spec\.rb$})
6+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7+
watch('spec/spec_helper.rb') { "spec" }
8+
9+
# Rails example
10+
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
11+
watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
12+
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
13+
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
14+
watch('config/routes.rb') { "spec/routing" }
15+
watch('app/controllers/application_controller.rb') { "spec/controllers" }
16+
17+
# Capybara features specs
18+
watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
19+
20+
# Turnip features and steps
21+
watch(%r{^spec/acceptance/(.+)\.feature$})
22+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
23+
end
24+

0 commit comments

Comments
 (0)