pageflow-support 0.11.4 → 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/pageflow/dummy/app.rb +10 -2
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 957394dd07acc109648a983ba1cc95a4e46fa91c
4
- data.tar.gz: 75f21714e03802a2bba04b53620eb6312114d1de
3
+ metadata.gz: 4bafbbbc6658d5d7868d2f50aade15d78591b83e
4
+ data.tar.gz: afbcce3584b4a6fcd39533f6c1119b032136a3af
5
5
  SHA512:
6
- metadata.gz: fffc54c2d09a37e165ace9cc0e99a6ccb1bc0da71f737d6faed9f885f328044f5736b68b006450e887b039e83414dc4b877ffd3842fc474eef9767e2f3c9c536
7
- data.tar.gz: c99b0734fc0cb0b501525372e70afff1968560d10501fea61fa30efd1cf8719e505fccd84b073a652b08f76d02e1e407f9b8c2d0f9ea979e68fde1b53fb2e943
6
+ metadata.gz: d9de5193c848f47e2740f365e73e6514cf4b977722c07e9929c503f83c6051d8d3e768552bbbe63dacddd909c566a4d126cc4c514385483ad15eb46d2406e6e6
7
+ data.tar.gz: e8ea53995dc0fc08a88abc936bc8ac6d70a2f19313e28a9465050dc6c00183b8038dbd262ac73f9542b3ee0575e14947d3b85fd089e422fb2808dd5418fab981
@@ -6,10 +6,12 @@ module Pageflow
6
6
  def generate
7
7
  ENV['RAILS_ROOT'] = File.expand_path(directory)
8
8
 
9
- if File.exists?(directory)
9
+ if File.exist?(directory)
10
10
  puts("Dummy directory #{directory} exists.")
11
11
  else
12
- system("bundle exec rails new #{directory} --template #{template_path} #{rails_new_options}")
12
+ travis_fold('setup_dummy') do
13
+ system("bundle exec rails new #{directory} --template #{template_path} #{rails_new_options}")
14
+ end
13
15
  end
14
16
 
15
17
  require(File.join(ENV['RAILS_ROOT'], 'config', 'environment'))
@@ -27,6 +29,12 @@ module Pageflow
27
29
  def rails_new_options
28
30
  '--skip-test-unit --skip-bundle --database=mysql'
29
31
  end
32
+
33
+ def travis_fold(name)
34
+ system("[ $TRAVIS ] && echo 'travis_fold:start:#{name}'")
35
+ yield
36
+ system("[ $TRAVIS ] && echo 'travis_fold:end:#{name}'")
37
+ end
30
38
  end
31
39
  end
32
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.4
4
+ version: 12.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-03 00:00:00.000000000 Z
11
+ date: 2017-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.4
19
+ version: 12.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.11.4
26
+ version: 12.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mysql2
29
29
  requirement: !ruby/object:Gem::Requirement