straptible 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 560ebdf5f05c3ccd2dfe2a9baec1972a875b48f4
4
- data.tar.gz: 7f944660eadfadcce554006969f6b1811fc1a658
3
+ metadata.gz: 1f9ab7450c4107ebd3e2b151c92c60208f1c53b6
4
+ data.tar.gz: 4c2ecd6ea53f6c56297d45ac7300c8a992a993bc
5
5
  SHA512:
6
- metadata.gz: 306367607caa7def188061a10675bea9b4fd455983c240efea1a6b31affcc70e91841daeb4c45c09158816b9d01d0eb352578d1b1d7a7cf2e7e27b695d63858c
7
- data.tar.gz: 5741eaf98f10280ec048ad25d450ab162a70feaf8de658650360413238e988130f2f1424d0fea9912c3ae4aea4f326450491df64afd496ec8f4b07707086a233
6
+ metadata.gz: f8142481f824f89e822c4d60c06ea3973b6ed6ee03b1bfe52c3c32a9e4f70de2798bb9bbcf7d271a1916fe70951c10ca72d885156039da3ea9d8d1c51ed6661d
7
+ data.tar.gz: 4c401483a8809b29140567ba2aeddbb551672fdb89f7d91f82904f19217876a6632d5ac0a146f490832c63aede1352cbceea76f20c48776ee0cd4ed1a9793921
data/README.md CHANGED
@@ -29,4 +29,6 @@ Then, run:
29
29
 
30
30
  MIT License, see [LICENSE](LICENSE.md) for details.
31
31
 
