openteam-commons 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,10 @@ module OpenteamCommons
11
11
  chmod 'script/update_site', 0755
12
12
  end
13
13
 
14
+ def create_libs
15
+ copy_file 'lib/tasks/cron.rake'
16
+ end
17
+
14
18
  def create_configs
15
19
  copy_file 'config/schedule.rb'
16
20
  copy_file 'config/settings.yml.example'
@@ -1,4 +1,8 @@
1
- set :job_template, "/usr/local/bin/bash -l -c ':job'" if RUBY_PLATFORM =~ /freebsd/
1
+ if RUBY_PLATFORM =~ /freebsd/
2
+ set :job_template, "/usr/local/bin/bash -l -i -c ':job'"
3
+ else
4
+ set :job_template, "/bin/bash -l -i -c ':job'"
5
+ end
2
6
 
3
7
  every :day do
4
8
  rake 'cron'
@@ -0,0 +1,2 @@
1
+ desc 'Execute periodical tasks'
2
+ task :cron => :environment
@@ -1,3 +1,3 @@
1
1
  module OpenteamCommons
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openteam-commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: airbrake
16
- requirement: &14875420 !ruby/object:Gem::Requirement
16
+ requirement: &4749560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *14875420
24
+ version_requirements: *4749560
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: configliere
27
- requirement: &14871880 !ruby/object:Gem::Requirement
27
+ requirement: &4745960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *14871880
35
+ version_requirements: *4745960
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rails
38
- requirement: &14891620 !ruby/object:Gem::Requirement
38
+ requirement: &4766020 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *14891620
46
+ version_requirements: *4766020
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: whenever
49
- requirement: &14887820 !ruby/object:Gem::Requirement
49
+ requirement: &4762180 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *14887820
57
+ version_requirements: *4762180
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: unicorn
60
- requirement: &14884840 !ruby/object:Gem::Requirement
60
+ requirement: &4427600 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *14884840
68
+ version_requirements: *4427600
69
69
  description: Description of OpenteamCommons.
70
70
  email:
71
71
  - mail@openteam.ru
@@ -76,6 +76,7 @@ files:
76
76
  - config/initializers/sunspot.rb
77
77
  - config/locales/datetime.ru.yml
78
78
  - lib/generators/openteam_commons/install/install_generator.rb
79
+ - lib/generators/openteam_commons/install/templates/lib/tasks/cron.rake
79
80
  - lib/generators/openteam_commons/install/templates/config/unicorn.rb
80
81
  - lib/generators/openteam_commons/install/templates/config/settings.yml.example
81
82
  - lib/generators/openteam_commons/install/templates/config/schedule.rb
@@ -102,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
103
  version: '0'
103
104
  segments:
104
105
  - 0
105
- hash: -2411024842467568600
106
+ hash: -3830103022444745722
106
107
  required_rubygems_version: !ruby/object:Gem::Requirement
107
108
  none: false
108
109
  requirements:
@@ -111,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
112
  version: '0'
112
113
  segments:
113
114
  - 0
114
- hash: -2411024842467568600
115
+ hash: -3830103022444745722
115
116
  requirements: []
116
117
  rubyforge_project:
117
118
  rubygems_version: 1.8.15