ftrio 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v0.0.3
2
+
3
+ * update task descriptions
4
+ * fix ftrio:push task
5
+ * feature_app name is now "app_name--feature_branch"
6
+
1
7
  ## v0.0.2
2
8
 
3
9
  * use cedar heroku-stack
data/ftrio.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_development_dependency "rspec"
21
+ s.add_runtime_dependency "rake"
22
22
  s.add_runtime_dependency "heroku"
23
23
  s.add_runtime_dependency "taps"
24
24
  end
data/lib/ftrio/ftrio.rake CHANGED
@@ -1,11 +1,7 @@
1
1
  module Ftrio
2
2
 
3
3
  namespace :ftrio do
4
- task :deneme do
5
- puts app_name
6
- end
7
-
8
- desc "Creates feature_branch, dev_branch and feature_app"
4
+ desc "Creates feature_branch and feature_app"
9
5
  task :create, :feature do |cmd, args|
10
6
  feature_branch = args[:feature]
11
7
  feature_app = feature_app(feature_branch)
@@ -17,28 +13,28 @@ module Ftrio
17
13
  sh "heroku db:push --app #{feature_app} --confirm #{feature_app}"
18
14
  sh "git checkout #{feature_branch}"
19
15
  puts "\n\n"
20
- puts "\t#"
21
- puts "\t# Your feature development app is ready:"
22
- puts "\t# #{feature_app}.heroku.com"
23
- puts "\t#"
16
+ puts " #"
17
+ puts " # Your feature development app is ready:"
18
+ puts " # #{feature_app}.heroku.com"
19
+ puts " #"
24
20
  puts "\n\n"
25
21
  end
26
22
 
27
- desc "Merges feature_branch into dev_branch and pushes to feature_app"
23
+ desc "Pushes feature_branch into feature_app"
28
24
  task :push do
29
25
  feature_branch = current_branch
30
26
  feature_app = feature_app(current_branch)
31
27
  sh "git push #{feature_app} #{feature_branch}:master"
32
- sh "git remote rm #{feature_app} "
33
28
  end
34
29
 
35
- desc "Destroys feature_branch, dev_branch and feature_app"
30
+ desc "Destroys feature_branch and feature_app"
36
31
  task :destroy do
37
32
  feature_branch = current_branch
38
33
  feature_app = feature_app(current_branch)
39
34
  sh "git checkout master"
40
35
  sh "git branch -D #{feature_branch}"
41
36
  sh "heroku apps:destroy --app #{feature_app} --confirm #{feature_app}"
37
+ sh "git remote rm #{feature_app} "
42
38
  end
43
39
  end
44
40
 
data/lib/ftrio/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ftrio
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/ftrio.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require "rake"
1
2
  require "ftrio/version"
2
3
  require "ftrio/railtie" if defined? Rails
3
4
 
@@ -13,7 +14,7 @@ module Ftrio
13
14
  end
14
15
 
15
16
  def self.feature_app(feature_branch)
16
- "dev-#{app_name}-#{feature_branch}"
17
+ "#{app_name}--#{feature_branch}"
17
18
  end
18
19
 
19
20
  def self.compile_assets
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Oguz Bilgic
@@ -18,7 +18,7 @@ cert_chain: []
18
18
  date: 2011-12-20 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: rspec
21
+ name: rake
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
@@ -29,7 +29,7 @@ dependencies:
29
29
  segments:
30
30
  - 0
31
31
  version: "0"
32
- type: :development
32
+ type: :runtime
33
33
  version_requirements: *id001
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: heroku