Skip to content

Commit b36dcca

Browse files
author
Seth Banks
committed
Added proper Gemfile so tests can be run properly with autotest
1 parent 303ecdc commit b36dcca

9 files changed

+743
-62
lines changed

.autotest

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
begin
2+
require 'autotest/fsevent'
3+
rescue LoadError
4+
puts "NOTE: Install autotest-fsevent to prevent filesystem polling"
5+
end
6+
7+
begin
8+
require 'autotest/growl'
9+
rescue LoadError
10+
puts "NOTE: Install autotest-growl for growl support"
11+
end
12+
13+
require 'autotest/timestamp'
14+
15+
Autotest.add_hook :initialize do |at|
16+
unless ARGV.empty?
17+
at.find_directories = ARGV.dup
18+
end
19+
20+
# Ignore these files
21+
%w(
22+
.hg .git .svn stories tmtags
23+
Gemfile Rakefile Capfile README
24+
.html app/assets config .keep
25+
spec/spec.opts spec/rcov.opts vendor/gems vendor/ruby
26+
autotest svn-commit .DS_Store
27+
).each { |exception|at.add_exception(exception) }
28+
29+
at.add_mapping(%r{^lib\/slug\/.*\.rb$}) do |f, _|
30+
at.files_matching %r{^test\/.*_test\.rb$}
31+
end
32+
33+
end

.bundle/config

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
BUNDLE_PATH: vendor
3+
BUNDLE_DISABLE_SHARED_GEMS: '1'

.bundle/install.log

+457
Large diffs are not rendered by default.

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.sw?
22
.DS_Store
3-
coverage
3+
coverage
4+
vendor/ruby

Gemfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
source 'https://rubygems.org'
2+
3+
group :development, :test do
4+
gem 'autotest'
5+
gem 'autotest-growl'
6+
gem 'autotest-fsevent'
7+
gem 'minitest'
8+
gem 'minitest-reporters'
9+
gem 'minitest-focus'
10+
11+
# update this when moving to rails 4.1
12+
gem 'minitest-spec-rails', '~> 4.7'
13+
gem 'rails', '4.0.13'
14+
15+
gem 'rake'
16+
gem 'jeweler'
17+
gem 'spicycode-rcov'
18+
gem 'mocha'
19+
gem 'sqlite3'
20+
end

Gemfile.lock

