fanforce-app-factory 2.0.0.rc16 → 2.0.0.rc17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fanforce/app_factory/app.rb +0 -1
- data/lib/fanforce/app_factory/cli/lib/bitbucket.rb +2 -0
- data/lib/fanforce/app_factory/cli/lib/scaffolding.rb +2 -2
- data/lib/fanforce/app_factory/cli/lib/scaffolding_file.rb +1 -1
- data/lib/fanforce/app_factory/cli/lib/uranium.rb +1 -1
- data/lib/fanforce/app_factory/cli/scripts/create.rb +1 -1
- data/lib/fanforce/app_factory/scaffolding/layouts/._engagement.haml.registry +1 -0
- data/lib/fanforce/app_factory/scaffolding/layouts/engagement.haml +2 -2
- data/lib/fanforce/app_factory/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9f8669748e3705968a85c6e23b827eb3a682a84
|
4
|
+
data.tar.gz: 181106208de0cf2e82651e751ef742c42d47bffc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 432472d0836d18ead8089be68a93886d41034678c2a40833396d540495f9d27f03b20c11f0d702a85f0cf0d8183f6c15727573ea90ecde2037c8b8f074bc519e
|
7
|
+
data.tar.gz: 094f41dee08edc6989235b6fa194b255c4265ae35b87c3c5244fdd643fc0e8f5430bc4cc0d703900a61107ce7d01bf1c7c442a84ee278876f81de2f97132b044
|
@@ -55,7 +55,9 @@ class Fanforce::AppFactory::CLI::Bitbucket
|
|
55
55
|
else
|
56
56
|
puts "#{'Created '.format(:green,:bold)}" + 'git remote for bitbucket'
|
57
57
|
end
|
58
|
+
|
58
59
|
`git remote add bitbucket git@bitbucket.org:#{config[:bitbucket][:user]}/#{repo_name}.git`
|
60
|
+
`git branch -u bitbucket/master` if !`git rev-parse --abbrev-ref master@{upstream}`.include?('fatal')
|
59
61
|
|
60
62
|
puts "#{'Pushing '.format(:green,:bold)}" + "latest commit to #{config[:bitbucket][:user]}..."
|
61
63
|
console_command('git push bitbucket --all')
|
@@ -12,10 +12,10 @@ class Fanforce::AppFactory::CLI::Scaffolding
|
|
12
12
|
|
13
13
|
def setup
|
14
14
|
if File.directory?("#{app.dir}/tmp")
|
15
|
-
log "#{'Found '.format(:green,:bold)} #{app.
|
15
|
+
log "#{'Found '.format(:green,:bold)} #{app._id}/tmp/"
|
16
16
|
else
|
17
17
|
Dir.mkdir("#{app.dir}/tmp")
|
18
|
-
log "#{'Created'.format(:green,:bold)} #{app.
|
18
|
+
log "#{'Created'.format(:green,:bold)} #{app._id}/tmp/"
|
19
19
|
end
|
20
20
|
files.each {|file| file.create }
|
21
21
|
end
|
@@ -16,7 +16,7 @@ class Fanforce::AppFactory::CLI::Uranium
|
|
16
16
|
if response.code == 404
|
17
17
|
setup(false)
|
18
18
|
elsif response.code < 300
|
19
|
-
confirm "\nThis app (#{
|
19
|
+
confirm "\nThis app (#{app._id}) already exists in uranium. Proceeding will overwrite it.\n"+
|
20
20
|
'OVERWRITE EXISTING URANIUM VERSION?', true
|
21
21
|
setup(true)
|
22
22
|
else
|
@@ -23,7 +23,7 @@ class Fanforce::AppFactory::CLI::Scripts
|
|
23
23
|
log 'CREATING FILES...'
|
24
24
|
Dir.mkdir(app_dir) if !File.directory?(app_dir)
|
25
25
|
Dir.chdir(app_dir)
|
26
|
-
log "#{'Created'.format(:bold, :green)} #{
|
26
|
+
log "#{'Created'.format(:bold, :green)} #{app_id}/"
|
27
27
|
app = Fanforce::CLI::App.new(app_dir)
|
28
28
|
Fanforce::AppFactory::CLI::Scaffolding.new(app).setup
|
29
29
|
|
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
= yield_content :after_fanforce_js
|
26
26
|
:coffeescript
|
27
|
-
FF.on('logout', ->
|
27
|
+
FF.on('visitor.logout', ->
|
28
28
|
$('#hello').html('')
|
29
29
|
)
|
30
30
|
FF.organization (organization)->
|
@@ -36,4 +36,4 @@
|
|
36
36
|
$('#logo').html('<div class="logo"><img src="' + organization.logo_url + '"></div>') if organization.logo_url
|
37
37
|
FF.visitor (visitor)->
|
38
38
|
return if !visitor.access_level
|
39
|
-
$('#hello').html('<div class="hello"><div class="hello-wrapper"><span class="greeting">Hello, ' + visitor.first_name + '!</span><a href="javascript: FF.logout(); void(0)">Logout</a></div></div>')
|
39
|
+
$('#hello').html('<div class="hello"><div class="hello-wrapper"><span class="greeting">Hello, ' + visitor.first_name + '!</span><a href="javascript: FF.visitor.logout(); void(0)">Logout</a></div></div>')
|