bonethug 0.0.68 → 0.0.69

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -16,6 +16,7 @@ spec/reports
16
16
  test/tmp
17
17
  test/version_tmp
18
18
  .ruby-version
19
+ .fuse*
19
20
  tmp
20
21
  *.sublime-project
21
22
  *.sublime-workspace
data/Gemfile CHANGED
@@ -19,8 +19,14 @@ gem 'astrails-safe', github: 'astrails/safe'
19
19
  gem 'whenever', github: 'javan/whenever'
20
20
 
21
21
  # guard
22
- gem 'guard', '>= 1.8.3', '< 2.0' # '>=2.0.5'
23
- gem 'listen', github: 'guard/listen'
22
+ if RbConfig::CONFIG['target_os'] =~ /mswin|mingw|cygwin/i
23
+ gem 'wdm', '>= 0.1.0'
24
+ gem 'guard', '>= 1.8.3', '< 2.0'
25
+ gem 'listen', '~> 1.3'
26
+ else
27
+ gem 'guard', '>=2.5.1'
28
+ gem 'listen', '>=2.6.2'
29
+ end
24
30
 
25
31
  # asset pipeline - guard sprockets
26
32
  gem 'guard-sprockets', github: 'dormi/guard-sprockets'
@@ -37,8 +43,6 @@ gem 'guard-erb'
37
43
  gem 'guard-slim'
38
44
  gem 'guard-livereload'
39
45
 
40
- gem 'wdm', '>= 0.1.0' if RbConfig::CONFIG['target_os'] =~ /mswin|mingw|cygwin/i
41
-
42
46
  # if RUBY_PLATFORM.downcase.include?('linux')
43
47
  # gem 'therubyracer'
44
48
  # end
data/bonethug.gemspec CHANGED
@@ -39,8 +39,14 @@ Gem::Specification.new do |spec|
39
39
  spec.add_dependency 'whenever'
40
40
 
41
41
  # guard
42
- spec.add_dependency 'guard', '>= 1.8.3', '< 2.0' # '>=2.0.5'
43
- spec.add_dependency 'listen'
42
+ if RbConfig::CONFIG['target_os'] =~ /mswin|mingw|cygwin/i
43
+ spec.add_dependency 'wdm', '>= 0.1.0'
44
+ spec.add_dependency 'guard', '>= 1.8.3', '< 2.0'
45
+ spec.add_dependency 'listen', '~> 1.3'
46
+ else
47
+ spec.add_dependency 'guard', '>=2.5.1'
48
+ spec.add_dependency 'listen', '>=2.6.2'
49
+ end
44
50
 
45
51
  # asset pipeline - guard coffeescript / sass
46
52
  spec.add_dependency 'coffee-script'
@@ -65,8 +71,6 @@ Gem::Specification.new do |spec|
65
71
  # spec.add_dependency 'juicer'
66
72
  # spec.add_dependency 'guard-uglify'
67
73
 
68
- spec.add_dependency 'wdm', '>= 0.1.0' if RbConfig::CONFIG['target_os'] =~ /mswin|mingw|cygwin/i
69
-
70
74
  # if RUBY_PLATFORM.downcase.include?('linux')
71
75
  # spec.add_dependency 'therubyracer'
72
76
  # spec.add_dependency 'rb-inotify'
data/config/deploy.rb CHANGED
@@ -357,9 +357,9 @@ task :deploy => :environment do
357
357
 
358
358
  # write the to the .haccess file
