Skip to content

Commit 05ce93b

Browse files
author
Lee Richmond
committed
Refactor specs, add Appraisal
1 parent 0dfa907 commit 05ce93b

Some content is hidden

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

86 files changed

+570
-985
lines changed

Appraisals

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
appraise "rails-4" do
2+
gem "rails", "~> 4.1"
3+
end
4+
5+
appraise "rails-5" do
6+
gem "rails", "~> 5.0"
7+
end

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@ source 'https://rubygems.org'
22

33
# Specify your gem's dependencies in jsonapi_errorable.gemspec
44
gemspec
5+
6+
group :test do
7+
gem 'appraisal'
8+
gem 'pry'
9+
gem 'pry-byebug'
10+
end

bin/appraisal

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
#
4+
# This file was generated by Bundler.
5+
#
6+
# The application 'appraisal' is installed as part of a gem, and
7+
# this file is here to facilitate running it.
8+
#
9+
10+
require "pathname"
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12+
Pathname.new(__FILE__).realpath)
13+
14+
require "rubygems"
15+
require "bundler/setup"
16+
17+
load Gem.bin_path("appraisal", "appraisal")

gemfiles/rails_4.gemfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "rails", "~> 4.1"
6+
7+
group :test do
8+
gem "appraisal"
9+
gem "pry"
10+
gem "pry-byebug"
11+
end
12+
13+
gemspec :path => "../"

