botstrap 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ # Ruby
1
2
  *.gem
2
3
  *.rbc
3
4
  .bundle
@@ -15,3 +16,6 @@ spec/reports
15
16
  test/tmp
16
17
  test/version_tmp
17
18
  tmp
19
+
20
+ # OS X Finder
21
+ .DS_Store
data/README.md CHANGED
@@ -1,29 +1,23 @@
1
1
  # Botstrap
2
+ **CLI for bootstrapping Xcode projects with .gitignore and .gitattributes files**
2
3
 
3
- TODO: Write a gem description
4
-
4
+ Add Xcode appropriate .gitignore and .gitattribute files to your project's directory with one command.
5
+
5
6
  ## Installation
6
7
 
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'botstrap'
10
-
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
16
-
17
- $ gem install botstrap
8
+ $ gem install botstrap
18
9
 
19
10
  ## Usage
20
11
 
21
- TODO: Write usage instructions here
12
+ $ cd /path/to/iOS Project/
13
+ $ botstrap
14
+
15
+ ## Credits
16
+
17
+ ![thoughtbot](http://thoughtbot.com/images/tm/logo.png)
22
18
 
23
- ## Contributing
19
+ BotKit is maintained by [thoughtbot, inc](http://thoughtbot.com/community).
20
+ The names and logos for thoughtbot are trademarks of thoughtbot, inc.
24
21
 
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
22
+ BotKit is © 2012 thoughtbot, inc. It is distributed under the [Creative Commons
23
+ Attribution License](http://creativecommons.org/licenses/by/3.0/).
data/bin/botstrap CHANGED
@@ -3,4 +3,4 @@
3
3
  $:.push File.expand_path("../../lib", __FILE__)
4
4
  require 'botstrap'
5
5
 
6
- Botstrap::strapon
6
+ Botstrap::generate_files
@@ -1,3 +1,3 @@
1
1
  module Botstrap
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/botstrap.rb CHANGED
@@ -2,17 +2,17 @@ require "botstrap/version"
2
2
 
3
3
  module Botstrap
4
4
  def self.directory_contains_xcode_project(directory)
5
- not Dir.glob("#{directory}/*.xcodeproj").empty?
5
+ not Dir.glob("#{directory}/*.xcodeproj").empty?
6
6
  end
7
7
 
8
- def self.strapon
9
- if directory_contains_xcode_project(".")
10
- File.open(".gitattributes", "a") do |file|
11
- file.write("*.pbxproj binary merge=union")
12
- end
13
-
14
- File.open(".gitignore", "a") do |file|
15
- file.write("# OS X Finder
8
+ def self.generate_files
9
+ if directory_contains_xcode_project(".")
10
+ File.open(".gitattributes", "a") do |file|
11
+ file.write("*.pbxproj binary merge=union")
12
+ end
13
+
14
+ File.open(".gitignore", "a") do |file|
15
+ file.write("# OS X Finder
16
16
  .DS_Store
17
17
 
18
18
  # Xcode per-user config
@@ -37,7 +37,7 @@ build/
37
37
  *~
38
38
  *.dat
39
39
  *.dep")
40
- end
41
- end
42
- end
40
+ end
41
+ end
42
+ end
43
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: botstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-16 00:00:00.000000000 Z
12
+ date: 2012-10-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Xcode/git bootstrapping
15
15
  email:
@@ -21,7 +21,6 @@ extra_rdoc_files: []
21
21
  files:
22
22
  - .gitignore
23
23
  - Gemfile
24
- - LICENSE.txt
25
24
  - README.md
26
25
  - Rakefile
27
26
  - bin/botstrap
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2012 Mark Adams
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.