ruby-app 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  RubyApp
2
2
  =======
3
3
 
4
- Little ruby application template. For create light ruby apps (daemons, EventMachine-apps, ...).
5
- Supports bundler, environments, activesupport, rails dirs tree. Fast loading and low memory using.
4
+ Ruby micro framework for easy create ruby applications (daemons, EventMachine-apps, db-apps, cli...).
5
+ Features: bundler, environments, activesupport, rails dirs tree. Fast loading and low memory using.
6
6
 
7
7
  $ gem install ruby-app
8
8
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- require File.join(File.dirname(__FILE__), %w{.. config environment})
2
+ require File.expand_path(File.join(File.dirname(__FILE__), %w{.. config environment}))
3
3
 
4
4
  require 'irb'
5
5
  require 'irb/completion'
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require File.join(File.dirname(__FILE__), %w{.. config environment})
3
+ require File.expand_path(File.join(File.dirname(__FILE__), %w{.. config environment}))
4
4
 
5
5
  App.logger.info "root: '#{App.root}'"
6
6
  App.logger.info "env: '#{App.env}'"
@@ -1,5 +1,6 @@
1
1
  # Defaults configs
2
2
  # enved configs can redefine this
3
+ # also, can create config/config.yml (by capistrano for example) and its loads automatically
3
4
 
4
5
  App.config.define :default do
5
6
 
@@ -1,6 +1,8 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  require File.join(File.dirname(__FILE__), 'boot')
3
3
 
4
- # ENV['APP_ENV'] = 'production' # uncomment if need forced env
4
+ # uncomment if needed force env
5
+ # ENV['APP_ENV'] = 'production'
6
+ # or create file config/environment.current (by captistrano for example) and put there string 'production'
5
7
 
6
8
  require 'ruby-app/environment'
@@ -59,6 +59,10 @@ module Application::Defaults
59
59
 
60
60
  def bundler_group
61
61
  end
62
+
63
+ def error_mailer
64
+ ErrorMailer
65
+ end
62
66
 
63
67
  end
64
68
 
@@ -21,6 +21,7 @@ require File.join(local_root, 'default_config')
21
21
  Bundler.require(:default, App.env.to_sym)
22
22
 
23
23
  # AS dependencies
24
+ # i prefer 2.seconds, or x.blank? functions by default
24
25
  require 'active_support/dependencies'
25
26
  require 'active_support/core_ext/numeric/time'
26
27
  require 'active_support/core_ext/object/blank'
@@ -4,7 +4,7 @@ begin
4
4
  desc "Run specs"
5
5
  RSpec::Core::RakeTask.new(:spec) do |t|
6
6
  t.rspec_opts = ['--options', "./spec/spec.opts"]
7
- # t.pattern = "./spec/**/*_spec.rb"
7
+ t.verbose = false
8
8
  end
9
9
  task :default => :spec
10
10
 
@@ -1,3 +1,3 @@
1
1
  module RubyApp
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
data/ruby-app.gemspec CHANGED
@@ -6,9 +6,9 @@ Gem::Specification.new do |s|
6
6
  s.version = RubyApp::VERSION
7
7
 
8
8
  s.authors = ["Makarchev Konstantin"]
9
-
10
- s.description = %q{Little ruby application template. For create light ruby apps (daemons, EventMachine-apps, ...). Supports bundler, environments, activesupport, rails dirs tree. Fast loading and low memory using.}
11
- s.summary = %q{Ruby application template}
9
+
10
+ s.description = %q{Ruby micro framework for easy create ruby applications (daemons, EventMachine-apps, db-apps, cli...). Features: bundler, environments, activesupport, rails dirs tree. Fast loading and low memory using.}
11
+ s.summary = %q{Ruby application micro framework}
12
12
 
13
13
  s.email = %q{kostya27@gmail.com}