+148
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
ZenTest (4.11.0)
5+
actionmailer (4.0.13)
6+
actionpack (= 4.0.13)
7+
mail (~> 2.5, >= 2.5.4)
8+
actionpack (4.0.13)
9+
activesupport (= 4.0.13)
10+
builder (~> 3.1.0)
11+
erubis (~> 2.7.0)
12+
rack (~> 1.5.2)
13+
rack-test (~> 0.6.2)
14+
activemodel (4.0.13)
15+
activesupport (= 4.0.13)
16+
builder (~> 3.1.0)
17+
activerecord (4.0.13)
18+
activemodel (= 4.0.13)
19+
activerecord-deprecated_finders (~> 1.0.2)
20+
activesupport (= 4.0.13)
21+
arel (~> 4.0.0)
22+
activerecord-deprecated_finders (1.0.4)
23+
activesupport (4.0.13)
24+
i18n (~> 0.6, >= 0.6.9)
25+
minitest (~> 4.2)
26+
multi_json (~> 1.3)
27+
thread_safe (~> 0.1)
28+
tzinfo (~> 0.3.37)
29+
addressable (2.3.8)
30+
ansi (1.5.0)
31+
arel (4.0.2)
32+
autotest (4.4.6)
33+
ZenTest (>= 4.4.1)
34+
autotest-fsevent (0.2.10)
35+
sys-uname
36+
autotest-growl (0.2.16)
37+
builder (3.1.4)
38+
descendants_tracker (0.0.4)
39+
thread_safe (~> 0.3, >= 0.3.1)
40+
erubis (2.7.0)
41+
faraday (0.9.1)
42+
multipart-post (>= 1.2, < 3)
43+
ffi (1.9.10)
44+
git (1.2.9.1)
45+
github_api (0.12.4)
46+
addressable (~> 2.3)
47+
descendants_tracker (~> 0.0.4)
48+
faraday (~> 0.8, < 0.10)
49+
hashie (>= 3.4)
50+
multi_json (>= 1.7.5, < 2.0)
51+
nokogiri (~> 1.6.6)
52+
oauth2
53+
hashie (3.4.2)
54+
highline (1.7.3)
55+
i18n (0.7.0)
56+
jeweler (2.0.1)
57+
builder
58+
bundler (>= 1.0)
59+
git (>= 1.2.5)
60+
github_api
61+
highline (>= 1.6.15)
62+
nokogiri (>= 1.5.10)
63+
rake
64+
rdoc
65+
json (1.8.3)
66+
jwt (1.5.1)
67+
mail (2.6.3)
68+
mime-types (>= 1.16, < 3)
69+
metaclass (0.0.4)
70+
mime-types (2.6.1)
71+
mini_portile (0.6.2)
72+
minitest (4.7.5)
73+
minitest-focus (1.1.2)
74+
minitest (>= 4, < 6)
75+
minitest-reporters (0.14.24)
76+
ansi
77+
builder
78+
minitest (>= 2.12, < 5.0)
79+
powerbar
80+
minitest-spec-rails (4.7.8)
81+
minitest (~> 4.7)
82+
rails (>= 3.0, < 4.1)
83+
mocha (1.1.0)
84+
metaclass (~> 0.0.1)
85+
multi_json (1.11.2)
86+
multi_xml (0.5.5)
87+
multipart-post (2.0.0)
88+
nokogiri (1.6.6.2)
89+
mini_portile (~> 0.6.0)
90+
oauth2 (1.0.0)
91+
faraday (>= 0.8, < 0.10)
92+
jwt (~> 1.0)
93+
multi_json (~> 1.3)
94+
multi_xml (~> 0.5)
95+
rack (~> 1.2)
96+
powerbar (1.0.12)
97+
ansi (~> 1.5.0)
98+
hashie (>= 1.1.0)
99+
rack (1.5.5)
100+
rack-test (0.6.3)
101+
rack (>= 1.0)
102+
rails (4.0.13)
103+
actionmailer (= 4.0.13)
104+
actionpack (= 4.0.13)
105+
activerecord (= 4.0.13)
106+
activesupport (= 4.0.13)
107+
bundler (>= 1.3.0, < 2.0)
108+
railties (= 4.0.13)
109+
sprockets-rails (~> 2.0)
110+
railties (4.0.13)
111+
actionpack (= 4.0.13)
112+
activesupport (= 4.0.13)
113+
rake (>= 0.8.7)
114+
thor (>= 0.18.1, < 2.0)
115+
rake (10.4.2)
116+
rdoc (4.2.0)
117+
json (~> 1.4)
118+
spicycode-rcov (0.8.2.1)
119+
sprockets (3.3.4)
120+
rack (~> 1.0)
121+
sprockets-rails (2.3.2)
122+
actionpack (>= 3.0)
123+
activesupport (>= 3.0)
124+
sprockets (>= 2.8, < 4.0)
125+
sqlite3 (1.3.10)
126+
sys-uname (1.0.2)
127+
ffi (>= 1.0.0)
128+
thor (0.19.1)
129+
thread_safe (0.3.5)
130+
tzinfo (0.3.44)
131+
132+
PLATFORMS
133+
ruby
134+
135+
DEPENDENCIES
136+
autotest
137+
autotest-fsevent
138+
autotest-growl
139+
jeweler
140+
minitest
141+
minitest-focus
142+
minitest-reporters
143+
minitest-spec-rails (~> 4.7)
144+
mocha
145+
rails (= 4.0.13)
146+
rake
147+
spicycode-rcov
148+
sqlite3