gemfiles/rails_4.gemfile.lock

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
PATH
2+
remote: ../
3+
specs:
4+
jsonapi_errorable (0.1.0)
5+
active_model_serializers (~> 0.10)
6+
rails (>= 4.1, < 6)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
actionmailer (4.2.6)
12+
actionpack (= 4.2.6)
13+
actionview (= 4.2.6)
14+
activejob (= 4.2.6)
15+
mail (~> 2.5, >= 2.5.4)
16+
rails-dom-testing (~> 1.0, >= 1.0.5)
17+
actionpack (4.2.6)
18+
actionview (= 4.2.6)
19+
activesupport (= 4.2.6)
20+
rack (~> 1.6)
21+
rack-test (~> 0.6.2)
22+
rails-dom-testing (~> 1.0, >= 1.0.5)
23+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
24+
actionview (4.2.6)
25+
activesupport (= 4.2.6)
26+
builder (~> 3.1)
27+
erubis (~> 2.7.0)
28+
rails-dom-testing (~> 1.0, >= 1.0.5)
29+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
30+
active_model_serializers (0.10.2)
31+
actionpack (>= 4.1, < 6)
32+
activemodel (>= 4.1, < 6)
33+
jsonapi (~> 0.1.1.beta2)
34+
railties (>= 4.1, < 6)
35+
activejob (4.2.6)
36+
activesupport (= 4.2.6)
37+
globalid (>= 0.3.0)
38+
activemodel (4.2.6)
39+
activesupport (= 4.2.6)
40+
builder (~> 3.1)
41+
activerecord (4.2.6)
42+
activemodel (= 4.2.6)
43+
activesupport (= 4.2.6)
44+
arel (~> 6.0)
45+
activesupport (4.2.6)
46+
i18n (~> 0.7)
47+
json (~> 1.7, >= 1.7.7)
48+
minitest (~> 5.1)
49+
thread_safe (~> 0.3, >= 0.3.4)
50+
tzinfo (~> 1.1)
51+
appraisal (2.1.0)
52+
bundler
53+
rake
54+
thor (>= 0.14.0)
55+
arel (6.0.3)
56+
builder (3.2.2)
57+
byebug (9.0.5)
58+
coderay (1.1.1)
59+
concurrent-ruby (1.0.2)
60+
diff-lcs (1.2.5)
61+
erubis (2.7.0)
62+
globalid (0.3.7)
63+
activesupport (>= 4.1.0)
64+
i18n (0.7.0)
65+
json (1.8.3)
66+
jsonapi (0.1.1.beta2)
67+
json (~> 1.8)
68+
jsonapi_spec_helpers (0.2.0)
69+
loofah (2.0.3)
70+
nokogiri (>= 1.5.9)
71+
mail (2.6.4)
72+
mime-types (>= 1.16, < 4)
73+
method_source (0.8.2)
74+
mime-types (3.1)
75+
mime-types-data (~> 3.2015)
76+
mime-types-data (3.2016.0521)
77+
mini_portile2 (2.1.0)
78+
minitest (5.9.0)
79+
nokogiri (1.6.8)
80+
mini_portile2 (~> 2.1.0)
81+
pkg-config (~> 1.1.7)
82+
pkg-config (1.1.7)
83+
pry (0.10.4)
84+
coderay (~> 1.1.0)
85+
method_source (~> 0.8.1)
86+
slop (~> 3.4)
87+
pry-byebug (3.4.0)
88+
byebug (~> 9.0)
89+
pry (~> 0.10)
90+
rack (1.6.4)
91+
rack-test (0.6.3)
92+
rack (>= 1.0)
93+
rails (4.2.6)
94+
actionmailer (= 4.2.6)
95+
actionpack (= 4.2.6)
96+
actionview (= 4.2.6)
97+
activejob (= 4.2.6)
98+
activemodel (= 4.2.6)
99+
activerecord (= 4.2.6)
100+
activesupport (= 4.2.6)
101+
bundler (>= 1.3.0, < 2.0)
102+
railties (= 4.2.6)
103+
sprockets-rails
104+
rails-deprecated_sanitizer (1.0.3)
105+
activesupport (>= 4.2.0.alpha)
106+
rails-dom-testing (1.0.7)
107+
activesupport (>= 4.2.0.beta, < 5.0)
108+
nokogiri (~> 1.6.0)
109+
rails-deprecated_sanitizer (>= 1.0.1)
110+
rails-html-sanitizer (1.0.3)
111+
loofah (~> 2.0)
112+
railties (4.2.6)
113+
actionpack (= 4.2.6)
114+
activesupport (= 4.2.6)
115+
rake (>= 0.8.7)
116+
thor (>= 0.18.1, < 2.0)
117+
rake (10.5.0)
118+
rspec-core (3.5.3)
119+
rspec-support (~> 3.5.0)
120+
rspec-expectations (3.5.0)
121+
diff-lcs (>= 1.2.0, < 2.0)
122+
rspec-support (~> 3.5.0)
123+
rspec-mocks (3.5.0)
124+
diff-lcs (>= 1.2.0, < 2.0)
125+
rspec-support (~> 3.5.0)
126+
rspec-rails (3.5.1)
127+
actionpack (>= 3.0)
128+
activesupport (>= 3.0)
129+
railties (>= 3.0)
130+
rspec-core (~> 3.5.0)
131+
rspec-expectations (~> 3.5.0)
132+
rspec-mocks (~> 3.5.0)
133+
rspec-support (~> 3.5.0)
134+
rspec-support (3.5.0)
135+
slop (3.6.0)
136+
sprockets (3.7.0)
137+
concurrent-ruby (~> 1.0)
138+
rack (> 1, < 3)
139+
sprockets-rails (3.2.0)
140+
actionpack (>= 4.0)
141+
activesupport (>= 4.0)
142+
sprockets (>= 3.0.0)
143+
sqlite3 (1.3.11)
144+
thor (0.19.1)
145+
thread_safe (0.3.5)
146+
tzinfo (1.2.2)
147+
thread_safe (~> 0.1)
148+
149+
PLATFORMS
150+
ruby
151+
152+
DEPENDENCIES
153+
appraisal
154+
bundler (~> 1.11)
155+
jsonapi_errorable!
156+
jsonapi_spec_helpers
157+
pry
158+
pry-byebug
159+
rails (~> 4.1)
160+
rake (~> 10.0)
161+
rspec-rails (~> 3.0)
162+
sqlite3
163+
164+
BUNDLED WITH
165+
1.12.5

gemfiles/rails_5.gemfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "rails", "~> 5.0"
6+
7+
group :test do
8+
gem "appraisal"
9+
gem "pry"
10+
gem "pry-byebug"
11+
end
12+
13+
gemspec :path => "../"

0 commit comments

Comments
 (0)