14
14
  s.homepage = %q{http://github.com/kostya/ruby-app}
metadata CHANGED
@@ -1,116 +1,121 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ruby-app
3
- version: !ruby/object:Gem::Version
4
- hash: 11
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.9
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 8
10
- version: 0.1.8
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Makarchev Konstantin
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-07-22 00:00:00 +04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- hash: 3
28
- segments:
29
- - 0
30
- version: "0"
31
- prerelease: false
32
- type: :runtime
33
- requirement: *id001
12
+ date: 2012-11-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
34
15
  name: activesupport
35
- - !ruby/object:Gem::Dependency
36
- version_requirements: &id002 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
37
17
  none: false
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- hash: 3
42
- segments:
43
- - 0
44
- version: "0"
45
- prerelease: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
46
22
  type: :runtime
47
- requirement: *id002
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
48
31
  name: rake
49
- - !ruby/object:Gem::Dependency
50
- version_requirements: &id003 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
51
33
  none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- hash: 3
56
- segments:
57
- - 0
58
- version: "0"
59
- prerelease: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
60
38
  type: :runtime
61
- requirement: *id003
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
62
47
  name: thor
63
- - !ruby/object:Gem::Dependency
64
- version_requirements: &id004 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
65
49
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- hash: 3
70
- segments:
71
- - 0
72
- version: "0"
73
- prerelease: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
74
54
  type: :runtime
75
- requirement: *id004
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
76
63
  name: bundler
77
- - !ruby/object:Gem::Dependency
78
- version_requirements: &id005 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
79
65
  none: false
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- hash: 3
84
- segments:
85
- - 0
86
- version: "0"
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
87
71
  prerelease: false
88
- type: :development
89
- requirement: *id005
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
90
79
  name: rspec
91
- - !ruby/object:Gem::Dependency
92
- version_requirements: &id006 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
93
81
  none: false
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- hash: 3
98
- segments:
99
- - 0
100
- version: "0"
101
- prerelease: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
102
86
  type: :development
103
- requirement: *id006
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
104
95
  name: rake
105
- description: Little ruby application template. For create light ruby apps (daemons, EventMachine-apps, ...). Supports bundler, environments, activesupport, rails dirs tree. Fast loading and low memory using.
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ description: ! 'Ruby micro framework for easy create ruby applications (daemons, EventMachine-apps,
111
+ db-apps, cli...). Features: bundler, environments, activesupport, rails dirs tree.
112
+ Fast loading and low memory using.'
106
113
  email: kostya27@gmail.com
107
- executables:
114
+ executables:
108
115
  - ruby-app
109
116
  extensions: []
110
-
111
117
  extra_rdoc_files: []
112
-
113
- files:
118
+ files:
114
119
  - .gitignore
115
120
  - Gemfile
116
121
  - LICENSE
@@ -169,39 +174,34 @@ files:
169
174
  - spec/test_app/config/initializers/2.rb
170
175
  - spec/test_app/lib/4.rb
171
176
  - spec/test_app/lib/application.rb
172
- has_rdoc: true
173
177
  homepage: http://github.com/kostya/ruby-app
174
178
  licenses: []
175
-
176
179
  post_install_message:
177
180
  rdoc_options: []
178
-
179
- require_paths:
181
+ require_paths:
180
182
  - lib
181
- required_ruby_version: !ruby/object:Gem::Requirement
183
+ required_ruby_version: !ruby/object:Gem::Requirement
182
184
  none: false
183
- requirements:
184
- - - ">="
185
- - !ruby/object:Gem::Version
186
- hash: 3
187
- segments:
185
+ requirements:
186
+ - - ! '>='
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ segments:
188
190
  - 0
189
- version: "0"
190
- required_rubygems_version: !ruby/object:Gem::Requirement
191
+ hash: -119047907
192
+ required_rubygems_version: !ruby/object:Gem::Requirement
191
193
  none: false
192
- requirements:
193
- - - ">="
194
- - !ruby/object:Gem::Version
195
- hash: 3
196
- segments:
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ segments:
197
199
  - 0
198
- version: "0"
200
+ hash: -119047907
199
201
  requirements: []
200
-
201
202
  rubyforge_project:
202
- rubygems_version: 1.4.2
203
+ rubygems_version: 1.8.24
203
204
  signing_key:
204
205
  specification_version: 3
205
- summary: Ruby application template
206
+ summary: Ruby application micro framework
206
207
  test_files: []
207
-