slug.gemspec

+30-13
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
# DO NOT EDIT THIS FILE DIRECTLY
33
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
44
# -*- encoding: utf-8 -*-
5+
# stub: slug 4.0.0 ruby lib
56

67
Gem::Specification.new do |s|
7-
s.name = %q{slug}
8-
s.version = "5.0.0"
8+
s.name = "slug"
9+
s.version = "4.0.0"
910

1011
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12+
s.require_paths = ["lib"]
1113
s.authors = ["Ben Koski"]
12-
s.date = %q{2013-04-22}
13-
s.description = %q{Simple, straightforward slugs for your ActiveRecord models.}
14-
s.email = %q{[email protected]}
14+
s.date = "2015-09-04"
15+
s.description = "Simple, straightforward slugs for your ActiveRecord models."
16+
s.email = "[email protected]"
1517
s.extra_rdoc_files = [
1618
"LICENSE",
1719
"README.rdoc"
@@ -27,26 +29,41 @@ Gem::Specification.new do |s|
2729
"slug.gemspec",
2830
"test/models.rb",
2931
"test/schema.rb",
30-
"test/test_helper.rb",
31-
"test/test_slug.rb"
32+
"test/test_helper.rb"
3233
]
33-
s.homepage = %q{http://github.com/bkoski/slug}
34-
s.require_paths = ["lib"]
35-
s.rubygems_version = %q{1.3.7}
36-
s.summary = %q{Simple, straightforward slugs for your ActiveRecord models.}
34+
s.homepage = "http://github.com/bkoski/slug"
35+
s.rubygems_version = "2.2.0"
36+
s.summary = "Simple, straightforward slugs for your ActiveRecord models."
3737

3838
if s.respond_to? :specification_version then
39-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
40-
s.specification_version = 3
39+
s.specification_version = 4
4140

4241
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42+
s.add_runtime_dependency(%q<rake>, [">= 0"])
43+
s.add_development_dependency(%q<jeweler>, [">= 0"])
44+
s.add_development_dependency(%q<spicycode-rcov>, [">= 0"])
45+
s.add_development_dependency(%q<minitest>, [">= 0"])
46+
s.add_development_dependency(%q<mocha>, [">= 0"])
47+
s.add_development_dependency(%q<sqlite3>, [">= 0"])
4348
s.add_runtime_dependency(%q<activerecord>, ["> 3.0.0"])
4449
s.add_runtime_dependency(%q<activesupport>, ["> 3.0.0"])
4550
else
51+
s.add_dependency(%q<rake>, [">= 0"])
52+
s.add_dependency(%q<jeweler>, [">= 0"])
53+
s.add_dependency(%q<spicycode-rcov>, [">= 0"])
54+
s.add_dependency(%q<minitest>, [">= 0"])
55+
s.add_dependency(%q<mocha>, [">= 0"])
56+
s.add_dependency(%q<sqlite3>, [">= 0"])
4657
s.add_dependency(%q<activerecord>, ["> 3.0.0"])
4758
s.add_dependency(%q<activesupport>, ["> 3.0.0"])
4859
end
4960
else
61+
s.add_dependency(%q<rake>, [">= 0"])
62+
s.add_dependency(%q<jeweler>, [">= 0"])
63+
s.add_dependency(%q<spicycode-rcov>, [">= 0"])
64+
s.add_dependency(%q<minitest>, [">= 0"])
65+
s.add_dependency(%q<mocha>, [">= 0"])
66+
s.add_dependency(%q<sqlite3>, [">= 0"])
5067
s.add_dependency(%q<activerecord>, ["> 3.0.0"])
5168
s.add_dependency(%q<activesupport>, ["> 3.0.0"])
5269
end

0 commit comments

Comments
 (0)