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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f302533c95e1bb8d080700dc3cdf11b597d5363e
4
- data.tar.gz: 7f72332d104b47c97ddab93edee08d4afeed1753
3
+ metadata.gz: c9f8669748e3705968a85c6e23b827eb3a682a84
4
+ data.tar.gz: 181106208de0cf2e82651e751ef742c42d47bffc
5
5
  SHA512:
6
- metadata.gz: 40e907e6b1627c01f94fee1f8291ded904b18cce6d8ff4714188b6c80d6b563ef020cc099c0b5d782deb53e68b1116d7252ea9dc9538c61bfe364f1219e71a06
7
- data.tar.gz: 25914d2c9e1b99e11ad6771d4e813d04281cf3b13e86a03424c2e0287e0a4224c03f200be5d1ed0d0650cf426f20e87334fcc807c35147e387dad457ad2529ca
6
+ metadata.gz: 432472d0836d18ead8089be68a93886d41034678c2a40833396d540495f9d27f03b20c11f0d702a85f0cf0d8183f6c15727573ea90ecde2037c8b8f074bc519e
7
+ data.tar.gz: 094f41dee08edc6989235b6fa194b255c4265ae35b87c3c5244fdd643fc0e8f5430bc4cc0d703900a61107ce7d01bf1c7c442a84ee278876f81de2f97132b044
@@ -58,4 +58,3 @@ class Fanforce::App
58
58
  Sinatra.new.call(env)
59
59
  end
60
60
  end
61
-
@@ -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.dir}/tmp/"
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.dir}/tmp/"
18
+ log "#{'Created'.format(:green,:bold)} #{app._id}/tmp/"
19
19
  end
20
20
  files.each {|file| file.create }
21
21
  end
@@ -504,7 +504,7 @@ class Fanforce::AppFactory::CLI::ScaffoldingFile
504
504
  end
505
505
 
506
506
  def extract_relativepath(filepath)
507
- filepath.gsub(Fanforce::CLI::DIR, '')
507
+ filepath.gsub("#{Fanforce::CLI::DIR}/", '')
508
508
  end
509
509
 
510
510
  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 (#{app_id}) already exists in uranium. Proceeding will overwrite it.\n"+
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)} #{app_dir}/"
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
 
@@ -1 +1,2 @@
1
1
  fanforce-app-factory-2.0.0.rc6:02405b7a50a0ed450d10c57b6d6ad034a247e9d1
2
+ fanforce-app-factory-2.0.0.rc16:b4b9aa096770b68ec2c9da62349443747d5afa88
@@ -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>')
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class AppFactory
3
- VERSION = '2.0.0.rc16'
3
+ VERSION = '2.0.0.rc17'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-app-factory
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc16
4
+ version: 2.0.0.rc17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark