ftrio 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## v0.0.2
2
+
3
+ * use cedar heroku-stack
4
+ * do not compile assets anymore
5
+ * improve README.md
6
+ * add CHANGELOG.md
7
+ * add LISANCE
8
+
9
+ ## v0.0.1
10
+
11
+ * initial release
data/LISANCE ADDED
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2011 Oguz Bilgic
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
data/README.md CHANGED
@@ -1,21 +1,36 @@
1
1
  # ftrio
2
2
 
3
- Ftrio is tool for managing software development process. It has usefull rake test that manages git branches and heroku apps.
3
+ Ftrio is tool for managing software development process. It has usefull rake tasks that manages git branches and heroku apps.
4
+
5
+ ## Philosophy
6
+
7
+ Ftrio has unique Philosophy for managing software development process using heroku and git.
8
+
9
+ ### feature-branch
10
+
11
+ feature-branch is the specific branch that holds all the commits related to that feature.
12
+
13
+ ### feature-app
14
+
15
+ feature-app is a heroku app which holds feature-branch.
4
16
 
5
17
  ## Installation
6
18
 
7
- Just add ``` gem 'ftrio' ``` to your gem file
19
+ Just add ``` gem 'ftrio' ``` to your GemFile
8
20
 
9
21
  ## Usage
10
22
 
11
23
  ### ftrio:create[feature]
12
24
 
13
- Creates feature branch
25
+ + Creates feature-branch
26
+ + Creates feature-app just for that feature at heroku
27
+ + Pushes feature-branch into feature-app
14
28
 
15
29
  ### ftrio:push
16
30
 
17
- Merges feature branch into development branches
31
+ + Pushes feature-branch to feature-app
18
32
 
19
33
  ### ftrio:destroy
20
34
 
21
- Destroyes feature branch
35
+ + Destroyes feature-branch
36
+ + Destroyes feature-app
data/lib/ftrio.rb CHANGED
@@ -12,11 +12,7 @@ module Ftrio
12
12
  `git branch --no-color | grep '*' | cut -d ' ' -f 2`.chomp
13
13
  end
14
14
 
15
- def self.dev_branch(feature_branch)
16
- "dev-#{feature_branch}"
17
- end
18
-
19
- def self.dev_app(feature_branch)
15
+ def self.feature_app(feature_branch)
20
16
  "dev-#{app_name}-#{feature_branch}"
21
17
  end
22
18
 
data/lib/ftrio/ftrio.rake CHANGED
@@ -5,50 +5,40 @@ module Ftrio
5
5
  puts app_name
6
6
  end
7
7
 
8
- desc "Creates feature_branch, dev_branch and dev_app"
8
+ desc "Creates feature_branch, dev_branch and feature_app"
9
9
  task :create, :feature do |cmd, args|
10
10
  feature_branch = args[:feature]
11
- dev_app = dev_app(feature_branch)
12
- dev_branch = dev_branch(feature_branch)
11
+ feature_app = feature_app(feature_branch)
13
12
  sh "git checkout master"
14
13
  sh "git checkout -b #{feature_branch}"
15
- sh "git branch #{dev_branch}"
16
- sh "git checkout #{dev_branch}"
17
- compile_assets
18
- sh "heroku create #{dev_app}"
19
- sh "git remote rename heroku #{dev_app}"
20
- sh "git push #{dev_app} #{dev_branch}:master"
21
- sh "heroku db:push --app #{dev_app} --confirm #{dev_app}"
14
+ sh "heroku create #{feature_app} --stack cedar"
15
+ sh "git remote rename heroku #{feature_app}"
16
+ sh "git push #{feature_app} #{feature_branch}:master"
17
+ sh "heroku db:push --app #{feature_app} --confirm #{feature_app}"
22
18
  sh "git checkout #{feature_branch}"
23
19
  puts "\n\n"
24
20
  puts "\t#"
25
21
  puts "\t# Your feature development app is ready:"
26
- puts "\t# #{dev_app}.heroku.com"
22
+ puts "\t# #{feature_app}.heroku.com"
27
23
  puts "\t#"
28
24
  puts "\n\n"
29
25
  end
30
26
 
31
- desc "Merges feature_branch into dev_branch and pushes to dev_app"
27
+ desc "Merges feature_branch into dev_branch and pushes to feature_app"
32
28
  task :push do
33
29
  feature_branch = current_branch
34
- dev_app = dev_app(current_branch)
35
- dev_branch = dev_branch(current_branch)
36
- sh "git checkout #{dev_branch}"
37
- sh "git merge #{feature_branch}"
38
- compile_assets
39
- sh "git push #{dev_app} #{dev_branch}:master"
40
- sh "git checkout #{feature_branch}"
30
+ feature_app = feature_app(current_branch)
31
+ sh "git push #{feature_app} #{feature_branch}:master"
32
+ sh "git remote rm #{feature_app} "
41
33
  end
42
34
 
43
- desc "Destroys feature_branch, dev_branch and dev_app"
35
+ desc "Destroys feature_branch, dev_branch and feature_app"
44
36
  task :destroy do
45
37
  feature_branch = current_branch
46
- dev_app = dev_app(current_branch)
47
- dev_branch = dev_branch(current_branch)
38
+ feature_app = feature_app(current_branch)
48
39
  sh "git checkout master"
49
- sh "git branch -D #{dev_branch}"
50
40
  sh "git branch -D #{feature_branch}"
51
- sh "heroku apps:destroy --app #{dev_app} --confirm #{dev_app}"
41
+ sh "heroku apps:destroy --app #{feature_app} --confirm #{feature_app}"
52
42
  end
53
43
  end
54
44
 
data/lib/ftrio/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ftrio
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ftrio
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Oguz Bilgic
@@ -70,7 +70,9 @@ extra_rdoc_files: []
70
70
 
71
71
  files:
72
72
  - .gitignore
73
+ - CHANGELOG.md
73
74
  - Gemfile
75
+ - LISANCE
74
76
  - README.md
75
77
  - Rakefile
76
78
  - ftrio.gemspec