359
359
  queue! %[touch #{deploy_to}/current/public/.htaccess]
360
- clean = File.read("#{deploy_to}/current/public/.htaccess").gsub(/\n?## BONETHUG ##.+## END_BONETHUG ##\n?/m, '');
361
- escaped = (clean.to_s + htaccess).gsub(/"/, '\"')
362
- queue! %[echo "#{escaped}" > #{deploy_to}/current/public/.htaccess]
360
+ queue! %[sed -i -e "s/\\n?## BONETHUG ##.+## END_BONETHUG ##\\n?//g" #{deploy_to}/current/public/.htaccess]
361
+ escaped = (htaccess).gsub(/"/, '\"')
362
+ queue! %[echo "#{escaped}" >> #{deploy_to}/current/public/.htaccess]
363
363
 
364
364
  # write to the .htpasswd file
365
365
  queue! %[touch #{deploy_to}/current/.htpasswd]
@@ -368,9 +368,7 @@ task :deploy => :environment do
368
368
 
369
369
  # write the to the .haccess file
370
370
  queue! %[touch #{deploy_to}/current/public/.htaccess]
371
- clean = File.read("#{deploy_to}/current/public/.htaccess").gsub(/\n?## BONETHUG ##.+## END_BONETHUG ##\n?/m, '');
372
- escaped = (clean.to_s).gsub(/"/, '\"')
373
- queue! %[echo "#{escaped}" > #{deploy_to}/current/public/.htaccess]
371
+ queue! %[sed -i -e "s/\\n?## BONETHUG ##.+## END_BONETHUG ##\\n?//g" #{deploy_to}/current/public/.htaccess]
374
372
 
375
373
  end
376
374
 
@@ -385,7 +383,7 @@ task :deploy => :environment do
385
383
 
386
384
  # run cache flushes / manifest rebuilds
387
385
  queue! %[export APPLICATION_ENV=#{env} && php #{deploy_to}/current/public/framework/cli-script.php dev/build] if ['silverstripe','silverstripe3'].include? deploy.get('project_type')
388
- queue! %[cd #{deploy_to}/current/lib && php flush_drupal_cache.php] if ['drupal','drupal6','drupal7','drupal8'].include? deploy.get('project_type')
386
+ queue! %[export APPLICATION_ENV=#{env} && cd #{deploy_to}/current/lib && php flush_drupal_cache.php] if ['drupal','drupal6','drupal7','drupal8'].include? deploy.get('project_type')
389
387
 
390
388
  # run any project scripts
391
389
  # purge combined files for ss
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Bonethug
3
- VERSION = "0.0.68"
4
- BUILD_DATE = "2014-03-03 10:02:04 +1300"
3
+ VERSION = "0.0.69"
4
+ BUILD_DATE = "2014-03-04 11:27:42 +1300"
5
5
  end
6
6
 
@@ -1,11 +1,14 @@
1
- <?php
2
-
3
- $pub_dir = realpath(__DIR__ . '/../public');
4
- chdir($pub_dir);
5
- define('DRUPAL_ROOT', $pub_dir);
6
-
7
- if (file_exists($pub_dir . '/includes/bootstrap.inc')) {
8
- require_once $pub_dir . '/includes/bootstrap.inc';
9
- drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
10
- drupal_flush_all_caches();
1
+ <?php
2
+
3
+ $pub_dir = realpath(__DIR__ . '/../public');
4
+ chdir($pub_dir);
5
+ define('DRUPAL_ROOT', $pub_dir);
6
+
7
+ if (file_exists($pub_dir . '/includes/bootstrap.inc')) {
8
+
9
+ $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
10
+
11
+ require_once $pub_dir . '/includes/bootstrap.inc';
12
+ drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
13
+ drupal_flush_all_caches();
11
14
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bonethug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.68
4
+ version: 0.0.69
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-02 00:00:00.000000000 Z
12
+ date: 2014-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -130,10 +130,7 @@ dependencies:
130
130
  requirements:
131
131
  - - ! '>='
132
132
  - !ruby/object:Gem::Version
133
- version: 1.8.3
134
- - - <
135
- - !ruby/object:Gem::Version
136
- version: '2.0'
133
+ version: 2.5.1
137
134
  type: :runtime
138
135
  prerelease: false
139
136
  version_requirements: !ruby/object:Gem::Requirement
@@ -141,10 +138,7 @@ dependencies:
141
138
  requirements:
142
139
  - - ! '>='
143
140
  - !ruby/object:Gem::Version
144
- version: 1.8.3
145
- - - <
146
- - !ruby/object:Gem::Version
147
- version: '2.0'
141
+ version: 2.5.1
148
142
  - !ruby/object:Gem::Dependency
149
143
  name: listen
150
144
  requirement: !ruby/object:Gem::Requirement
@@ -152,7 +146,7 @@ dependencies:
152
146
  requirements:
153
147
  - - ! '>='
154
148
  - !ruby/object:Gem::Version
155
- version: '0'
149
+ version: 2.6.2
156
150
  type: :runtime
157
151
  prerelease: false
158
152
  version_requirements: !ruby/object:Gem::Requirement
@@ -160,7 +154,7 @@ dependencies:
160
154
  requirements:
161
155
  - - ! '>='
162
156
  - !ruby/object:Gem::Version
163
- version: '0'
157
+ version: 2.6.2
164
158
  - !ruby/object:Gem::Dependency
165
159
  name: coffee-script
166
160
  requirement: !ruby/object:Gem::Requirement
@@ -509,12 +503,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
509
503
  - - ! '>='
510
504
  - !ruby/object:Gem::Version
511
505
  version: '0'
506
+ segments:
507
+ - 0
508
+ hash: 3738171120857185268
512
509
  required_rubygems_version: !ruby/object:Gem::Requirement
513
510
  none: false
514
511
  requirements:
515
512
  - - ! '>='
516
513
  - !ruby/object:Gem::Version
517
514
  version: '0'
515
+ segments:
516
+ - 0
517
+ hash: 3738171120857185268
518
518
  requirements: []
519
519
  rubyforge_project:
520
520
  rubygems_version: 1.8.23