straptible 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/lib/straptible/gem/templates/Gemfile.tt +0 -2
- data/lib/straptible/rails/generators/api.rb +2 -0
- data/lib/straptible/rails/generators/base.rb +2 -0
- data/lib/straptible/rails/templates/config.api/database.yml.tt +0 -4
- data/lib/straptible/version.rb +1 -1
- data/spec/integration/api_spec.rb +6 -6
- data/spec/integration/gem_spec.rb +2 -2
- data/straptible.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 560ebdf5f05c3ccd2dfe2a9baec1972a875b48f4
|
4
|
+
data.tar.gz: 7f944660eadfadcce554006969f6b1811fc1a658
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 306367607caa7def188061a10675bea9b4fd455983c240efea1a6b31affcc70e91841daeb4c45c09158816b9d01d0eb352578d1b1d7a7cf2e7e27b695d63858c
|
7
|
+
data.tar.gz: 5741eaf98f10280ec048ad25d450ab162a70feaf8de658650360413238e988130f2f1424d0fea9912c3ae4aea4f326450491df64afd496ec8f4b07707086a233
|
data/Gemfile
CHANGED
@@ -3,13 +3,9 @@ development:
|
|
3
3
|
encoding: unicode
|
4
4
|
database: <%= app_name.gsub('-', '_') %>_development
|
5
5
|
pool: 5
|
6
|
-
username: aptible
|
7
|
-
password:
|
8
6
|
|
9
7
|
test:
|
10
8
|
adapter: postgresql
|
11
9
|
encoding: unicode
|
12
10
|
database: <%= app_name.gsub('-', '_') %>_test
|
13
11
|
pool: 5
|
14
|
-
username: aptible
|
15
|
-
password:
|
data/lib/straptible/version.rb
CHANGED
@@ -33,7 +33,7 @@ describe 'straptible api' do
|
|
33
33
|
it 'includes an appropriate README.md' do
|
34
34
|
readme = File.join(@tmpdir, 'foobar', 'README.md')
|
35
35
|
File.exist?(readme).should be_true
|
36
|
-
File.read(readme).should match
|
36
|
+
File.read(readme).should match(/\#.*public\/icon-60px.png.*Foobar/)
|
37
37
|
end
|
38
38
|
|
39
39
|
it 'does not include HTML error pages' do
|
@@ -59,8 +59,8 @@ describe 'straptible api' do
|
|
59
59
|
it 'has a valid database.yml' do
|
60
60
|
database_yml = File.join(@tmpdir, 'foobar', 'config', 'database.yml')
|
61
61
|
File.exist?(database_yml).should be_true
|
62
|
-
File.read(database_yml).should match
|
63
|
-
File.read(database_yml).should match
|
62
|
+
File.read(database_yml).should match(/foobar_development/)
|
63
|
+
File.read(database_yml).should match(/foobar_test/)
|
64
64
|
end
|
65
65
|
|
66
66
|
it 'is initialized as a Git repository' do
|
@@ -71,7 +71,7 @@ describe 'straptible api' do
|
|
71
71
|
it 'has a .travis.yml file which includes JRuby in the build matrix' do
|
72
72
|
travis_yml = File.join(@tmpdir, 'foobar', '.travis.yml')
|
73
73
|
File.exist?(travis_yml).should be_true
|
74
|
-
File.read(travis_yml).should match
|
74
|
+
File.read(travis_yml).should match(/jruby/)
|
75
75
|
end
|
76
76
|
|
77
77
|
it 'has a package.json for Node dependencies' do
|
@@ -83,7 +83,7 @@ describe 'straptible api' do
|
|
83
83
|
initializers = File.join(@tmpdir, 'foobar', 'config', 'initializers')
|
84
84
|
mime_types = File.join(initializers, 'mime_types.rb')
|
85
85
|
File.exist?(mime_types).should be_true
|
86
|
-
File.read(mime_types).should match
|
86
|
+
File.read(mime_types).should match(/:json_api/)
|
87
87
|
end
|
88
88
|
|
89
89
|
it 'sets config in application.rb instead of config/initializers' do
|
@@ -93,7 +93,7 @@ describe 'straptible api' do
|
|
93
93
|
|
94
94
|
application = File.join(@tmpdir, 'foobar', 'config', 'application.rb')
|
95
95
|
File.exist?(application).should be_true
|
96
|
-
File.read(application).should match
|
96
|
+
File.read(application).should match(/filter_parameters/)
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
@@ -21,7 +21,7 @@ describe 'straptible gem' do
|
|
21
21
|
it 'includes an appropriate README.md' do
|
22
22
|
readme = File.join(@tmpdir, 'foobar', 'README.md')
|
23
23
|
File.exist?(readme).should be_true
|
24
|
-
File.read(readme).should match
|
24
|
+
File.read(readme).should match(/\#.*icon-60px.png.*Foobar/)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
@@ -38,7 +38,7 @@ describe 'straptible gem' do
|
|
38
38
|
gemdir = File.join(@tmpdir, 'foobar', 'foo_bar-baz')
|
39
39
|
gemspec = File.join(gemdir, 'foo_bar-baz.gemspec')
|
40
40
|
File.exist?(gemspec).should be_true
|
41
|
-
File.read(gemspec).should match
|
41
|
+
File.read(gemspec).should match(/FooBar::Baz/)
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
data/straptible.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency 'rails'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
26
|
-
spec.add_development_dependency 'aptible-tasks', '
|
26
|
+
spec.add_development_dependency 'aptible-tasks', '>= 0.2.0'
|
27
27
|
spec.add_development_dependency 'rake'
|
28
28
|
spec.add_development_dependency 'rspec'
|
29
29
|
spec.add_development_dependency 'pry'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: straptible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: aptible-tasks
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.2.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.2.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
version: '0'
|
173
173
|
requirements: []
|
174
174
|
rubyforge_project:
|
175
|
-
rubygems_version: 2.
|
175
|
+
rubygems_version: 2.2.1
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: A tool for bootstrapping new Aptible projects
|