32
- Copyright (c) 2013 [Aptible](https://www.aptible.com), [Frank Macreery](https://github.com/fancyremarker), and contributors.
32
+ Copyright (c) 2014 [Aptible](https://www.aptible.com), [Frank Macreery](https://github.com/fancyremarker), and contributors.
33
+
34
+ [<img src="https://s.gravatar.com/avatar/f7790b867ae619ae0496460aa28c5861?s=60" style="border-radius: 50%;" alt="@fancyremarker" />](https://github.com/fancyremarker)
@@ -1,4 +1,5 @@
1
1
  require 'thor'
2
+ require 'bundler'
2
3
 
3
4
  module Straptible
4
5
  module Gem
@@ -22,5 +22,5 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency 'bundler', '~> <%= Bundler::VERSION.split('.')[0..1].join('.') %>'
23
23
  spec.add_development_dependency 'aptible-tasks'
24
24
  spec.add_development_dependency 'rake'
25
- spec.add_dependency 'rspec', '~> 2.0'
25
+ spec.add_development_dependency 'rspec', '~> 2.0'
26
26
  end
@@ -1,3 +1,4 @@
1
1
  rvm:
2
+ - "2.1"
2
3
  - 2.0.0
3
4
  - jruby
@@ -1,3 +1,3 @@
1
1
  module Straptible
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
@@ -19,81 +19,82 @@ describe 'straptible api' do
19
19
  end
20
20
 
21
21
  it 'does not include a test/ directory' do
22
- File.exist?(File.join(@tmpdir, 'foobar', 'test')).should be_false
22
+ expect(File.exist?(File.join(@tmpdir, 'foobar', 'test'))).to eq false
23
23
  end
24
24
 
25
25
  it 'includes a spec/ directory' do
26
- File.exist?(File.join(@tmpdir, 'foobar', 'spec')).should be_true
26
+ expect(File.exist?(File.join(@tmpdir, 'foobar', 'spec'))).to eq true
27
27
  end
28
28
 
29
29
  it 'does not include a README.rdoc' do
30
- File.exist?(File.join(@tmpdir, 'foobar', 'README.rdoc')).should be_false
30
+ readme = File.join(@tmpdir, 'foobar', 'README.rdoc')
31
+ expect(File.exist?(readme)).to eq false
31
32
  end
32
33
 
33
34
  it 'includes an appropriate README.md' do
34
35
  readme = File.join(@tmpdir, 'foobar', 'README.md')
35
- File.exist?(readme).should be_true
36
- File.read(readme).should match(/\#.*public\/icon-60px.png.*Foobar/)
36
+ expect(File.exist?(readme)).to eq true
37
+ expect(File.read(readme)).to match(%r{#.*public/icon-60px.png.*Foobar})
37
38
  end
38
39
 
39
40
  it 'does not include HTML error pages' do
40
- Dir.glob('public/*.html').should be_empty
41
+ expect(Dir.glob('public/*.html')).to be_empty
41
42
  end
42
43
 
43
44
  it 'does not include app/assets/ or app/mailers/' do
44
45
  app = File.join(@tmpdir, 'foobar', 'app')
45
- File.exist?(File.join(app, 'assets')).should be_false
46
- File.exist?(File.join(app, 'mailers')).should be_false
46
+ expect(File.exist?(File.join(app, 'assets'))).to eq false
47
+ expect(File.exist?(File.join(app, 'mailers'))).to eq false
47
48
  end
48
49
 
49
50
  it 'includes app/decorators/' do
50
51
  app = File.join(@tmpdir, 'foobar', 'app')
51
- File.exist?(File.join(app, 'decorators')).should be_true
52
+ expect(File.exist?(File.join(app, 'decorators'))).to eq true
52
53
  end
53
54
 
54
55
  it 'has a spec/spec_helper.rb' do
55
56
  spec = File.join(@tmpdir, 'foobar', 'spec')
56
- File.exist?(File.join(spec, 'spec_helper.rb')).should be_true
57
+ expect(File.exist?(File.join(spec, 'spec_helper.rb'))).to eq true
57
58
  end
58
59
 
59
60
  it 'has a valid database.yml' do
60
61
  database_yml = File.join(@tmpdir, 'foobar', 'config', 'database.yml')
61
- File.exist?(database_yml).should be_true
62
- File.read(database_yml).should match(/foobar_development/)
63
- File.read(database_yml).should match(/foobar_test/)
62
+ expect(File.exist?(database_yml)).to eq true
63
+ expect(File.read(database_yml)).to match(/foobar_development/)
64
+ expect(File.read(database_yml)).to match(/foobar_test/)
64
65
  end
65
66
 
66
67
  it 'is initialized as a Git repository' do
67
68
  git_log = `cd #{File.join(@tmpdir, 'foobar')} && git log --oneline`
68
- git_log.should =~ /Initial commit.*#{Straptible::VERSION}/
69
+ expect(git_log).to match(/Initial commit.*#{Straptible::VERSION}/)
69
70
  end
70
71
 
71
72
  it 'has a .travis.yml file which includes JRuby in the build matrix' do
72
73
  travis_yml = File.join(@tmpdir, 'foobar', '.travis.yml')
73
- File.exist?(travis_yml).should be_true
74
- File.read(travis_yml).should match(/jruby/)
74
+ expect(File.exist?(travis_yml)).to eq true
75
+ expect(File.read(travis_yml)).to match(/jruby/)
75
76
  end
76
77
 
77
78
  it 'has a package.json for Node dependencies' do
78
79
  package_json = File.join(@tmpdir, 'foobar', 'package.json')
79
- File.exist?(package_json).should be_true
80
+ expect(File.exist?(package_json)).to eq true
80
81
  end
81
82
 
82
83
  it 'has an initializer for the JSON-API MIME type' do
83
84
  initializers = File.join(@tmpdir, 'foobar', 'config', 'initializers')
84
85
  mime_types = File.join(initializers, 'mime_types.rb')
85
- File.exist?(mime_types).should be_true
86
- File.read(mime_types).should match(/:json_api/)
86
+ expect(File.exist?(mime_types)).to eq true
87
+ expect(File.read(mime_types)).to match(/:json_api/)
87
88
  end
88
89
 
89
90
  it 'sets config in application.rb instead of config/initializers' do
90
91
  initializers = File.join(@tmpdir, 'foobar', 'config', 'initializers')
91
92
  filter_parameters = File.join(initializers, 'filter_parameters.rb')
92
- File.exist?(filter_parameters).should be_false
93
+ expect(File.exist?(filter_parameters)).to eq false
93
94
 
94
95
  application = File.join(@tmpdir, 'foobar', 'config', 'application.rb')
95
- File.exist?(application).should be_true
96
- File.read(application).should match(/filter_parameters/)
96
+ expect(File.exist?(application)).to eq true
97
+ expect(File.read(application)).to match(/filter_parameters/)
97
98
  end
98
99
  end
99
100
 
@@ -109,8 +110,7 @@ describe 'straptible api' do
109
110
 
110
111
  it 'passes Rubocop muster' do
111
112
  `cd #{File.join(@tmpdir, 'foobar')} && bundle exec rake rubocop`
112
- $CHILD_STATUS.exitstatus.should == 0
113
+ expect($CHILD_STATUS.exitstatus).to eq 0
113
114
  end
114
-
115
115
  end
116
116
  end
@@ -20,8 +20,8 @@ describe 'straptible gem' do
20
20
 
21
21
  it 'includes an appropriate README.md' do
22
22
  readme = File.join(@tmpdir, 'foobar', 'README.md')
23
- File.exist?(readme).should be_true
24
- File.read(readme).should match(/\#.*icon-60px.png.*Foobar/)
23
+ expect(File.exist?(readme)).to eq true
24
+ expect(File.read(readme)).to match(/\#.*icon-60px.png.*Foobar/)
25
25
  end
26
26
  end
27
27
 
@@ -37,8 +37,8 @@ describe 'straptible gem' do
37
37
  it 'includes an appropriate gemspec' do
38
38
  gemdir = File.join(@tmpdir, 'foobar', 'foo_bar-baz')
39
39
  gemspec = File.join(gemdir, 'foo_bar-baz.gemspec')
40
- File.exist?(gemspec).should be_true
41
- File.read(gemspec).should match(/FooBar::Baz/)
40
+ expect(File.exist?(gemspec)).to eq true
41
+ expect(File.read(gemspec)).to match(/FooBar::Baz/)
42
42
  end
43
43
  end
44
44
 
@@ -55,7 +55,7 @@ describe 'straptible gem' do
55
55
 
56
56
  it 'passes Rubocop muster' do
57
57
  `cd #{File.join(@tmpdir, 'foobar')} && bundle exec rake rubocop`
58
- $CHILD_STATUS.exitstatus.should == 0
58
+ expect($CHILD_STATUS.exitstatus).to eq 0
59
59
  end
60
60
  end
61
61
  end
data/straptible.gemspec CHANGED
@@ -10,19 +10,19 @@ Gem::Specification.new do |spec|
10
10
  spec.version = Straptible::VERSION
11
11
  spec.authors = ['Frank Macreery']
12
12
  spec.email = ['frank@macreery.com']
13
- spec.description = %q{A tool for bootstrapping new Aptible projects}
14
- spec.summary = %q{A tool for bootstrapping new Aptible projects}
13
+ spec.description = 'A tool for bootstrapping new Aptible projects'
14
+ spec.summary = 'A tool for bootstrapping new Aptible projects'
15
15
  spec.homepage = 'https://github.com/aptible/straptible'
16
16
  spec.license = 'MIT'
17
17
 
18
18
  spec.files = `git ls-files`.split($RS)
19
- spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
20
- spec.test_files = spec.files.grep(/^spec\//)
19
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
+ spec.test_files = spec.files.grep(%r{^spec/})
21
21
  spec.require_paths = ['lib']
22
22
 
23
23
  spec.add_dependency 'rails'
24
+ spec.add_dependency 'bundler', '~> 1.3'
24
25
 
25
- spec.add_development_dependency 'bundler', '~> 1.3'
26
26
  spec.add_development_dependency 'aptible-tasks', '>= 0.2.0'
27
27
  spec.add_development_dependency 'rake'
28
28
  spec.add_development_dependency 'rspec'
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: straptible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-07 00:00:00.000000000 Z
11
+ date: 2015-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
- type: :development
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: aptible-tasks
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
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
54
  version: 0.2.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: A tool for bootstrapping new Aptible projects
@@ -102,9 +102,9 @@ executables:
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
- - .gitignore
106
- - .rspec
107
- - .travis.yml
105
+ - ".gitignore"
106
+ - ".rspec"
107
+ - ".travis.yml"
108
108
  - Gemfile
109
109
  - LICENSE.md
110
110
  - README.md
@@ -162,17 +162,17 @@ require_paths:
162
162
  - lib
163
163
  required_ruby_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - '>='
165
+ - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  requirements:
170
- - - '>='
170
+ - - ">="
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  requirements: []
174
174
  rubyforge_project:
175
- rubygems_version: 2.2.1
175
+ rubygems_version: 2.2.2
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: A tool for bootstrapping new Aptible projects